/* ==========================================================================
   vivuscoin.com — site.css
   Implements 15-seo/DESIGN-SYSTEM.md. One file, no build step.
   Order: tokens → reset → layout → components → utilities → motion → print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — dark is the default (:root); light via prefers-color-scheme
      (unless data-theme="dark") or data-theme="light".
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark light;

  /* colour — dark */
  --bg: #0f0f14;
  --bg-elev: #15151c;
  --surface: #1b1b24;
  --surface-2: #22222d;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #f4f4f8;
  --text-2: rgba(244, 244, 248, .72);
  --text-3: rgba(244, 244, 248, .55);
  --accent: #b3a6e6;
  --accent-strong: #8f7fd6;
  --accent-soft: rgba(143, 127, 214, .14);
  --on-accent: #0f0f14;
  --signal: #fdcc52;
  --ok: #5ad39a;
  --danger: #ff7a7a;
  --glow: radial-gradient(60% 50% at 50% 0%, rgba(143, 127, 214, .28), transparent 70%);
  --glow-soft: radial-gradient(60% 50% at 50% 0%, rgba(143, 127, 214, .17), transparent 70%);
  --grid-line: rgba(255, 255, 255, .06);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-accent: 0 12px 36px rgba(143, 127, 214, .22);
  --nav-fill: rgba(21, 21, 28, .82);

  /* type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(2.5rem, 1.2rem + 5.5vw, 5rem);
  --fs-h1: clamp(2rem, 1.2rem + 3.5vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.1rem + 2vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.125rem, 1rem + .6vw, 1.375rem);
  --fs-body: 1rem;
  --fs-prose: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .75rem;
  --fs-stat: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  --fs-code: .875rem;

  /* spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-y: clamp(64px, 5vw + 32px, 112px);
  --gutter: clamp(16px, 4vw, 48px);
  --card-pad: 20px;
  --grid-gap: 16px;

  /* radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* layout */
  --container: 1160px;
  --container-narrow: 760px;
  --container-wide: 1240px;
  --nav-h: 64px;
  --overlap: 40px;

  /* z */
  --z-nav: 50;
  --z-drawer: 60;
  --z-toast: 70;

  /* motion */
  --ease-move: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms;
  --t-reveal: 400ms;
  --t-drawer: 240ms;
}

@media (min-width: 768px) {
  :root { --card-pad: 24px; --grid-gap: 24px; }
}
@media (min-width: 1024px) {
  :root { --nav-h: 72px; }
}

/* light theme — same token names */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f7fa;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-2: #eeeef4;
    --border: rgba(15, 15, 20, .10);
    --border-strong: rgba(15, 15, 20, .18);
    --text: #15151c;
    --text-2: rgba(21, 21, 28, .72);
    --text-3: rgba(21, 21, 28, .58);
    --accent: #5b4bb5;
    --accent-strong: #4a3aa3;
    --accent-soft: rgba(74, 58, 163, .10);
    --on-accent: #ffffff;
    --signal: #b8860b;
    --ok: #1c7f4f;
    --danger: #b3261e;
    --glow: radial-gradient(60% 50% at 50% 0%, rgba(143, 127, 214, .18), transparent 70%);
    --glow-soft: radial-gradient(60% 50% at 50% 0%, rgba(143, 127, 214, .11), transparent 70%);
    --grid-line: rgba(15, 15, 20, .06);
    --shadow-1: 0 1px 2px rgba(15, 15, 20, .08);
    --shadow-2: 0 12px 32px rgba(15, 15, 20, .12);
    --shadow-accent: 0 12px 36px rgba(74, 58, 163, .16);
    --nav-fill: rgba(255, 255, 255, .82);
  }
}
:root[data-theme="light"] {
  --bg: #f7f7fa;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #eeeef4;
  --border: rgba(15, 15, 20, .10);
  --border-strong: rgba(15, 15, 20, .18);
  --text: #15151c;
  --text-2: rgba(21, 21, 28, .72);
  --text-3: rgba(21, 21, 28, .58);
  --accent: #5b4bb5;
  --accent-strong: #4a3aa3;
  --accent-soft: rgba(74, 58, 163, .10);
  --on-accent: #ffffff;
  --signal: #b8860b;
  --ok: #1c7f4f;
  --danger: #b3261e;
  --glow: radial-gradient(60% 50% at 50% 0%, rgba(143, 127, 214, .18), transparent 70%);
  --glow-soft: radial-gradient(60% 50% at 50% 0%, rgba(143, 127, 214, .11), transparent 70%);
  --grid-line: rgba(15, 15, 20, .06);
  --shadow-1: 0 1px 2px rgba(15, 15, 20, .08);
  --shadow-2: 0 12px 32px rgba(15, 15, 20, .12);
  --shadow-accent: 0 12px 36px rgba(74, 58, 163, .16);
  --nav-fill: rgba(255, 255, 255, .82);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; max-width: 22ch; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; max-width: 22ch; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
h4 { font-size: var(--fs-body); font-weight: 600; line-height: 1.4; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
img, svg { display: block; max-width: 100%; height: auto; }
svg { fill: none; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li + li { margin-top: var(--s-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--accent-strong); color: var(--on-accent); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }
small { font-size: var(--fs-small); }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.skip {
  position: absolute; top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px; background: var(--accent-strong); color: var(--on-accent);
  border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-elev); border-block: 1px solid var(--border); }
.section--alt + .section--alt { border-top: 0; }
.section--tight { padding-block: var(--s-7); }
.section__head { margin-bottom: var(--s-6); max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center h2 { margin-inline: auto; }
.section__head .lead { margin-top: var(--s-2); }
.section__eyebrow { display: block; margin-bottom: var(--s-3); }
.section__foot { margin-top: var(--s-6); }

.grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--12 { grid-template-columns: repeat(12, 1fr); }
.split { display: grid; gap: var(--s-6); align-items: start; }
.grid > *, .split > *, .bento > *, .cards > *, .exit-cards > *, .footer__grid > *, .cta-band > * { min-width: 0; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   4. Components
   -------------------------------------------------------------------------- */

/* 4.1 Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem; line-height: 1.2;
  border-radius: var(--r-md); border: 1px solid transparent; text-decoration: none;
  white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), filter var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75; flex: none; transition: transform var(--t-fast) var(--ease-move); }
.btn--primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn--primary:hover { filter: brightness(1.08); color: var(--on-accent); }
.btn--primary:hover svg.arrow { transform: translateX(2px); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--text); }
.btn--sm { min-height: 36px; padding: 8px 16px; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 479.98px) { .btn-row .btn { width: 100%; } }

/* 4.2 Nav ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav.is-scrolled, html:not(.js) .nav {
  background: var(--nav-fill);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: var(--s-4); height: 100%; }
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--text); text-decoration: none;
}
.nav__logo { width: 28px; height: 28px; }
.nav__links { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav__links li + li { margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: .9375rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 2px; border-radius: var(--r-sm);
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-md); color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}
.nav__burger { width: 44px; height: 44px; display: none; }
.nav__burger .icon-x { display: none; }
.nav--open .nav__burger .icon-x { display: block; }
.nav--open .nav__burger .icon-menu { display: none; }
.nav__cta--drawer { display: none; }
.nav__backdrop { display: none; }

@media (max-width: 767.98px) {
  .nav__burger { display: inline-flex; }
  .nav__cta--bar { display: none; }
  .nav__cta--drawer { display: inline-flex; margin-top: var(--s-4); }
  .nav__drawer {
    position: fixed; inset: 0 0 0 auto; z-index: var(--z-drawer);
    width: min(320px, 86vw); height: 100dvh; padding: calc(var(--nav-h) + 8px) var(--s-5) var(--s-6);
    background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-2);
    display: flex; flex-direction: column; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--t-drawer) var(--ease-move), visibility 0s var(--t-drawer);
  }
  .nav--open .nav__drawer { transform: none; visibility: visible; transition-delay: 0s; }
  .nav--open .nav__actions { position: relative; z-index: calc(var(--z-drawer) + 1); }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__link { width: 100%; min-height: 48px; font-size: 1.0625rem; padding: 0 var(--s-2); }
  .nav__backdrop { display: block; position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity var(--t-drawer), visibility 0s var(--t-drawer); }
  .nav--open .nav__backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
  /* no-JS: the drawer can't open, so show the links as a plain row under the bar */
  html:not(.js) .nav { height: auto; }
  html:not(.js) .nav__inner { flex-wrap: wrap; height: auto; padding-block: var(--s-3); }
  html:not(.js) .nav__drawer { position: static; height: auto; width: 100%; padding: 0; transform: none; visibility: visible; box-shadow: none; border: 0; background: transparent; }
  html:not(.js) .nav__links { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .nav__link { width: auto; }
  html:not(.js) .nav__burger { display: none; }
}
body.nav-locked { overflow: hidden; }

/* 4.3 Hero + stat tiles --------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-8);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--glow);
  animation: glow-pulse 12s ease-in-out infinite;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 80% at 50% 0%, #000 20%, transparent 100%);
}
.hero--home { min-height: min(88svh, 820px); display: flex; flex-direction: column; justify-content: center; padding-bottom: calc(var(--overlap) + var(--s-6)); }
.hero--short { padding: calc(var(--nav-h) + var(--s-6)) 0 var(--s-7); }
.hero--short::before { background: var(--glow-soft); }
.hero__inner { max-width: 820px; margin-inline: auto; text-align: center; }
.hero--short .hero__inner { text-align: left; margin-inline: 0; max-width: 820px; }
.hero__eyebrow { margin-bottom: var(--s-5); }
.hero__title { font-size: var(--fs-h1); margin-bottom: var(--s-4); max-width: none; }
.hero--home .hero__title { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.03em; margin-inline: auto; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text-2); max-width: 62ch; margin-inline: auto; text-wrap: pretty; }
.hero--short .hero__lead { margin-inline: 0; }
.hero__actions { margin-top: var(--s-6); justify-content: center; }
.hero--short .hero__actions { justify-content: flex-start; }
.hero .breadcrumb { margin-bottom: var(--s-4); }

.stat-tiles {
  position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-2);
  overflow: hidden;
}
.stat-tiles--overlap { margin-top: var(--s-8); margin-bottom: calc(-1 * (var(--overlap) + var(--s-6))); text-align: left; }
.hero--home + .section, .hero--home + .stat-section { padding-top: calc(var(--section-y) + var(--overlap)); }
.stat-tiles__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: 12px var(--s-5); border-bottom: 1px solid var(--border);
  font-size: var(--fs-small); color: var(--text-3);
}
.stat-tiles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-tile { padding: var(--s-5); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; margin-right: -1px; margin-bottom: -1px; }
.stat-tile__label { display: block; font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-2); }
.stat-tile__value {
  display: block; font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-stat); line-height: 1.1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere;
}
.stat-tile__sub { display: flex; align-items: center; gap: 6px; margin-top: var(--s-2); font-size: var(--fs-small); color: var(--text-3); }
@media (max-width: 479.98px) { .stat-tile { padding: var(--s-4); } .stat-tile__value { font-size: 1.375rem; } }
.stat-tiles__fallback { margin: 0; padding: 12px var(--s-5); font-size: var(--fs-small); color: var(--text-3); }

/* 4.4 Badge / dot ----------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .75rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em; color: var(--text-2);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.badge--signal::before { background: var(--signal); }
.badge--ok::before { background: var(--ok); }
.badge--accent::before { background: var(--accent); }
.badge--live::before { animation: blink 2s ease-in-out infinite; }
.badge--plain::before { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.dot--ok { background: var(--ok); }
.dot--signal { background: var(--signal); }
.dot--danger { background: var(--danger); }

/* 4.5 Feature card / bento / download card / exit cards ---------------------- */
.cards { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--card-pad); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  color: var(--text); text-decoration: none; min-width: 0;
  transition: transform 200ms var(--ease-move), border-color 200ms, box-shadow 200ms;
}
.feature-card p { color: var(--text-2); margin: 0; }
.feature-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); margin-bottom: var(--s-1);
}
.feature-card__icon svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-card__title { margin: 0; }
.feature-card__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.feature-card__link { margin-top: auto; padding-top: var(--s-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-small); text-decoration: none; }
.feature-card__link svg, .arrow { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-move); }
a.feature-card:hover, a.feature-card:focus-visible, .feature-card--link:hover, .feature-card--link:focus-within {
  transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-accent); color: var(--text);
}
a.feature-card:hover .arrow, .feature-card--link:hover .arrow { transform: translateX(3px); }
.feature-card--muted, .download-card--legacy { opacity: .7; }

.bento { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 1024px) {
  /* 3-col grid, one 2-col lead card: 3 cells fill one row, 5 cells fill two */
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .bento > .bento__lead { grid-column: span 2; }
}
.bento__lead { justify-content: space-between; }
.feature-card__stack { display: flex; flex-direction: column; gap: var(--s-3); }

.download-card__meta { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-3); margin: 0; }
.download-card .btn { align-self: flex-start; margin-top: var(--s-2); }
.download-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); font-size: var(--fs-small); margin-top: auto; padding-top: var(--s-2); }

.exit-cards { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.exit-cards .feature-card { gap: var(--s-2); }
.exit-cards .feature-card__title { font-size: 1.0625rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.exit-cards p { font-size: var(--fs-small); }
.exit-cards .eyebrow { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--text-3); }

/* 4.6 Steps --------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s-6); }
.steps > li { position: relative; padding-left: 60px; counter-increment: step; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
}
.steps__title { margin: 6px 0 var(--s-2); }
.steps__body { color: var(--text-2); }
.steps__body > * + * { margin-top: var(--s-3); }
@media (min-width: 768px) {
  .steps > li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: calc(-1 * var(--s-6) + 4px); width: 1px; background: var(--border); }
}
.steps--cols { gap: var(--grid-gap); }
@media (min-width: 768px) {
  .steps--cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .steps--cols > li { padding-left: 0; padding-top: 56px; }
  .steps--cols > li::after { display: none; }
}

/* 4.7 FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); border-radius: 0; transition: background var(--t-fast); }
.faq__item[open] { background: var(--surface-2); border-radius: var(--r-md); border-bottom-color: transparent; margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) 0; cursor: pointer; list-style: none; min-height: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -2px; }
.faq__q { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.3; max-width: none; }
.faq__chevron { width: 20px; height: 20px; flex: none; stroke: var(--text-3); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-move); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); stroke: var(--accent); }
.faq__a { padding: 0 0 var(--s-4); color: var(--text-2); max-width: 68ch; }
.faq__a > * + * { margin-top: var(--s-3); }
.faq__group { margin-top: var(--s-8); }
.faq__group:first-of-type { margin-top: 0; }
.faq__group h2 { margin-bottom: var(--s-4); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.chips li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2);
  font-size: var(--fs-small); font-weight: 500; text-decoration: none; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.chip:hover, .chip[aria-current="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* 4.8 CTA band ---------------------------------------------------------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--s-6); border-radius: var(--r-xl); background: var(--bg-elev); border: 1px solid var(--border);
  display: grid; gap: var(--s-5); align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glow); opacity: .6; }
.cta-band__title { margin-bottom: var(--s-2); }
.cta-band__text { color: var(--text-2); margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 768px) {
  .cta-band { padding: var(--s-7); grid-template-columns: 1fr auto; }
  .cta-band__actions { justify-content: flex-end; }
}

/* 4.9 Footer --------------------------------------------------------------- */
.footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding: var(--s-8) 0 var(--s-6); font-size: .875rem; }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, 1fr); }
.footer__brand { grid-column: 1 / -1; max-width: 32ch; }
.footer__brand .nav__brand { margin: 0 0 var(--s-3); }
.footer__brand p { color: var(--text-2); margin: 0; }
.footer__title { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--s-3); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li + li { margin-top: 6px; }
.footer__col a { color: var(--text-2); text-decoration: none; }
.footer__col a:hover { color: var(--text); text-decoration: underline; }
.footer__bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--border); display: grid; gap: var(--s-3); color: var(--text-3); }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--text-2); }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .footer__brand { grid-column: auto; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* 4.10 Form ---------------------------------------------------------------- */
.form { max-width: 560px; display: grid; gap: var(--s-5); }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-small); font-weight: 500; }
.field__label .optional { color: var(--text-3); font-weight: 400; }
.field__input {
  width: 100%; min-height: 48px; padding: 12px 14px; font-size: 1rem;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); color: var(--text);
  transition: border-color var(--t-fast);
}
.field__input:hover { border-color: var(--accent); }
.field__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field--mono .field__input { font-family: var(--font-mono); font-size: .9375rem; }
.field__help { font-size: var(--fs-small); color: var(--text-3); margin: 0; }
.field__error { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-small); color: var(--danger); margin: 0; }
.field__error svg { width: 16px; height: 16px; flex: none; margin-top: 3px; stroke: currentColor; stroke-width: 2; }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--s-3); }
.field--check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.field--check label { font-size: var(--fs-small); color: var(--text-2); }
.captcha-slot {
  width: 100%; max-width: 300px; height: 65px; border: 1px dashed var(--border-strong); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-small); color: var(--text-3);
}
.form__result { border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); border: 1px solid var(--border); background: var(--surface); }
.form__result--ok { border-color: var(--ok); }
.form__result--error { border-color: var(--danger); }
@media (max-width: 479.98px) { .form .btn { width: 100%; } }

/* 4.11 Code ---------------------------------------------------------------- */
.code { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin: 0 0 var(--s-4); }
.code__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--border); }
.code__label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.code__copy { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); color: var(--text-3); font-size: .8125rem; font-weight: 500; transition: color var(--t-fast), background var(--t-fast); }
.code__copy:hover { color: var(--accent); background: var(--surface-2); }
.code__copy svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.code__copy.is-copied { color: var(--ok); }
html:not(.js) .code__copy { display: none; }
.code pre { margin: 0; padding: 16px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: var(--fs-code); line-height: 1.6; color: var(--text); tab-size: 4; }
.code--wrap pre { white-space: pre-wrap; word-break: break-all; }
.code .cmt { color: var(--text-3); }
.code .kw { color: var(--accent); }
code { font-family: var(--font-mono); font-size: .92em; }
:not(pre) > code { background: var(--surface-2); padding: 2px 6px; border-radius: var(--r-sm); overflow-wrap: anywhere; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); transform: translate(-50%, 8px);
  padding: 10px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2);
  font-size: var(--fs-small); font-weight: 500; opacity: 0; visibility: hidden; transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-move), visibility 0s var(--t-fast);
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* 4.12 Table --------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-lg); margin: 0 0 var(--s-4); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--surface); }
tbody tr:nth-child(even) { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num, .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td code { white-space: nowrap; }
caption { text-align: left; padding: 8px 0; color: var(--text-3); font-size: var(--fs-small); caption-side: bottom; }

/* 4.13 Notice -------------------------------------------------------------- */
.notice {
  padding: 16px 20px; border-radius: var(--r-md); background: var(--accent-soft); border-left: 3px solid var(--accent);
  color: var(--text-2); margin: 0 0 var(--s-4);
}
.notice > :first-child { color: var(--text); font-weight: 600; }
.notice p { margin: 0; }
.notice p + p { margin-top: var(--s-2); }
.notice--signal { border-left-color: var(--signal); }
.notice--danger { border-left-color: var(--danger); }
.notice--strip { border-radius: var(--r-lg); border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.notice--signal.notice--strip { border-left-color: var(--signal); }

/* 4.14 Timeline ----------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.timeline__item { position: relative; padding-left: var(--s-6); margin: 0 0 var(--s-5); }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); box-shadow: 0 0 0 4px var(--bg); }
.timeline__item--done::before { background: var(--ok); }
.timeline__item--now::before { background: var(--accent); }
.timeline__item--next::before { background: var(--border-strong); }
.section--alt .timeline__item::before { box-shadow: 0 0 0 4px var(--bg-elev); }
.timeline__title { margin: 0 0 2px; font-size: 1.0625rem; }
.timeline__date { display: block; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .04em; color: var(--text-3); margin-bottom: 4px; }
.timeline__item p { color: var(--text-2); margin: 0; font-size: var(--fs-small); }
.timeline-lanes { display: grid; gap: var(--s-6); }
@media (min-width: 768px) { .timeline-lanes { grid-template-columns: repeat(3, 1fr); } }
.timeline-lanes h3 { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s-4); }

/* 4.15 Breadcrumb ---------------------------------------------------------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: var(--text-3); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text-2); }

/* 4.16 Prose --------------------------------------------------------------- */
.prose { font-size: var(--fs-prose); }
.prose > * { max-width: 68ch; }
.prose h2 { margin-top: var(--s-8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--s-5); }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--text-3); }
.prose img { border-radius: var(--r-lg); border: 1px solid var(--border); }
.prose > .wide { max-width: none; }
.prose a[href^="http"]:not([href*="vivuscoin.com"])::after, .ext::after {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 3px; vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   5. Utilities
   -------------------------------------------------------------------------- */
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.small { font-size: var(--fs-small); }
.label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.measure { max-width: 68ch; }
.center { text-align: center; }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); }
.stack > * + * { margin-top: var(--s-4); }
.stack-6 > * + * { margin-top: var(--s-6); }
.flex { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.between { justify-content: space-between; }
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover .arrow { transform: translateX(3px); }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   6. Motion
   -------------------------------------------------------------------------- */
@keyframes glow-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-reveal) ease-out, transform var(--t-reveal) var(--ease-move); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 80ms; }
html.js .reveal[data-delay="2"] { transition-delay: 160ms; }
html.js .reveal[data-delay="3"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   7. Print
   -------------------------------------------------------------------------- */
@media print {
  :root { --bg: #fff; --bg-elev: #fff; --surface: #fff; --surface-2: #f2f2f2; --text: #000; --text-2: #222; --text-3: #444; --accent: #3a2a8a; --border: #ccc; --border-strong: #999; }
  .nav, .footer, .cta-band, .exit-cards, .skip, .theme-toggle, .code__copy, .hero::before, .hero::after, @media (max-width: 479.98px) { .stat-tile { padding: var(--s-4); } .stat-tile__value { font-size: 1.375rem; } }
.stat-tiles__fallback { display: none !important; }
  .hero { margin-top: 0; padding: 0 0 16px; border: 0; background: none; min-height: 0; }
  .section { padding-block: 16px; }
  .section--alt { background: none; border: 0; }
  .faq__item { break-inside: avoid; }
  .prose a[href^="http"]::after, .faq__a a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; -webkit-mask: none; mask: none; background: none; width: auto; height: auto; display: inline; }
  a { color: #000; }
  .stat-tiles { box-shadow: none; }
}
