/* ============================================================
   StablePons ($USDP) — corporate perfection, visibly wobbling
   ============================================================ */

:root {
  --white: #FFFFFF;
  --panel: #F4F7FB;
  --blue: #1A5CE5;
  --blue-soft: #E7EEFB;
  --blue-light: #8FB0F2;
  --navy: #0E1B33;
  --gray: #5B6B85;
  --green: #0BA95B;
  --red: #E5484D;
  --hairline: #E3E9F4;
  --terminal-bg: #0B1630;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --ticker-h: 36px;
  --nav-h: 64px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 27, 51, 0.04), 0 10px 30px rgba(14, 27, 51, 0.07);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  padding-top: calc(var(--ticker-h) + var(--nav-h));
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
ul, ol { padding: 0; }
section { scroll-margin-top: calc(var(--ticker-h) + var(--nav-h) + 16px); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--blue); color: var(--white);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

/* ---------- The Wobble ---------- */
/* peg.js assigns randomized custom props and adds .wobble to
   every .card and section heading. Subtle by design: ±0.4deg, ±1px. */
@keyframes wobble {
  0%   { transform: rotate(var(--wob-a, -0.2deg)) translate(var(--wob-x, 0.5px), var(--wob-y, -0.5px)); }
  50%  { transform: rotate(var(--wob-b, 0.2deg)) translate(calc(var(--wob-x, 0.5px) * -1), calc(var(--wob-y, -0.5px) * -1)); }
  100% { transform: rotate(var(--wob-a, -0.2deg)) translate(var(--wob-x, 0.5px), var(--wob-y, -0.5px)); }
}
.wobble {
  animation: wobble var(--wob-dur, 7s) ease-in-out var(--wob-delay, 0s) infinite;
  will-change: transform;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }

.eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow-note { color: var(--gray); font-weight: 600; letter-spacing: 0.1em; }

.section { padding: 96px 0; }
.section-panel { background: var(--panel); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-sub { color: var(--gray); margin-top: 10px; }
.col-title { margin-bottom: 20px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.fine-print { font-size: 0.72rem; color: var(--gray); margin-top: 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(26, 92, 229, 0.28); }
.btn-primary:hover { background: #1449BC; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-ghost { color: var(--blue); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   1. Ticker tape
   ============================================================ */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--ticker-h);
  background: var(--blue-soft);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  display: flex; align-items: center;
}
.ticker-track {
  display: inline-flex; align-items: center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--navy);
  animation: ticker-scroll var(--ticker-dur, 45s) linear infinite;
}
.ticker-item { padding: 0 18px; }
.ticker-sep { color: var(--blue); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   2. Navbar
   ============================================================ */
.site-header {
  position: fixed; top: var(--ticker-h); left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1.05rem; color: var(--navy);
}
.emblem {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--gray); font-size: 0.92rem; font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-cta { padding: 9px 18px; font-size: 0.88rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px;
  margin-left: auto;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   3. Hero
   ============================================================ */
.hero { padding: 88px 0 96px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { max-width: 820px; }
.subhead {
  max-width: 640px; margin: 22px auto 0;
  color: var(--gray); font-size: 1.08rem;
}

/* The Peg Widget */
.peg-card {
  margin-top: 44px; padding: 32px 48px;
  min-width: min(420px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.peg-label {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; color: var(--gray);
}
.peg-row { display: flex; align-items: baseline; gap: 10px; min-height: 1.1em; }
.peg-value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(3rem, 9vw, 4.6rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  transition: color 0.15s;
}
.peg-arrow { font-size: 1.1rem; width: 1.2em; text-align: left; }
.peg-value.up, .peg-arrow.up { color: var(--green); }
.peg-value.down, .peg-arrow.down { color: var(--red); }
@keyframes peg-flicker {
  0% { opacity: 0.25; } 30% { opacity: 1; } 55% { opacity: 0.55; } 100% { opacity: 1; }
}
.peg-value.flicker { animation: peg-flicker 0.45s ease; }

.peg-status {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--panel); color: var(--gray);
}
.peg-status[data-mood="stable"] { color: var(--green); border-color: rgba(11, 169, 91, 0.35); background: rgba(11, 169, 91, 0.07); }
.peg-status[data-mood="recal"] { color: var(--blue); border-color: rgba(26, 92, 229, 0.3); background: var(--blue-soft); }
.peg-status[data-mood="panic"] { color: var(--red); border-color: rgba(229, 72, 77, 0.35); background: rgba(229, 72, 77, 0.07); }
.peg-footnote { font-size: 0.72rem; color: var(--gray); margin-top: 6px; }

.hero-actions {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}

/* CA pill (buy step) */
.ca-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid rgba(26, 92, 229, 0.45);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  background: var(--white);
  max-width: 100%;
}
.ca-text {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--navy);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: min(52vw, 340px);
}
.copy-btn {
  border: 0; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
  font-weight: 600; font-size: 0.78rem;
  padding: 7px 14px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { background: #D5E2F9; }
.copy-note {
  display: block;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--green);
  opacity: 0; transition: opacity 0.25s;
  min-height: 1.2em;
}
.copy-note.show { opacity: 1; }

/* ============================================================
   VERIFIED RESERVES OF TRUTH — anti-impersonation card
   The one element on this site that never moves. The contrast with
   the sitewide wobble is both the joke and the trust signal, so the
   lock is belt-and-braces: !important here, plus an explicit
   exclusion from the idle-sway selector in js/peg.js.
   ============================================================ */
.verified-wrap { width: 100%; max-width: 640px; margin: 44px auto 0; }
.verified-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  box-shadow: 0 10px 34px rgba(26, 92, 229, 0.11);
  text-align: left;
  transform: none !important;
  animation: none !important;
}
.verified-card * { transform: none !important; animation: none !important; }

.verified-badge {
  position: absolute; top: -11px; right: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white);
  border: 1px solid rgba(26, 92, 229, 0.4);
  color: var(--blue);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em;
  padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}
.verified-badge .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 0.58rem; line-height: 1;
}

.verified-head {
  font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--blue); line-height: 1.55;
  margin-bottom: 22px;
}

.verified-field { margin-bottom: 18px; }
.verified-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 8px;
}
.verified-ca-row { display: flex; gap: 10px; align-items: stretch; }
.verified-ca {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.45;
  color: var(--navy);
  background: #FBFCFE;
  border: 1px solid rgba(26, 92, 229, 0.35);
  border-radius: 9px;
  padding: 12px 14px;
  word-break: break-all;
}
.verified-copy {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 26px;
}

.verified-links { display: flex; gap: 12px; flex-wrap: wrap; }
.verified-link {
  flex: 1 1 210px;
  min-height: 44px;
  gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em;
}
.ext-glyph {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.verified-note {
  margin-top: 20px;
  font-size: 0.82rem; line-height: 1.65;
  color: var(--navy);
}
.verified-caption {
  margin-top: 10px; text-align: center;
  font-size: 0.72rem; color: var(--gray);
}

/* Pre-launch state: CONFIG not yet filled in. Never render a raw
   {{PLACEHOLDER}} — see hydrateLinks() in js/main.js. */
.is-pending {
  color: var(--gray);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: normal;
}
.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}
.btn:disabled, .copy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Compact variant — footer */
.footer-verified { max-width: 640px; margin: 0 auto 44px; }
.verified-compact { padding: 26px 24px 22px; }
.verified-compact-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.verified-compact-head .verified-head { margin-bottom: 0; }

/* ---------- Hero media ---------- */
.media-frame { margin: 56px auto 0; padding: 10px; width: 100%; max-width: 860px; }
.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
}
.hero-video, .hero-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============================================================
   4. Trust bar
   ============================================================ */
.trust-bar {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--white);
  padding: 22px 0;
  text-align: center;
}
.trust-bar p {
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray);
}
.trust-bar strong { color: var(--navy); font-weight: 800; }

/* ============================================================
   5. Reserves
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.donut-wrap { max-width: 360px; }
.donut { width: 100%; height: auto; overflow: visible; }
.donut-bg { fill: none; stroke: var(--hairline); stroke-width: 30; }
.donut .seg {
  fill: none; stroke-width: 30;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s);
}
.donut-wrap.drawn .seg { stroke-dasharray: var(--seg) var(--rest); }
.donut-center {
  font-family: var(--font-mono); font-weight: 700; font-size: 24px;
  fill: var(--navy); text-anchor: middle;
}
.donut-center-sub {
  font-family: var(--font-mono); font-size: 10px;
  fill: var(--gray); text-anchor: middle; letter-spacing: 0.1em;
}
.donut-here-text {
  font-family: var(--font-mono); font-size: 10px; font-style: italic;
  fill: var(--green); text-anchor: end;
}
.donut-here path { stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; fill: none; }

.legend { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--navy); }
.swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--c, var(--gray)); flex-shrink: 0; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { padding: 24px; }
.stat-label {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.18em; color: var(--gray);
}
.stat-value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-top: 10px; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.stat-note { font-size: 0.82rem; color: var(--gray); margin-top: 8px; }

/* ============================================================
   6. Compliance Terminal
   ============================================================ */
.terminal-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.terminal { overflow: hidden; }
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #D3DCEA; }
.terminal-bar .dot:nth-child(1) { background: #F0A9AB; }
.terminal-bar .dot:nth-child(2) { background: #F2D49B; }
.terminal-bar .dot:nth-child(3) { background: #A5D9BC; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--gray);
  letter-spacing: 0.04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.terminal-screen {
  background: var(--terminal-bg);
  color: #D7E1F5;
  font-family: var(--font-mono);
  font-size: 0.78rem; line-height: 1.65;
  padding: 22px 24px;
  margin: 0;
  min-height: 36em;
  overflow-x: auto;
  white-space: pre;
}
.tok-c { color: #4FBF8B; }           /* comments — compliance green */
.tok-k { color: #7DA7FF; }           /* keywords — trust blue */
.tok-s { color: #9EE8C1; }           /* strings */
.tok-n { color: #9CC0FF; }           /* numbers */
.cursor { color: #7DA7FF; animation: cursor-blink 1s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }

.terminal-copy p:not(.eyebrow) { color: var(--gray); margin-top: 16px; }

/* ============================================================
   7. Stability Plan
   ============================================================ */
.timeline {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute; top: 44px; left: 6%; right: 6%;
  height: 2px; background: #C9D8F5;
}
.step { padding: 24px; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
  margin-bottom: 16px;
  box-shadow: 0 0 0 5px var(--white);
}
.step h3 { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--blue); }
.step p { font-size: 0.88rem; color: var(--gray); margin-top: 10px; }

/* ============================================================
   8. Attestations
   ============================================================ */
.attest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.attest { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.attest-photo {
  width: 100%; height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--panel);
}
.attest blockquote { font-size: 0.95rem; color: var(--navy); flex-grow: 1; }
.attest figcaption {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--gray); text-transform: uppercase;
}

/* ============================================================
   9. Get $USDP
   ============================================================ */
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.buy-step { padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.buy-step h3 { font-size: 1.05rem; }
.buy-step p { font-size: 0.9rem; color: var(--gray); }
.buy-step .btn { margin-top: 12px; }
.buy-step .ca-pill { margin-top: 14px; max-width: 100%; }
.buy-step .ca-text { max-width: 160px; }
.buy-step .copy-note { margin-top: 6px; }

/* ============================================================
   10. FAQ
   ============================================================ */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px;
  font-weight: 600; font-size: 1.02rem;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono); font-size: 1.2rem; color: var(--blue);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 4px 22px; color: var(--gray); max-width: 640px; }

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--panel);
  padding: 56px 0;
}
.site-footer .emblem { width: 30px; height: 30px; }
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.footer-tagline { font-size: 0.85rem; color: var(--gray); }
.disclaimer {
  margin-top: 26px;
  font-size: 0.74rem; line-height: 1.7; color: var(--gray);
  max-width: 880px;
}
.disclaimer strong { color: var(--navy); font-weight: 800; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .attest-grid { grid-template-columns: 1fr; }
  .buy-grid { grid-template-columns: 1fr; }
  .attest-photo { max-width: 320px; }
}

@media (max-width: 860px) {
  .nav { gap: 14px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: calc(var(--ticker-h) + var(--nav-h));
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 0; font-size: 1rem; }
  .nav-links a.active { border-bottom: 0; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .peg-card { padding: 26px 20px; min-width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .hero-actions .btn { flex-grow: 1; }
  .terminal-screen { font-size: 0.68rem; padding: 16px; min-height: 34em; }
  .footer-row { flex-direction: column; align-items: flex-start; }

  .verified-card { padding: 26px 18px 22px; }
  .verified-ca-row { flex-direction: column; }
  .verified-copy { width: 100%; }
  .verified-link { flex: 1 1 100%; }
  .verified-badge { right: 14px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .nav-cta { padding: 8px 12px; font-size: 0.8rem; }
  .ticker-track { font-size: 0.64rem; }
  .ca-text { max-width: 46vw; }
  .emblem { width: 30px; height: 30px; }
  .verified-ca { font-size: 0.75rem; }
  .verified-head { font-size: 0.68rem; letter-spacing: 0.1em; }
}

/* ============================================================
   Reduced motion — the site is frozen mid-wobble.
   Still tilted (0.5deg default), still funny, no movement.
   The verified card stays perfectly level, as always.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .wobble {
    animation: none;
    transform: rotate(var(--tilt-static, 0.5deg));
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .donut .seg { transition: none; }
  .cursor { animation: none; }
  .peg-value.flicker { animation: none; }
  .nav-toggle span, .btn, .copy-btn, .faq-list summary::after { transition: none; }
}
