/*
  Human Gate — site.css
  Tokens based on the Linear DESIGN.md from VoltAgent/awesome-design-md
  (https://raw.githubusercontent.com/VoltAgent/awesome-design-md/main/design-md/linear.app/DESIGN.md):
  near-black canvas, 4-step charcoal surface ladder, hairline borders, ink ladder,
  single chromatic accent used only on the mark, focus rings and primary CTAs.
  Changes for Human Gate: Linear lavender swapped for "phosphor amber", Geist / Geist Mono
  instead of Linear's custom faces, a hairline engineering grid, mono labels.
*/

:root {
  --canvas: #010102;
  --surface-1: #0b0c0d;
  --surface-2: #111214;
  --surface-3: #17181a;
  --surface-4: #1c1d20;
  --hairline: #1f2125;
  --hairline-strong: #2e3036;
  --hairline-tertiary: #3e3e44;

  --ink: #f7f8f8;
  --ink-muted: #d0d6e0;
  --ink-subtle: #8f949d;
  --ink-tertiary: #6b7078;

  --accent: #ffb000;          /* phosphor amber */
  --accent-hover: #ffc53d;
  --accent-ink: #120c00;
  --accent-soft: rgba(255, 176, 0, 0.10);
  --accent-line: rgba(255, 176, 0, 0.35);

  --ok: #3ccf6e;
  --err: #ff5c5c;
  --err-soft: rgba(255, 92, 92, 0.10);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --gutter: 32px;
  --maxw: 1200px;
  --nav-h: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.05px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- background: hairline grid + slow amber accent ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg::before {
  content: ""; position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}
.bg__glow {
  position: absolute; width: 900px; height: 900px; border-radius: 50%;
  right: -300px; top: -420px;
  background: radial-gradient(circle, rgba(255,176,0,0.10) 0%, rgba(255,176,0,0.03) 35%, transparent 65%);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-160px, 120px, 0); }
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding: 112px 0; border-top: 1px solid var(--hairline); }
.section__head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-bottom: 48px; }
.section__head h2 { margin: 0; }
.section__lede { color: var(--ink-subtle); max-width: 640px; margin: 12px 0 0; font-size: 17px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.mono, .label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
}
.label { color: var(--ink-subtle); display: inline-flex; align-items: center; gap: 8px; }
.label--accent { color: var(--accent); }
.idx { font-family: var(--font-mono); font-size: 12px; color: var(--ink-tertiary); }
.muted { color: var(--ink-subtle); }
.accent { color: var(--accent); }
code, .code { font-family: var(--font-mono); font-size: 13px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(1,1,2,0.72);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand__name { font-size: 15px; white-space: nowrap; }
.brand__tick { font-family: var(--font-mono); font-size: 11px; color: var(--ink-subtle); border: 1px solid var(--hairline-strong); padding: 1px 6px; border-radius: 4px; }
.nav__links { display: flex; gap: 4px; margin-left: 16px; }
.nav__links a { text-decoration: none; color: var(--ink-subtle); font-size: 14px; padding: 6px 10px; border-radius: 6px; transition: color .15s, background .15s; }
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- brand mark (dot aperture) ---------- */
.mark { width: 28px; height: 28px; flex: none; overflow: visible; }
.mark circle { fill: var(--ink); transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s, fill .3s; transform-box: fill-box; transform-origin: center; }
.mark .m-l, .mark .m-r { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.mark .m-c circle { fill: var(--ink-subtle); }
.mark .m-h { fill: var(--accent); transform: scale(0); }
.mark .m-post circle { fill: var(--ink-tertiary); }
.brand:hover .mark .m-l, .mark.is-open .m-l { transform: translateX(-3px); }
.brand:hover .mark .m-r, .mark.is-open .m-r { transform: translateX(3px); }
.brand:hover .mark .m-c circle, .mark.is-open .m-c circle { transform: scale(0); opacity: 0; }
.brand:hover .mark .m-h, .mark.is-open .m-h { transform: scale(1); }

/* ---------- buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: var(--r-md);
  font: 500 14px/1 var(--font-sans); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--hairline-strong); background: var(--surface-2); color: var(--ink);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--surface-4); border-color: var(--hairline-tertiary); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; }
.btn--sm { --h: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { --h: 48px; padding: 0 20px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- chips / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--surface-1); white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted);
}
.pill--warn { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-subtle); flex: none; }
.dot--live { background: var(--accent); box-shadow: 0 0 0 0 rgba(255,176,0,.6); animation: pulse 2s infinite; }
.dot--ok { background: var(--ok); }
.dot--err { background: var(--err); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,176,0,.55);} 70% { box-shadow: 0 0 0 7px rgba(255,176,0,0);} 100% { box-shadow: 0 0 0 0 rgba(255,176,0,0);} }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero h1 .hl { color: var(--accent); }
.hero__line { margin-top: 24px; font-size: 19px; line-height: 1.5; color: var(--ink-muted); max-width: 560px; }
.hero__pitch { margin-top: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-subtle); }
.hero__pitch b { color: var(--ink); font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.ca { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.ca__val { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.copy { background: none; border: 1px solid var(--hairline-strong); color: var(--ink-subtle); border-radius: 4px; font: 11px var(--font-mono); padding: 2px 6px; cursor: pointer; }
.copy:hover { color: var(--ink); }

/* gate illustration panel */
.panel {
  position: relative; background: linear-gradient(180deg, var(--surface-1), rgba(11,12,13,.6));
  border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
}
.panel__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--hairline); }
.sim { position: relative; aspect-ratio: 4 / 3.1; width: 100%; }
.sim canvas { width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.sim__phase { position: absolute; left: 16px; top: 14px; display: flex; gap: 10px; align-items: center; pointer-events: none; }
.sim__timer { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 2px; background: var(--hairline-strong); border-radius: 2px; overflow: hidden; pointer-events: none; }
.sim__timer i { display: block; height: 100%; width: 0; background: var(--accent); }
.sim__hint { position: absolute; right: 16px; top: 14px; pointer-events: none; }
.stat { font-family: var(--font-mono); font-size: 12px; color: var(--ink-subtle); }
.stat b { color: var(--ink); font-weight: 500; }
.stat b.a { color: var(--accent); }
.legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: middle; }
.legend .lh { background: var(--accent); border-radius: 50%; }
.legend .lb { border: 1.5px solid var(--ink-subtle); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; position: relative; }
.step { padding: 28px 24px 32px; background: var(--surface-1); border-right: 1px solid var(--hairline); position: relative; min-width: 0; }
.step:last-child { border-right: 0; }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.step__icon { width: 44px; height: 44px; }
.step__icon * { stroke: var(--ink-muted); fill: none; stroke-width: 1.4; }
.step__icon .f { fill: var(--accent); stroke: none; }
.step__icon .fa { stroke: var(--accent); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-subtle); font-size: 15px; }
.step code { color: var(--ink-muted); }
.steps__rail { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width 1.6s cubic-bezier(.2,.7,.2,1); }
.steps.in .steps__rail { width: 100%; }

/* ---------- data cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.card { background: var(--surface-1); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: background .2s; }
.card:hover { background: var(--surface-2); }
.num { font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-decoration: none; display: inline-block; }
.num:hover { color: var(--accent); }
.num small { font-size: 0.5em; color: var(--ink-subtle); font-weight: 500; letter-spacing: -0.01em; }
.num .vs { color: var(--ink-tertiary); font-weight: 500; }
.card p { color: var(--ink-subtle); font-size: 15px; }
.card .take { color: var(--ink-muted); }
.src { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 6px; }
.src a { font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-subtle); text-decoration: none; border-bottom: 1px solid var(--hairline-strong); }
.src a:hover { color: var(--accent); border-color: var(--accent); }
.src a::after { content: " \2197"; }

/* ---------- comparison table ---------- */
.table-wrap { border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; background: var(--surface-1); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.cmp thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 400; background: var(--surface-2); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
.cmp td { color: var(--ink-muted); }
.cmp td a { color: var(--ink-subtle); font-family: var(--font-mono); font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--hairline-strong); }
.cmp td a:hover { color: var(--accent); }
.cmp tr.us td { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); color: var(--ink); }
.cmp tr.us td:first-child { color: var(--accent); }
.tax { font-family: var(--font-mono); font-size: 13px; }

/* ---------- roadmap ---------- */
.rm { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.rm__tabs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.rm__tab { text-align: left; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px; color: var(--ink-subtle); cursor: pointer; font: inherit; transition: border-color .2s, background .2s, color .2s; }
.rm__tab b { display: block; color: var(--ink); font-weight: 600; font-size: 17px; margin-top: 6px; }
.rm__tab[aria-selected="true"] { border-color: var(--accent-line); background: var(--surface-2); color: var(--ink-muted); }
.rm__tab[aria-selected="true"] .label { color: var(--accent); }
.rm__meter { margin-top: 10px; height: 2px; background: var(--hairline-strong); border-radius: 2px; overflow: hidden; }
.rm__meter i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.rm__track { position: relative; padding-left: 36px; }
.rm__line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--hairline-strong); }
.rm__line i { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--accent); transition: height 1.4s cubic-bezier(.2,.7,.2,1); }
.rm__item { position: relative; border: 1px solid var(--hairline); background: var(--surface-1); border-radius: var(--r-lg); margin-bottom: 10px; transition: border-color .2s, background .2s, opacity .4s, transform .4s; }
.rm__item[hidden] { display: none; }
.rm__item:hover { border-color: var(--hairline-strong); }
.rm__item.open { background: var(--surface-2); border-color: var(--hairline-strong); }
.rm__node { position: absolute; left: -31px; top: 20px; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ink-tertiary); background: var(--canvas); }
.rm__item.is-live .rm__node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.rm__btn { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; }
.rm__btn h3 { flex: 1; font-size: 16px; font-weight: 500; }
.rm__chev { width: 14px; height: 14px; flex: none; transition: transform .25s; stroke: var(--ink-subtle); fill: none; stroke-width: 1.5; }
.rm__item.open .rm__chev { transform: rotate(180deg); }
.rm__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.rm__item.open .rm__body { grid-template-rows: 1fr; }
.rm__body > div { overflow: hidden; }
.rm__body p { padding: 0 18px 18px; color: var(--ink-subtle); font-size: 15px; max-width: 680px; }
.tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--hairline-strong); color: var(--ink-subtle); flex: none; }
.tag--live { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- limits ---------- */
.limits { border: 1px solid var(--accent-line); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255,176,0,.05), transparent 60%), var(--surface-1); padding: 32px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.limits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.limits li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-subtle); font-size: 15px; }
.limits li b { color: var(--ink); font-weight: 500; }
.limits li::before { content: "!"; font: 500 11px/20px var(--font-mono); width: 20px; height: 20px; text-align: center; border: 1px solid var(--accent-line); color: var(--accent); border-radius: 4px; margin-top: 1px; }
.limits a { color: var(--ink-muted); }

/* ---------- token ---------- */
.token { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.token > div { background: var(--surface-1); padding: 32px; min-width: 0; }
.token__sym { font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.token__sym span { color: var(--accent); }
.kv { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 10px 16px; margin-top: 28px; font-size: 14px; }
.kv dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-subtle); padding-top: 2px; }
.kv dd { margin: 0; color: var(--ink-muted); min-width: 0; }
.util { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.util li { border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px; background: var(--surface-2); }
.util li h3 { font-size: 15px; font-weight: 500; display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.util li p { color: var(--ink-subtle); font-size: 14px; }
.note { margin-top: 18px; font-size: 13px; color: var(--ink-subtle); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--hairline); padding: 48px 0 56px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { color: var(--ink-subtle); text-decoration: none; font-size: 14px; }
.foot__links a:hover { color: var(--ink); }
.foot__fine { margin-top: 24px; font-size: 12px; color: var(--ink-tertiary); max-width: 760px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ---------- research page ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-muted); }
.prose h2 { margin: 56px 0 16px; font-size: 26px; }
.prose a { color: var(--ink); text-decoration-color: var(--hairline-tertiary); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ol, .prose ul { padding-left: 20px; display: grid; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rm { grid-template-columns: 1fr; gap: 20px; }
  .rm__tabs { position: static; flex-direction: row; }
  .rm__tab { flex: 1; min-width: 0; }
  .section__head { grid-template-columns: 1fr; gap: 8px; }
  .limits { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 56px; }
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero__line { font-size: 17px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .steps, .cards { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .step:last-child { border-bottom: 0; }
  .step__top { margin-bottom: 20px; }
  .token { grid-template-columns: 1fr; }
  .token > div, .limits { padding: 24px 20px; }
  .kv { grid-template-columns: 1fr; gap: 4px; }
  .kv dd { margin-bottom: 10px; }
  /* table -> stacked cards; every cell keeps its label */
  table.cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { border-bottom: 1px solid var(--hairline); padding: 12px 0; }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp td { border: 0; padding: 6px 16px; display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; }
  .cmp td::before { content: attr(data-l); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-subtle); padding-top: 2px; }
  .cmp td:first-child { white-space: normal; font-size: 16px; }
  .cmp td > * { justify-self: start; }
  .rm__tab b { font-size: 15px; }
  .rm__track { padding-left: 28px; }
  .rm__line { left: 7px; }
  .rm__node { left: -27px; }
  .sim { aspect-ratio: 4 / 4.2; }
}

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