/* ============ FastLRN — fonts ============ */
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ============ FastLRN — design system ============ */
:root {
  --bg: #050a1e;
  --bg-soft: #0a1232;
  --panel: #0d1740;
  --ink: #eaf2ff;
  --ink-dim: rgba(234, 242, 255, 0.62);
  --ink-faint: rgba(234, 242, 255, 0.38);
  --blue: #3d7bff;
  --blue-deep: #1b4fe8;
  --violet: #8f7bff;
  --amber: #ffb454;
  --green: #4ade80;
  --ice: #eef3ff;
  --navy-ink: #0a1232;
  --line: rgba(120, 158, 255, 0.16);
  --radius: 20px;
  --font-display: "Satoshi", sans-serif;
  --font-body: "Satoshi", sans-serif;
  --font-wordmark: "Satoshi", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* clip, not hidden: overflow-x hidden creates a scroll container on the body,
   which breaks position: sticky/fixed pinning in Safari */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

img { display: block; }
a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--blue-deep); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 0 0 12px 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus-visible { top: 0; }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 18px;
  align-items: center; justify-content: center;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 0.7rem 1.4rem; border-radius: 999px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--solid {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
  box-shadow: 0 8px 30px rgba(61, 123, 255, 0.35);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(61, 123, 255, 0.5); }
.btn--ghost { color: var(--ink-dim); }
.btn--ghost:hover { color: var(--ink); }
.btn--outline { border: 1px solid var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--blue); background: rgba(61, 123, 255, 0.08); }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 10, 30, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-wordmark); font-weight: 900; font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.nav__logo img { border-radius: 9px; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.92rem; color: var(--ink-dim); position: relative;
  transition: color 0.3s; white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--blue); transition: width 0.35s cubic-bezier(.2,.8,.2,1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; gap: 0.6rem; align-items: center; }
.nav__burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; position: relative; z-index: 60;
}
.nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px auto; transition: transform 0.35s, opacity 0.35s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(5, 10, 30, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; pointer-events: none;
  visibility: hidden; /* keep links unfocusable while closed */
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
}
.mobile-menu .btn { font-size: 1.1rem; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem clamp(1.2rem, 5vw, 4rem) 5rem;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner {
  position: relative; z-index: 2; text-align: center; max-width: 980px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1.1rem; margin-bottom: 2.2rem;
  background: rgba(13, 23, 64, 0.5);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(61, 123, 255, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 123, 255, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(61, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 123, 255, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 9.2vw, 6.8rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; transform: translateY(110%); }
.hero__line--accent > span {
  background: linear-gradient(100deg, #6f9dff 0%, #eaf2ff 50%, #3d7bff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub {
  max-width: 600px; margin: 0 auto 2.6rem;
  color: var(--ink-dim); font-size: clamp(1rem, 1.6vw, 1.18rem);
  opacity: 0;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--ink-faint); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  z-index: 2;
}
.hero__scroll-track {
  width: 1.5px; height: 44px; background: var(--line); overflow: hidden;
}
.hero__scroll-thumb {
  width: 100%; height: 14px; background: var(--blue);
  animation: scrollHint 1.8s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-16px); }
  100% { transform: translateY(46px); }
}
/* short viewports: the hint would overlap the CTA buttons */
@media (max-height: 780px) { .hero__scroll { display: none; } }

/* ============ Marquee ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.1rem 0; overflow: hidden;
  background: rgba(10, 18, 50, 0.4);
}
.marquee__track {
  display: flex; gap: 2.6rem; width: max-content;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.12em;
  animation: marquee 28s linear infinite;
}
.marquee__track i { color: var(--blue); font-style: normal; }
.marquee__track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 4rem); max-width: 1240px; margin: 0 auto; }
.section__head { max-width: 720px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.section__title .w { display: inline-block; overflow: hidden; vertical-align: top; }
.section__title .w > span { display: inline-block; transform: translateY(110%); }
.section__sub { color: var(--ink-dim); max-width: 560px; font-size: 1.05rem; }

/* ============ Story (pinned scrollytelling) ============ */
.story { position: relative; height: 320vh; }
.story__sticky {
  /* pinned by ScrollTrigger on desktop (CSS sticky breaks under overflow clipping in Safari) */
  position: relative; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 50% 55%, rgba(27, 79, 232, 0.10), transparent 70%);
}
.story__beats {
  position: relative; width: min(880px, 92vw); height: 70vh;
}
.story__beat {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.3rem; text-align: center;
  opacity: 0;
}
.story__eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.story__eyebrow--amber { color: var(--amber); }
.story__eyebrow--blue { color: var(--blue); }
.story__eyebrow--green { color: var(--green); }
.story__beat h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.025em;
  max-width: 20ch;
}
.story__sub { color: var(--ink-dim); max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.story__dots { position: absolute; bottom: 2.2rem; display: flex; gap: 0.5rem; }
.story__dots button {
  width: 30px; height: 16px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center;
}
.story__dots button::after {
  content: ""; width: 100%; height: 3px; border-radius: 999px;
  background: var(--line); transition: background 0.3s;
}
.story__dots button.is-active::after { background: var(--blue); }
.story__dots button:hover::after { background: rgba(120, 158, 255, 0.5); }
/* static fallback (mobile / reduced motion) */
.story--static { height: auto; }
.story--static .story__sticky { position: static; height: auto; padding: 5rem 1.2rem; }
.story--static .story__beats { height: auto; display: flex; flex-direction: column; gap: 4.5rem; }
.story--static .story__beat { position: relative; opacity: 1; }
.story--static .story__dots { display: none; }

/* ============ Bands (full-width backgrounds) ============ */
.band { width: 100%; }
.band--violet-tint {
  background: radial-gradient(60% 55% at 82% 18%, rgba(143, 123, 255, 0.09), transparent 65%);
}
.band--amber-tint {
  background: radial-gradient(55% 50% at 15% 20%, rgba(255, 180, 84, 0.06), transparent 65%);
}
.band--light { background: var(--ice); color: var(--navy-ink); }
.band--light .section__eyebrow { color: var(--blue-deep); }
.band--light .section__sub { color: rgba(10, 18, 50, 0.66); }
.band--light .ticks li { color: rgba(10, 18, 50, 0.7); }
.band--light .ticks li::before {
  background:
    radial-gradient(circle at center, var(--blue-deep) 0 35%, transparent 40%),
    rgba(27, 79, 232, 0.12);
}
.band--light .feed-card {
  background: #ffffff;
  border-color: rgba(10, 18, 50, 0.1);
  box-shadow: 0 30px 70px rgba(10, 18, 50, 0.14);
}
.band--light .chat__bar { border-bottom-color: rgba(10, 18, 50, 0.08); }
.band--light .chat__dot { background: rgba(10, 18, 50, 0.15); }
.band--light .chat__course { color: rgba(10, 18, 50, 0.55); }
.band--light .feed-item { border-bottom-color: rgba(10, 18, 50, 0.07); }
.band--light .feed-item__meta { color: rgba(10, 18, 50, 0.56); }
.band--light .feed-item__q { color: var(--navy-ink); }
.band--light .feed-item__tag {
  background: rgba(27, 79, 232, 0.08); color: var(--blue-deep);
  border-color: rgba(27, 79, 232, 0.25);
}
.band--light .step { border-color: rgba(10, 18, 50, 0.12); }
.band--light .step__index {
  background: linear-gradient(180deg, var(--blue-deep), rgba(27, 79, 232, 0.2));
  -webkit-background-clip: text; background-clip: text;
}
.band--light .step__body p { color: rgba(10, 18, 50, 0.66); }
.band--light .step__bar i { background: linear-gradient(90deg, var(--blue-deep), transparent); }

/* Two-column story layout */
.duo {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.ticks { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.ticks li {
  display: flex; align-items: center; gap: 0.8rem; color: var(--ink-dim); font-size: 0.98rem;
}
.ticks li::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--blue) 0 35%, transparent 40%),
    rgba(61, 123, 255, 0.15);
}

/* ============ Feature cards ============ */
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(13, 23, 64, 0.85), rgba(8, 14, 40, 0.85));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.9rem 2rem;
  transition: border-color 0.4s, transform 0.4s;
  will-change: transform;
  overflow: hidden;
}
.card { --glow: 61, 123, 255; --accent: var(--blue); }
.card--violet { --glow: 143, 123, 255; --accent: var(--violet); }
.card--amber { --glow: 255, 180, 84; --accent: var(--amber); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--glow), 0.14), transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(120, 158, 255, 0.4); }
.card__num {
  font-family: var(--font-display); font-size: 0.85rem; color: var(--ink-faint);
  margin-bottom: 2.6rem; letter-spacing: 0.15em;
}
.card__icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 1.4rem; }
.card__icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  margin-bottom: 0.7rem; letter-spacing: -0.01em;
}
.card p { color: var(--ink-dim); font-size: 0.97rem; }

/* ============ Live feed ============ */
.feed-card {
  background: linear-gradient(165deg, #0e1a4a, #081027);
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.7), 0 0 0 1px rgba(61,123,255,0.06);
  overflow: hidden;
  will-change: transform;
}
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; margin-right: 0.45rem;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.feed-card__list { min-height: 380px; max-height: 380px; overflow: hidden; display: flex; flex-direction: column; }
.feed-item {
  padding: 0.95rem 1.3rem;
  border-bottom: 1px solid rgba(120, 158, 255, 0.08);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.feed-item__meta {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; color: var(--ink-faint);
  font-family: var(--font-display); letter-spacing: 0.04em;
}
.feed-item__tag {
  padding: 0.1rem 0.6rem; border-radius: 999px;
  background: rgba(61, 123, 255, 0.14); color: #9dbcff;
  border: 1px solid rgba(61, 123, 255, 0.28);
  font-size: 0.7rem;
}
.feed-item__q { font-size: 0.95rem; color: var(--ink); }

/* ============ Course configuration controls (mirrors the product UI) ============ */
.controls {
  margin-top: 1.9rem;
  background: linear-gradient(160deg, rgba(13, 23, 64, 0.85), rgba(8, 14, 40, 0.85));
  border: 1px solid var(--line); border-radius: 18px;
  padding: 0.4rem 1.3rem 0.9rem;
}
.control-row {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(120, 158, 255, 0.08);
}
.control-row__label { font-size: 0.95rem; font-weight: 700; }
.seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  padding: 4px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(5, 10, 30, 0.55);
  align-self: flex-start;
}
.seg__opt {
  border: 0; cursor: pointer; background: transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--ink-dim);
  padding: 0.5rem 0.9rem; border-radius: 9px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.seg__opt:hover { color: var(--ink); }
.seg__opt.is-active {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
  box-shadow: 0 4px 18px rgba(61, 123, 255, 0.4);
}
.controls__hint {
  padding-top: 0.85rem;
  font-size: 0.82rem; color: var(--ink-dim);
}

/* ============ Chat mock window ============ */
.chat__window {
  background: linear-gradient(165deg, #0e1a4a, #081027);
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.7), 0 0 0 1px rgba(61,123,255,0.06);
  overflow: hidden;
  will-change: transform;
}
.chat__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line);
}
.chat__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(234,242,255,0.18); }
.chat__course {
  margin-left: auto; font-family: var(--font-display); font-size: 0.8rem;
  color: var(--ink-dim); letter-spacing: 0.06em;
  display: inline-flex; align-items: center;
}
.chat__feed { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; min-height: 240px; }
.msg {
  max-width: 85%; padding: 0.8rem 1.05rem; border-radius: 16px;
  font-size: 0.92rem; line-height: 1.5;
  opacity: 0; transform: translateY(14px);
}
.msg--student {
  align-self: flex-end;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  border-bottom-right-radius: 4px; color: #fff;
}
.msg--ai {
  align-self: flex-start;
  background: rgba(234, 242, 255, 0.06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px; color: var(--ink);
}
.msg__cite {
  display: inline-block; margin-top: 0.35rem; padding: 0.12rem 0.55rem;
  font-size: 0.72rem; border-radius: 999px;
  background: rgba(61, 123, 255, 0.16); color: #9dbcff;
  border: 1px solid rgba(61, 123, 255, 0.3);
}
.msg__cite:empty { display: none; }
.msg__cite--warn {
  background: rgba(255, 120, 120, 0.12); color: #ffb3b3;
  border-color: rgba(255, 120, 120, 0.35);
}
.chat__input {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 0 1.4rem 1.4rem; padding: 0.85rem 1.1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(5, 10, 30, 0.6);
}
.chat__placeholder { color: var(--ink-faint); font-size: 0.9rem; flex: 1; min-height: 1.3em; }
.chat__placeholder::after { content: "|"; color: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat__send {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue)); color: #fff;
  display: grid; place-items: center; flex: 0 0 34px;
}

/* ============ Analytics ============ */
.analytics__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.heatmap {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, rgba(13, 23, 64, 0.85), rgba(8, 14, 40, 0.85));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.9rem 1.4rem;
}
.heatmap__title {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 1.2rem;
}
.heatmap__grid {
  display: grid;
  grid-template-columns: 44px repeat(12, 1fr);
  gap: 5px;
  align-items: center;
}
.heatmap__grid .hm-day {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase;
}
.heatmap__grid .hm-hour {
  font-family: var(--font-display); font-size: 0.68rem;
  color: var(--ink-faint); text-align: center; padding-top: 0.3rem;
}
.hm-cell {
  height: 22px; border-radius: 5px;
  background: rgba(61, 123, 255, calc(0.05 + var(--v, 0) * 0.22));
  box-shadow: inset 0 0 0 1px rgba(120, 158, 255, 0.07);
}
.hm-cell[data-v="4"] { box-shadow: inset 0 0 0 1px rgba(120, 158, 255, 0.2), 0 0 12px rgba(61, 123, 255, 0.35); }
.stat__label {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.stat {
  background: linear-gradient(160deg, rgba(13, 23, 64, 0.85), rgba(8, 14, 40, 0.85));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
}
.stat__num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.1rem, 3.4vw, 3rem); letter-spacing: -0.02em;
  background: linear-gradient(120deg, #eaf2ff, #6f9dff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 0.5rem; line-height: 1.1;
}
.stat p { color: var(--ink-dim); font-size: 0.95rem; }
.analytics__chart {
  grid-column: 1 / -1; position: relative;
  background: linear-gradient(160deg, rgba(13, 23, 64, 0.85), rgba(8, 14, 40, 0.85));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem 1.2rem;
}
.analytics__chart svg { width: 100%; height: clamp(180px, 30vw, 280px); display: block; }
.analytics__chart-label {
  text-align: center; margin-top: 0.8rem; color: var(--ink-faint);
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--font-display);
}
#chartTip { filter: drop-shadow(0 0 8px #6f9dff); }

/* ============ How it works ============ */
.how__steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem;
  padding: 2.6rem 0; border-top: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__index {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900;
  background: linear-gradient(180deg, #6f9dff, rgba(111, 157, 255, 0.15));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1;
}
.step__body h3 {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700; margin-bottom: 0.5rem;
}
.step__body p { color: var(--ink-dim); max-width: 560px; }
.step__bar {
  position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  overflow: hidden; pointer-events: none;
}
.step__bar i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--blue), transparent);
  transform: scaleX(0); transform-origin: left;
}

/* ============ CTA ============ */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(6rem, 14vw, 11rem) 1.5rem;
  border-top: 1px solid var(--line);
}
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 1.2rem;
}
.cta__title .w { display: inline-block; overflow: hidden; vertical-align: top; }
.cta__title .w > span { display: inline-block; transform: translateY(110%); }
.cta p { color: var(--ink-dim); margin-bottom: 2.4rem; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem clamp(1.2rem, 5vw, 4rem);
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.footer__brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-wordmark); font-weight: 900; font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.footer__brand img { border-radius: 8px; }
.footer__links { display: flex; gap: 1.6rem; margin-left: auto; }
.footer__links a { color: var(--ink-dim); font-size: 0.9rem; transition: color 0.3s; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { width: 100%; color: var(--ink-faint); font-size: 0.82rem; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .features__grid { grid-template-columns: 1fr; }
  .analytics__grid { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .heatmap__grid { grid-template-columns: 36px repeat(12, 1fr); gap: 3px; }
  .hm-cell { height: 16px; border-radius: 3px; }
}
@media (max-width: 760px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: block; }
  .analytics__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: 1rem; padding: 2rem 0; }
  .hero__scroll { display: none; }
  .hero { padding-top: 6rem; }
  .msg { max-width: 95%; }
  .feed-card__list { min-height: 320px; max-height: 320px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero__line > span, .section__title .w > span, .cta__title .w > span { transform: none; }
  .hero__sub, .hero__cta, .msg { opacity: 1; transform: none; }
}
