/* ════════════════════════════════════════════════════════════════════
   SmartStudy — landing page
   Colours follow the product: teal of the app and portal, gold of the
   AI lecture videos. Dark (true black, neutral greys) by default, a
   cream light theme too.
   ════════════════════════════════════════════════════════════════════ */
:root {
  /* Dark theme "Forest night": a deep, dim green that mirrors the light theme's cream + green.
     Accents are soft tints (saturated colours glare on dark), text is a green-tinted off-white,
     and cards are lighter green "elevated" surfaces. */
  --teal: #5FD3AA;          /* main accent: soft mint */
  --teal-2: #2FAF86;
  --gold: #E7C98F;          /* second accent, used sparingly: champagne */
  --gold-2: #C9A25E;
  --violet: #B3A8F5;
  --rose: #F2A0AB;
  --sky: #8EC5FF;
  --on-accent: #04241A;     /* text on mint buttons and chips */

  --bg: #06140F;
  --bg-2: #081A13;
  --bg-3: #0C2219;
  --surface: rgba(150, 230, 190, 0.05);
  --surface-2: rgba(150, 230, 190, 0.09);
  --line: rgba(150, 230, 190, 0.11);
  --line-2: rgba(150, 230, 190, 0.19);
  --text: #E6F2EC;          /* ~15:1 on the background */
  --muted: #94B3A6;         /* ~8:1 */
  --faint: #6F8E82;         /* ~4.9:1, labels only */
  --frame: #04100B;         /* video frames and players: darker than the page so they read as screens */
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px rgba(95, 211, 170, 0.25), 0 18px 50px -12px rgba(95, 211, 170, 0.35);

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .9, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --teal: #0F9F74;
  --teal-2: #0D7A5F;
  --gold: #B8862F;
  --gold-2: #9A6E22;
  --violet: #6B61D6;
  --rose: #D94F64;
  --sky: #2F86D6;
  --on-accent: #FFFFFF;
  --bg: #F7F4EC;
  --bg-2: #EFEBE0;
  --bg-3: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: #FFFFFF;
  --line: rgba(20, 32, 52, 0.10);
  --line-2: rgba(20, 32, 52, 0.18);
  --text: #0F1A2B;
  --muted: #4C5B70;
  --faint: #7D8A9C;
  --shadow: 0 24px 60px -24px rgba(25, 40, 70, 0.28);
  --glow: 0 0 0 1px rgba(15, 159, 116, 0.22), 0 18px 50px -14px rgba(15, 159, 116, 0.30);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(95, 211, 170, 0.35); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ── progress + cursor glow ────────────────────────────────────────── */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal), var(--gold)); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, rgba(95, 211, 170, 0.11), transparent 62%); will-change: transform; }
:root[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(15, 159, 116, 0.09), transparent 62%); }
body.has-pointer .cursor-glow { opacity: 1; }

/* ── buttons ───────────────────────────────────────────────────────── */
.btn { --bh: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--bh);
  padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 650; font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background-color .3s, border-color .3s, color .3s;
  will-change: transform; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --bh: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --bh: 54px; padding: 0 28px; font-size: 16px; }
.btn-primary { color: var(--on-accent); background: linear-gradient(135deg, #8DE6C6, var(--teal) 55%, #3DBB92);
  box-shadow: 0 10px 30px -10px rgba(95, 211, 170, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
:root[data-theme="light"] .btn-primary { color: #fff; background: linear-gradient(135deg, #17B886, var(--teal-2)); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(95, 211, 170, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--teal); background: var(--surface-2); }
.play-ring { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #2A1F0B; }
.play-ring svg { width: 13px; height: 13px; fill: currentColor; stroke: none; margin-left: 2px; }
.btn:hover .play-ring svg { transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); transition: border-color .3s, background-color .3s, transform .3s var(--ease-out); }
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── navigation ────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav { transition: transform .45s var(--ease), background-color .4s, border-color .4s; }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, #3DBB92, var(--teal-2)); box-shadow: 0 8px 22px -8px rgba(47, 175, 134, 0.6); }
.brand-mark svg { width: 26px; height: 26px; overflow: visible; }
.brand-mark .cap { fill: var(--gold); transform-origin: 32px 25px; animation: capTip 6s var(--ease) infinite; }
.brand-mark .body { fill: #fff; }
.brand-mark .tassel { stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; transform-origin: 52px 27px; animation: tassel 3s ease-in-out infinite; }
.brand-mark .tassel-end { fill: var(--gold); transform-origin: 52px 27px; animation: tassel 3s ease-in-out infinite; }
.brand-text span { color: var(--teal); }
@keyframes capTip { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-8deg) translateY(-2px); } 92% { transform: rotate(3deg); } }
@keyframes tassel { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-10deg); } }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 550; color: var(--muted); transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle svg { position: absolute; transition: transform .5s var(--ease-out), opacity .3s; }
.theme-toggle { position: relative; }
.theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="light"] .theme-toggle .sun { opacity: 1; transform: none; }
:root[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.menu-toggle { display: none; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle { grid-auto-flow: row; align-content: center; justify-items: center; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: absolute; top: var(--nav-h); left: 12px; right: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 94%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow);
  display: grid; gap: 2px; animation: dropIn .35s var(--ease-out); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.mobile-menu a:not(.btn):hover { background: var(--surface-2); }
.mobile-menu .btn { margin-top: 8px; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }

/* ── shared section bits ───────────────────────────────────────────── */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head.center .kicker::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-title { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4.6vw, 56px); }
.section-sub { margin-top: 18px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); }
.grad { background: linear-gradient(100deg, var(--teal) 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); backdrop-filter: blur(10px); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(95, 211, 170, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95, 211, 170, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 170, 0); } }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: rgba(4, 16, 11, 0.92); color: #94B3A6;
  font-size: 12px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.window-bar i:nth-child(2) { background: #FEBC2E; } .window-bar i:nth-child(3) { background: #28C840; }
.window-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── reveal animations ─────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; will-change: transform; }
.b1 { width: 520px; height: 520px; left: -140px; top: -80px; background: radial-gradient(circle, #1F6F57, transparent 70%); animation: float1 18s ease-in-out infinite; }
.b2 { width: 600px; height: 600px; right: -180px; top: 10%; background: radial-gradient(circle, #4A3A16, transparent 70%); animation: float2 22s ease-in-out infinite; }
.b3 { width: 380px; height: 380px; left: 40%; bottom: -160px; background: radial-gradient(circle, #6B5730, transparent 70%); opacity: .3; animation: float1 26s ease-in-out infinite reverse; }
:root[data-theme="light"] .blob { opacity: .28; }
:root[data-theme="light"] .b2 { background: radial-gradient(circle, #9FC5FF, transparent 70%); }
@keyframes float1 { 50% { transform: translate(60px, 40px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(-70px, 50px) scale(.94); } }
.grid-lines { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { margin-top: 22px; font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.025em; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(3deg); filter: blur(8px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out); transition-delay: var(--d); }
.hero-title.in .w { opacity: 1; transform: none; filter: none; }
.no-js .hero-title .w { opacity: 1; transform: none; filter: none; }
.rotator { position: relative; display: inline-flex; padding: 0 .12em; color: var(--teal); white-space: nowrap; }
.rotator::after { content: ""; position: absolute; left: .1em; right: .1em; bottom: .06em; height: .12em; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), transparent); opacity: .5; }
.rot-word { display: inline-block; }
.rot-word.out { animation: rotOut .38s var(--ease) forwards; }
.rot-word.in { animation: rotIn .55s var(--ease-out); }
@keyframes rotOut { to { transform: translateY(-0.5em); opacity: 0; filter: blur(6px); } }
@keyframes rotIn { from { transform: translateY(0.5em); opacity: 0; filter: blur(6px); } }
.hero-sub { margin-top: 24px; max-width: 560px; font-size: clamp(16.5px, 1.5vw, 19px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 38px; color: var(--muted); font-size: 14.5px; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-proof strong { color: var(--text); font-size: 17px; }

.hero-visual { position: relative; height: clamp(420px, 44vw, 560px); perspective: 1400px; }
.hv-window { position: absolute; left: 0; right: 8%; top: 8%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2);
  background: var(--frame); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.03); transform-style: preserve-3d;
  animation: rise 1.2s var(--ease-out) .25s both; }
.hv-caption { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 14px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); font-weight: 800; font-size: clamp(11px, 1.2vw, 15px); color: #fff; white-space: nowrap; }
.hv-caption .k { opacity: .55; } .hv-caption .k.on { opacity: 1; color: #FFD66E; }
.hv-phone { position: absolute; right: 0; bottom: 0; width: clamp(150px, 15vw, 205px); border-radius: 30px; padding: 8px; background: #020A07;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow); animation: rise 1.2s var(--ease-out) .45s both; }
.hv-phone img { border-radius: 23px; }
.phone-notch { position: absolute; top: 14px; left: 50%; width: 34%; height: 14px; margin-left: -17%; border-radius: 10px; background: #020A07; z-index: 2; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.25;
  animation: rise 1s var(--ease-out) both, bob 6s ease-in-out infinite; }
.chip b { display: block; font-size: 14px; } .chip small { color: var(--muted); font-size: 12px; }
.chip-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-weight: 800; font-size: 15px; flex: none; }
.chip-ico.ok { background: rgba(95, 211, 170, .18); color: var(--teal); }
.chip-ico.eye { background: rgba(90, 178, 255, .18); color: var(--sky); }
.chip-ico.ur { background: rgba(231, 201, 143, .2); color: var(--gold); font-family: serif; }
.chip-a { left: -4%; top: 0; animation-delay: .7s, 0s; }
.chip-b { left: 6%; bottom: 6%; animation-delay: .9s, 1.4s; }
.chip-c { right: -2%; top: 2%; animation-delay: 1.1s, .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes bob { 50% { translate: 0 -10px; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid var(--line-2); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ═══════════════════════ MARQUEE ═══════════════════════ */
.marquee-wrap { padding: 34px 0 30px; border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee-label { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; padding: 20px 0 40px; animation: marquee 42s linear infinite; }
/* Hold the pointer on a logo (or focus it with the keyboard): the row stops and the name shows; move away and it runs again */
.marquee-track:has(.tool:hover, .tool:focus-visible) { animation-play-state: paused; }
/* Logos always in their own colours; the dark theme uses a lighter shade where the brand colour is too dark */
.tool { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; flex: none;
  border: 1px solid color-mix(in srgb, var(--tool-c) 28%, var(--line)); background: color-mix(in srgb, var(--tool-c) 8%, var(--surface));
  --tool-c: var(--brand-dark, var(--brand)); color: var(--tool-c); cursor: default; outline: none;
  transition: border-color .25s, transform .3s var(--ease-out), box-shadow .3s; }
:root[data-theme="light"] .tool { --tool-c: var(--brand-light, var(--brand)); }
.tool svg { width: 30px; height: 30px; display: block; transition: transform .3s var(--ease-out); }   /* inline, so they work even opened from a folder */
.tool::after { content: attr(data-name); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px);
  padding: 4px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease-out); }
/* On hover the tile rises and the logo grows */
.tool:hover, .tool:focus-visible { border-color: var(--tool-c); transform: translateY(-8px) scale(1.12); z-index: 1;
  box-shadow: 0 16px 30px -14px var(--tool-c); }
.tool:hover svg, .tool:focus-visible svg { transform: scale(1.18); }
.tool:hover::after, .tool:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════════════════ WHY ═══════════════════════ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { position: relative; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.why-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(95, 211, 170, .12), transparent 45%);
  opacity: 0; transition: opacity .4s; pointer-events: none; }
.why-card:hover::before { opacity: 1; }
.why-num { font-family: var(--serif); font-size: 46px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); margin-bottom: 22px; }
.why-card h3 { font-size: 21px; margin-bottom: 10px; }
.why-card p { color: var(--muted); }
.why-fix { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-weight: 600; font-size: 15px; }
.why-fix span { color: var(--teal); font-weight: 800; margin-right: 4px; }

/* ═══════════════════════ HOW (sticky scrollytelling) ═══════════════════════ */
.how { position: relative; height: 420vh; background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.how-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.how-inner { display: grid; grid-template-columns: .92fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.how-copy .section-title { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 30px; }
.how-steps { position: relative; display: grid; gap: 6px; }
.how-steps li { display: flex; gap: 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; opacity: .45; cursor: pointer;
  transition: opacity .5s var(--ease), background-color .5s, border-color .5s, transform .5s var(--ease-out); }
.how-steps li.active { opacity: 1; background: var(--surface); border-color: var(--line); transform: translateX(6px); }
.how-steps .sn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line-2);
  font-weight: 800; font-size: 14px; transition: background-color .4s, color .4s, border-color .4s; }
.how-steps li.active .sn { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
.how-steps h3 { font-size: 17.5px; margin-bottom: 4px; letter-spacing: -0.01em; font-family: var(--sans); }
.how-steps p { font-size: 14.5px; color: var(--muted); display: none; }
.how-steps li.active p { display: block; animation: fadeUp .5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.how-progress { margin-top: 22px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.how-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal), var(--gold)); transition: transform .2s linear; }
.how-stage { position: relative; aspect-ratio: 1 / .86; border-radius: 28px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, rgba(95, 211, 170, .14), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(231, 201, 143, .12), transparent 60%), var(--bg-3);
  box-shadow: var(--shadow); }
.stage-card { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity .6s var(--ease), transform .8s var(--ease-out); pointer-events: none; }
.stage-card.active { opacity: 1; transform: none; }
.doc { width: min(100%, 360px); padding: 22px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc-head { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 18px; }
.doc-head small { margin-left: auto; color: var(--muted); font-weight: 500; }
.pdf { padding: 4px 8px; border-radius: 7px; background: #E2574C; color: #fff; font-size: 11px; font-weight: 800; }
.doc-lines { display: grid; gap: 10px; }
.doc-lines i { display: block; height: 9px; border-radius: 5px; background: var(--line-2); }
.doc-lines i.short { width: 62%; }
.upload-bar { margin-top: 22px; height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.s1.active .upload-bar span { animation: grow 2.4s var(--ease) forwards; }
@keyframes grow { to { width: 100%; } }
.plan { width: min(100%, 440px); display: grid; gap: 10px; }
.plan-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; font-weight: 550; opacity: 0; transform: translateX(-16px); }
.s2.active .plan-row { animation: slideIn .6s var(--ease-out) forwards; }
.s2.active .plan-row:nth-child(2) { animation-delay: .12s; } .s2.active .plan-row:nth-child(3) { animation-delay: .24s; }
.s2.active .plan-row:nth-child(4) { animation-delay: .36s; } .s2.active .plan-row:nth-child(5) { animation-delay: .48s; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.tag { flex: none; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.t1 { background: rgba(95, 211, 170, .16); color: var(--teal); } .t2 { background: rgba(90, 178, 255, .16); color: var(--sky); }
.t3 { background: rgba(139, 131, 240, .18); color: var(--violet); } .t4 { background: rgba(244, 123, 139, .16); color: var(--rose); }
.t5 { background: rgba(231, 201, 143, .2); color: var(--gold); }
.editor { width: min(100%, 470px); display: grid; grid-template-columns: .8fr 1.2fr; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-2); box-shadow: var(--shadow); font-size: 12.5px; }
.ed-side { display: grid; align-content: start; gap: 4px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--surface); }
.ed-side b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 6px 6px; }
.ed-side span { padding: 7px 8px; border-radius: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-side span.on { background: rgba(95, 211, 170, .15); color: var(--text); font-weight: 650; }
.ed-main { display: grid; gap: 6px; padding: 16px; }
.ed-main small { color: var(--faint); font-weight: 650; }
.field { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); font-weight: 600; }
.field.tall { min-height: 74px; font-weight: 500; color: var(--muted); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--teal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ed-btn { justify-self: end; margin-top: 6px; padding: 8px 14px; border-radius: 10px; background: var(--teal); color: var(--on-accent); font-weight: 750; }
.render { position: relative; display: grid; justify-items: center; gap: 22px; }
.ring { width: 180px; height: 180px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line-2); stroke-width: 7; }
.ring .fill { stroke: url(#none); stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; }
.render-pct { position: absolute; top: 62px; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.render-steps { display: grid; gap: 8px; width: min(100%, 300px); }
.render-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); transition: color .3s; }
.render-steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; transition: background-color .3s, border-color .3s; }
.render-steps li.done { color: var(--text); }
.render-steps li.done::before { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 3px var(--bg-3); }
.learn { display: flex; align-items: center; gap: 22px; }
.learn img { width: clamp(140px, 16vw, 200px); border-radius: 24px; border: 6px solid #020A07; box-shadow: var(--shadow); }
.learn-tags { display: grid; gap: 10px; }
.learn-tags span { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 650; font-size: 14px;
  opacity: 0; transform: translateX(14px); }
.s5.active .learn-tags span { animation: slideIn .5s var(--ease-out) forwards; }
.s5.active .learn-tags span:nth-child(2) { animation-delay: .1s; } .s5.active .learn-tags span:nth-child(3) { animation-delay: .2s; }
.s5.active .learn-tags span:nth-child(4) { animation-delay: .3s; } .s5.active .learn-tags span:nth-child(5) { animation-delay: .4s; }

/* ═══════════════════════ VIDEO SHOWCASE ═══════════════════════ */
.showcase { margin-bottom: 64px; perspective: 1600px; }
.showcase-frame { position: relative; border-radius: 22px; overflow: visible; border: 1px solid var(--line-2); background: var(--frame); box-shadow: var(--shadow); }
.showcase-frame > img { width: 100%; border-radius: 0 0 22px 22px; }
.hv-window > img, .screen-stack img, .demo-player video { width: 100%; }
.showcase-frame .window-bar { border-radius: 22px 22px 0 0; }
.hotspot { position: absolute; display: flex; flex-direction: column; gap: 2px; max-width: 220px; padding: 10px 14px; border-radius: 14px; font-size: 13px;
  line-height: 1.35; color: var(--muted); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  backdrop-filter: blur(12px); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.hotspot b { color: var(--text); font-size: 14px; }
.hotspot::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(231, 201, 143, .25);
  animation: pulse 2.2s infinite; }
.showcase.in .hotspot { opacity: 1; transform: none; }
.showcase.in .h2 { transition-delay: .15s; } .showcase.in .h3 { transition-delay: .3s; } .showcase.in .h4 { transition-delay: .45s; }
.h1 { left: -3%; top: 26%; } .h1::before { right: -20px; top: 14px; }
.h2 { right: -3%; top: 34%; } .h2::before { left: -20px; top: 14px; }
.h3 { left: 4%; bottom: 8%; } .h3::before { right: -20px; top: 14px; }
.h4 { right: 10%; bottom: -6%; } .h4::before { left: 50%; top: -20px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fcard { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .4s, background-color .4s, box-shadow .4s; }
.fcard:hover { border-color: rgba(95, 211, 170, .45); box-shadow: var(--glow); }
.ficon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; font-weight: 800; font-size: 19px;
  color: var(--teal); background: rgba(95, 211, 170, .12); border: 1px solid rgba(95, 211, 170, .25); }
.fcard:nth-child(4n+2) .ficon { color: var(--gold); background: rgba(231, 201, 143, .12); border-color: rgba(231, 201, 143, .3); }
.fcard:nth-child(4n+3) .ficon { color: var(--sky); background: rgba(90, 178, 255, .12); border-color: rgba(90, 178, 255, .3); }
.fcard:nth-child(4n) .ficon { color: var(--violet); background: rgba(139, 131, 240, .12); border-color: rgba(139, 131, 240, .3); }
.fcard h3 { font-size: 18px; margin-bottom: 8px; }
.fcard p { font-size: 14.5px; color: var(--muted); }

/* ═══════════════════════ ATTENTION ═══════════════════════ */
.attention { background: var(--bg-2); }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.checklist { display: grid; gap: 14px; margin-top: 34px; }
.checklist li { display: flex; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--muted); }
.checklist b { display: block; color: var(--text); font-size: 16px; }
.ci { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(95, 211, 170, .14); color: var(--teal); font-weight: 800; }
.split-visual { display: grid; gap: 18px; }
.scan-card { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-3); box-shadow: var(--shadow); }
.scan-face { position: relative; width: 200px; aspect-ratio: 200 / 240; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(95, 211, 170, .14), transparent 70%); }
.scan-face svg { width: 100%; height: 100%; }
.scan-face .face { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 6 6; }
.scan-face .mesh circle { fill: var(--teal); }
.scan-face .mesh path { fill: none; stroke: var(--teal); stroke-width: 1; opacity: .5; }
.scan-face .mesh { opacity: 0; transition: opacity .8s .3s; }
.in .scan-face .mesh { opacity: 1; }
.scan-face .eyes ellipse { fill: none; stroke: var(--gold); stroke-width: 2; animation: blinkEye 5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blinkEye { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.scan-face .gaze { stroke: var(--sky); stroke-width: 2; stroke-dasharray: 4 4; animation: gaze 4s ease-in-out infinite; }
@keyframes gaze { 50% { transform: translateX(4px); } }
.scan-line { position: absolute; left: 0; right: 0; height: 40px; top: -40px;
  background: linear-gradient(180deg, transparent, rgba(95, 211, 170, .35), transparent); animation: scan 3.2s linear infinite; }
@keyframes scan { to { top: 100%; } }
.scan-corners i { position: absolute; width: 20px; height: 20px; border: 2px solid var(--teal); }
.scan-corners i:nth-child(1) { left: 8px; top: 8px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-corners i:nth-child(2) { right: 8px; top: 8px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.scan-corners i:nth-child(3) { left: 8px; bottom: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.scan-corners i:nth-child(4) { right: 8px; bottom: 8px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scan-meters { display: grid; gap: 16px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
.meter span { color: var(--muted); font-weight: 600; } .meter b { font-variant-numeric: tabular-nums; }
.meter .bar { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--teal), #6EE7B7);
  transition: width 1.4s var(--ease-out) .3s; }
.in .meter .bar i { width: var(--v); }
.meter.warn .bar i { background: linear-gradient(90deg, var(--rose), #FDA4AF); }
.heat-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-3); box-shadow: var(--shadow); }
.heat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.heat-head small { color: var(--faint); }
.heat-bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.heat-bars i { flex: 1; height: 0; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--teal), rgba(95, 211, 170, .25));
  transition: height 1.1s var(--ease-out); }
.heat-bars i.dip { background: linear-gradient(180deg, var(--rose), rgba(244, 123, 139, .25)); }
.in .heat-bars i { height: calc(var(--h) * 1%); }
.heat-bars i:nth-child(2) { transition-delay: .05s; } .heat-bars i:nth-child(3) { transition-delay: .1s; } .heat-bars i:nth-child(4) { transition-delay: .15s; }
.heat-bars i:nth-child(5) { transition-delay: .2s; } .heat-bars i:nth-child(6) { transition-delay: .25s; } .heat-bars i:nth-child(7) { transition-delay: .3s; }
.heat-bars i:nth-child(8) { transition-delay: .35s; } .heat-bars i:nth-child(9) { transition-delay: .4s; } .heat-bars i:nth-child(10) { transition-delay: .45s; }
.heat-bars i:nth-child(11) { transition-delay: .5s; } .heat-bars i:nth-child(12) { transition-delay: .55s; }
.heat-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ═══════════════════════ ADAPTIVE (bento) ═══════════════════════ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bcard { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden;
  transition: border-color .4s, box-shadow .4s; }
.bcard:hover { border-color: rgba(95, 211, 170, .4); box-shadow: var(--glow); }
.bcard h3 { font-size: 20px; margin-bottom: 8px; }
.bcard p { color: var(--muted); font-size: 15px; }
.b-mastery, .b-tutor { grid-column: span 3; }
.b-viva, .b-radar { grid-column: span 2; grid-row: span 2; }      /* help + plan stack beside them */
.b-help, .b-plan { grid-column: span 2; }
.mastery-chart { width: 100%; margin-top: 22px; overflow: visible; }
.mastery-chart .line { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520;
  transition: stroke-dashoffset 2.2s var(--ease-out) .2s; }
.mastery-chart .area { opacity: 0; transition: opacity 1.2s .8s; }
.in .mastery-chart .line { stroke-dashoffset: 0; } .in .mastery-chart .area { opacity: 1; }
.mastery-chart .goal { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 5 6; }
.mastery-chart text { fill: var(--gold); font-size: 11px; font-weight: 700; }
.chat { display: grid; gap: 10px; margin-top: 22px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.in .msg { opacity: 1; transform: none; } .in .msg.ai { transition-delay: .7s; }
.msg.me { justify-self: end; background: var(--teal); color: var(--on-accent); font-weight: 600; border-bottom-right-radius: 5px; }
.msg.ai { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.cite { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(231, 201, 143, .18); color: var(--gold); font-size: 12px; font-weight: 700; }
.wave { display: flex; align-items: center; gap: 5px; height: 60px; margin-top: 22px; }
.wave i { flex: 1; height: 20%; border-radius: 4px; background: linear-gradient(180deg, var(--gold), var(--teal)); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: -.4s; } .wave i:nth-child(3n) { animation-delay: -.8s; } .wave i:nth-child(4n) { animation-delay: -.2s; }
@keyframes wave { 50% { height: 100%; } }
.radar { position: relative; width: 150px; aspect-ratio: 1; margin: 22px auto 0; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, var(--line) 22px 23px), radial-gradient(circle, rgba(95, 211, 170, .12), transparent 70%);
  border: 1px solid var(--line-2); overflow: hidden; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(95, 211, 170, .55), transparent 25%); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.radar i { position: absolute; width: 10px; height: 10px; border-radius: 50%; animation: pulse 2s infinite; }
.radar .p1 { left: 62%; top: 26%; background: var(--rose); } .radar .p2 { left: 28%; top: 58%; background: var(--gold); } .radar .p3 { left: 55%; top: 70%; background: var(--teal); }

/* ═══════════════════════ APPS TABS ═══════════════════════ */
.apps { background: var(--bg-2); }
.tabs { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 50px; padding: 6px; gap: 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; padding: 11px 22px; border: 0; border-radius: 999px; background: transparent; font-weight: 650; font-size: 15px;
  color: var(--muted); white-space: nowrap; transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--on-accent); }
.tab-ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--teal);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out); box-shadow: 0 8px 24px -8px rgba(95, 211, 170, .7); }
:root[data-theme="light"] .tabs button[aria-selected="true"] { color: #fff; }
.tab-panel { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel.active .panel-copy, .tab-panel.active .phones, .tab-panel.active .screen-stack { animation: panelIn .7s var(--ease-out) both; }
.tab-panel.active .phones, .tab-panel.active .screen-stack { animation-delay: .1s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); filter: blur(4px); } }
.panel-tag { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.panel-copy h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); margin-bottom: 22px; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(95, 211, 170, .15); color: var(--teal); font-size: 12px; font-weight: 900; }
.phones { position: relative; height: clamp(380px, 40vw, 520px); }
.ph { position: absolute; width: 42%; border-radius: 26px; border: 7px solid #020A07; box-shadow: var(--shadow); transition: transform .6s var(--ease-out); }
.p-a { left: 0; top: 10%; transform: rotate(-6deg); } .p-b { left: 29%; top: 0; z-index: 2; } .p-c { right: 0; top: 12%; transform: rotate(6deg); }
.phones:hover .p-a { transform: rotate(-9deg) translateX(-10px); } .phones:hover .p-c { transform: rotate(9deg) translateX(10px); }
.phones:hover .p-b { transform: translateY(-10px); }
.screen-stack { position: relative; aspect-ratio: 1100 / 760; }
.screen-stack img { position: absolute; width: 86% !important; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform .6s var(--ease-out); }
.screen-stack img:first-child { left: 0; top: 0; }
.screen-stack img:last-child { right: 0; bottom: 0; }
.screen-stack:hover img:first-child { transform: translate(-8px, -8px); } .screen-stack:hover img:last-child { transform: translate(8px, 8px); }

/* ═══════════════════════ GALLERY ═══════════════════════ */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 10px max(16px, calc((100vw - var(--container)) / 2)) 26px; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab; scroll-behavior: smooth; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gallery figure { flex: none; width: clamp(280px, 42vw, 560px); margin: 0; scroll-snap-align: center; }
.gallery figure.tall { width: clamp(160px, 17vw, 230px); }
.gallery img { width: 100%; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: var(--shadow); cursor: zoom-in; user-select: none;
  -webkit-user-drag: none; transition: transform .5s var(--ease-out), box-shadow .5s; }
.gallery img:hover { transform: translateY(-6px); }
.gallery figcaption { margin-top: 12px; font-weight: 650; font-size: 14.5px; color: var(--muted); }
.gallery-nav { display: flex; justify-content: flex-end; gap: 10px; }

/* ═══════════════════════ ARCHITECTURE ═══════════════════════ */
.arch-board { position: relative; height: 540px; border-radius: 28px; border: 1px solid var(--line); background:
  radial-gradient(circle at 50% 50%, rgba(95, 211, 170, .08), transparent 60%), var(--bg-2); overflow: hidden; }
.arch-board::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 26px 26px; }
.arch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch-lines path { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; transition: stroke .3s, opacity .3s, stroke-width .3s; }
.arch-lines path.on { stroke: var(--teal); stroke-width: 3; }
.arch-board.focus .arch-lines path:not(.on) { opacity: .2; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.node { position: absolute; z-index: 2; display: grid; gap: 2px; width: 196px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg-3) 92%, transparent); backdrop-filter: blur(10px); text-align: left; box-shadow: var(--shadow);
  transform: translate(-50%, -50%); transition: border-color .3s, box-shadow .3s, opacity .3s, transform .4s var(--ease-out); }
.node b { font-size: 15px; } .node small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.node:hover, .node.on { border-color: var(--teal); box-shadow: var(--glow); transform: translate(-50%, -50%) scale(1.04); }
.node.core { border-color: rgba(231, 201, 143, .5); }
.arch-board.focus .node:not(.on):not(.linked) { opacity: .45; }
.node.linked { border-color: rgba(95, 211, 170, .6); }
.n-app { left: 14%; top: 24%; } .n-portal { left: 14%; top: 76%; } .n-api { left: 48%; top: 46%; }
.n-db { left: 84%; top: 18%; } .n-cv { left: 84%; top: 44%; } .n-ai { left: 56%; top: 82%; } .n-video { left: 84%; top: 78%; }
.arch-info { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 3; max-width: 92%; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; color: var(--muted); text-align: center; }
.arch-info b { color: var(--text); }

/* ═══════════════════════ TRUST ═══════════════════════ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: clamp(70px, 9vw, 110px); }
.stat { padding: 28px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(38px, 4.4vw, 56px); line-height: 1; background: linear-gradient(120deg, var(--teal), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tcard { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: transform .4s var(--ease-out), border-color .4s; }
.tcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tcard h3 { font-size: 16.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tcard h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(95, 211, 170, .15); }
.tcard p { color: var(--muted); font-size: 14.5px; }

/* ═══════════════════════ DEMO ═══════════════════════ */
.demo { background: var(--bg-2); }
.demo-player { position: relative; max-width: 980px; margin: 0 auto; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #000; }
.demo-player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.demo-fallback { padding: 22px; text-align: center; color: var(--muted); background: var(--bg-3); }
.demo-fallback code { color: var(--gold); }

/* ═══════════════════════ FAQ ═══════════════════════ */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--nav-h) + 30px); }
.accordion { display: grid; gap: 12px; }
.accordion details { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, background-color .3s; }
.accordion details[open] { border-color: rgba(95, 211, 170, .45); background: var(--surface-2); }
.accordion summary { position: relative; padding: 20px 56px 20px 22px; list-style: none; cursor: pointer; font-weight: 650; font-size: 16.5px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform .4s var(--ease-out), margin .4s; }
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.acc-body { overflow: hidden; }
.acc-body p { padding: 0 22px 22px; color: var(--muted); }

/* ═══════════════════════ CTA + FOOTER ═══════════════════════ */
.cta { padding: clamp(70px, 10vw, 120px) 0; }
.cta-inner { position: relative; padding: clamp(44px, 7vw, 84px) clamp(22px, 5vw, 70px); border-radius: 34px; text-align: center; overflow: hidden;
  background: radial-gradient(80% 120% at 0% 0%, rgba(95, 211, 170, .35), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(231, 201, 143, .28), transparent 60%), #06140F;
  border: 1px solid rgba(255, 255, 255, .1); color: #EAF0F8; }
.cta-inner h2 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 54px); max-width: 820px; margin: 0 auto; }
.cta-inner p { margin: 18px auto 0; max-width: 560px; color: #B9C6D8; font-size: 18px; }
.cta-inner .hero-cta { justify-content: center; }
.cta-inner .btn-ghost { color: #EAF0F8; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.footer { padding: 70px 0 28px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 380px; color: var(--muted); font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols b { display: block; margin-bottom: 12px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.footer-cols a { display: block; padding: 4px 0; color: var(--muted); font-size: 15px; transition: color .25s; }
.footer-cols a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 14px; }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); font-weight: 800; transition: border-color .3s, transform .3s; }
.to-top:hover { border-color: var(--teal); transform: translateY(-3px); }

/* ═══════════════════════ LIGHTBOX ═══════════════════════ */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 60px 16px 70px; background: rgba(3, 6, 12, .88);
  backdrop-filter: blur(10px); animation: fadeIn .3s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; max-width: min(1200px, 100%); border-radius: 16px; box-shadow: var(--shadow); animation: zoomIn .45s var(--ease-out); }
.lb-close { position: absolute; top: 16px; right: 16px; color: #fff; }
.lb-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #C8D3E3; font-weight: 600; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }

/* ── tilt helper (JS sets the variables) ── */
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out), border-color .4s, box-shadow .4s, background-color .4s; }
[data-reveal].tilt.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; }
  .nav-actions .btn { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .bcard { grid-column: span 1; grid-row: auto; }
  .bento .b-mastery, .bento .b-tutor { grid-column: span 2; }
}
@media (max-width: 920px) {
  .hero-inner, .split, .tab-panel, .faq-inner, .footer-inner { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .hero-visual { height: clamp(320px, 80vw, 480px); max-width: 640px; }
  .why-grid { grid-template-columns: 1fr; }
  .how { height: auto; }
  .how-sticky { position: relative; height: auto; padding: 90px 0; }
  .how-inner { grid-template-columns: 1fr; }
  .how-steps li { opacity: 1; cursor: default; }
  .how-steps p { display: block; }
  .how-steps li.active { transform: none; }
  .how-progress { display: none; }
  .how-stage { max-width: 560px; width: 100%; }
  .faq .section-head { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hotspot { position: static; display: inline-flex; margin: 10px 8px 0 0; max-width: none; opacity: 1; transform: none; }
  .hotspot::before { display: none; }
  .showcase-frame { overflow: hidden; }
  .showcase-frame .hotspot { display: none; }
  .arch-board { height: auto; padding: 16px; display: grid; gap: 12px; }
  .arch-lines { display: none; }
  .node { position: static; width: 100%; transform: none; }
  .node:hover, .node.on { transform: none; }
  .arch-info { position: relative; left: auto; top: auto; transform: none; order: -1; max-width: none; border-radius: 14px; text-align: left; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .feature-grid, .trust-grid, .bento { grid-template-columns: 1fr; }
  .bento .b-mastery, .bento .b-tutor { grid-column: span 1; }
  .stats { gap: 12px; }
  .scan-card { grid-template-columns: 1fr; justify-items: center; }
  .scan-meters { width: 100%; }
  .chip { display: none; }
  .chip-a { display: flex; left: 0; top: -4%; }
  .hv-window { right: 0; }
  .hv-phone { width: 36%; right: -2%; bottom: -4%; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .editor { grid-template-columns: 1fr; }
  .ed-side { display: none; }
  .learn { flex-direction: column; }
  .tabs button { padding: 10px 16px; font-size: 14px; }
  .btn-lg { --bh: 50px; padding: 0 22px; }
}

/* ── reduced motion: no movement, everything visible ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .hero-title .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .cursor-glow, .particles { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   MOTION LAYER — preloader, cursor, 3D story, lecture reel, film strip
   (enhance.js drives them; everything degrades to a static page)
   ════════════════════════════════════════════════════════════════════ */

/* ── preloader: the cap is drawn, then the page opens ── */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg);
  animation: plAuto .6s var(--ease) 3.2s forwards; }           /* never blocks the page, even without JS */
.preloader.done { animation: plOut .9s var(--ease) forwards; }
@keyframes plOut { to { opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0); } }
@keyframes plAuto { to { opacity: 0; visibility: hidden; } }
.pl-inner { display: grid; justify-items: center; gap: 18px; }
.pl-cap { width: 84px; height: 84px; overflow: visible; }
.pl-cap path { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 180; stroke-dashoffset: 180; animation: plDraw 1.2s var(--ease) forwards; }
.pl-top { stroke: var(--gold); } .pl-body { stroke: var(--teal); animation-delay: .25s !important; }
@keyframes plDraw { 70% { fill: transparent; } to { stroke-dashoffset: 0; fill: currentColor; } }
.pl-top { color: var(--gold); } .pl-body { color: var(--teal); }
.pl-word { font-weight: 800; font-size: 28px; letter-spacing: -0.02em; opacity: 0; transform: translateY(8px); animation: plWord .7s var(--ease-out) .5s forwards; }
.pl-word span { color: var(--teal); }
@keyframes plWord { to { opacity: 1; transform: none; } }
.pl-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); animation: grow 1.3s var(--ease) .2s forwards; }

/* ── custom cursor (fine pointers only) ── */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 900; display: none; }
body.cursor-on .cursor { display: block; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--teal); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(95, 211, 170, .55); display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s, border-color .3s; }
.cursor-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); opacity: 0; transition: opacity .2s; }
body.cursor-hover .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(95, 211, 170, .12); border-color: var(--teal); }
body.cursor-label-on .cursor-ring { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: var(--teal); border-color: var(--teal); }
body.cursor-label-on .cursor-label { opacity: 1; }
body.cursor-down .cursor-ring { transform: scale(.85); }

/* ── hero: the real lecture, playing ── */
.hv-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--frame); }
.live-dot { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(244, 123, 139, .16);
  color: #FF8A98; font-size: 10px; letter-spacing: .12em; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FF5F6D; animation: pulse 1.6s infinite; }

/* ── 3D story: scroll morphs a particle cloud PDF → cap → eye → rising graph ── */
.morph { position: relative; height: 420vh; background: radial-gradient(60% 50% at 70% 50%, rgba(95, 211, 170, .10), transparent 70%), var(--bg); }
.morph-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.morph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.morph-fallback { position: absolute; right: 6%; top: 50%; width: min(42vw, 520px); aspect-ratio: 1; transform: translateY(-50%); display: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 12 6 25l26 13 26-13z' fill='%23E8C478'/%3E%3Cpath d='M17 31v11c0 4.5 7 9 15 9s15-4.5 15-9V31l-15 7.5z' fill='%2322C08F'/%3E%3C/svg%3E");
  opacity: .5; filter: drop-shadow(0 0 40px rgba(95, 211, 170, .4)); }
.morph.no-webgl .morph-fallback { display: block; }
.morph-copy { position: relative; z-index: 2; pointer-events: none; }
.morph-lines { position: relative; height: 340px; max-width: 520px; }
.morph-lines li { position: absolute; inset: 0; opacity: 0; transform: translateY(40px); filter: blur(8px);
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out), filter .7s var(--ease-out); }
.morph-lines li.on { opacity: 1; transform: none; filter: none; }
.morph-lines li.past { opacity: 0; transform: translateY(-40px); filter: blur(8px); }
.morph-lines span { display: block; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--gold); margin-bottom: 14px; letter-spacing: .1em; }
.morph-lines h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 66px); line-height: 1.05; }
.morph-lines em { font-style: italic; background: linear-gradient(100deg, var(--teal), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.morph-lines p { margin-top: 18px; max-width: 440px; color: var(--muted); font-size: 18px; }
.morph-dots { display: flex; gap: 8px; margin-top: 10px; }
.morph-dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background-color .4s, width .4s var(--ease-out); }
.morph-dots i.on { width: 52px; background: linear-gradient(90deg, var(--teal), var(--gold)); }

/* ── lecture reel: switch between real clips ── */
.reel { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin: 0 0 70px; }
.reel-copy h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.reel-copy > p { color: var(--muted); }
.reel-copy em { color: var(--gold); font-style: normal; font-weight: 650; }
.reel-tabs { display: grid; gap: 10px; margin-top: 26px; }
.reel-tabs button { display: grid; gap: 2px; text-align: left; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, background-color .3s, transform .4s var(--ease-out); position: relative; overflow: hidden; }
.reel-tabs button b { font-size: 16px; } .reel-tabs button small { color: var(--muted); font-size: 13px; }
.reel-tabs button:hover { transform: translateX(4px); }
.reel-tabs button[aria-selected="true"] { border-color: rgba(95, 211, 170, .55); background: var(--surface-2); box-shadow: var(--glow); }
.reel-tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--teal), var(--gold)); }
.reel-player { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: var(--frame); box-shadow: var(--shadow); }
.reel-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .35s; }
.reel-video.swap { opacity: 0; }
.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.reel-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--gold)); }

/* ── film strip: vertical scroll moves the frames sideways ── */
.filmstrip { position: relative; height: 320vh; background: var(--bg); }
.fs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.fs-head .section-title { font-size: clamp(30px, 4vw, 50px); }
.fs-track { display: flex; gap: 28px; padding-left: max(16px, calc((100vw - var(--container)) / 2)); width: max-content; will-change: transform; }
.fs-track figure { flex: none; width: clamp(300px, 40vw, 620px); margin: 0; }
.fs-track img { width: 100%; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: var(--shadow); transform: scale(.94); transition: transform .6s var(--ease-out); }
.fs-track figure.near img { transform: scale(1); }
.fs-track figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.fs-track figcaption b { color: var(--text); margin-right: 6px; }

@media (max-width: 920px) {
  .morph { height: 360vh; }
  .morph-copy { align-self: flex-end; padding-bottom: 12vh; }
  .morph-lines { height: 300px; }
  .morph-lines h2 { font-size: clamp(32px, 9vw, 44px); }
  .reel { grid-template-columns: 1fr; }
  .filmstrip { height: auto; }
  .fs-sticky { position: relative; height: auto; padding: 90px 0; }
  .fs-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 16px; scrollbar-width: none; }
  .fs-track::-webkit-scrollbar { display: none; }
  .fs-track figure { width: 82vw; scroll-snap-align: center; }
  .fs-track img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  .morph { height: auto; } .morph-sticky { position: relative; height: auto; padding: 100px 0; }
  .morph-lines { height: auto; display: grid; gap: 40px; } .morph-lines li { position: static; opacity: 1; transform: none; filter: none; }
  .filmstrip { height: auto; } .fs-sticky { position: relative; height: auto; padding: 90px 0; }
  .fs-track { width: auto; overflow-x: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SMARTSTUDY ANIMATED LOGO (.ss-logo) — eye with a tick + the name
   The whole intro repeats: big eye in the middle → shrinks and slides left →
   "SmartStudy" writes in → stays about 2.5 s → fades and starts again (7 s cycle).
   Colours come from --ss-* so the same mark works on light and dark.
   ═══════════════════════════════════════════════════════════════════════ */
.ss-logo { --ss-eye: #115E59; --ss-eye-bg: #ffffff; --ss-tick: #F59E0B; --ss-a: #0B3F3B; --ss-b: #D97706;
  --ss-size: 34px; --ss-font: 19px; --ss-shift: 60px; --ss-cycle: 7s;
  display: inline-flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; }
.ss-md { --ss-size: 34px; --ss-font: 19px; }
.ss-lg { --ss-size: 46px; --ss-font: 26px; }
.ss-sm { --ss-size: 28px; --ss-font: 16px; }
.ss-eye { width: var(--ss-size); height: var(--ss-size); flex-shrink: 0; display: block;
  animation: ssEye var(--ss-cycle) cubic-bezier(.65, 0, .35, 1) infinite; }
.ss-eye svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ss-white { fill: var(--ss-eye-bg); stroke: var(--ss-eye); stroke-width: 4.5; stroke-linejoin: round;
  stroke-dasharray: 150; animation: ssDraw var(--ss-cycle) ease infinite; }
.ss-iris circle:first-child { fill: var(--ss-eye); }
.ss-shine { fill: #99CFC7; }
.ss-iris { transform-origin: 32px 32px; animation: ssIris var(--ss-cycle) cubic-bezier(.3, 1.4, .6, 1) infinite; }
.ss-look { animation: ssLook var(--ss-cycle) ease-in-out infinite; }
.ss-lid { transform-origin: 32px 32px; animation: ssBlink var(--ss-cycle) infinite; }
.ss-tick { fill: none; stroke: var(--ss-tick); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; animation: ssTick var(--ss-cycle) ease infinite; }
.ss-name { display: inline-flex; font-size: var(--ss-font); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.ss-name span { display: inline-block; animation: ssLetter var(--ss-cycle) cubic-bezier(.2, .9, .3, 1.25) infinite; }
.ss-name .ss-a { color: var(--ss-a); }
.ss-name .ss-b { color: var(--ss-b); }
/* 0–1.9 s big eye draws, iris pops, tick; 1.9–2.7 s slides left; 2.2–3 s letters; hold; 6.3–7 s fade */
@keyframes ssEye { 0% { transform: translateX(var(--ss-shift)) scale(1.9); opacity: 0; }
  4%, 27% { transform: translateX(var(--ss-shift)) scale(1.9); opacity: 1; }
  39%, 90% { transform: none; opacity: 1; }
  97%, 100% { transform: none; opacity: 0; } }
@keyframes ssDraw { 0% { stroke-dashoffset: 150; } 13%, 100% { stroke-dashoffset: 0; } }
@keyframes ssIris { 0%, 9% { transform: scale(0); } 16%, 100% { transform: scale(1); } }
@keyframes ssTick { 0%, 15% { stroke-dashoffset: 24; } 22%, 100% { stroke-dashoffset: 0; } }
@keyframes ssLook { 0%, 46% { transform: none; } 52% { transform: translateX(-6px); } 60% { transform: translateX(6px); } 66%, 100% { transform: none; } }
@keyframes ssBlink { 0%, 72%, 75%, 100% { transform: none; } 73.5% { transform: scaleY(.07); } }
@keyframes ssLetter { 0%, 31% { opacity: 0; transform: translateX(14px); } 40%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ss-logo *, .ss-eye { animation: none !important; }
}
/* The website is dark: bright eye, light name with a gold "Study" */
.ss-logo { --ss-eye: var(--teal); --ss-eye-bg: var(--bg); --ss-tick: var(--gold); --ss-a: var(--text); --ss-b: var(--gold); }
.ss-logo .ss-name { font-size: 21px; }

/* ═══ Micro-animations: hero pipeline chip, step connector, icon motion, button shine ═══ */
.chip-d { left: -7%; top: 42%; animation-delay: 1.3s, 2s; }
.pipe { display: flex; align-items: center; gap: 4px; flex: none; }
.pipe-step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 10px; font-weight: 800;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); animation: pipeOn 4.5s ease-in-out infinite; }
.pipe-step.p1 { color: var(--rose); }
.pipe-step.p2 { gap: 2px; grid-template-rows: repeat(3, 3px); align-content: center; animation-delay: .9s; }
.pipe-step.p2 b { display: block; width: 14px; height: 3px; border-radius: 2px; background: var(--teal); opacity: .7; }
.pipe-step.p2 b:nth-child(2) { width: 10px; } .pipe-step.p2 b:nth-child(3) { width: 12px; }
.pipe-step.p3 { color: var(--gold); font-size: 11px; animation-delay: 1.8s; }
.pipe-arrow { width: 10px; height: 2px; border-radius: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.pipe-arrow::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform: translateX(-100%); animation: pipeFlow 4.5s ease-in-out infinite; }
.pipe-arrow.a2::after { animation-delay: .9s; }
@keyframes pipeOn { 0%, 8% { border-color: var(--line-2); transform: none; } 14%, 70% { border-color: var(--teal); transform: translateY(-2px); background: rgba(95, 211, 170, .12); } 80%, 100% { border-color: var(--line-2); transform: none; } }
@keyframes pipeFlow { 0%, 10% { transform: translateX(-100%); } 22%, 70% { transform: none; } 80%, 100% { transform: translateX(100%); } }

.how-steps li { position: relative; }
.how-steps li:not(:last-child)::after { content: ""; position: absolute; left: 32px; top: 50px; bottom: -8px; width: 2px; border-radius: 1px;
  background: linear-gradient(var(--teal), var(--teal)) top / 100% 0% no-repeat, var(--line); transition: background-size .5s var(--ease-out); }
.how-steps li.done::after, .how-steps li.active::after { background-size: 100% 100%, auto; }
.how-steps li.done { opacity: .75; }
.how-steps li.done .sn { color: transparent; border-color: var(--teal); position: relative; }
.how-steps li.done .sn::before { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal); font-weight: 800;
  animation: stepTick .35s var(--ease-out) both; }
@keyframes stepTick { from { transform: scale(0); } to { transform: scale(1); } }

.ficon, .why-num { transition: transform .35s var(--ease-out), box-shadow .35s; }
.fcard:hover .ficon { transform: translateY(-3px) rotate(-8deg) scale(1.08); box-shadow: 0 10px 24px -10px currentColor; }
.why-card:hover .why-num { transform: translateX(4px) scale(1.06); }
.chip-ico.eye { animation: eyeBlinkChip 5s infinite; }
@keyframes eyeBlinkChip { 0%, 46%, 50%, 100% { transform: none; } 48% { transform: scaleY(.15); } }

.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); }
.btn-primary:hover::after { animation: btnShine .8s ease; }
.btn-lg.btn-primary::after { animation: btnShine 1s ease 2.5s, btnShineIdle 6s ease 6s infinite; }
@keyframes btnShine { from { left: -60%; } to { left: 130%; } }
@keyframes btnShineIdle { 0%, 82% { left: -60%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  .pipe-step, .pipe-arrow::after, .chip-ico.eye, .btn-primary::after, .how-steps li.done .sn::before { animation: none !important; }
}

/* ═══════════════════════ TEAM (quote slider) ═══════════════════════ */
.team-slider { display: flex; flex-direction: column; align-items: center; gap: 36px; max-width: 760px; margin: 0 auto; text-align: center; }
.team-quote { position: relative; padding: 0 clamp(28px, 6vw, 56px); }
.team-mark { position: absolute; font-family: var(--serif); font-size: clamp(64px, 8vw, 96px); line-height: 1; color: var(--line-2); user-select: none; pointer-events: none; }
.team-mark.left { top: -.45em; left: 0; }
.team-mark.right { bottom: -.75em; right: 0; }
.team-quote-text { font-size: clamp(22px, 3vw, 32px); font-weight: 300; line-height: 1.5; letter-spacing: -.01em; color: var(--text); max-width: 30ch;
  transition: opacity .4s var(--ease-out), filter .4s var(--ease-out), transform .4s var(--ease-out); }
.team-role { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.team-slider.swapping .team-quote-text { opacity: 0; filter: blur(4px); transform: scale(.98); }
.team-slider.swapping .team-role { opacity: 0; transform: translateY(8px); }

.team-people { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: -12px; }
.team-pill { display: flex; align-items: center; border: 0; border-radius: 999px; padding: 3px; background: transparent; color: var(--text);
  cursor: pointer; transition: background-color .5s cubic-bezier(.4, 0, .2, 1), padding .5s cubic-bezier(.4, 0, .2, 1), box-shadow .5s; }
.team-pill:hover:not(.active) { background: var(--surface-2); padding: 7px 16px 7px 7px; }
.team-pill:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.team-pill.active { background: var(--text); color: var(--bg); padding: 7px 18px 7px 7px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }

.team-avatar { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--hue) 55% 42%), hsl(calc(var(--hue) + 30) 60% 32%)); transition: transform .5s cubic-bezier(.4, 0, .2, 1), box-shadow .5s; }
.team-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-avatar.has-photo .team-initials { visibility: hidden; }
.team-initials { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.team-pill.active .team-avatar { box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 35%, transparent); }
.team-pill:hover:not(.active) .team-avatar { transform: scale(1.05); }

/* The name slides out beside the photo on the active (or hovered) person */
.team-name-wrap { display: grid; grid-template-columns: 0fr; opacity: 0; margin-left: 0; transition: grid-template-columns .5s cubic-bezier(.4, 0, .2, 1), opacity .4s, margin .5s; }
.team-name { overflow: hidden; white-space: nowrap; font-size: 15.5px; font-weight: 600; }
.team-pill.active .team-name-wrap, .team-pill:hover .team-name-wrap { grid-template-columns: 1fr; opacity: 1; margin-left: 10px; }

@media (max-width: 600px) {
  .team-avatar { width: 38px; height: 38px; }
  .team-name { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-quote-text, .team-role, .team-pill, .team-name-wrap, .team-avatar { transition: none; }
}

/* ── "Watch lessons" (students → QR sign-in page of the web app) ───── */
.btn-watch svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-watch svg .tri { fill: currentColor; stroke: none; }
.hero-student { margin-top: 18px; font-size: 14.5px; color: var(--muted); max-width: 520px; }
.hero-student a { color: var(--teal); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.hero-student a:hover { color: var(--text); }
.nav-links a { white-space: nowrap; }
/* Medium screens: the top bar is full — the nav button shrinks to its laptop icon (the hero line and menu keep the words) */
@media (max-width: 1360px) {
  .nav-actions .btn-watch { width: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
}
