/* ==========================================================================
   Sonder Protocol — Design System
   Tokens → Base → Utilities → Components → Sections → Responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #06080a;
  --bg-2: #0b0e11;
  --surface: #0f1316;
  --surface-2: #141a1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #e9eef0;
  --text-2: #a3adb2;
  --text-3: #6b767c;

  /* Accents — teal: trust/signal · red: risk/warning · orange: alert/action */
  --teal: #2ee6d6;
  --teal-dim: rgba(46, 230, 214, 0.14);
  --red: #ff3b3b;
  --red-dim: rgba(255, 59, 59, 0.14);
  --orange: #ff7a1a;
  --orange-dim: rgba(255, 122, 26, 0.14);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --fs-hero: clamp(2.5rem, 5.4vw, 4.9rem);
  --fs-h2: clamp(2rem, 3.8vw, 3.4rem);
  --fs-h3: 1.2rem;
  --fs-lede: clamp(1.05rem, 1.3vw, 1.2rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(88px, 12vw, 160px);
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 180ms;
  --t-med: 420ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--teal); color: var(--bg); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.muted { color: var(--text-3); }
.small { font-size: 0.75rem; }
.nowrap { white-space: nowrap; }
.t-teal { color: var(--teal); }
.t-red { color: var(--red); }
.t-orange { color: var(--orange); }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot--teal { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.dot--orange { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Components ---------- */

/* Buttons */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--b); border-radius: var(--radius);
  background: transparent; color: var(--text); cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); border-color: var(--orange); color: #120800; font-weight: 600; }
.btn--primary:hover { background: #ff8c38; box-shadow: 0 0 0 1px var(--orange), 0 10px 40px -8px rgba(255, 122, 26, 0.55); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 28px -10px var(--teal); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.72rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Tags / labels */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 2px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--text-2);
  white-space: nowrap;
}
.tag--teal { color: var(--teal); border-color: rgba(46, 230, 214, 0.4); background: var(--teal-dim); }
.tag--red { color: var(--red); border-color: rgba(255, 59, 59, 0.4); background: var(--red-dim); }
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 26, 0.4); background: var(--orange-dim); }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2);
}
.kicker { margin-bottom: 28px; }
.kicker__num { color: var(--teal); padding-right: 10px; border-right: 1px solid var(--line-strong); }

.link-arrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Status bar ---------- */
.statusbar { border-bottom: 1px solid var(--line); background: #040506; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-3); }
.statusbar__inner { display: flex; gap: 28px; align-items: center; height: 34px; }
.statusbar__item { display: inline-flex; align-items: center; gap: 8px; }
.statusbar__item strong { font-weight: 500; color: var(--text-2); }
.statusbar__item strong.t-teal { color: var(--teal); }
.statusbar__item strong.t-orange { color: var(--orange); }
.statusbar__clock { margin-left: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 10, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-med) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand__mark { width: 28px; height: 28px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.16em; }
.brand__sep { color: var(--teal); margin: 0 2px; }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a { font-size: 0.88rem; color: var(--text-2); transition: color var(--t-fast); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(72px, 10vw, 140px); border-bottom: 1px solid var(--line); }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; pointer-events: none;
  background: radial-gradient(circle, rgba(46, 230, 214, 0.12), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; width: 700px; height: 700px; left: -320px; bottom: -420px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.08), transparent 60%);
}
.hero__noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  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 baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__scan {
  position: absolute; left: 0; right: 0; height: 120px; top: -120px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(46, 230, 214, 0.05), transparent);
  animation: scan 9s linear infinite;
}
@keyframes scan { to { transform: translateY(1100px); } }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; padding-bottom: clamp(72px, 9vw, 120px); }
.hero__copy .eyebrow { margin-bottom: 28px; }
.hero__title { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; }
.hero__title-accent {
  background: linear-gradient(90deg, var(--text) 0%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 28px; max-width: 560px; font-size: var(--fs-lede); color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__stats { display: flex; gap: clamp(24px, 4vw, 56px); margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats dt { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.hero__stats dd { margin: 4px 0 0; font-size: 0.8rem; color: var(--text-3); max-width: 150px; line-height: 1.4; }

/* Console */
.console {
  position: relative; background: linear-gradient(180deg, rgba(20, 26, 30, 0.9), rgba(10, 13, 16, 0.9));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(46, 230, 214, 0.04), 0 0 80px -40px rgba(46, 230, 214, 0.35);
}
.console::before, .console::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--teal); border-style: solid; }
.console::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.console::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.console__head, .console__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; color: var(--text-3); }
.console__head { border-bottom: 1px solid var(--line); }
.console__rows { list-style: none; margin: 0; padding: 20px; display: grid; gap: 16px; }
.console__rows li { display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 14px; color: var(--text-2); }
.console__rows li > span:last-child { text-align: right; }
.bar { height: 4px; background: rgba(255, 255, 255, 0.06); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--v) * 100%); transform-origin: left; animation: fill 1.4s var(--ease) both; }
.bar--red { background: var(--red); box-shadow: 0 0 10px var(--red); }
.bar--orange { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
@keyframes fill { from { transform: scaleX(0); } }
.console__alert { margin: 0 20px; padding: 16px; border: 1px dashed rgba(255, 122, 26, 0.35); background: rgba(255, 122, 26, 0.05); border-radius: var(--radius); }
.console__alert p { margin-top: 10px; font-family: var(--font-body); font-size: 0.86rem; letter-spacing: 0; color: var(--text-2); line-height: 1.5; }
.console__foot { margin-top: 16px; border-top: 1px solid var(--line); }
.console__score { font-family: var(--font-display); font-size: 1.8rem; color: var(--red); letter-spacing: -0.02em; }
.console__score small { font-size: 0.8rem; color: var(--text-3); }

/* Ticker */
.hero__ticker { position: relative; z-index: 1; border-top: 1px solid var(--line); overflow: hidden; background: rgba(0, 0, 0, 0.35); }
.ticker { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { padding: 16px 32px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--text-3); white-space: nowrap; }
.ticker span::before { content: "▲"; color: var(--red); margin-right: 14px; font-size: 0.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.section__title { font-size: var(--fs-h2); font-weight: 600; }
.section__title .muted { color: var(--text-3); }
.section__lede { margin-top: 24px; font-size: var(--fs-lede); color: var(--text-2); max-width: 640px; }
.section__head--split .section__lede { margin-top: 0; }

/* Featured alert */
.featured-alert {
  position: relative; padding: clamp(28px, 4vw, 44px); margin-bottom: 24px;
  border: 1px solid rgba(255, 59, 59, 0.28); border-left: 3px solid var(--red); border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(255, 59, 59, 0.08), transparent 60%);
}
.featured-alert__meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; font-size: 0.7rem; }
.featured-alert h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; max-width: 720px; }
.featured-alert p { margin: 14px 0 22px; color: var(--text-2); max-width: 720px; }

/* Risk grid */
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.risk-card { background: var(--bg); padding: 28px 24px 32px; position: relative; transition: background var(--t-med) var(--ease); }
.risk-card::before { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; transition: width var(--t-med) var(--ease); }
.risk-card[data-level="high"]::before { background: var(--red); }
.risk-card[data-level="elevated"]::before { background: var(--orange); }
.risk-card[data-level="monitor"]::before { background: var(--teal); }
.risk-card:hover { background: var(--surface); }
.risk-card:hover::before { width: 100%; }
.risk-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; }
.risk-card__id { color: var(--text-3); }
.level::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.level--high { color: var(--red); }
.level--elevated { color: var(--orange); }
.level--monitor { color: var(--teal); }
.risk-card h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 10px; }
.risk-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.55; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  padding: 36px 32px 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg);
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.pillar:hover { border-color: rgba(46, 230, 214, 0.35); transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(46, 230, 214, 0.35); }
.pillar__num { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal); margin-bottom: 48px; }
.pillar h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }
.pillar p { color: var(--text-2); font-size: 0.95rem; }

/* Protocols */
.protocols { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.protocol {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.protocol:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.protocol--lead { grid-row: span 2; border-color: rgba(255, 122, 26, 0.35); box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.08), 0 40px 100px -50px rgba(255, 122, 26, 0.45); }
.protocol:last-child:not(.protocol--lead) { grid-column: span 2; }
.protocol--lead:hover { border-color: rgba(255, 122, 26, 0.6); }
.protocol--lead::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 80% 0%, rgba(255, 122, 26, 0.12), transparent 55%); }
.protocol__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.protocol__code { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--text-3); }
.protocol--lead .protocol__code { color: var(--orange); }
.protocol__glyph { width: 140px; margin: 8px 0 20px; color: var(--orange); }
.protocol__glyph text { font-family: var(--font-display); font-size: 22px; font-weight: 700; fill: var(--text); }
.protocol h3 { font-size: 1.45rem; font-weight: 600; }
.protocol--lead h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.protocol p { color: var(--text-2); font-size: 0.95rem; }
.protocol__specs { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.protocol__specs li { display: flex; justify-content: space-between; gap: 12px; }
.protocol__specs li span:first-child { color: var(--text-3); text-transform: uppercase; }
.protocol--lead .protocol__specs { margin-bottom: 12px; }

/* Trust */
.trust { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.trust__intro { position: sticky; top: 120px; }
.trust__quote { margin: 48px 0 0; padding: 24px 0 0 24px; border-left: 2px solid var(--teal); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; color: var(--text); }
.trust__quote cite { display: block; margin-top: 14px; font-family: var(--font-mono); font-style: normal; font-size: 0.7rem; letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; }
.standards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.standards li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding var(--t-med) var(--ease); }
.standards li:hover { padding-left: 10px; }
.standards__n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal); padding-top: 4px; }
.standards h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.standards p { color: var(--text-2); font-size: 0.95rem; }

/* CTA */
.cta { position: relative; overflow: hidden; padding: var(--section-y) 0; text-align: center; }
.cta__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 70%);
}
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(46, 230, 214, 0.12), transparent 65%); pointer-events: none; }
.cta__inner { position: relative; max-width: 760px; }
.cta__title { margin-top: 28px; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; }
.cta__sub { margin: 22px auto 0; max-width: 560px; color: var(--text-2); font-size: var(--fs-lede); }
/* Buy */
.buy { text-align: left; }
.buy__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.buy__media { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 50px 120px -50px rgba(255, 122, 26, 0.4); }
.buy__media img { width: 100%; height: auto; }
.buy__copy .cta__title { margin-top: 24px; }
.buy__copy .cta__sub { margin-left: 0; }
.buy__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.buy__list li { position: relative; padding-left: 28px; color: var(--text-2); }
.buy__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.buy__price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 36px 0 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.buy__amount { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; }
.buy__price .mono { font-size: 0.72rem; }
.buy__form { margin: 0; }
.buy__form .btn { min-height: 60px; font-size: 0.9rem; }
.buy__fine { margin-top: 16px; font-size: 0.72rem; color: var(--text-3); }

/* Success page */
.access { min-height: calc(100vh - 72px); display: grid; place-items: center; }
.access__btn { margin-top: 40px; min-height: 60px; }
.access__notes { list-style: none; margin: 40px auto 0; padding: 24px 0 0; max-width: 520px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.74rem; color: var(--text-3); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #040506; padding-top: 72px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer__brand p { margin-top: 20px; max-width: 380px; color: var(--text-2); font-size: 0.92rem; }
.footer__brand p.small { margin-top: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.footer__col a { color: var(--text-2); font-size: 0.92rem; transition: color var(--t-fast); width: fit-content; }
.footer__col a:hover { color: var(--teal); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--text-3); }
.footer__base .mono { font-size: 0.7rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .console { max-width: 560px; }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .protocols { grid-template-columns: 1fr 1fr; }
  .protocol--lead { grid-column: span 2; grid-row: auto; }
  .trust { grid-template-columns: 1fr; }
  .trust__intro { position: static; }
  .section__head--split { grid-template-columns: 1fr; gap: 0; }
  .section__head--split .section__lede { margin-top: 24px; }
  .buy__inner { grid-template-columns: 1fr; }
  .buy__media { max-width: 560px; }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; padding: 0 10px; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  }
  .nav__toggle span { display: block; height: 1px; background: var(--text); transition: transform var(--t-fast) var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(6, 8, 10, 0.97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav.is-open .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav.is-open .nav__links a::after { display: none; }
  .hide-sm { display: none !important; }
}

@media (max-width: 640px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { gap: 20px; }
  .hero__stats dt { font-size: 1.5rem; }
  .risk-grid, .pillars, .protocols { grid-template-columns: 1fr; }
  .protocol--lead, .protocol:last-child:not(.protocol--lead) { grid-column: auto; }
  .pillar__num { margin-bottom: 28px; }
  .risk-card header { margin-bottom: 24px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

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