/* SentFinder site: shared design system. Section CSS files build on these tokens and components. */
@font-face { font-family: "Geist"; src: url("assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* Sky Cloud (the app's default theme) */
  --bg: #f4f9ff;
  --bg-2: #e9f3ff;
  --surface: #ffffff;
  --ink: #0b1b33;
  --ink-2: #23395b;
  --muted: #5b6b82;
  --line: rgba(11, 27, 51, 0.09);
  --line-2: rgba(11, 27, 51, 0.16);
  --accent: #0a84ff;
  --accent-ink: #0060d0;
  --accent-soft: #e0edfd;
  --sky: #5ac8fa;
  --ok: #22b357;
  --warn: #ff9f0a;
  --danger: #ff453a;
  /* Midnight Finder (the app's dark theme) for night sections */
  --night: #050d1c;
  --night-2: #0b1730;
  --night-ink: #eaf2ff;
  --night-muted: #8ea3c2;
  --night-line: rgba(234, 242, 255, 0.1);

  --font-display: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, monospace;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(11, 27, 51, 0.06), 0 4px 14px rgba(11, 27, 51, 0.06);
  --shadow-2: 0 2px 6px rgba(11, 27, 51, 0.06), 0 24px 60px -12px rgba(11, 40, 90, 0.22);
  --shadow-glow: 0 0 0 1px rgba(10, 132, 255, 0.18), 0 18px 50px -10px rgba(10, 132, 255, 0.45);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(96px, 14vh, 180px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(10, 132, 255, 0.2); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout ---------- */
.sf-section { position: relative; padding-block: var(--section-y); }
.sf-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sf-night { background: var(--night); color: var(--night-ink); --muted: var(--night-muted); --line: var(--night-line); }

/* ---------- type ---------- */
.sf-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font: 600 13px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.sf-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.sf-display { font: 800 clamp(48px, 8.2vw, 124px)/0.94 var(--font-display); letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.sf-h2 { font: 750 clamp(38px, 5.4vw, 76px)/1 var(--font-display); letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.sf-h3 { font: 700 clamp(22px, 2vw, 28px)/1.15 var(--font-display); letter-spacing: -0.025em; margin: 0; }
.sf-lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; text-wrap: pretty; }
.sf-accent { color: var(--accent); }
.sf-grad-text { background: linear-gradient(100deg, var(--accent) 10%, var(--sky) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.sf-btn {
  --b-bg: var(--surface); --b-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--b-bg); color: var(--b-fg); text-decoration: none; cursor: pointer;
  font: 600 16px/1 var(--font-body); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.2s;
  will-change: transform;
}
.sf-btn:hover { box-shadow: var(--shadow-1); }
.sf-btn svg { width: 18px; height: 18px; flex: none; }
.sf-btn--primary { --b-bg: var(--accent); --b-fg: #fff; border-color: transparent; box-shadow: 0 10px 30px -8px rgba(10, 132, 255, 0.6); }
.sf-btn--primary:hover { --b-bg: #1a8cff; box-shadow: var(--shadow-glow); }
.sf-btn--dark { --b-bg: var(--ink); --b-fg: #fff; border-color: transparent; }
.sf-btn--lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.sf-night .sf-btn:not(.sf-btn--primary) { --b-bg: rgba(255, 255, 255, 0.06); --b-fg: var(--night-ink); border-color: var(--night-line); }

/* ---------- surfaces ---------- */
.sf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.sf-night .sf-card { background: var(--night-2); }
.sf-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font: 600 13px/1 var(--font-body);
}
.sf-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 179, 87, 0.18); }

/* App screenshot frame (desktop window chrome) */
.sf-window { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); }
.sf-window__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #f7faff; border-bottom: 1px solid var(--line); }
.sf-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.sf-window__bar i:nth-child(2) { background: #febc2e; } .sf-window__bar i:nth-child(3) { background: #28c840; }
.sf-window__bar span { margin-left: 10px; font: 600 12px/1 var(--font-body); color: var(--muted); }
.sf-window img, .sf-window video { width: 100%; height: auto; }

/* Command block with copy button: <div class="sf-code" data-copy="cmd"><code>…</code><button class="sf-copy">Copy</button></div> */
.sf-code {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 20px;
  border-radius: var(--r-md); background: #08142a; color: #dbe8ff; border: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 14.5px/1.5 var(--font-mono); overflow: hidden;
}
.sf-code code { flex: 1; min-width: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.sf-code code::-webkit-scrollbar { display: none; }
.sf-code .sf-prompt { color: var(--sky); user-select: none; margin-right: 10px; }
.sf-copy {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06); color: #fff; font: 600 13px/1 var(--font-body); cursor: pointer; transition: background 0.2s;
}
.sf-copy:hover { background: rgba(255, 255, 255, 0.14); }
.sf-copy[data-copied] { background: var(--ok); border-color: transparent; }

/* ---------- global chrome ---------- */
.sf-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--sky)); pointer-events: none; }
.sf-noise { position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- generic reveal (core.js animates [data-reveal]; this is the no-JS / pre-JS state) ---------- */
.sf-js [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sf-js [data-reveal] { opacity: 1 !important; transform: none !important; } }

.sf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* hero: fixed nav + hero stage (SplitText intro, live P2P canvas, pinned rise of the product shot) + marquee */
.hero { position: relative; z-index: 2; background: var(--bg); }

/* ================= nav ================= */
.hero-nav {
  position: fixed; top: 10px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center; padding-inline: var(--gutter);
  pointer-events: none; will-change: transform;
}
.hero-nav__bar {
  position: relative; isolation: isolate; pointer-events: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  width: 100%; max-width: 1240px; height: 56px; padding: 0 8px 0 16px;
}
.hero-nav__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 0 0 1px rgba(11, 27, 51, 0.07), 0 10px 34px -10px rgba(11, 40, 90, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0; transform: scale(1.025, 0.82);
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
}
.hero-nav.is-scrolled .hero-nav__bar::before { opacity: 1; transform: none; }

.hero-nav__brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; text-decoration: none; }
.hero-nav__logo { display: block; width: 34px; height: 34px; overflow: hidden; flex: none; transition: transform 0.6s var(--ease-out); transform-origin: 50% 90%; }
.hero-nav__logo img { width: 56px; max-width: none; height: auto; margin: -9px 0 0 -12px; }
.hero-nav__brand:hover .hero-nav__logo { transform: rotate(-10deg) scale(1.12); }
.hero-nav__word { font: 750 21px/1 var(--font-display); letter-spacing: -0.035em; color: var(--ink); }

.hero-nav__links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hero-nav__links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 999px;
  font: 550 15px/1 var(--font-body); letter-spacing: -0.01em; color: var(--ink-2); text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.hero-nav__links a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.hero-nav__links a.is-active { color: var(--accent-ink); background: rgba(10, 132, 255, 0.1); }

.hero-nav__actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.hero-nav__gh, .hero-nav__dl { min-height: 44px; padding: 0 18px; font-size: 15px; }
.hero-nav__dl { display: none; }

/* ================= stage ================= */
.hero-stage {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 55%, #eaf3ff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; will-change: transform; }
.hero-blob--a { width: 62vw; height: 62vw; left: -16vw; top: -26vw; background: radial-gradient(closest-side, rgba(90, 200, 250, 0.42), rgba(90, 200, 250, 0)); }
.hero-blob--b { width: 54vw; height: 54vw; right: -14vw; top: 4vh; background: radial-gradient(closest-side, rgba(10, 132, 255, 0.17), rgba(10, 132, 255, 0)); }
.hero-blob--c { width: 70vw; height: 40vw; left: 22vw; bottom: -22vw; background: radial-gradient(closest-side, rgba(90, 200, 250, 0.3), rgba(90, 200, 250, 0)); }
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10, 132, 255, 0.2) 1.1px, transparent 1.5px); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 72% 50%, #000, transparent 78%); mask-image: radial-gradient(ellipse 62% 58% at 72% 50%, #000, transparent 78%);
  opacity: 0.55;
}

.hero-inner {
  position: relative; z-index: 1; height: 100%;
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: var(--nav-h) 16px 0;
  display: flex; align-items: center;
}

/* ---------- copy ---------- */
.hero-copy { position: relative; z-index: 3; max-width: 720px; transform-origin: 0% 45%; }
.hero-eyebrow { margin-bottom: 22px; }
.hero-title {
  font-size: clamp(42px, min(6.2vw, 10.6vh), 94px); line-height: 1.03; letter-spacing: -0.048em; margin: 0;
}
.hero-line { display: block; white-space: nowrap; }
.hero-lead { margin-top: 28px; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- network ---------- */
.hero-net { position: absolute; inset: var(--nav-h) 0 24px 0; z-index: 1; pointer-events: none; }
.hero-net__canvas { position: absolute; max-width: none; }
.hero-node, .hero-badge, .hero-mascot { position: absolute; left: 0; top: 0; will-change: transform; }
.hero-node__card {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); box-shadow: var(--shadow-1), 0 14px 34px -14px rgba(10, 132, 255, 0.35);
  white-space: nowrap;
}
.hero-node__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.hero-node__ico svg { width: 20px; height: 20px; }
.hero-node__label { font: 650 15.5px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.hero-node__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 179, 87, 0.18); }

.hero-badge__in {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 11px; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-1); font: 650 12.5px/1 var(--font-body); letter-spacing: -0.005em;
}
.hero-badge__in svg { width: 14px; height: 14px; flex: none; }
.hero-badge--direct { color: var(--accent-ink); border-color: rgba(10, 132, 255, 0.3); }
.hero-badge--relay { color: var(--muted); border-style: dashed; }

.hero-mascot { width: clamp(210px, 20vw, 290px); }
.hero-mascot__pop { position: relative; }
.hero-mascot__follow { will-change: transform; }
.hero-mascot__img { width: 100%; height: auto; transform-origin: 50% 94%; filter: drop-shadow(0 22px 30px rgba(10, 80, 180, 0.22)); }
.hero-mascot__shadow {
  position: absolute; left: 22%; right: 22%; bottom: 3%; height: 6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 40, 90, 0.26), transparent);
}

/* ---------- product shot ---------- */
.hero-shotwrap {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none;
  padding: calc(var(--nav-h) + 8px) 0 28px; perspective: 1800px;
}
.hero-shot { position: relative; margin: 0; width: min(88vw, calc((100vh - 150px) * 1.9)); width: min(88vw, calc((100svh - 150px) * 1.9)); transform-origin: 50% 0%; will-change: transform; }
.hero-shot::before {
  content: ""; position: absolute; inset: -7% -5% -16%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10, 132, 255, 0.3), rgba(90, 200, 250, 0.12) 60%, transparent);
}
.hero-shot__win { border-radius: 20px; box-shadow: 0 2px 6px rgba(11, 27, 51, 0.06), 0 50px 120px -30px rgba(10, 60, 140, 0.45); }
.hero-shot .sf-window__bar { height: 38px; }
.hero-shot .sf-window__bar span { font-size: 13px; }
.hero-shot__view { position: relative; aspect-ratio: 1525 / 800; overflow: hidden; background: #eef6ff; }
/* the screenshot carries its own title bar and margin: crop them so only our frame shows */
.hero-shot__view img { position: absolute; width: 102.3%; max-width: none; height: auto; left: -1.18%; top: -5%; }
.hero-shot__sheen {
  position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
}

/* ---------- scroll hint ---------- */
.hero-scroll {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 600 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); pointer-events: none;
}
.hero-scroll i { display: block; width: 1.5px; height: 34px; border-radius: 2px; background: linear-gradient(var(--accent), transparent); transform-origin: 50% 0; animation: hero-scroll 2s var(--ease-out) infinite; }
@keyframes hero-scroll { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ================= marquee ================= */
.hero-marquee {
  position: relative; z-index: 6; overflow: hidden; padding: 26px 0; background: var(--bg);
  border-block: 1px solid var(--line);
}
.hero-marquee__track {
  display: flex; width: max-content; will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hero-marquee__group { display: flex; margin: 0; padding: 0; list-style: none; flex: none; }
.hero-marquee__group li {
  display: flex; align-items: center; gap: clamp(26px, 3vw, 46px); padding-right: clamp(26px, 3vw, 46px); white-space: nowrap;
  font: 650 clamp(20px, 2.3vw, 32px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink-2);
}
.hero-marquee__group li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); flex: none; }

/* ================= pre-JS hidden states (intro animates them in) ================= */
@media (prefers-reduced-motion: no-preference) {
  .sf-js .hero-in { opacity: 0; }
  .sf-js .hero-title { visibility: hidden; }
  .sf-js .hero-shot { opacity: 0; }
  .sf-js .hero-nav__bar { opacity: 0; }
}

/* ================= tablet tightening ================= */
@media (max-width: 1000px) and (min-width: 761px) {
  .hero-node__ico { width: 30px; height: 30px; } .hero-node__ico svg { width: 17px; height: 17px; }
  .hero-node__card { height: 44px; gap: 8px; } .hero-node__label { font-size: 14px; } .hero-node__dot { display: none; }
  .hero-nav__links a { padding: 0 11px; font-size: 14.5px; }
}

/* ================= stacked layout: mobile + reduced motion (no pin) ================= */
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .hero-stage { height: auto; min-height: 0; padding: calc(var(--nav-h) + 30px) 0 56px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; height: auto; padding-top: 0; }
  .hero-copy { order: 1; max-width: none; }
  .hero-net { order: 2; position: relative; inset: auto; height: clamp(310px, 82vw, 440px); margin-top: 16px; }
  .hero-shotwrap { position: relative; inset: auto; display: block; padding: 20px var(--gutter) 0; perspective: 1200px; pointer-events: auto; }
  .hero-shot { width: 100%; max-width: 1100px; margin-inline: auto; transform-origin: 50% 100%; }
  .hero-scroll { display: none; }
  .hero-dots { -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 60%, #000, transparent 80%); mask-image: radial-gradient(ellipse 80% 40% at 50% 60%, #000, transparent 80%); }
}
@media (max-width: 760px) {
  .hero-nav { top: 8px; }
  .hero-nav__bar { grid-template-columns: 1fr auto; height: 54px; padding: 0 6px 0 12px; }
  .hero-nav__links, .hero-nav__gh { display: none; }
  .hero-nav__dl { display: inline-flex; padding: 0 20px; }
  .hero-inner { padding-inline: 4px; }
  .hero-eyebrow { font-size: 11.5px; margin-bottom: 18px; }
  .hero-eyebrow::before { width: 16px; }
  .hero-title { font-size: min(11.2vw, 52px); letter-spacing: -0.05em; }
  .hero-lead { margin-top: 20px; font-size: 17px; }
  .hero-ctas { margin-top: 26px; gap: 10px; }
  .hero-ctas .sf-btn { flex: 1 1 auto; min-height: 54px; font-size: 16px; padding: 0 22px; }
  .hero-node__card { height: 42px; gap: 7px; padding: 0 12px 0 6px; }
  .hero-node__ico { width: 28px; height: 28px; } .hero-node__ico svg { width: 16px; height: 16px; }
  .hero-node__label { font-size: 13px; } .hero-node__dot { display: none; }
  .hero-badge__in { font-size: 11px; padding: 6px 10px 6px 8px; } .hero-badge__in svg { width: 12px; height: 12px; }
  .hero-mascot { width: clamp(150px, 44vw, 190px); }
  .hero-shot__win { border-radius: 14px; }
  .hero-shot .sf-window__bar { height: 26px; padding: 0 10px; gap: 5px; } .hero-shot .sf-window__bar i { width: 8px; height: 8px; } .hero-shot .sf-window__bar span { font-size: 10px; margin-left: 6px; }
  .hero-marquee { padding: 20px 0; }
}

/* reduced motion: static marquee, nothing hidden */
@media (prefers-reduced-motion: reduce) {
  .hero-marquee__track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); -webkit-mask-image: none; }
  .hero-marquee__group { flex-wrap: wrap; justify-content: center; }
  .hero-marquee__dup { display: none; }
  .hero-scroll i { animation: none; }
}


/* features: intro + pinned 8-step product story. Default = stacked list (mobile / reduced motion / no JS). */
.features { padding-bottom: 0; overflow: clip; }
.features-intro { margin-bottom: clamp(56px, 9vh, 110px); }
.features-title { font-size: clamp(42px, 7.2vw, 108px); max-width: 15ch; }
.features-title .features-w { display: inline-block; }
.features code { font: 500 0.88em var(--font-mono); background: var(--accent-soft); color: var(--accent-ink); padding: 0.1em 0.4em; border-radius: 6px; }

.features-story { padding-bottom: var(--section-y); }
.features-rail, .features-stage { display: none; }
.features-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 9vw, 96px); }
.features-step { display: grid; gap: 22px; min-width: 0; }
.features-num { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.features-h3 { font: 750 clamp(26px, 3vw, 36px)/1.08 var(--font-display); letter-spacing: -0.03em; margin: 8px 0 12px; }
.features-copy p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 46ch; text-wrap: pretty; }
.features-fig { margin: 0; min-width: 0; }
.features-fig .sf-window { border-radius: 14px; }
.features-fig img { aspect-ratio: 1560 / 880; background: var(--accent-soft); }
@media (min-width: 761px) {
  .features-step { grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr); gap: 48px; align-items: center; }
}

/* Chips (only visible in the pinned stage) */
.features-chip {
  position: absolute; z-index: 3; opacity: 0; pointer-events: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 600 13px/1 var(--font-body); letter-spacing: -0.005em;
  box-shadow: 0 10px 30px -8px rgba(11, 27, 51, 0.5);
}
.features-chip b { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex: none; }
.features-chip b::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--sky);
  animation: features-ring 1.8s var(--ease-out) infinite;
}
.features-chip--ok b { background: var(--ok); } .features-chip--ok b::after { border-color: var(--ok); }
.features-chip--live b { background: var(--danger); } .features-chip--live b::after { border-color: var(--danger); }
@keyframes features-ring { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }

/* Pinned desktop story */
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .sf-js .features-story { height: 100vh; min-height: 620px; padding: calc(var(--nav-h) + 8px) 0 28px; display: flex; }
  .sf-js .features-grid { display: grid; grid-template-columns: minmax(290px, 0.7fr) minmax(0, 1.7fr); gap: clamp(28px, 4vw, 72px); align-items: center; height: 100%; }
  .sf-js .features-steps { position: relative; padding-left: 30px; align-self: center; }
  .sf-js .features-rail { display: block; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
  .sf-js .features-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky), var(--accent)); transform: scaleY(0); transform-origin: top; }
  .sf-js .features-list { gap: 4px; }
  .sf-js .features-step { grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 8px 0; opacity: 0.38; transition: opacity 0.45s var(--ease-out); }
  .sf-js .features-step.is-active { opacity: 1; }
  .sf-js .features-num { padding-top: 7px; transition: color 0.3s; }
  .sf-js .features-h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); }
  .sf-js .features-copy p { max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-6px); transition: max-height 0.5s var(--ease-out), opacity 0.4s, transform 0.5s var(--ease-out); font-size: 16px; }
  .sf-js .features-step.is-active .features-copy p { max-height: 7.6em; min-height: 7.6em; opacity: 1; transform: none; margin-top: 8px; }
  .sf-js .features-fig { display: none; }
  .sf-js .features-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; perspective: 1700px; min-width: 0; position: relative; margin-right: calc(-1 * (max(0px, (100vw - 1200px - var(--gutter) * 2) / 2) + var(--gutter) - 48px)); }
  .sf-js .features-tilt { width: min(100%, calc((100vh - var(--nav-h) - 120px) * 1.7727)); transform-style: preserve-3d; }
  .sf-js .features-win { box-shadow: 0 2px 6px rgba(11, 27, 51, 0.06), 0 50px 90px -24px rgba(11, 60, 140, 0.4); }
  .sf-js .features-view { position: relative; aspect-ratio: 1560 / 880; overflow: hidden; background: var(--accent-soft); }
  .sf-js .features-zoom { position: absolute; inset: 0; }
  .sf-js .features-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .sf-js .features-count { position: absolute; right: 2px; bottom: -6px; margin: 0; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
  .sf-js .features-count span { color: var(--ink); font-weight: 600; }
  .sf-js .features-story { padding-bottom: 28px; }
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) and (max-height: 700px) {
  .sf-js .features-copy p { display: none; }
  .sf-js .features-step.is-active .features-copy p { display: block; min-height: 0; }
}
@media (max-width: 760px) {
  .features-story { padding-bottom: 72px; }
  .features-step { gap: 18px; }
  .features-h3 { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .features-chip b::after { animation: none; }
}


/* ===== more: tour video + "And there's more" bento ===== */
.more { overflow-x: clip; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.more-head { margin-bottom: clamp(28px, 4vw, 52px); }
.more-head--sub { margin-top: clamp(80px, 12vw, 160px); display: grid; gap: 18px; }
.more-sub { font-size: clamp(34px, 4.6vw, 64px); }

/* ---- tour ---- */
.more-tour { position: relative; perspective: 1400px; }
.more-tour__win { transform-origin: 50% 0; will-change: transform; border-radius: 18px; background: #0b1b33; }
.more-tour__stage { position: relative; aspect-ratio: 16 / 9; background: #050d1c; }
.more-tour__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.more-tour__sound {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; min-width: 48px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(5, 13, 28, 0.62); color: #fff;
  font: 600 15px/1 var(--font-body); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-out), background 0.2s, border-color 0.2s;
}
.more-tour__sound:hover { transform: translateY(-2px) scale(1.03); background: var(--accent); border-color: transparent; }
.more-tour__ico { width: 22px; height: 22px; flex: none; }
.more-tour__ico--on { display: none; }
.more-tour__sound[aria-pressed="true"] .more-tour__ico--on { display: block; }
.more-tour__sound[aria-pressed="true"] .more-tour__ico--off { display: none; }
.more-tour__sound[aria-pressed="true"] { background: var(--accent); border-color: transparent; }

/* ---- bento ---- */
.more-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.more-cell {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-width: 0;
  padding: clamp(22px, 2.4vw, 34px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.more-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.more-cell--drop { grid-column: span 7; }
.more-cell--rules { grid-column: span 5; background: linear-gradient(160deg, #fff 30%, var(--accent-soft)); }
.more-cell--pipe { grid-column: span 5; }
.more-cell--auto { grid-column: span 7; background: linear-gradient(200deg, #fff 40%, #eaf6ff); }
.more-cell--mcp { grid-column: span 7; }
.more-cell--join { grid-column: span 5; background: linear-gradient(160deg, #fff 30%, var(--accent-soft)); }
.more-cell__t { font: 700 clamp(22px, 2vw, 28px)/1.15 var(--font-display); letter-spacing: -0.025em; margin: 0; }
.more-cell__p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 52ch; text-wrap: pretty; }
.more-cell__p code, .more-ticket { font: 600 0.9em var(--font-mono); background: var(--accent-soft); color: var(--accent-ink); padding: 2px 7px; border-radius: 7px; }
.more-art { position: relative; min-height: 190px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* quick-drop */
.more-art--drop { flex-direction: column; gap: 22px; }
.more-keys { display: flex; align-items: center; gap: 10px; }
.more-keys b { color: var(--muted); font: 600 18px var(--font-mono); }
.more-key {
  display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 58px; padding: 0 16px; border-radius: 14px;
  background: linear-gradient(180deg, #fff, #eef4fc); border: 1px solid var(--line-2); box-shadow: 0 5px 0 #c9d8ec, 0 10px 20px -8px rgba(11, 40, 90, 0.3);
  font: 700 18px var(--font-display); color: var(--ink); transition: transform 0.2s, box-shadow 0.2s;
}
.more-key span { color: var(--muted); margin: 0 2px; font-weight: 500; }
.more-key.is-down { transform: translateY(5px); box-shadow: 0 0 0 #c9d8ec, 0 4px 10px -6px rgba(11, 40, 90, 0.4); background: var(--accent-soft); color: var(--accent-ink); }
.more-cell--drop:hover .more-key { transform: translateY(5px); box-shadow: 0 0 0 #c9d8ec; }
.more-cell--drop:hover .more-key:nth-child(3) { transition-delay: 0.08s; } .more-cell--drop:hover .more-key:nth-child(5) { transition-delay: 0.16s; }
.more-fly { position: relative; width: min(100%, 420px); height: 66px; display: flex; align-items: center; justify-content: space-between; }
.more-thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 9px; border: 2px solid #fff; box-shadow: var(--shadow-1); will-change: transform; }
.more-pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--font-mono); transition: box-shadow 0.3s, transform 0.3s; }
.more-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.more-pill.is-hit { box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.25); transform: scale(1.06); }

/* rules */
.more-art--rules { flex-direction: column; gap: 18px; align-items: flex-start; }
.more-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-1); }
.more-rp { display: inline-block; padding: 8px 12px; border-radius: 10px; background: #f1f6fd; font: 600 14px/1 var(--font-body); color: var(--ink-2); transition: transform 0.3s var(--ease-out); }
.more-rp--tag { background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-mono); }
.more-rp--arrow { background: none; padding: 8px 2px; color: var(--accent); font-size: 18px; }
.more-rp--do { background: var(--accent); color: #fff; }
.more-cell--rules:hover .more-rp { transform: translateY(-3px); }
.more-cell--rules:hover .more-rp:nth-child(2) { transition-delay: 0.05s; } .more-cell--rules:hover .more-rp:nth-child(3) { transition-delay: 0.1s; }
.more-cell--rules:hover .more-rp:nth-child(4) { transition-delay: 0.15s; } .more-cell--rules:hover .more-rp:nth-child(5) { transition-delay: 0.2s; }
.more-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.more-opts span { padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--muted); font: 600 12.5px/1 var(--font-mono); }

/* pipeline */
.more-pipe { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.more-pipe__base { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.more-pipe__line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.more-node rect { fill: #fff; stroke: var(--ink); stroke-width: 2; transition: fill 0.3s; }
.more-node path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.more-cell--pipe:hover .more-node rect { fill: var(--accent-soft); }
.more-cell.is-anim, .more-cell.is-anim * { transition: none !important; }
.more-doc rect { fill: var(--accent); } .more-doc text { fill: #fff; font: 600 10px var(--font-mono); }

/* autopilot */
.more-art--auto { gap: clamp(14px, 3vw, 34px); flex-wrap: wrap; }
.more-inbox { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); font: 600 14px var(--font-mono); }
.more-inbox__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.more-inbox__ring { position: absolute; left: 20px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.more-avatar { width: 92px; height: 92px; overflow: visible; transition: transform 0.4s var(--ease-out); }
.more-avatar__face { fill: var(--accent); }
.more-eye { fill: #fff; transform-box: fill-box; transform-origin: center; }
.more-avatar__mouth { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.more-cell--auto:hover .more-avatar { transform: rotate(-6deg) scale(1.08); }
.more-cell--auto:hover .more-eye { animation: more-blink 0.5s 1; }
@keyframes more-blink { 50% { transform: scaleY(0.1); } }
.more-bubble { padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: var(--ink); color: #fff; font: 500 14px/1.3 var(--font-body); transform-origin: 0 100%; }

/* mcp terminal */
.more-art--mcp { align-items: stretch; justify-content: stretch; }
.more-term { width: 100%; padding: 18px 20px; border-radius: 18px; background: #08142a; color: #dbe8ff; font: 500 14px/1.7 var(--font-mono); }
.more-term__h { margin: 0 0 6px; color: var(--sky); }
.more-term__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.more-term__list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s, transform 0.3s var(--ease-out); }
.more-term__list li::before { content: "▸ "; color: var(--accent); }
.more-term__list li:hover { color: #fff; transform: translateX(6px); }

/* join */
.more-art--join { flex-direction: column; gap: 22px; }
.more-flap { display: flex; gap: 6px; perspective: 600px; }
.more-flap span { position: relative; display: grid; place-items: center; width: 40px; height: 58px; border-radius: 8px; background: var(--ink); color: #fff; font: 700 30px/1 var(--font-mono); overflow: hidden; }
.more-flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255, 255, 255, 0.14); }
.more-flap .more-flap__dash { width: 24px; background: transparent; color: var(--ink); }
.more-flap .more-flap__dash::after { display: none; }
.more-join2 { display: flex; align-items: center; gap: 18px; }
.more-ticket { font-size: 17px; padding: 8px 12px; }
.more-qr { display: grid; grid-template-columns: repeat(9, 7px); gap: 2px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); transition: transform 0.4s var(--ease-out); }
.more-qr i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--ink); }
.more-qr i.o { background: transparent; }
.more-cell--join:hover .more-qr { transform: rotate(6deg) scale(1.08); }

@media (max-width: 960px) {
  .more-cell--drop, .more-cell--rules, .more-cell--pipe, .more-cell--auto, .more-cell--mcp, .more-cell--join { grid-column: span 12; }
}
@media (max-width: 760px) {
  .more-tour__win { border-radius: 14px; }
  .more-tour__sound { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .more-term__list { grid-template-columns: 1fr; }
  .more-term { font-size: 13px; }
  .more-key { min-width: 48px; height: 50px; padding: 0 12px; font-size: 16px; }
  .more-flap span { width: 34px; height: 50px; font-size: 26px; }
  .more-art { min-height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .more-cell, .more-cell *, .more-tour__sound { transition: none !important; animation: none !important; }
}


/* ===== why (night, pinned motion reel) ===== */
.why { padding-block: 0; background: var(--night); overflow: clip; }
.why-defs { position: absolute; width: 0; height: 0; }
.why-panel { position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 50% at 78% 30%, rgba(10, 132, 255, 0.16), transparent 70%), radial-gradient(50% 40% at 12% 80%, rgba(90, 200, 250, 0.08), transparent 70%), var(--night); }
.why-pin { position: relative; z-index: 1; }
.why svg { overflow: visible; }

/* titles */
.why-title { font: 800 clamp(40px, min(6.8vw, 12.5vh), 104px)/1.08 var(--font-display); letter-spacing: -0.045em; margin: 0 0 clamp(16px, 3vh, 34px); color: var(--night-ink); text-wrap: balance; }
.why-title--long { font-size: clamp(36px, min(5.4vw, 10vh), 86px); }
.why-title--xl { font-size: clamp(44px, min(9vw, 14vh), 150px); line-height: 1.02; }
.why-title { -webkit-text-stroke: 1.2px var(--night-ink); }
.why-o { color: var(--sky); -webkit-text-stroke: 1.2px var(--sky); }
.why-mit { display: block; font-size: 1.3em; }
.sf-js .why-title { opacity: 0; }
.why-ln { overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.why-eb { color: var(--sky); }
.why-cap { margin: clamp(14px, 2.6vh, 28px) 0 0; color: var(--night-muted); max-width: 56ch; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; }
.why-cap--b { display: flex; flex-wrap: wrap; gap: 8px 26px; max-width: none; font: 500 13px/1.4 var(--font-mono); color: var(--sky); }
.why-cap--b span { position: relative; }
.why-cap--b span + span::before { content: ""; position: absolute; left: -15px; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: var(--night-muted); }

/* static layout (mobile / reduced / before JS): scenes are stacked blocks */
.why-scene { padding-block: clamp(64px, 10vh, 110px); }
.why-scene + .why-scene { border-top: 1px solid var(--night-line); }
.why-steps { display: none; }
.why-vis { position: relative; margin-top: 8px; }

/* desktop pinned stage (class added by why.js) */
.why-fx { background: transparent; padding-bottom: 24vh; }
.why-fx .why-pin { height: 100vh; min-height: 640px; overflow: clip; }
.why-fx .why-stage { position: relative; height: 100%; }
.why-fx .why-scene { position: absolute; inset: 0; display: flex; align-items: center; padding: calc(var(--nav-h) + 1vh) 0 3vh; border: 0; }
.why-fx .why-scene + .why-scene { border: 0; }
.why-fx .why-in { padding-right: max(var(--gutter), 72px); }
.why-fx .why-vis { height: clamp(250px, 41vh, 430px); margin-top: 0; }
.why-fx .why-steps { display: flex; flex-direction: column; position: absolute; z-index: 5; right: clamp(6px, 1.4vw, 22px); top: 50%; transform: translateY(-50%); }
.why-steps button { position: relative; width: 44px; height: 38px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--night-muted); }
.why-steps i { grid-area: 1/1; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.5; transition: transform 0.4s var(--ease-out), background 0.3s, opacity 0.3s; }
.why-steps span { grid-area: 1/1; font: 600 11px/1 var(--font-mono); text-transform: uppercase; transform: translateX(-20px); opacity: 0; transition: opacity 0.3s; }
.why-steps button:hover span, .why-steps button.is-on span { opacity: 1; }
.why-steps button.is-on { color: var(--sky); }
.why-steps button.is-on i { transform: scale(1.9); opacity: 1; background: var(--sky); box-shadow: 0 0 0 6px rgba(90, 200, 250, 0.16); }

/* a: dots */
.why-dots { height: 260px; }
.why-fx .why-dots { height: clamp(250px, 41vh, 430px); }
.why-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.why-dev { position: absolute; top: 50%; margin-top: -24px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--night-2); border: 1px solid rgba(90, 200, 250, 0.35); font: 600 15px/1 var(--font-body); color: var(--night-ink); white-space: nowrap; box-shadow: 0 0 40px -8px rgba(10, 132, 255, 0.5); }
.why-dev svg { width: 22px; height: 22px; color: var(--sky); }
.why-dev--l { left: 0; } .why-dev--r { right: 0; }
.why-gone { position: absolute; left: 0; right: 0; margin-inline: auto; width: max-content; top: calc(50% + 34px); font-size: 12.5px; color: var(--sky); letter-spacing: 0.06em; text-transform: uppercase; }

/* b: link */
.why-link { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.7fr) minmax(110px, 1fr); align-items: center; gap: clamp(6px, 2vw, 28px); height: auto !important; min-height: 190px; }
.why-card { display: grid; justify-items: center; gap: 4px; padding: 22px 12px; text-align: center; border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--night-line); }
.why-card svg { width: 44px; height: 44px; color: var(--sky); margin-bottom: 4px; }
.why-card b { font: 700 clamp(15px, 1.4vw, 19px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.why-card small { color: var(--night-muted); font-size: 13px; }
.why-mid { position: relative; }
.why-wire { width: 100%; height: auto; }
.why-wire path { fill: none; stroke-linecap: round; stroke-width: 3; }
.why-w-direct { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(10, 132, 255, 0.8)); }
.why-w-relay { stroke: var(--night-muted); stroke-dasharray: 0.018 0.03; opacity: 0; animation: why-march 1.4s linear infinite; }
@keyframes why-march { to { stroke-dashoffset: -0.048; } }
.why-pkt--d { fill: var(--sky); } .why-pkt--r { fill: #fff; opacity: 0; }
.why-lock { position: absolute; left: calc(50% - 19px); top: calc(62.5% - 19px); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 1.5px solid var(--sky); color: var(--sky); box-shadow: 0 0 24px rgba(90, 200, 250, 0.4); }
.why-lock svg { width: 18px; height: 18px; }
.why-relaynode { position: absolute; left: 0; right: 0; margin-inline: auto; width: max-content; top: calc(17.5% - 44px); padding: 5px 11px; border-radius: 999px; border: 1px dashed var(--night-muted); font-size: 12px; color: var(--night-muted); opacity: 0; }
.why-badges { position: absolute; left: 0; right: 0; top: calc(62.5% + 30px); display: grid; justify-items: center; }
.why-badge { grid-area: 1/1; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; font: 600 clamp(13px, 1.1vw, 15px)/1 var(--font-body); white-space: nowrap; background: rgba(10, 132, 255, 0.16); border: 1px solid rgba(90, 200, 250, 0.4); }
.why-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 179, 87, 0.2); }
.why-badge[data-k="1"] .dot { background: var(--sky); box-shadow: 0 0 0 4px rgba(90, 200, 250, 0.2); }
.why-badge[data-k="2"] .dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(255, 159, 10, 0.2); }
.why-badge:not([data-k="0"]) { opacity: 0; }

/* c: file tree */
.why-tree { display: grid; grid-template-columns: 1fr minmax(48px, 10%) 1fr; align-items: start; }
.why-pc { padding: 14px 18px 16px; border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--night-line); }
.why-pc header { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 12.5px; color: var(--night-muted); }
.why-pc header svg { width: 18px; height: 18px; color: var(--sky); }
.why-ft, .why-kids { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.why-ft li { position: relative; line-height: 25px; }
.why-f { padding-left: 22px; }
.why-f::before { content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 9px; border-radius: 2px; border: 1.5px solid currentColor; opacity: 0.8; }
.why-f--root { color: var(--sky); font-weight: 600; }
.why-kids { margin: 2px 0 0 -6px; padding-left: 28px; font-weight: 400; }
.why-sync { color: #cfe8ff; padding-left: 20px; }
.why-sync::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.why-local { color: var(--night-muted); padding-left: 24px; }
.why-local svg { position: absolute; left: 0; top: 4px; width: 17px; height: 17px; }
.why-local em { font-style: normal; font-size: 12px; color: var(--warn); margin-left: 6px; }
.why-gap { align-self: center; display: grid; place-items: center; color: var(--sky); }
.why-gap svg { width: 70%; height: 20px; }
.why-f--dim { color: var(--night-muted); }

/* d: MCP */
.why-mcp { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.why-agents, .why-tools { list-style: none; margin: 0; padding: 0; }
.why-agents { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.why-pill { padding: 12px 22px; border-radius: 999px; font: 650 16px/1 var(--font-display); background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(90, 200, 250, 0.6); white-space: nowrap; }
.why-hub { position: relative; z-index: 2; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #4aa8ff, var(--accent) 60%, #0a5cc4); box-shadow: 0 0 0 10px rgba(10, 132, 255, 0.14), 0 0 70px rgba(10, 132, 255, 0.55); }
.why-hub b { font: 800 30px/1 var(--font-display); letter-spacing: -0.04em; }
.why-hub small { font-size: 11.5px; opacity: 0.85; margin-top: 3px; }
.why-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.why-tools li { padding: 9px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.2; background: var(--night-2); border: 1px solid rgba(90, 200, 250, 0.3); color: #d7ecff; white-space: nowrap; }
.why-mcp-lines { display: none; }
.why-fx .why-mcp { display: block; }
.why-fx .why-mcp-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.why-fx .why-mcp-lines path { fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-linecap: round; opacity: 0.7; }
.why-fx .why-hub { position: absolute; left: 34%; top: 50%; margin: -56px 0 0 -56px; }
.why-fx .why-pill { position: absolute; left: 34%; top: 50%; }
.why-fx .why-tools { position: absolute; top: 0; bottom: 0; right: 0; left: 52%; display: grid; grid-template-columns: repeat(2, max-content); grid-auto-rows: max-content; gap: 14px; align-content: center; justify-content: end; }
.why-fx .why-tools li { z-index: 2; position: relative; }

/* e: log to handoff */
.why-log { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; }
.why-logwin { position: relative; height: 220px; overflow: hidden; border-radius: var(--r-md); background: #06101f; border: 1px solid var(--night-line); padding: 12px 16px; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.why-fx .why-logwin { height: 100%; }
.why-logrows p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--night-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.why-logrows b { color: var(--sky); font-weight: 500; margin-right: 10px; }
.why-handoff { padding: 22px 24px 24px; border-radius: var(--r-lg); background: var(--night-ink); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(10, 132, 255, 0.6); font-size: clamp(13px, 1.2vw, 16px); }
.why-handoff header { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; color: var(--accent-ink); }
.why-hdot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.why-handoff p { margin: 0 0 8px; line-height: 1.45; }
.why-handoff b { display: inline-block; min-width: 4.2em; color: var(--accent); }

/* f: finale */
.why-scene--end { overflow: clip; }
.why-rings { position: absolute; top: 0; bottom: 0; margin-block: auto; right: -9%; width: min(78vh, 680px); aspect-ratio: 1; pointer-events: none; }
.why-rings circle { fill: none; stroke: var(--sky); stroke-width: 1.2; opacity: 0.35; stroke-dasharray: 1; stroke-dashoffset: 0; }
.why-rings circle:nth-child(2) { stroke-dasharray: 0.04 0.02; opacity: 0.25; }
.why-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: clamp(22px, 4vh, 44px); }
.why-cta p { margin: 0; color: var(--night-muted); max-width: 34ch; }

@media (max-height: 820px) { .why-ft, .why-kids { font-size: 13px; } .why-ft li { line-height: 22px; } .why-f::before { top: 6px; } .why-sync::before { top: 7px; } .why-pc { padding: 10px 16px 12px; } }
@media (max-width: 760px) {
  .why-title { font-size: clamp(38px, 12vw, 56px); }
  .why-title--long { font-size: clamp(34px, 10.5vw, 48px); }
  .why-title--xl { font-size: clamp(44px, 14vw, 72px); }
  .why-dots { height: 210px; }
  .why-dev { height: 42px; padding: 0 12px; font-size: 13px; gap: 7px; margin-top: -21px; } .why-dev svg { width: 17px; height: 17px; }
  .why-link { grid-template-columns: 96px minmax(0, 1fr) 96px; gap: 4px; }
  .why-card { padding: 16px 6px; } .why-card svg { width: 32px; height: 32px; } .why-card small { display: none; }
  .why-badge { padding: 7px 11px; font-size: 12px; }
  .why-tree { grid-template-columns: 1fr; } .why-gap { height: 40px; } .why-gap svg { width: 36px; height: 20px; transform: rotate(90deg); }
  .why-local em { display: block; margin: -4px 0 0; }
  .why-log { grid-template-columns: 1fr; gap: 20px; } .why-logwin { height: 170px; }
  .why-rings { width: 120vw; right: -50%; opacity: 0.6; }
  .why-cta .sf-btn { width: 100%; }
}


/* ===== requirements ===== */
.requirements { overflow: clip; background: linear-gradient(180deg, var(--bg) 0%, #eaf3ff 55%, var(--bg) 100%); }
.requirements-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 96px); }
.requirements-title { margin-bottom: 22px; }

/* ---------- asymmetric platform stage ---------- */
.requirements-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); align-items: start; }
.requirements-slot { position: relative; perspective: 1100px; }
.requirements-slot--mac { grid-column: 1 / 8; }
.requirements-slot--win { grid-column: 8 / 13; margin-top: clamp(80px, 11vw, 168px); }

.requirements-num {
  position: absolute; z-index: 0; top: -0.62em; font: 800 clamp(120px, 17vw, 260px)/0.8 var(--font-display); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 2px rgba(10, 132, 255, 0.34); pointer-events: none; user-select: none; will-change: transform;
}
.requirements-slot--mac .requirements-num { right: -0.04em; }
.requirements-slot--win .requirements-num { left: -0.02em; }

.requirements-panel {
  position: relative; z-index: 1; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r-xl);
  transform-style: preserve-3d; will-change: transform;
}
.requirements-panel--mac { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.requirements-panel--win {
  color: #fff; background: radial-gradient(120% 90% at 100% 0%, #3aa0ff 0%, transparent 55%), linear-gradient(160deg, #0a84ff 0%, #0752bd 100%);
  box-shadow: 0 2px 6px rgba(11, 27, 51, 0.1), 0 34px 70px -18px rgba(10, 80, 190, 0.55);
}
.requirements-panel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 56px); }
.requirements-glyph { width: clamp(52px, 5vw, 72px); height: auto; color: var(--ink); transform: translateZ(40px); }
.requirements-panel--win .requirements-glyph { color: #fff; }
.requirements-kicker { margin: 0; font: 600 12px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.requirements-panel--win .requirements-kicker { color: rgba(255, 255, 255, 0.72); }
.requirements-name { font: 800 clamp(40px, 5.4vw, 80px)/0.95 var(--font-display); letter-spacing: -0.045em; margin: 0 0 clamp(22px, 3vw, 36px); transform: translateZ(28px); }

.requirements-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; transform: translateZ(14px); }
.requirements-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.35; }
.requirements-panel--win .requirements-item { border-top-color: rgba(255, 255, 255, 0.22); }
.requirements-item strong { font-weight: 650; letter-spacing: -0.01em; }
.requirements-tick { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.requirements-panel--win .requirements-tick { stroke: #fff; }
.requirements-tick__ring { opacity: 0.35; stroke-dasharray: 1; stroke-dashoffset: 0; }
.requirements-tick__mark { stroke-width: 2.8; stroke-dasharray: 1; stroke-dashoffset: 0; }

.requirements-code { font: 500 0.82em/1 var(--font-mono); padding: 0.28em 0.55em; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.requirements-panel--win .requirements-code { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* pre-JS (sf-js) hidden states; reduced motion keeps final states */
.sf-js .requirements-item { opacity: 0; }
.sf-js .requirements-tick__ring, .sf-js .requirements-tick__mark { stroke-dashoffset: 1; }
.sf-js .requirements-wire__line { stroke-dashoffset: 1; }
@media (prefers-reduced-motion: reduce) {
  .sf-js .requirements-item { opacity: 1; }
  .sf-js .requirements-tick__ring, .sf-js .requirements-tick__mark, .sf-js .requirements-wire__line { stroke-dashoffset: 0; }
}

/* ---------- slim row ---------- */
.requirements-row { display: grid; grid-template-columns: 0.85fr 1.7fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: clamp(64px, 9vw, 130px); }
.requirements-cell { border-top: 2px solid var(--ink); padding-top: 18px; min-width: 0; }
.requirements-tag { margin: 0 0 14px; font: 600 12px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.requirements-cell__h { font: 700 clamp(22px, 2.1vw, 30px)/1.1 var(--font-display); letter-spacing: -0.03em; margin: 0 0 18px; }
.requirements-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.requirements-pills .sf-chip { padding: 10px 16px; font-size: 15px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.requirements-net { margin: 0; display: grid; gap: 14px; }
.requirements-net > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.requirements-net dt { font: 650 15px/1.4 var(--font-body); color: var(--ink); }
.requirements-net dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.requirements-net .requirements-code { font-size: 0.85em; }
.requirements-src { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 20px; }
.requirements-src .requirements-code { font-size: 17px; padding: 0.4em 0.7em; }
.requirements-plus { font: 600 20px/1 var(--font-display); color: var(--muted); }

/* ---------- connector + CTA ---------- */
.requirements-end { display: flex; flex-direction: column; align-items: center; margin-top: clamp(56px, 8vw, 110px); }
.requirements-wire { width: 4px; height: clamp(110px, 16vh, 180px); overflow: visible; }
.requirements-wire line { fill: none; stroke-linecap: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.requirements-wire__rail { stroke: var(--line-2); }
.requirements-wire__line { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 0; }
.requirements-go { margin-top: -2px; }
.requirements-go span { display: inline-block; transition: transform 0.4s var(--ease-out); }
.requirements-go:hover span { transform: translateY(4px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .requirements-row { grid-template-columns: 1fr 1fr; }
  .requirements-cell--net { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 760px) {
  .requirements-stage { display: flex; flex-direction: column; gap: 56px; }
  .requirements-slot--win { margin-top: 0; }
  .requirements-slot { perspective: none; }
  .requirements-num { font-size: clamp(110px, 38vw, 170px); top: -0.58em; -webkit-text-stroke-width: 1.5px; }
  .requirements-slot--mac .requirements-num { right: 4px; }
  .requirements-slot--win .requirements-num { left: auto; right: 4px; }
  .requirements-head { margin-bottom: 72px; }
  .requirements-row { grid-template-columns: 1fr; gap: 36px; }
  .requirements-cell--net { order: 0; grid-column: auto; }
  .requirements-net > div { grid-template-columns: 1fr; gap: 2px; }
  .requirements-go { white-space: normal; text-align: center; padding-block: 12px; }
  .requirements-glyph, .requirements-name, .requirements-list { transform: none; }
}


/* ===== download ===== */
.download {
  --dl-pad: clamp(24px, 3vw, 36px);
  overflow-x: clip;
  padding-bottom: calc(var(--section-y) + 40px);
  background: linear-gradient(180deg, var(--bg) 0%, #edf6ff 60%, #e3f0ff 100%);
}
/* dusk: the page eases into the dark finale */
.download::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: clamp(120px, 20vh, 200px); pointer-events: none; z-index: 0;
  background: linear-gradient(to bottom, rgba(8, 30, 66, 0) 0%, rgba(8, 28, 62, 0.55) 50%, rgba(5, 13, 28, 0.94) 85%, var(--night) 100%);
}
.download-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
.download-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.download-blob--a { width: 44vw; aspect-ratio: 1; right: -12vw; top: 4%; background: radial-gradient(circle, rgba(90, 200, 250, 0.5), transparent 68%); }
.download-blob--b { width: 38vw; aspect-ratio: 1; left: -14vw; top: 46%; background: radial-gradient(circle, rgba(10, 132, 255, 0.28), transparent 66%); }
.download-grid-bg {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 22%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 22%, #000 0%, transparent 72%);
}
.download-wrap { position: relative; z-index: 1; }

/* mascot peeking in from the right edge */
.download-mascot {
  --m: clamp(210px, 26vw, 400px);
  position: absolute; z-index: 0; top: clamp(60px, 9vh, 120px); right: calc(var(--m) * -0.4); width: var(--m); pointer-events: none;
}
.download-mascot__peek { transform-origin: 60% 90%; }
.download-mascot img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(10, 80, 190, 0.28)); animation: download-bob 5.5s ease-in-out infinite; transform: rotate(-9deg); }
@keyframes download-bob { 0%, 100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-14px) rotate(-5deg); } }

/* heading */
.download-head { position: relative; padding-bottom: clamp(28px, 4vw, 48px); }
.download-title { font-size: clamp(60px, 11.5vw, 176px); line-height: 0.92; }
.download-line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.12em; margin: -0.04em -0.06em -0.12em; }
.download-line--grad { color: var(--accent); }
.download-lead { margin-top: clamp(18px, 2.4vw, 28px); }
.download-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; min-height: 0; }
.download-meta [hidden] { display: none !important; }
.download-ver { font-family: var(--font-mono); font-weight: 700; }
.download-notice {
  margin: 0; max-width: 62ch; padding: 11px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.78); border: 1px solid var(--line-2);
}
.download-notice a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; }

/* segmented control */
.download-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: min(100%, 380px); padding: 6px; margin-bottom: 22px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line-2); box-shadow: var(--shadow-1);
}
.download-switch__pill {
  position: absolute; left: 6px; top: 6px; bottom: 6px; width: calc(50% - 6px); border-radius: 999px; z-index: 0;
  background: linear-gradient(135deg, var(--accent), #2f9bff); box-shadow: 0 8px 22px -6px rgba(10, 132, 255, 0.65);
  transition: transform 0.65s cubic-bezier(0.34, 1.35, 0.4, 1);
}
.download-switch[data-active="win"] .download-switch__pill { transform: translateX(100%); }
.download-switch button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; font: 650 16px/1 var(--font-body); letter-spacing: -0.01em;
  transition: color 0.35s;
}
.download-switch button svg { width: 19px; height: 19px; flex: none; }
.download-switch button[aria-selected="true"] { color: #fff; }
.download-switch button:not([aria-selected="true"]):hover { color: var(--accent-ink); }

/* panels: stacked in one cell, morph between each other */
.download-stage { display: grid; }
.download-panel { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; pointer-events: none; will-change: clip-path, opacity, filter; }
.download-panel.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.download-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }

.download-way {
  display: flex; flex-direction: column; gap: 0; min-width: 0; padding: var(--dl-pad); border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.download-way__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.download-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent-ink); font: 700 15px/1 var(--font-display);
}
.download-badge { margin-left: auto; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.download-way__sub { margin: 10px 0 20px; color: var(--muted); font-size: 15.5px; }
.download-way__sub strong { color: var(--ink); font-weight: 650; }

.download-code { padding: 18px 14px 18px 20px; }
.download-code .sf-prompt { flex: none; margin-right: 0; font-weight: 700; }
.download-code code { color: #eaf3ff; }
.download-code code.is-typing::after { content: ""; display: inline-block; width: 8px; height: 1.15em; margin-left: 2px; vertical-align: text-bottom; background: var(--sky); animation: download-caret 0.9s steps(1) infinite; }
@keyframes download-caret { 50% { opacity: 0; } }
.download-checks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 18px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px dashed var(--line-2); font-size: 14.5px; color: var(--ink-2); }
.download-checks li { display: inline-flex; align-items: center; gap: 8px; }
.download-checks li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9' fill='none' stroke='%230060d0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.download-checks code, .download-cli code { font: 600 0.92em var(--font-mono); padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }

/* the big download card with a spinning conic border */
.download-file {
  position: relative; display: block; margin-top: auto; padding: 2px; border-radius: 24px; color: #fff; text-decoration: none; isolation: isolate; will-change: transform;
}
.download-file__ring, .download-file__halo { position: absolute; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.download-file__ring { inset: 0; }
.download-file__halo { inset: -2px; filter: blur(16px); opacity: 0.75; }
.download-file__spin {
  position: absolute; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, rgba(10, 132, 255, 0) 0 38%, var(--accent) 56%, var(--sky) 76%, #fff 88%, rgba(255, 255, 255, 0) 94% 100%);
  animation: download-spin 3.6s linear infinite;
}
@keyframes download-spin { to { rotate: 1turn; } }
.download:not(.is-live) .download-file__spin { animation-play-state: paused; }
.download-file__body {
  position: relative; display: flex; align-items: center; gap: 20px; padding: clamp(20px, 2.4vw, 28px); border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, #10264b 0%, #08142a 62%); transition: background 0.3s;
}
.download-file:hover .download-file__body { background: radial-gradient(120% 140% at 0% 0%, #163463 0%, #0a1a36 62%); }
.download-file:focus-visible { outline-offset: 4px; border-radius: 24px; }
.download-file__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.download-file__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 750 clamp(20px, 1.9vw, 25px)/1.15 var(--font-display); letter-spacing: -0.025em; }
.download-file__name { font: 500 13.5px/1.4 var(--font-mono); color: var(--sky); overflow-wrap: anywhere; }
.download-file__meta { font-size: 14px; line-height: 1.45; color: var(--night-muted); }
.download-size { font: 500 13px/1 var(--font-mono); color: var(--night-muted); letter-spacing: 0; }
.download-size:empty { display: none; }
.download-size::before { content: "· "; }
.download-file__label .download-size { font-weight: 500; }

/* download icon: arrow bobs on hover; ring draws on click (decorative) */
.download-ico { position: relative; flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(145deg, #1b8fff, #0a6fe0); box-shadow: 0 10px 28px -8px rgba(10, 132, 255, 0.8); }
.download-ico__glyph { width: 32px; height: 32px; overflow: visible; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.download-ico__ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; transform: rotate(-90deg); overflow: visible; }
.download-ico__ring circle { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.download-ico__check { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.download-ico__arrow { transform-box: fill-box; }
.download-file:hover .download-ico__arrow, .download-file:focus-visible .download-ico__arrow { animation: download-arrow 1s var(--ease-out) infinite; }
@keyframes download-arrow { 0% { transform: translateY(-7px); opacity: 0; } 35% { opacity: 1; } 70%, 100% { transform: translateY(3px); opacity: 1; } }
.download-file:hover .download-ico { transform: scale(1.06); }
.download-ico { transition: transform 0.45s var(--ease-out); }

.download-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.download-also__file { display: inline-flex; align-items: baseline; gap: 6px; min-height: 28px; font: 500 13px/1.3 var(--font-mono); color: var(--accent-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.download-also__file .download-size { color: var(--muted); }
.download-swap { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: 650 14px/1 var(--font-body); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; transition: color 0.2s; }
.download-swap:hover { color: var(--accent); text-decoration-color: currentColor; }

/* CLI only */
.download-cli { margin-top: 20px; padding: var(--dl-pad); border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.78); }
.download-cli__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.download-cli__head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.download-cli__files { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 20px; }
.download-cli__btn { justify-content: space-between; gap: 12px; padding: 0 20px; white-space: normal; text-align: left; }
.download-cli__name { font: 500 14px/1.3 var(--font-mono); overflow-wrap: anywhere; }
.download-cli__btn .download-size { color: var(--muted); }
.download-cli__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.download-cli__foot span { display: inline-flex; align-items: center; gap: 9px; }
.download-cli__foot svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.download-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--accent-ink); text-underline-offset: 4px; }
.download-link:hover { color: var(--accent); }

/* uninstall (collapsible) */
.download-uninstall { margin-top: 18px; }
.download-uninstall__toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.7); font: 650 15px/1 var(--font-body); color: var(--ink-2); transition: background 0.2s, border-color 0.2s;
}
.download-uninstall__toggle:hover { background: #fff; border-color: rgba(11, 27, 51, 0.28); }
.download-uninstall__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease-out); }
.download-uninstall__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.download-uninstall__body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.55s var(--ease-out), visibility 0s linear 0.55s; }
.download-uninstall__toggle[aria-expanded="true"] + .download-uninstall__body { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.download-uninstall__inner { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.4s; }
.download-uninstall__toggle[aria-expanded="true"] + .download-uninstall__body .download-uninstall__inner { opacity: 1; transition-delay: 0.1s; }
.download-uninstall__row { display: grid; gap: 8px; margin-top: 16px; }
.download-os { font: 600 12.5px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.download-uninstall__note { margin: 16px 0 4px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 960px) {
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .download-mascot { top: 40px; }
}
@media (max-width: 760px) {
  .download { --dl-pad: 20px; }
  .download-title { font-size: clamp(54px, 17vw, 84px); }
  .download-mascot { --m: 190px; top: 24px; right: -78px; opacity: 0.9; }
  .download-switch { width: 100%; }
  .download-way { border-radius: var(--r-lg); }
  .download-badge { margin-left: 0; }
  .download-code { align-items: flex-start; flex-wrap: wrap; padding: 16px; font-size: 13px; }
  .download-code code { flex: 1 1 100%; order: 3; white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
  .download-code .sf-prompt { order: 1; }
  .download-code .sf-copy { order: 2; margin-left: auto; }
  .download-file__body { gap: 14px; }
  .download-ico { width: 56px; height: 56px; }
  .download-ico__glyph { width: 27px; height: 27px; }
  .download-cli__foot { flex-direction: column; align-items: flex-start; }
  .download::after { height: 120px; }
  .download { padding-bottom: calc(var(--section-y) + 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .download-switch__pill, .download-uninstall__body, .download-uninstall__inner, .download-uninstall__toggle svg { transition: none; }
  .download-file__spin, .download-mascot img { animation: none; }
  .download-file:hover .download-ico__arrow { animation: none; }
}


/* ===== thanks (finale + footer) ===== */
.thanks { padding: 0; overflow-x: clip; background: var(--night); }

.thanks-stage {
  position: relative; display: grid; place-items: center; height: 100vh; height: 100svh; overflow: hidden;
  padding: calc(var(--nav-h) * 0.6) var(--gutter) 24px;
}
.thanks-sky {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 46% at 50% 58%, rgba(10, 132, 255, 0.34), transparent 70%),
    radial-gradient(30% 30% at 82% 18%, rgba(90, 200, 250, 0.16), transparent 70%),
    radial-gradient(28% 30% at 12% 80%, rgba(10, 132, 255, 0.14), transparent 70%);
}
.thanks-sky::after {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, rgba(234, 242, 255, 0.8), transparent 60%), radial-gradient(1px 1px at 90px 120px, rgba(234, 242, 255, 0.6), transparent 60%), radial-gradient(1.5px 1.5px at 150px 60px, rgba(90, 200, 250, 0.7), transparent 60%);
  background-size: 190px 170px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}

/* crew constellation behind the type */
.thanks-net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.thanks-link, .thanks-packet { fill: none; stroke-linecap: round; }
.thanks-link { stroke: rgba(90, 200, 250, 0.42); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 0; }
.thanks-packet { stroke: #fff; stroke-width: 3; stroke-dasharray: 3.5 96.5; stroke-dashoffset: 0; opacity: 0; filter: drop-shadow(0 0 4px rgba(90, 200, 250, 0.95)); }
.thanks-stage.is-linked .thanks-packet { opacity: 1; animation: thanks-flow 3.4s linear infinite; }
.thanks-stage.is-linked .thanks-packet--b { animation-duration: 4.1s; animation-delay: -1.2s; }
.thanks-stage.is-linked .thanks-packet--c { animation-duration: 3.8s; animation-delay: -2.4s; }
@keyframes thanks-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
.thanks:not(.is-live) .thanks-packet, .thanks:not(.is-live) .thanks-dot i::after { animation-play-state: paused; }
.thanks-dots { position: absolute; inset: 0; pointer-events: none; }
.thanks-dot { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.thanks-dot i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 5px rgba(90, 200, 250, 0.18), 0 0 26px 4px rgba(10, 132, 255, 0.7); }
.thanks-dot i::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--sky); animation: thanks-ping 2.6s var(--ease-out) infinite; }
.thanks-dot:nth-child(2) i::after { animation-delay: -0.9s; } .thanks-dot:nth-child(3) i::after { animation-delay: -1.7s; }
@keyframes thanks-ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(4.2); opacity: 0; } }
.thanks-dot b { position: absolute; left: 50%; top: 20px; translate: -50% 0; white-space: nowrap; font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); }

/* centre column */
.thanks-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 100%; }
.thanks-eyebrow { margin-bottom: clamp(10px, 2vh, 20px); color: var(--sky); }
.thanks-title { font-size: clamp(40px, min(7.6vw, 12.4vh), 120px); line-height: 0.96; color: var(--night-ink); perspective: 900px; }
.thanks-line { display: block; }
.thanks-line--brand { color: var(--sky); }
.thanks-title .thanks-word { display: inline-block; white-space: nowrap; }
.thanks-title .thanks-char { display: inline-block; will-change: transform, opacity; transform-style: preserve-3d; }
.thanks-mascot {
  position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  height: clamp(190px, 37vh, 400px); aspect-ratio: 569 / 539; margin-block: -3vh -4vh; transform-origin: 50% 90%;
}
.thanks-mascot:focus-visible { outline-offset: -6px; border-radius: 40px; }
.thanks-mascot__wave, .thanks-mascot__hop { display: block; width: 100%; height: 100%; }
.thanks-mascot__wave { transform-origin: 52% 88%; }
.thanks-mascot__hop { transform-origin: 50% 88%; }
.thanks-mascot img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 44px rgba(10, 132, 255, 0.5)); animation: thanks-idle 4.2s ease-in-out infinite; user-select: none; -webkit-user-drag: none; }
@keyframes thanks-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-1.2deg); } }
.thanks-hint { margin: 0; font: 600 12px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-muted); }
.thanks-confetti { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }

/* closing block */
.thanks-close { position: relative; z-index: 1; background: linear-gradient(180deg, var(--night) 0%, #040a16 100%); }
.thanks-close > .sf-container { display: flex; flex-direction: column; align-items: center; gap: 30px; padding-top: clamp(40px, 7vh, 88px); padding-bottom: clamp(64px, 10vh, 112px); text-align: center; }
.thanks-made { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.thanks-made span { font: 600 13px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.thanks-made strong { font: 750 clamp(34px, 5.2vw, 72px)/1.02 var(--font-display); letter-spacing: -0.04em; color: var(--night-ink); text-wrap: balance; }
.thanks-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }
.thanks-gh svg { width: 24px; height: 24px; }
.thanks-star { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--night-muted); }
.thanks-star svg { width: 16px; height: 16px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linejoin: round; }

.thanks-footer { border-top: 1px solid var(--night-line); padding-block: 28px 30px; }
.thanks-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.thanks-footer__row--meta { margin-top: 18px; }
.thanks-footer p { margin: 0; font-size: 14px; color: var(--night-muted); }
.thanks-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--night-ink); text-decoration: none; font: 800 22px/1 var(--font-display); letter-spacing: -0.04em; }
.thanks-brand__mark { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--night-line); background: #0d1f3f url("assets/lil-finder.png") 53% 35% / 230% auto no-repeat; }
.thanks-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.thanks-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--night-ink); text-decoration: none; font-weight: 550; font-size: 15px; transition: background 0.2s, color 0.2s; }
.thanks-nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--sky); }

/* no pin: mobile + reduced motion */
@media (max-width: 760px) {
  .thanks-stage { height: auto; min-height: 0; padding: 96px var(--gutter) 72px; overflow: hidden; }
  .thanks-title { font-size: clamp(38px, 11.4vw, 60px); }
  .thanks-mascot { height: 230px; margin-block: -10px -22px; }
  .thanks-dot b { font-size: 10px; }
  .thanks-footer__row { flex-direction: column; align-items: flex-start; }
  .thanks-footer__row--meta { gap: 6px; }
  .thanks-footer__row--meta p { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .thanks-stage { height: auto; min-height: 0; padding-block: 120px 80px; }
  .thanks-mascot img, .thanks-dot i::after, .thanks-packet { animation: none !important; }
}
