/* ============================================================
   NoBuf website — shared design system v2
   Charcoal/graphite base · single green accent · Linear-tier
   Depth = border brightness + surface steps. No colored shadows.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg-0: #0a0a0b;
  --bg-1: #101013;
  --bg-2: #17171b;
  --bg-3: #202128;
  --bg-card: #1b1c22;

  --text-hi: #f4f5f3;
  --text-body: #c6cbd1;
  --text-mute: #9098a0;

  --accent: #2ee59d;
  --accent-bright: #7df3bd;      /* ≤1px borders & glow cores ONLY */
  --accent-dim: rgba(46, 229, 157, 0.12);
  --accent-ink: #062b1a;         /* text on solid accent */

  --line-subtle: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --stroke-decor: rgba(255, 255, 255, 0.14);

  --glow: rgba(46, 229, 157, 0.15);
  --code-bg: #101013;

  --t-fast: 160ms ease-out;
  --t-med: 380ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 900ms cubic-bezier(0.22, 1, 0.36, 1);

  --radius-btn: 6px;
  --radius-card: 10px;
  --radius-panel: 16px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg-0);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: rgba(46, 229, 157, 0.25); color: var(--text-hi); }

html { scrollbar-color: var(--bg-3) var(--bg-0); scrollbar-width: thin; }

/* Focus layer */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: var(--radius-btn);
  transition: top var(--t-fast);
}
.skip-link:focus-visible { top: 12px; color: var(--accent-ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--text-hi); font-weight: 600; text-wrap: balance; font-family: var(--font-display); letter-spacing: -0.01em; }
.display {
  font-size: clamp(34px, 7vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.025em; }
.h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.h4 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.65; color: var(--text-body); }
.small { font-size: 14px; }
.tnum { font-feature-settings: "tnum"; }
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-mute);
}
.accent-span { color: var(--accent); } /* static — never animated */

/* ---------- Layout ---------- */
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1360px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 16px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Tips banner (above nav) ---------- */
.banner-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--t-med);
}
.banner-wrap.dismissed { grid-template-rows: 0fr; }
.banner {
  overflow: hidden;
  min-height: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-subtle);
}
.banner-inner {
  display: flex; align-items: center; gap: 12px;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  min-height: 34px;
  padding-block: 5px;
  position: relative;
}
.banner-tip {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity var(--t-med);
}
.banner-tip.fading { opacity: 0; }
.banner-tip b { color: var(--accent); font-weight: 500; }
.banner-dismiss {
  flex: none; width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--text-mute); border-radius: 4px;
}
.banner-dismiss:hover { color: var(--text-hi); background: var(--bg-3); }
.banner-kbd {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--accent-dim); color: var(--accent);
  padding: 1px 6px; border-radius: 4px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-subtle);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto; height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-hi); font-weight: 600; font-size: 17px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.nav-brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--radius-btn);
  color: var(--text-mute); font-size: 14px; font-weight: 500;
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--text-hi); }
.nav-link.active { color: var(--text-hi); }
.nav-link.active::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.nav-spacer { flex: 1; }
.nav-version {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-mute);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  place-items: center;
  border-radius: var(--radius-btn);
  color: var(--text-hi);
}
.nav-toggle:hover { background: var(--bg-3); }
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile sheet */
@media (max-width: 820px) {
  .nav-inner { gap: 12px; }
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 10px 16px 16px;
    background: rgba(16, 16, 19, 0.98);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px; font-size: 15px; justify-content: space-between; }
  .nav-toggle { display: grid; order: 3; }
  .nav-spacer { display: contents; }
  .nav-cta { margin-left: auto; order: 2; }
  .nav-version { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-btn);
  font-size: 15px; font-weight: 500; line-height: 1.2;
  border: 1px solid transparent;
  transition: filter var(--t-fast), transform var(--t-fast),
              background var(--t-fast), border-color var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); color: var(--accent-ink); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text-hi);
  background: transparent;
}
.btn-ghost:hover { background: var(--accent-dim); border-color: var(--line-strong); color: var(--text-hi); }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Pill / badge / chip ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; color: var(--text-body);
  background: var(--bg-1);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill-accent { border-color: rgba(46, 229, 157, 0.3); background: var(--accent-dim); color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-mute);
  padding: 3px 9px;
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1020px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.card:hover { background: var(--bg-3); border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15.5px; line-height: 1.6; }
.card-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; }

/* Vercel-style per-card spotlight (JS sets --mx/--my; fine pointers only) */
[data-spot]::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(46, 229, 157, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity var(--t-fast);
  pointer-events: none;
}
@media (pointer: fine) {
  [data-spot]:hover::before { opacity: 1; }
}

/* Asymmetric bento emphasis */
.span-2 { grid-column: span 2; }
@media (max-width: 1020px) { .span-2 { grid-column: span 2; } }
@media (max-width: 680px) { .span-2 { grid-column: span 1; } }

/* ---------- Split panels (Telegram comparison) ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; align-items: stretch; }
.split > * { min-width: 0; }  /* let tracks shrink below table/content min-width */
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.panel {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: clamp(24px, 3vw, 36px);
}
.panel-adds {
  background: var(--bg-card);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.panel-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line-subtle); }
.panel-list { display: grid; gap: 16px; }
.panel-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.panel-item svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.panel-gives .panel-item svg { color: var(--text-mute); }
.panel-adds .panel-item svg { color: var(--accent); }
.panel-item b { color: var(--text-hi); font-weight: 500; display: block; }
.panel-item span { color: var(--text-body); font-size: 14.5px; }

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  background: var(--bg-1);
}
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-subtle);
  white-space: nowrap;
}
table.data th:first-child, table.data td:first-child {
  position: sticky; left: 0;
  background: var(--bg-1);
  white-space: nowrap;
  border-right: 1px solid var(--line-subtle);
  font-weight: 500; color: var(--text-hi);
}
table.data thead th {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-mute); font-weight: 500;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: var(--bg-2); }
table.data tbody tr:hover td:first-child { background: var(--bg-2); }
.t-yes { color: var(--accent); }
.t-no, .t-partial { color: var(--text-mute); }
.table-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px; color: var(--text-mute);
}
.table-legend span b { color: var(--accent); font-weight: 500; }

/* ---------- Kbd caps ---------- */
kbd.key {
  display: inline-block;
  min-width: 26px; text-align: center;
  padding: 3px 7px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-hi);
  background: linear-gradient(180deg, #121212, #0d0d0d);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
}
.keys-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- Screenshot frames ---------- */
.shot-frame {
  border-radius: var(--radius-panel);
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.shot-bar {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding-inline: 14px;
  border-bottom: 1px solid var(--line-subtle);
  background: var(--bg-1);
}
.shot-dots { display: flex; gap: 6px; }
.shot-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--stroke-decor);
}
.shot-title {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-frame img { width: 100%; }
.shot-caption {
  margin-top: 12px;
  font-size: 14px; color: var(--text-mute);
}
.shot-caption b { color: var(--text-body); font-weight: 500; }

/* Hero melt variant */
.hero-frame { position: relative; }
.hero-frame .shot-frame img {
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}

/* Static ambient ellipse behind hero frame — clipped, cannot widen the page */
.hero-glow {
  position: absolute; inset: -8% -12%;
  background: radial-gradient(52% 55% at 50% 42%, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-frame-wrap {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}

/* JS-added ambient layer inside hero (opacity breathes toward pointer) */
.hero-ambient {
  position: absolute; inset: -10% -20%;
  background: radial-gradient(46% 52% at 68% 28%, rgba(46, 229, 157, 0.05), transparent 72%);
  opacity: 0;
  pointer-events: none;
}

/* Floating annotation chips */
.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-body);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
}
.float-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.js .float-chip { transform: translateY(8px); }
html.js.loaded .float-chip {
  opacity: 1; transform: translateY(0);
  transition: opacity var(--t-med), transform 550ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 900ms;
}
.chip-a { left: max(-14px, 2%); bottom: 22%; }
.chip-b { right: max(-14px, 2%); top: 14%; }
@media (max-width: 900px) { .float-chip { display: none; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px; background: var(--bg-1); border: 1px solid var(--line-subtle); border-radius: var(--radius-card); }
.step-num {
  counter-increment: step;
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent);
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  margin-bottom: 14px;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { font-size: 15px; }
.step .callout { margin-top: 14px; }

/* ---------- Callout / note ---------- */
.callout {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--line-subtle);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-1);
  font-size: 14px; color: var(--text-body);
}
.callout svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }

/* ---------- Download cards ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  color: var(--text-hi);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.dl-card:hover { background: var(--bg-3); border-color: var(--line-strong); transform: translateY(-2px); color: var(--text-hi); }
.dl-card.is-your-os { border-color: rgba(46, 229, 157, 0.45); }
.dl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dl-os-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(46, 229, 157, 0.35);
  border-radius: 999px; padding: 2px 9px;
}
.dl-files { margin-top: 10px; display: grid; gap: 5px; }
.dl-file {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-mute);
  display: flex; justify-content: space-between; gap: 10px;
}
.dl-file:hover { color: var(--accent); }
.dl-version-slot {
  height: 18px;
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-mute);
  font-feature-settings: "tnum";
}

/* ---------- Accordion (native details) ---------- */
.faq-group { display: grid; gap: 10px; }
details.faq {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  background: var(--bg-1);
  overflow: hidden;
}
details.faq[open] { border-color: var(--line); background: var(--bg-2); }
details.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  color: var(--text-hi); font-weight: 500; font-size: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:focus-visible { outline-offset: -2px; }
.faq-chevron { flex: none; width: 18px; height: 18px; color: var(--text-mute); transition: rotate var(--t-fast); }
details.faq[open] .faq-chevron { rotate: 180deg; }
.faq-body {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-body);
  display: grid;
  grid-template-rows: 0fr;
}
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
details.faq[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > div { min-height: 0; overflow: hidden; }
details.faq[open] .faq-body > div { padding-top: 2px; }
.faq-body ul { padding-left: 18px; display: grid; gap: 6px; margin-top: 8px; }
.faq-body code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--code-bg);
  border: 1px solid var(--line-subtle);
  padding: 1px 6px; border-radius: 5px;
  color: var(--accent);
}

/* ---------- Code block ---------- */
.codeblock {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.codeblock-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-subtle);
}
.code-copy {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-mute);
  padding: 4px 8px; border-radius: 5px;
}
.code-copy:hover { color: var(--text-hi); background: var(--bg-3); }
.code-copy.copied { color: var(--accent); }
.codeblock pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.6;
  color: var(--text-body);
}
.codeblock .c-key { color: var(--accent); }
.codeblock .c-str { color: var(--text-hi); }
.codeblock .c-com { color: var(--text-mute); }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 880px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
}
.trust-item svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.trust-item b { display: block; color: var(--text-hi); font-weight: 500; margin-bottom: 3px; font-size: 15px; }
.trust-item span { font-size: 14px; color: var(--text-mute); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-block: 1px solid var(--line-subtle);
  background:
    radial-gradient(70% 130% at 50% 115%, rgba(46, 229, 157, 0.08), transparent 70%),
    var(--bg-1);
}
.cta-band-inner { padding-block: clamp(64px, 8vw, 110px); text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-subtle); background: var(--bg-0); }
.footer-inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 48px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 880px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-hi); font-weight: 600; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-col .col-title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 9px; padding: 0; list-style: none; }
.footer-col a { color: var(--text-body); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-note { margin-top: 18px; font-size: 13px; color: var(--text-mute); max-width: 300px; }
.footer-base {
  border-top: 1px solid var(--line-subtle);
}
.footer-base-inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-mute);
}

/* ---------- Progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  width: 100vw; max-width: 100%;
  height: 2px; z-index: 150;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}
.progress span {
  display: block; height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Reveal system (scroll-triggered) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-med), transform var(--t-med);
  transition-delay: calc(min(var(--i, 0), 8) * 70ms);
  will-change: opacity, transform;
}
html.js .reveal.in { opacity: 1; transform: none; }
@media (pointer: coarse) {
  html.js .reveal { transform: translateY(12px); transition-duration: var(--t-fast); }
}

/* ---------- Hero entrance ---------- */
.js .hero-enter {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--t-med), transform var(--t-slow);
}
html.js.loaded .hero-enter { opacity: 1; transform: none; }
html.js.loaded .hero-enter-1 { transition-delay: 100ms; }
html.js.loaded .hero-enter-2 { transition-delay: 250ms; }
html.js.loaded .hero-enter-3 { transition-delay: 400ms; }
html.js.loaded .hero-enter-4 { transition-delay: 480ms; }
.js .hero-frame-wrap {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: 380ms;
}
html.js.loaded .hero-frame-wrap { opacity: 1; transform: none; }

/* ---------- Microproof row ---------- */
.microproof {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-mute);
}
.microproof svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }
.microproof .sep { opacity: 0.4; }

/* ---------- Platform strip ---------- */
.platform-strip {
  display: flex; align-items: center; justify-content: center; gap: 30px;
  flex-wrap: wrap;
  color: var(--text-body);
  font-size: 15.5px;
  font-weight: 500;
}
.platform-strip .p-os { display: inline-flex; align-items: center; gap: 8px; }
.platform-strip svg { width: 19px; height: 19px; color: var(--accent); }

/* ---------- Utility ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.tc { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- View transitions (Chrome MPA fade, harmless elsewhere) ---------- */
@view-transition { navigation: auto; }

/* ---------- Reduced motion ---------- */



/* ============================================================
   Signature layer — kinetic type, aurora, marquee, seek demo,
   editorial numerals, ghost wordmark
   ============================================================ */

/* Kinetic hero: words rise out of masks (JS wraps words; no-JS untouched) */
.js [data-kinetic] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;   /* room for descenders (g, y, p) */
  margin-bottom: -0.14em;
}
.js [data-kinetic] .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 800ms cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--wi, 0) * 55ms + 200ms);
}
html.js.loaded [data-kinetic] .w > span { transform: translateY(0); }

/* Aurora drift behind hero (transform-only, slow) */
.hero { position: relative; overflow-x: clip; }
.hero-aurora {
  position: absolute; inset: -22% -10%;
  z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 42% at 24% 30%, rgba(46,229,157,.07), transparent 70%),
    radial-gradient(30% 36% at 78% 22%, rgba(125,243,189,.05), transparent 70%),
    radial-gradient(42% 40% at 55% 80%, rgba(46,229,157,.05), transparent 72%);
  filter: blur(6px);
}

@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}

/* Format marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-subtle);
  padding-block: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em;
  color: var(--text-mute); white-space: nowrap;
}
.marquee span b { color: var(--accent); font-weight: 500; margin-right: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* Editorial numerals on section heads */
.section-head[data-num] { position: relative; }
.section-head[data-num]::before {
  content: attr(data-num);
  position: absolute; right: 0; top: -0.18em;
  font-size: clamp(64px, 9vw, 128px); font-weight: 700; line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.10);
  pointer-events: none;
  user-select: none;
}

/* Giant outlined step numerals */
.step { padding-top: 28px; }
.step-num {
  display: block; width: auto; height: auto; background: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 6vw, 76px); line-height: .9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.25px rgba(46,229,157,.45);
  margin-bottom: 16px;
}
.step:hover .step-num { -webkit-text-stroke-color: rgba(46,229,157,.85); }

/* Interactive seek demo */
.seekdemo {
  margin-top: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  padding: 14px 16px 12px;
}
.sd-track {
  position: relative; height: 34px;
  background: #0d0d0f;
  border: 1px solid var(--line-subtle);
  border-radius: 7px;
  cursor: ew-resize;
  touch-action: none;
  overflow: hidden;
}
.sd-fill {
  position: absolute; inset: 0 auto 0 0; width: 18%;
  background: linear-gradient(90deg, rgba(46,229,157,.30), rgba(46,229,157,.16));
}
.sd-range {
  position: absolute; inset: 0 auto 0 0;
  background: rgba(46,229,157,.34);
  box-shadow: 0 0 0 1px rgba(125,243,189,.35) inset;
}
.sd-head {
  position: absolute; top: -3px; bottom: -3px; left: 0; width: 3px;
  background: #ff5b5b; border-radius: 2px;
  box-shadow: 0 0 12px rgba(255,91,91,.5);
}
.sd-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 10px;
}
.sd-time, .sd-pct { font-family: var(--font-mono); font-size: 13px; color: var(--text-hi); }
.sd-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-mute); }
.sd-flash {
  position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 50%, rgba(125,243,189,.35), transparent 70%);
  opacity: 0;
}
.sd-flash.on { animation: sdflash 500ms ease-out; }
@keyframes sdflash { from { opacity: 1; } to { opacity: 0; } }

/* Ghost wordmark in footer */
.footer-ghost {
  font-family: var(--font-display);
  overflow: hidden; text-align: center; user-select: none; pointer-events: none;
  font-weight: 700; letter-spacing: -0.05em; line-height: 0.95;
  font-size: clamp(56px, 7.5vw, 110px);
  color: rgba(255,255,255,.028);
  border-top: 1px solid var(--line-subtle);
  padding-top: clamp(18px, 2.5vw, 30px);
  margin-bottom: -0.08em;
}

/* ---------- Reduced motion: EXPLICIT user opt-out only ----------
   The OS-level prefers-reduced-motion signal is intentionally NOT honored:
   Windows' "Animation effects: off" is a performance setting and makes browsers
   report reduce-motion on machines whose users still expect web animations.
   Users opt out per-site via the footer motion toggle (localStorage nobuf-motion=off),
   which sets html.motion-off. */
html.motion-off *, html.motion-off *::before, html.motion-off *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
html.motion-off .reveal,
html.motion-off .hero-enter,
html.motion-off .hero-frame-wrap,
html.motion-off [data-kinetic] .w > span {
  opacity: 1 !important;
  transform: none !important;
}
html.motion-off .marquee-track { animation: none; }
html.motion-off .hero-aurora { animation: none; }



/* ---------- Background personality: grain, grid, deeper aurora ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 9999;               /* above everything, pointer-transparent */
  pointer-events: none;
  opacity: .05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {                   /* faint blueprint grid */
  content: "";
  position: absolute; inset: 0;
  z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-aurora {
  inset: -25% -12%;
  background:
    radial-gradient(40% 44% at 22% 28%, rgba(46,229,157,.13), transparent 68%),
    radial-gradient(32% 38% at 80% 20%, rgba(125,243,189,.09), transparent 70%),
    radial-gradient(46% 42% at 58% 82%, rgba(46,229,157,.10), transparent 72%);
}
.cta-band {
  background:
    radial-gradient(70% 130% at 50% 115%, rgba(46,229,157,.12), transparent 70%),
    var(--bg-1);
}


/* Frame entrance with rotation settle */
.js .hero-frame-wrap {
  transform: translateY(34px) rotateX(4deg);
  transform-origin: 50% 0;
}
html.js.loaded .hero-frame-wrap { transform: none; }

/* Floating chips bob gently */
@keyframes chipbob {
  from { transform: translateY(-3px); }
  to   { transform: translateY(3px); }
}
@media (prefers-reduced-motion: no-preference) {
  html.motion-off .float-chip { animation: none !important; }
  .float-chip.chip-a { animation: chipbob 3.2s ease-in-out infinite alternate; }
  .float-chip.chip-b { animation: chipbob 3.8s ease-in-out infinite alternate-reverse; }
}

/* Gallery parallax on scroll (JS sets --par) */
.shot-frame img { transition: transform var(--t-med); }
.gallery-parallax img { transform: scale(calc(1.02 + var(--par, 0) * 0.04)); }

/* Button sheen sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg);
  transition: left 550ms cubic-bezier(.22,1,.36,1);
}
.btn-primary:hover::after { left: 130%; }

/* Card icon lift-tilt on card hover */
.card .card-icon { transition: transform var(--t-fast), background var(--t-fast); }
.card:hover .card-icon { transform: translateY(-3px) rotate(-4deg); background: rgba(46,229,157,.2); }

/* Screenshot zoom-on-hover inside frames */
.shot-frame { overflow: hidden; }
.shot-frame img { transition: transform 600ms cubic-bezier(.22,1,.36,1); }
.shot-frame:hover img { transform: scale(1.035); }

/* Step numerals fill on hover */
.step-num { transition: color 300ms ease, -webkit-text-stroke-color 300ms ease; }
.step:hover .step-num { color: rgba(46,229,157,.16); }

/* Nav link underline slide */
.nav-link:not(.active)::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--t-fast);
}
.nav-link:not(.active):hover::after { transform: scaleX(1); }

/* Marquee edge items glow slightly */
.marquee span b { text-shadow: 0 0 18px rgba(46,229,157,.35); }


/* Two-column hero: copy left, product right — visible at first glance */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 12fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;          /* frame hugs the top of the row */
}
.hero-side { position: sticky; top: 84px; }  /* stays fully visible while copy scrolls */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .btn-row, .hero-copy .microproof { justify-content: center; }
}
.hero-side { position: relative; }
.hero-side .shot-frame img {
  -webkit-mask-image: none;
  mask-image: none;
}


/* Hero frame fits the first viewport — no half-cut screenshot */
.hero-side .shot-frame {
  position: relative;
  max-height: clamp(320px, calc(100svh - 190px), 580px);
  display: flex;
  flex-direction: column;
}
.hero-side .shot-frame img {
  object-fit: cover;
  object-position: top;
  width: 100%;
  flex: 1;
  min-height: 0;
}


/* Hero frame fits the first viewport — no half-cut screenshot */
.hero-side .shot-frame {
  position: relative;
  max-height: clamp(320px, calc(100svh - 190px), 580px);
  display: flex;
  flex-direction: column;
}
.hero-side .shot-frame img {
  object-fit: cover;
  object-position: top;
  width: 100%;
  flex: 1;
  min-height: 0;
}


/* ---------- Seek-bar anatomy explainer ---------- */
.anatomy {
  background: var(--bg-1);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-panel);
  padding: clamp(20px, 3vw, 36px);
}
.anatomy-bar {
  position: relative;
  height: 46px;
  border-radius: 9px;
  overflow: hidden;
  background: #0d0d0f;
  border: 1px solid var(--line);
  margin-block: 18px 6px;
}
.ab-layer { position: absolute; inset: 0; }
.ab-white {
  width: 34%;
  background: repeating-linear-gradient(115deg,
    rgba(255,255,255,.16) 0 10px, rgba(255,255,255,.10) 10px 20px);
}
.ab-green {
  left: 12%; width: 63%;
  background: linear-gradient(180deg, rgba(46,229,157,.85), rgba(46,229,157,.55));
  box-shadow: 0 -2px 0 rgba(125,243,189,.6) inset;
}
.ab-yellow {
  left: 40%; width: 26%;
  background: linear-gradient(180deg, rgba(232,180,90,.9), rgba(232,180,90,.55));
  box-shadow: 0 2px 0 rgba(255,220,150,.55) inset;
}
.ab-red {
  left: 58%; width: 3px; top: -4px; bottom: -4px; width: 4px;
  background: #ff5b5b;
  box-shadow: 0 0 14px rgba(255,91,91,.65);
}
.anatomy-scale {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint-deco, var(--text-mute));
  opacity: .8;
}
.legend {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 22px;
}
@media (max-width: 760px) { .legend { grid-template-columns: 1fr; } }
.legend-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
  cursor: default;
}
.legend-item:hover { border-color: var(--line-strong); transform: translateY(-2px); background: var(--bg-3); }
.legend-swatch {
  flex: none; width: 44px; height: 30px; border-radius: 6px;
  border: 1px solid var(--line);
}
.sw-white { background: repeating-linear-gradient(115deg, rgba(255,255,255,.35) 0 6px, rgba(255,255,255,.18) 6px 12px); }
.sw-green { background: linear-gradient(180deg, #2ee59d, #17b57b); }
.sw-yellow { background: linear-gradient(180deg, #e8b45a, #c99a42); }
.sw-red { background: linear-gradient(180deg, #ff5b5b, #d94343); }
.legend-item b { display: block; color: var(--text-hi); font-weight: 600; margin-bottom: 3px; font-size: 15px; }
.legend-item span { font-size: 14px; color: var(--text-body); line-height: 1.5; }
.legend-item code {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--accent);
}

/* highlight sync: hovering a legend item dims other bar layers */
.anatomy[data-focus] .ab-layer { opacity: .25; transition: opacity var(--t-fast); }
.anatomy[data-focus="white"] .ab-white,
.anatomy[data-focus="green"] .ab-green,
.anatomy[data-focus="yellow"] .ab-yellow,
.anatomy[data-focus="red"] .ab-red { opacity: 1; }


/* ---------- Seek-bar anatomy: faithful playable replica ---------- */
.anatomy { overflow-x: clip; padding-bottom: clamp(18px, 2.5vw, 30px); }
.sbd { position: relative; padding-top: 64px; }
.sbd-preview {
  position: absolute; bottom: calc(100% - 52px);
  left: var(--px, 50%);
  transform: translateX(-50%);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast), left 90ms linear;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  z-index: 3;
}
.sbd-preview.on { opacity: 1; }
.sbd-thumb {
  width: 228px; height: 128px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, #16211c 0%, #0d1411 60%, #101820 100%);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  display: grid; place-items: center;
  overflow: hidden;
}
.sbd-state {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--accent);
  border: 1px solid rgba(46,229,157,.4);
  background: rgba(46,229,157,.08);
  padding: 4px 10px; border-radius: 999px;
}
.sbd-time {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-hi);
  background: var(--bg-1);
  border: 1px solid var(--line-subtle);
  padding: 2px 8px; border-radius: 6px;
}

/* The track — mirrors the app's four-layer bar */
.sbd-track {
  --h: 16px;
  position: relative;
  height: var(--h);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  cursor: crosshair;
  touch-action: none;
  transition: height 140ms ease;
  outline-offset: 4px;
}
.sbd-track:hover, .sbd-track:focus-visible { --h: 22px; }

/* white: in-memory buffers (ranges hugging playhead) */
.sbd-buffers {
  position: absolute; top: 3px; bottom: 3px; left: 0;
  width: calc(var(--pct, 30) * .34 * 1%);
  border-radius: 5px;
  background: repeating-linear-gradient(115deg,
    rgba(255,255,255,.55) 0 9px, rgba(255,255,255,.30) 9px 18px);
  transition: width 200ms ease;
}
/* green: disk cache — thin glowing strip along the BOTTOM edge */
.sbd-cache {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  width: calc(var(--pct, 30) * 1%);
  background: linear-gradient(90deg, #17b57b, #2ee59d);
  box-shadow: 0 0 12px rgba(46,229,157,.55);
  border-radius: 0 3px 3px 0;
  transition: width 300ms cubic-bezier(.22,1,.36,1);
}
/* yellow: thumbnail coverage — thin strip along the TOP edge */
.sbd-thumbs {
  position: absolute; left: 0; right: 0; top: 0;
  height: 4px;
  width: calc(var(--pct, 30) * .62 * 1%);
  background: linear-gradient(90deg, #a8813c, #e8b45a);
  box-shadow: 0 0 10px rgba(232,180,90,.45);
  border-radius: 0 3px 3px 0;
}
/* live fetch pulse just ahead of the cache frontier */
.sbd-fetch {
  position: absolute; bottom: 0; height: 4px;
  left: calc(var(--pct, 30) * 1%);
  width: 46px;
  background: linear-gradient(90deg, rgba(46,229,157,.75), transparent);
  animation: fetchpulse 1.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fetchpulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .85; }
}
html.motion-off .sbd-fetch { animation: none; }

/* red playhead with grip dot */
.sbd-head {
  position: absolute; top: -4px; bottom: -4px;
  left: 0; width: 3px;
  transform: translateX(calc(var(--pct, 0.3) * (100% + 0px) * 0 - var(--tw, 0) * 0)); /* fallback no-op */
  background: #ff5b5b;
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(255,91,91,.7);
  will-change: transform;
}

.sbd-head i {
  position: absolute; top: 50%; left: 50%;
  width: 13px; height: 13px;
  transform: translate(-50%, -50%) scale(0);
  background: #ff5b5b;
  border: 2px solid #fff2;
  border-radius: 50%;
  transition: transform 140ms ease;
}
.sbd-track:hover .sbd-head i, .sbd-track:focus-visible .sbd-head i { transform: translate(-50%, -50%) scale(1); }


/* Anatomy rhythm fixes */
#anatomy .section-head { margin-bottom: 28px; }
.anatomy-bar { margin-block: 14px 4px; }
.sbd { padding-top: 78px; }
.legend { margin-top: 18px; }
.legend-item { padding: 18px; }


/* Steps as a connected timeline */
.steps { position: relative; gap: 24px; }
@media (min-width: 881px) {
  .steps::before {
    content: "";
    position: absolute; top: 44px; left: 4%; right: 4%;
    height: 1px;
    background: linear-gradient(90deg,
      transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
  }
}
.step { background: transparent; border: none; border-left: 1px solid var(--line-subtle); border-radius: 0; padding: 0 0 0 20px; }
.step-num { position: relative; z-index: 1; background: var(--bg-0); padding-right: 10px; margin-left: -21px; }
.step:hover { border-left-color: rgba(46,229,157,.5); }
.step:hover .step-num { color: rgba(46,229,157,.16); -webkit-text-stroke-color: rgba(46,229,157,.85); }
@media (max-width: 880px) {
  .step { border-left: none; padding-left: 0; }
}


/* Anatomy clarity */
.sbd { padding-top: 88px; }
.anatomy-scale { opacity: .65; letter-spacing: .04em; }
.legend { gap: 16px; }
@media (max-width: 760px) {
  .sbd-preview { transform: translateX(-50%) scale(.72); transform-origin: bottom center; }
}


/* Frame imagery treatment */
.shot-frame img { filter: saturate(1.05) contrast(1.03); }
.hero-side .shot-frame img { filter: saturate(1.06) contrast(1.04) brightness(1.02); }


/* Card kickers break the identical-card rhythm */
.card[data-kicker] { position: relative; }
.card[data-kicker]::after {
  content: attr(data-kicker);
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-mute);
  opacity: .7;
}
.card:hover[data-kicker]::after { color: var(--accent); opacity: 1; }


/* Living hero: cache ticker overlay */
.hero-live {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  background: rgba(13, 15, 14, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hl-track {
  position: relative; flex: 1; height: 5px;
  background: rgba(255,255,255,.09);
  border-radius: 999px;
  overflow: hidden;
}
.hl-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 31%;
  border-radius: inherit;
  background: linear-gradient(90deg, #17b57b, #2ee59d);
  box-shadow: 0 0 10px rgba(46,229,157,.5);
  transition: width 700ms cubic-bezier(.22,1,.36,1);
}
.hl-readout {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-hi);
  white-space: nowrap;
  font-feature-settings: "tnum";
}
.hl-readout b { color: var(--accent); font-weight: 500; }


/* Gallery differentiation */
.gallery-kicker { margin-bottom: 8px; color: var(--accent); }
@media (max-width: 980px) {
  .hero-copy { padding-bottom: 4px; }
}


/* ---------- Legend cards v2: color spines, chips, kickers ---------- */
.legend-item {
  --lc: var(--accent);
  position: relative;
  padding-left: 22px;
}
.legend-item::before {
  content: "";
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 2px; border-radius: 2px;
  background: var(--lc);
  opacity: .35;
  transition: opacity var(--t-fast), top var(--t-med), bottom var(--t-med);
}
.legend-item:hover::before,
.legend-item.active::before { opacity: 1; }
.lg-chip {
  position: absolute; right: 16px; top: 16px;
  width: 40px; height: 28px; border-radius: 6px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background: var(--bg-1);
}
.lg-chip i {
  width: 26px; height: 4px; border-radius: 2px;
  background: var(--lc);
}
.lg-chip.lg-white i { height: 12px; background: repeating-linear-gradient(115deg, rgba(255,255,255,.5) 0 4px, rgba(255,255,255,.22) 4px 8px); }
.lg-chip.lg-green i { box-shadow: 0 0 8px rgba(46,229,157,.55); }
.lg-chip.lg-yellow i { box-shadow: 0 0 8px rgba(232,180,90,.45); }
.lg-chip.lg-red i { width: 3px; height: 18px; background: #ff5b5b; box-shadow: 0 0 8px rgba(255,91,91,.6); }
.lg-kicker { margin-bottom: 6px; }
.legend-item b { display:block; color: var(--text-hi); font-weight: 600; margin-bottom: 4px; font-size: 15.5px; }
.legend-item span { font-size: 14.5px; line-height: 1.55; }
.legend-item.active { background: var(--bg-3); }
