/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Locked Brand */
  --brand: #3E6AE1;
  --brand-hover: #2D54BF;
  --brand-active: #2345A0;
  --radius: 4px;
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Zone 1 + Zone 3: Dark */
  --z-dark-bg: #0F172A;
  --z-dark-bg-elevated: #1E293B;
  --z-dark-text: #FFFFFF;
  --z-dark-text-secondary: #94A3B8;
  --z-dark-border: rgba(255, 255, 255, 0.08);
  --z-dark-glow: rgba(62, 106, 225, 0.25);

  /* Zone 2: Gradient Light */
  --z-light-text: #1A1A1A;
  --z-light-text-secondary: #4B5563;
  --z-light-card: rgba(255, 255, 255, 0.75);
  --z-light-card-border: rgba(62, 106, 225, 0.08);
  --z-light-border: rgba(62, 106, 225, 0.12);

  /* Spacing */
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--z-dark-text);
  background: var(--z-dark-bg);
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-hover);
}

img,
video {
  max-width: 100%;
  display: block;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: linear-gradient(90deg, #3E6AE1 0%, #00B8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-black {
  background: linear-gradient(135deg, #000000 0%, #555555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Primary CTA */
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #3E6AE1 0%, #00B8FF 100%);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0px 4px 30px rgba(0, 184, 255, 0.4);
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.btn-primary:hover {
  box-shadow: 0px 6px 40px rgba(0, 184, 255, 0.6);
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 184, 255, 0.3);
}

/* ============================================
   ZONE TRANSITIONS (image-only)
   No CSS gradients. Images do everything.
   ============================================ */
.transition-image {
  display: block;
  width: 100%;
  line-height: 0;
  font-size: 0;
}

.transition-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--z-dark-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 70px;
  padding: 0 12px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.nav-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--z-dark-text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--z-dark-text);
}

.nav-cta {
  font-size: 0.65rem;
  padding: 8px 12px;
  white-space: nowrap;
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--z-dark-text-secondary);
  transition: all 0.2s ease;
}

/* Overlay behind mobile menu — closes menu on tap */
.menu-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(0,0,0,0.5);
  z-index: 98;
}

.menu-overlay.open {
  display: block;
}

.mobile-menu {
  display: none;
  position: sticky;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--z-dark-border);
  padding: 20px;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--z-dark-text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-bottom: 4px;
}

.mobile-menu a {
  color: var(--z-dark-text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--z-dark-text);
}

/* ============================================
   ZONE 1: HERO (DARK)
   ============================================ */

/* Mobile: video on top, full blue gradient image below, glass card straddles both. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-video-bg {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* CSS gradient below video — bridges dark hero into Zone 2 white. */
.hero::after {
  content: '';
  display: block;
  width: 100%;
  height: 35vh;
  background: linear-gradient(180deg, #0F172A 0%, #1a2744 15%, #2d4a7a 30%, #5B8DEF 50%, #E8EEFF 70%, #F8FAFF 85%, #FFFFFF 100%);
  flex-shrink: 0;
}

/* top = half the video height. Video is 100vw wide, 9/16 aspect = 177.78vw tall. Half = 88.89vw */
.hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100vw * 8 / 9);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 20px;
  z-index: 2;
}

/* Desktop: video as absolute background, glass overlaid */
@media (min-width: 768px) {
  .hero {
    position: relative;
    flex-direction: row;
    align-items: center;
    min-height: 100vh;
    padding: 200px 0 120px;
    overflow: hidden;
    background: var(--z-dark-bg);
  }

  .hero::after {
    display: none;
    height: 0;
  }

  .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    z-index: 0;
  }

  .hero-inner {
    position: relative;
    top: auto;
    z-index: 10;
    justify-content: flex-start;
    padding: 0 5vw;
    margin-top: 0;
  }
}

.hero-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(55px) saturate(140%);
  -webkit-backdrop-filter: blur(55px) saturate(140%);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.15);
  border-right-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 4px 4px 10px rgba(255, 255, 255, 0.9),
    inset 1px 1px 2px rgba(255, 255, 255, 1),
    inset -6px -6px 15px rgba(0, 0, 0, 0.05),
    inset -1px -1px 3px rgba(0, 0, 0, 0.1),
    0 40px 80px -20px rgba(0, 0, 0, 0.2),
    0 15px 30px -10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  max-width: 540px;
  width: 100%;
  text-align: left;
  overflow: hidden;
}

.hero-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.1) 25%, transparent 55%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: #FFFFFF;
}

.hero-sub {
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.hero .btn-primary {
  font-size: 16px;
  padding: 14px 28px;
}

/* ============================================
   ZONE 2: AUTHORITY (GRADIENT LIGHT)
   ============================================ */
.zone-2 {
  color: var(--z-light-text);
}

.zone-2 a {
  color: var(--brand);
}

/* The Thick Crystal Glass Base */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(55px) saturate(140%);
  -webkit-backdrop-filter: blur(55px) saturate(140%);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.15);
  border-right-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 4px 4px 10px rgba(255, 255, 255, 0.9),
    inset 1px 1px 2px rgba(255, 255, 255, 1),
    inset -6px -6px 15px rgba(0, 0, 0, 0.05),
    inset -1px -1px 3px rgba(0, 0, 0, 0.1),
    0 40px 80px -20px rgba(0, 0, 0, 0.2),
    0 15px 30px -10px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  overflow: hidden;
}

/* The Smooth Surface Gloss */
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.1) 25%, transparent 55%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Secret flares removed cleanly via CSS to instantly upgrade all 7 components */
.flare-1,
.flare-2 {
  display: none !important;
}

.glass-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ============================================
   STATS (Zone 2)
   ============================================ */
.stats {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: url('/assets/images/top%20white.png') center / 100% 100% no-repeat;
}

.section-intro {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-headline {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 40px;
  color: var(--z-light-text);
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.stat-context {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  line-height: 1.55;
  margin-bottom: 8px;
}

.stat-subtext {
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.stat-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* ============================================
   HOW IT WORKS (Zone 2)
   ============================================ */
.how-it-works {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: url('/assets/images/top%20blue.png') center/100% 100% no-repeat;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: 40px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
}

/* ============================================
   ZONE 3: FINAL CTA (DARK)
   ============================================ */
.final-cta {
  padding: var(--space-4xl) 0 var(--space-3xl);
  background: url('/assets/images/top%20white.png') center/100% 100% no-repeat;
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-cta h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--z-light-text);
}

.final-cta-body {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-kicker {
  font-size: 20px;
  font-weight: 600;
  color: var(--z-light-text);
  margin-bottom: var(--space-xl);
}

.meme-container {
  margin-bottom: var(--space-xl);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
}

.meme-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   FOOTER (DARK)
   ============================================ */
.footer {
  padding: 40px 0;
  background: var(--z-dark-bg);
  border-top: 1px solid var(--z-dark-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
}

.footer-socials a:hover {
  color: #FFFFFF;
}

/* ============================================
   SCROLL FADE-IN (Zone 2 cards)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DESKTOP
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .nav-inner {
    height: 110px;
    padding: 0 5vw;
    gap: 32px;
  }

  .nav-logo img {
    height: 96px;
    transform: scale(2);
    transform-origin: left center;
  }

  .nav-cta {
    font-size: 0.8rem;
    padding: 10px 20px;
  }

  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .btn-primary {
    width: auto;
  }

  .hero h1 {
    font-size: 80px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
  }

  .hero-sub {
    font-size: 28px;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 800px;
  }

  .hero-glass {
    padding: 64px 56px;
    max-width: 800px;
    border-radius: 32px;
  }

  .hero .btn-primary {
    font-size: 20px;
    padding: 20px 40px;
    border-radius: 100px;
  }

  .section-headline {
    font-size: 36px;
  }

  .stat-number {
    font-size: 48px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
  }

  .steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
  }

  .final-cta h2 {
    font-size: 56px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
