/* =====================================================
   VidyāLink — Cinematic scroll-driven landing
   Light, premium, blue-and-sky. The 3D canvas is the
   hero; content floats above it in one continuous
   scroll experience. Graceful CSS fallbacks in case
   WebGL is unavailable.
   ===================================================== */

:root {
  --blue-950:  #0a1224;
  --blue-900:  #1e3a8a;
  --blue-800:  #1d4ed8;
  --blue-700:  #1d4ed8;
  --blue-600:  #2563eb;
  --blue-500:  #3b82f6;
  --blue-400:  #60a5fa;
  --blue-300:  #93c5fd;
  --blue-100:  #dbeafe;
  --blue-50:   #eff6ff;
  --sky-600:   #0284c7;
  --sky-500:   #0ea5e9;
  --sky-400:   #38bdf8;

  --white:     #ffffff;
  --paper:     #f4f8ff;
  --ink:       #0b1220;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-900:  #0f172a;

  --grad: linear-gradient(135deg, var(--blue-800), var(--sky-500));
  --grad-soft: linear-gradient(135deg, rgba(29,78,216,.12), rgba(14,165,233,.12));
  --grad-text: linear-gradient(120deg, #1d4ed8 0%, #0ea5e9 55%, #38bdf8 100%);
  --shadow-sm: 0 1px 3px rgba(2, 6, 23, .08), 0 1px 2px rgba(2, 6, 23, .04);
  --shadow-md: 0 6px 24px rgba(29, 78, 216, .12);
  --shadow-lg: 0 18px 54px rgba(29, 78, 216, .18);
  --shadow-dark: 0 18px 60px rgba(2, 6, 23, .35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --nav-h: 68px;
  --banner-h: 42px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { font-size: 16px; scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); }
::selection { background: var(--sky-400); color: #fff; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue-400), var(--sky-500)); border-radius: 4px; }

/* =====================================================
   Landing body — CSS fallback when WebGL is not present
   ===================================================== */
.landing-body {
  background:
    radial-gradient(1100px 720px at 78% 12%, rgba(56, 189, 248, .16), transparent 55%),
    radial-gradient(900px 620px at 8% 82%, rgba(29, 78, 216, .10), transparent 52%),
    var(--paper);
}
.landing-body.has-3d { background: transparent; }

.landing-body.no-3d .stage-hero {
  background: radial-gradient(900px 600px at 74% 30%, rgba(56, 189, 248, .22), transparent 60%), var(--paper);
}
.landing-body.no-3d .stage-explode {
  background:
    radial-gradient(1000px 700px at 50% 45%, rgba(37, 99, 235, .35), transparent 62%),
    linear-gradient(180deg, #0a1224, #101c3a 55%, #0a1224);
  color: #eaf3ff;
}
.landing-body.no-3d .stage-cta {
  background: linear-gradient(160deg, rgba(29, 78, 216, .18), rgba(14, 165, 233, .22)), var(--blue-50);
}

/* =====================================================
   Loader veil
   ===================================================== */
.load-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: linear-gradient(180deg, #fbfdff 0%, #e8f3ff 100%);
  display: grid;
  place-items: center;
  transition: opacity .8s var(--ease-out), visibility .8s var(--ease-out);
}
.load-veil.done { opacity: 0; visibility: hidden; pointer-events: none; }

.load-veil-inner { text-align: center; padding: 0 1.5rem; }
.load-mark {
  width: 108px;
  height: 108px;
  margin: 0 auto 1.4rem;
  animation: loadFloat 2.6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.load-mark .mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(29, 78, 216, .28));
}
@keyframes loadFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.load-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--blue-800);
  opacity: .85;
}
.load-bar {
  width: 210px;
  height: 3px;
  background: var(--blue-100);
  margin: 1.15rem auto .65rem;
  overflow: hidden;
  border-radius: 3px;
}
.load-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 3px;
  transition: width .3s ease;
}
.load-pct {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}
.load-sub { font-size: .72rem; color: var(--gray-400); margin-top: .35rem; }

/* =====================================================
   3D stage layers
   ===================================================== */
#mascot-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.scene-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(52vw 42vh at 72% 38%, rgba(56, 189, 248, .14), transparent 62%),
    radial-gradient(34vw 30vh at 88% 62%, rgba(37, 99, 235, .10), transparent 60%);
}

.scene-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: .5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

#scroll-root { position: relative; z-index: 2; }

/* =====================================================
   Premium atmosphere 1 — vignette, ambient mesh, grain
   ===================================================== */
.scene-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(130% 90% at 50% 45%, transparent 52%, rgba(2, 6, 23, .26) 100%);
}

.ambient-blob {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  will-change: transform;
}
.blob-a {
  width: 46vw; height: 46vw;
  left: -14vw; top: -10vh;
  background: radial-gradient(circle, rgba(37, 99, 235, .32), transparent 65%);
  animation: blobDriftA 26s ease-in-out infinite alternate;
}
.blob-b {
  width: 42vw; height: 42vw;
  right: -16vw; top: 26vh;
  background: radial-gradient(circle, rgba(14, 165, 233, .28), transparent 65%);
  animation: blobDriftB 32s ease-in-out infinite alternate;
}
.blob-c {
  width: 46vw; height: 46vw;
  left: 26vw; bottom: -20vh;
  background: radial-gradient(circle, rgba(59, 130, 246, .26), transparent 65%);
  animation: blobDriftC 38s ease-in-out infinite alternate;
}
@keyframes blobDriftA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(11vw, 9vh, 0) scale(1.16); } }
@keyframes blobDriftB { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-9vw, -7vh, 0) scale(1); } }
@keyframes blobDriftC { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-7vw, 11vh, 0) scale(1.22); } }

.scene-grain {
  animation: grainJump .9s steps(4) infinite;
}
@keyframes grainJump {
  0%   { background-position: 0 0; }
  25%  { background-position: -40px 20px; }
  50%  { background-position: 20px -30px; }
  75%  { background-position: -22px 40px; }
  100% { background-position: 0 0; }
}

/* =====================================================
   Free banner
   ===================================================== */
.free-banner {
  position: relative;
  z-index: 30;
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9 60%, #38bdf8);
  color: #fff;
  text-align: center;
  padding: .62rem 3rem;
  font-size: .87rem;
  font-weight: 500;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .01em;
}
.free-banner strong { font-weight: 800; }
.banner-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: .3rem;
  transition: color .2s, transform .2s;
}
.banner-close:hover { color: #fff; transform: translateY(-50%) rotate(90deg); }

/* =====================================================
   Navbar
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, .6);
  transition: box-shadow .3s, background .3s;
}
.navbar.scrolled, .navbar.shadow { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .82); }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; gap: .55rem; }
.nav-logo-img {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 10px;
  mix-blend-mode: darken;
  transition: transform .4s var(--ease-out);
}
.nav-logo:hover .nav-logo-img { transform: rotate(-8deg) scale(1.06); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-chapters {
  display: flex;
  gap: 1.35rem;
  margin-left: 1.25rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-500);
}
.nav-chapters a { position: relative; padding: .2rem 0; transition: color .2s; }
.nav-chapters a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-chapters a:hover { color: var(--blue-700); }
.nav-chapters a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
}
.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .32rem .9rem .32rem .32rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.nav-profile-btn:hover { border-color: var(--blue-400); background: var(--blue-50); }
.nav-profile-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-profile-name { font-size: .85rem; font-weight: 600; color: var(--gray-700); }

.btn-nav-tutor {
  display: inline-flex;
  align-items: center;
  padding: .52rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  transition: .25s;
}
.btn-nav-tutor:hover { border-color: var(--blue-400); color: var(--blue-700); background: var(--blue-50); }

.btn-nav-student {
  display: inline-flex;
  align-items: center;
  padding: .52rem 1.2rem;
  background: var(--grad);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .3);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.btn-nav-student:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37, 99, 235, .38); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: .35rem;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: .3s var(--ease-out); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .7rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.mob-btn-tutor, .mob-btn-student) {
  padding: .45rem 0;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.mob-btn-tutor, .mob-btn-student {
  display: block;
  text-align: center;
  padding: .8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.mob-btn-tutor { border: 1.5px solid var(--gray-200); color: var(--gray-700); }
.mob-btn-student { background: var(--grad); color: #fff; }

/* Scroll progress hairline */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 46;
  pointer-events: none;
  background: var(--grad);
  transform-origin: left center;
  transform: scaleX(0);
}

/* Chapter rail */
#chapter-rail {
  position: fixed;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  align-items: center;
}
.rail-item {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(100, 116, 139, .35);
  transition: transform .3s var(--ease-out), background .3s;
  cursor: pointer;
}
.rail-item .rail-label {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.rail-item:hover .rail-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.rail-item.active {
  background: var(--grad);
  transform: scale(1.55);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, .18);
}

/* =====================================================
   Stage canvas / sections
   ===================================================== */
.stage {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + var(--banner-h) + 3vh) 6vw 9vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.stage-hero { min-height: calc(100vh - var(--nav-h) - var(--banner-h) + 6vh); padding-top: calc(var(--nav-h) + 2vh); align-items: center; }
.stage-presence { min-height: 98vh; }
.stage-journey { min-height: 150vh; }
.stage-match { min-height: 120vh; }
.stage-explode { min-height: 200vh; justify-content: center; }
.stage-features { min-height: 150vh; }
.stage-stats { min-height: 80vh; align-items: center; }
.stage-stories { min-height: 130vh; }
.stage-cta { min-height: 108vh; justify-content: center; }

.stage-copy {
  width: min(560px, 44vw);
  pointer-events: none;
}
.stage-copy a, .stage-copy button, .stage-copy [data-cta] { pointer-events: auto; }
.stage-copy-left { margin-right: auto; }
.stage-copy-right { margin-left: auto; }
.stage-copy-split {
  width: min(680px, 92vw);
  margin: 0 auto;
  text-align: center;
}

/* Eyebrow + chapter */
.eyebrow, .chapter {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before, .chapter::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.stage-copy-split .eyebrow::before, .stage-copy-split .chapter::before { display: none; }

.eyebrow { color: var(--sky-600); }

/* Display type */
.display {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.2vw, 5.6rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}
.display .line { display: block; }
.display-accent, .accent-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.display-accent .w, .accent-text .w {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.display-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .01em;
}
.display-accent .w { font-family: inherit; font-style: inherit; font-weight: inherit; letter-spacing: inherit; }
.display-center, .lede-center { text-align: center; }

.headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-bottom: 1.15rem;
  text-wrap: balance;
}

.lede, .body-copy {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 44ch;
  margin: 1.3rem 0 1.8rem;
  line-height: 1.65;
}
.lede em, .body-copy em { color: var(--blue-800); font-style: normal; font-weight: 600; }

/* Word split spans */
.split .w {
  display: inline-block;
  overflow: visible;
  will-change: transform, opacity;
}

/* CTA rows + buttons */
.hero-cta-row {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  pointer-events: auto;
}
.hero-cta-row.center { justify-content: center; }

.cta-student, .cta-tutor, .cta-tutor-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s;
}
.cta-student {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .3);
}
.cta-student:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px rgba(37, 99, 235, .4); }
.cta-student::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease-out);
}
.cta-student:hover::before { transform: translateX(100%); }

.cta-tutor, .cta-tutor-outline {
  background: rgba(255, 255, 255, .75);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  backdrop-filter: blur(12px);
}
.cta-tutor:hover, .cta-tutor-outline:hover {
  border-color: var(--blue-400);
  color: var(--blue-700);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(29, 78, 216, .14);
}

.micro-proof {
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--gray-500);
}
.micro-proof strong {
  color: var(--ink);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--gray-400);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 3;
  opacity: .9;
}
.scroll-cue-mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(100, 116, 139, .45);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-cue-dot {
  width: 4px; height: 8px;
  background: var(--blue-400);
  border-radius: 2px;
  animation: scrollDot 1.5s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: .3; }
}

/* Journey list */
.journey-list {
  pointer-events: auto;
}
.journey-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: .85rem;
  padding: .9rem 0;
  border-top: 1px solid rgba(148, 163, 184, .28);
  position: relative;
}
.journey-list li .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: .1rem;
}
.journey-list strong { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); margin-bottom: .15rem; }
.journey-list p { font-size: .9rem; color: var(--gray-500); }

/* Signal chips */
.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  pointer-events: auto;
}
.signal-row li {
  padding: .45rem .95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--blue-100);
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-800);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

/* Feature rail */
.feat-rail {
  display: grid;
  gap: 0;
  margin-top: .4rem;
  pointer-events: auto;
}
.feat-rail article {
  padding: 1.05rem 0;
  border-top: 1px solid rgba(148, 163, 184, .25);
}
.feat-rail h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .15rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.feat-rail h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-text);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, .16);
  flex-shrink: 0;
}
.feat-rail p { font-size: .92rem; color: var(--gray-500); margin-left: 2.6rem; }

/* Stats */
.stats-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item {
  text-align: center;
  padding: 2.1rem 1rem;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.stat-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-lbl { color: var(--gray-500); font-size: .88rem; font-weight: 500; }

/* Stories */
.story-stack {
  display: grid;
  gap: 1rem;
  pointer-events: auto;
  width: min(520px, 100%);
}
.story-stack blockquote {
  padding: 1.3rem 1.5rem;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(219, 234, 254, .9);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.story-stack blockquote:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.story-stack p { color: var(--gray-700); font-size: .97rem; }
.story-stack em { color: var(--blue-800); font-style: normal; font-weight: 600; }
.story-stack cite {
  display: block;
  margin-top: .7rem;
  font-size: .78rem;
  font-style: normal;
  color: var(--gray-400);
  font-weight: 600;
}

/* Final CTA */
.cta-finale {
  width: min(760px, 92vw);
  margin: 0 auto;
  text-align: center;
  pointer-events: auto;
}
.cta-finale .lede { margin-left: auto; margin-right: auto; }
.stage-cta .display { color: var(--ink); }
.cta-trust-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.6rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-500);
}
.cta-trust-row span { display: inline-flex; align-items: center; gap: .4rem; }
.cta-trust-row span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sky-400);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  position: relative;
  z-index: 3;
  background: var(--blue-950);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .5), transparent);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.foot-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.foot-logo-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 8px;
  mix-blend-mode: darken;
}
.foot-logo b { color: var(--sky-400); }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: var(--gray-400); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.foot-col h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 1rem;
}
.foot-col a {
  display: block;
  font-size: .875rem;
  color: var(--gray-400);
  margin-bottom: .6rem;
  transition: color .2s;
}
.foot-col a:hover { color: var(--sky-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: .82rem;
  color: var(--gray-500);
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-badges { display: flex; gap: 1.25rem; }
.foot-badges span { display: inline-flex; align-items: center; gap: .35rem; }
.foot-badges span::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky-400);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1180px) {
  .nav-chapters { gap: 1rem; margin-left: .75rem; }
  .stage { padding-left: 5vw; padding-right: 5vw; }
  .stage-copy { width: min(540px, 50vw); }
  #chapter-rail { right: .7rem; }
}

@media (max-width: 1024px) {
  .nav-chapters { display: none; }
  .stage-copy { width: min(560px, 92vw); }
  .stage-copy-left, .stage-copy-right { margin-right: auto; margin-left: auto; }
  .stage { align-items: center; }
  .stage-features, .stage-journey { min-height: 140vh; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  #chapter-rail { display: none; }
}

@media (max-width: 768px) {
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .stage {
    min-height: auto;
    padding: 6rem 1.15rem 5rem;
  }
  .stage-hero { padding-top: 62vh; min-height: auto; }
  .stage-presence, .stage-match, .stage-stories { padding-top: 54vh; }
  .stage-journey { padding-top: 54vh; }
  .stage-explode { padding: 40vh 1.15rem 6rem; min-height: 150vh; }
  .stage-features { padding-top: 52vh; min-height: auto; }
  .stage-stats { padding-top: 44vh; }
  .stage-cta { padding-top: 48vh; }

  .stage-copy {
    width: 100%;
    padding: 1.25rem 1.35rem;
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(29, 78, 216, .14);
  }
  .stage-copy-split {
    background: rgba(255, 255, 255, .28);
    border: 1px solid rgba(255, 255, 255, .42);
  }
  .hero-cta-row { flex-direction: column; }
  .cta-student, .cta-tutor, .cta-tutor-outline { width: 100%; }
  .scene-glow { background:
    radial-gradient(80vw 42vh at 50% 26%, rgba(56, 189, 248, .16), transparent 62%),
    radial-gradient(70vw 34vh at 50% 70%, rgba(37, 99, 235, .10), transparent 60%); }
  .scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .cta-trust-row { flex-direction: column; gap: .5rem; }
  .journey-list li { grid-template-columns: 2.4rem 1fr; }
  .feat-rail p { margin-left: 0; }
  .display { font-size: clamp(2.35rem, 11vw, 3.2rem); }
}

/* =====================================================
   Reduced motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-dot { animation: none; }
  .load-mark { animation: none; }
  .stage-copy, .stage-copy .w, .w {
    opacity: 1 !important;
    transform: none !important;
  }
  .ambient-blob, .scene-grain { animation: none; }
  html { scroll-behavior: auto; }
}