/* ==========================================================================
   RIDSPACE — ARCHITECTURAL STARTUP LANDING PAGE
   Liquid Glass Design System
   Typography from Portfolio 2 (Mozilla Headline & Rethink Sans)
   ========================================================================== */

:root {
  /* Exact Typography from Portfolio 2 */
  --font-header: 'Mozilla Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Rethink Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-logo: 'Mrs Saint Delafield', cursive;

  /* Liquid Glass Palette */
  --c-glass-white: rgba(255, 255, 255, 0.95);
  --c-glass-trans: rgba(255, 255, 255, 0.16);
  --c-glass-border: rgba(255, 255, 255, 0.32);
  --c-dark-text: #111215;
  --c-light-text: #ffffff;
  --c-muted-text: rgba(255, 255, 255, 0.85);

  --color-white: #ffffff;
  --color-light: #f8fafc;
  --color-muted: rgba(255, 255, 255, 0.85);
  --color-faint: rgba(255, 255, 255, 0.6);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: #000000;
  color: var(--color-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Background Slideshow (Smooth Engine from Portfolio 2)
   ========================================================================== */

.slideshow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  background-color: #000000;
}

.slide {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.0);
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 7.5s cubic-bezier(0.2, 0.8, 0.3, 1),
              visibility 1.5s;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1.05);
}

/* Cinematic Vignette Overlay from Portfolio 2 */
.cinematic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  background: 
    linear-gradient(
      180deg,
      rgba(10, 12, 16, 0.65) 0%,
      rgba(10, 12, 16, 0.25) 20%,
      rgba(10, 12, 16, 0.15) 50%,
      rgba(10, 12, 16, 0.4) 75%,
      rgba(10, 12, 16, 0.75) 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 10, 14, 0.78) 0%,
      rgba(8, 10, 14, 0.58) 38%,
      rgba(8, 10, 14, 0.22) 68%,
      transparent 100%
    );
}

/* ==========================================================================
   SITE FRAME & LAYOUT
   ========================================================================== */

.site-frame {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 3.5rem 4.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Top Header */
.header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  letter-spacing: 0.15em;
}

.brand-title {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.brand-divider {
  color: var(--color-faint);
  font-weight: 300;
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-white) !important;
}

/* ==========================================================================
   HERO CONTENT
   ========================================================================== */

.hero-section {
  display: flex;
  align-items: center;
  width: 100%;
  margin: auto 0;
  padding: 2rem 0;
}

.hero-inner {
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-white) !important;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}

.hero-heading {
  font-family: var(--font-header);
  font-size: clamp(3.4rem, 7.2vw, 6.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 1.85rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.65);
}

.hero-description {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 2.75rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* Actions Row */
.cta-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   LIQUID GLASS PILL BUTTON & SURFACES
   ========================================================================== */

.liquid-glass {
  background-color: rgba(20, 24, 32, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.2);
}

.liquid-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 48px;
  padding: 0 1.75rem;
  border-radius: 99em;
  background-color: rgba(20, 24, 32, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 
    0 8px 26px rgba(0, 0, 0, 0.38),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.25);
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  user-select: none;
}

.liquid-pill-btn:hover {
  background-color: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  box-shadow: 
    0 14px 34px rgba(0, 0, 0, 0.42),
    inset 0 2px 3px rgba(255, 255, 255, 0.85);
}

.liquid-pill-btn:active {
  transform: translateY(0);
}

.pill-icon {
  width: 17px;
  height: 17px;
  stroke: #ffffff !important;
}

/* Badges & Chips */
.liquid-tag {
  padding: 0.45rem 1.15rem;
  border-radius: 99em;
  background-color: rgba(20, 24, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.liquid-badge {
  padding: 0.38rem 1rem;
  border-radius: 99em;
  background-color: rgba(20, 24, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Minimal Email Expander */
.email-panel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  max-width: 440px;
  border-radius: 99em;
  padding: 0.4rem 0.45rem 0.4rem 1.25rem;
  background-color: rgba(15, 18, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
  transition: all 0.35s ease;
}

.email-panel.hidden {
  display: none;
}

.email-panel input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
}

.email-panel input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.email-submit-btn {
  background: #ffffff;
  color: #111215;
  border: none;
  border-radius: 99em;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.email-submit-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.copyright {
  font-family: var(--font-body);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 0.75rem 1.6rem;
  border-radius: 99em;
  background-color: rgba(15, 18, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 14px 40px rgba(0, 0, 0, 0.6),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.6);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 900px) {
  .site-frame {
    padding: 2.5rem 2rem;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-divider {
    display: none;
  }

  .hero-heading {
    font-size: 3.4rem;
  }
}

@media (max-width: 600px) {
  .site-frame {
    padding: 2rem 1.5rem;
  }

  .hero-heading {
    font-size: 2.8rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .liquid-pill-btn {
    width: 100%;
    justify-content: center;
  }
}
