/* palette: k-means (k=6, seed 1, 60k px sample) over reference/SAMPUL HASHOME JPG.jpg.jpeg, reference/HASHOME 1.jpg.jpeg and brand/LOGO HASHOME PNG.png; each centroid snapped to the nearest real pixel, coordinates are (x, y) in the full-size source. Alpha variants keep the sampled RGB. */
:root {
  --bg: #010808;
  --bg-glass: rgba(1, 8, 8, 0.86);
  --surface: #0a1415;
  --surface-2: #182525;
  --line: #2d3b3b;
  --line-2: #535858;
  --text: #f5f5f5;
  --muted: #b4b4b4;
  --faint: #727575;
  --invert: #010808;
  --accent: #f5f5f5;
  --glow: rgba(245, 245, 245, 0.10);
  --glow-strong: rgba(245, 245, 245, 0.26);
  --grid: rgba(245, 245, 245, 0.035);
  --shadow: rgba(0, 0, 0, 0.55);
}
/* All colors come from tokens.css (generated from tokens.json). No literals here. */
:root {
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --tap: 48px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --r: 14px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 160px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); overflow-x: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
code { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; background: var(--accent); color: var(--invert); padding: 12px 16px; border-radius: 8px; z-index: 50; }
.skip:focus-visible { top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- motion primitives (transform + opacity only) ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms), translate 0.25s var(--ease), scale 0.15s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- header + contract slot ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); text-decoration: none; font-weight: 700; letter-spacing: 0.02em; font-size: 18px; }
.socials { display: flex; gap: 4px; margin-right: -8px; }
.soc { position: relative; display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 12px; color: var(--text); text-decoration: none; transition: translate 0.2s var(--ease), scale 0.15s var(--ease); }
.soc::after { content: ""; position: absolute; inset: 4px; border-radius: 10px; background: var(--glow); opacity: 0; transition: opacity 0.25s var(--ease); z-index: -1; }
a.soc:hover { translate: 0 -2px; }
a.soc:hover::after { opacity: 1; }
a.soc:active { scale: 0.94; }
.soc.is-inert { color: var(--faint); cursor: not-allowed; }

.ca { position: relative; padding: 0 0 10px; }
.ca-btn {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l a" "t t"; gap: 2px 12px; align-items: center; width: 100%; min-height: var(--tap);
  text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 14px; cursor: pointer;
  transition: translate 0.25s var(--ease), scale 0.15s var(--ease);
}
.ca-btn::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1px var(--line-2), 0 10px 44px var(--glow); opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none; }
.ca-btn:not(:disabled):hover { translate: 0 -2px; }
.ca-btn:not(:disabled):hover::before { opacity: 1; }
.ca-btn:not(:disabled):active { scale: 0.99; }
.ca-btn:disabled { cursor: not-allowed; background: var(--bg); border-style: dashed; }
.ca-label { grid-area: l; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ca-text { grid-area: t; font: 600 clamp(13px, 3.55vw, 26px)/1.35 var(--mono); overflow-wrap: anywhere; word-break: break-all; }
.ca-text.is-empty { font-weight: 400; color: var(--faint); font-family: var(--sans); font-size: clamp(16px, 4vw, 22px); }
.ca-act { grid-area: a; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; position: relative; min-width: 48px; justify-content: flex-end; }
.ca-tag { text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 9px; }
.ca-ico { display: grid; place-items: center; transition: opacity 0.2s var(--ease), transform 0.25s var(--ease); }
.ca-ico.ico-ok { position: absolute; right: 0; opacity: 0; transform: scale(0.6); }
.ca[data-copied="1"] .ico-copy { opacity: 0; transform: scale(0.6); }
.ca[data-copied="1"] .ico-ok { opacity: 1; transform: none; color: var(--accent); }
.ca[data-copied="1"] .ca-tag { background: var(--accent); color: var(--invert); border-color: var(--accent); }
.ca-warn { font-size: 13px; color: var(--muted); margin-top: 6px; }
/* bloom + type sequence, only when JS marks the slot */
.ca.bloom .ca-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--glow-strong); opacity: 0; pointer-events: none; animation: bloom 1.3s var(--ease) 1 both; }
@keyframes bloom { 0% { opacity: 0; transform: scale(0.94); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.03); } }
.ca.typing .ch { opacity: 0; animation: chIn 0.18s var(--ease) forwards; animation-delay: calc(360ms + var(--c, 0) * 24ms); }
@keyframes chIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.ca.typing .ch { display: inline-block; }

/* ---------- nav ---------- */
.nav { border-bottom: 1px solid var(--line); }
.nav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; position: relative; transition: translate 0.2s var(--ease), scale 0.15s var(--ease); }
.nav a:hover { color: var(--text); translate: 0 -2px; }
.nav a:active { scale: 0.96; }
.tap { min-height: var(--tap); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.25fr 0.75fr; gap: 56px; padding-top: 80px; padding-bottom: 88px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
h1 { font-size: clamp(36px, 7.2vw, 72px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 20px; font-weight: 700; text-wrap: balance; }
.lede { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { font: 500 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 12px; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); padding: 0 22px; border-radius: 12px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); color: var(--text); background: transparent; transition: translate 0.2s var(--ease), scale 0.15s var(--ease), opacity 0.2s var(--ease); }
.btn::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 8px 32px var(--glow-strong); opacity: 0; transition: opacity 0.25s var(--ease); pointer-events: none; }
.btn:hover { translate: 0 -2px; }
.btn:hover::after { opacity: 1; }
.btn:active { scale: 0.97; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; translate: none; }
.btn:disabled::after { opacity: 0; }
.btn-solid { background: var(--accent); color: var(--invert); border-color: var(--accent); }

/* ---------- cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1px var(--line-2), 0 14px 48px var(--glow); opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none; }
.card:hover { translate: 0 -3px; }
.card:hover::after { opacity: 1; }
.bench:hover, .odds:hover, .mkt:hover, .reg:hover { translate: none; }
.bench:hover::after, .odds:hover::after, .mkt:hover::after, .reg:hover::after { opacity: 0; }
.js .rv.card { transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms), translate 0.25s var(--ease); }

.print-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.grid8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.cell { aspect-ratio: 1; border-radius: 4px; background: var(--accent); opacity: var(--o, 0.1); transition: opacity 0.7s var(--ease) calc(var(--k, 0) * 9ms); }
.print-meta { display: grid; gap: 8px; margin-top: 16px; }
.print-meta div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.print-meta dt { color: var(--muted); font-size: 13px; }
.print-meta dd { font: 600 14px/1.3 var(--mono); }
.fine { color: var(--faint); font-size: 13px; margin-top: 10px; }

/* ---------- sections ---------- */
.sec { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 720px) { .sec { padding-top: 64px; padding-bottom: 64px; } }
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 720px; }
.idx { font: 500 13px/1 var(--mono); color: var(--faint); letter-spacing: 0.14em; }
h2 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.sec-head p:last-child { color: var(--muted); }
h3 { font-size: 18px; margin: 10px 0 6px; }

.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status[data-status="live"] i { background: var(--accent); animation: pulse 2s ease-in-out infinite; }
.status[data-status="offline"] i { background: transparent; border: 1px solid var(--muted); }
.panel-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.meta-src, .label-ext { font: 500 12px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.label-ext { text-transform: uppercase; color: var(--text); border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 12px; }

/* ---------- bench ---------- */
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .controls { grid-template-columns: 2fr 1fr auto auto; align-items: end; } }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field b { color: var(--text); font-family: var(--mono); }
input[type="text"], select {
  min-height: var(--tap); width: 100%; padding: 0 14px; font: 500 16px/1 var(--mono); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
}
input[type="text"]:hover, select:hover { background: var(--surface-2); }
input:focus-visible, select:focus-visible { outline-offset: 2px; }
input[type="range"] { width: 100%; min-height: var(--tap); accent-color: var(--accent); background: transparent; }
.controls .btn { grid-column: span 1; }
.term { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; height: 300px; overflow: hidden; position: relative; }
.term ol { display: flex; flex-direction: column; gap: 3px; }
.term li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font: 400 12.5px/1.5 var(--mono); color: var(--faint); white-space: nowrap; animation: lineIn 0.25s var(--ease) both; }
.term li.term-idle { display: block; color: var(--muted); animation: none; }
.term li .dg { overflow: hidden; text-overflow: ellipsis; }
.term li b { color: var(--accent); font-weight: 700; }
.term li.hit { color: var(--text); }
.term li.hit .ix::before { content: "▸ "; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stats, .odds-out { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } .odds-out { grid-template-columns: repeat(3, 1fr); } }
.stats div, .odds-out div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
dd { font: 600 clamp(18px, 3.4vw, 26px)/1.25 var(--mono); margin-top: 4px; overflow-wrap: anywhere; }

/* ---------- odds ---------- */
.odds-in { display: grid; gap: 14px; }
@media (min-width: 900px) { .odds-in { grid-template-columns: 1.4fr 1.2fr auto; align-items: end; } }
.pips { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin-top: 18px; }
.pips i { height: 10px; border-radius: 3px; background: var(--accent); opacity: 0.12; transition: opacity 0.35s var(--ease); }
.pips i.on { opacity: 1; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; font: 600 13px var(--mono); }
.steps p { color: var(--muted); font-size: 15px; }
.formula { margin-top: 20px; }
.formula code { display: block; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--text); font-size: clamp(13px, 3.2vw, 17px); overflow-wrap: anywhere; }

/* ---------- chain tiles ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile-wide { grid-column: 1 / -1; }
.tile-k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.tile-v { font: 600 clamp(20px, 4.2vw, 34px)/1.2 var(--mono); margin-top: 8px; overflow-wrap: anywhere; }
.tile .status { margin-top: 12px; }
.meter { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }

/* ---------- market ---------- */
.mkt { padding: 8px 8px 12px; }
.mkt-head, .mkt li.row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 10px; align-items: center; padding: 10px 12px; }
.mkt-head { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.mkt-head span:nth-child(4), .mkt-head span:nth-child(5), .mkt .vol, .mkt .spark { display: none; }
@media (min-width: 720px) {
  .mkt-head, .mkt li.row { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr) 120px; }
  .mkt-head span:nth-child(4), .mkt-head span:nth-child(5) { display: block; }
  .mkt .vol { display: block; } .mkt .spark { display: block; }
}
.mkt li.row { min-height: var(--tap); border-top: 1px solid var(--line); position: relative; transition: opacity 0.2s var(--ease); }
.mkt li.row:hover { background: var(--surface-2); }
.mkt-empty { padding: 20px 12px; color: var(--muted); }
.coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin img { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--line); }
.coin span { min-width: 0; display: grid; }
.coin strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin em { font: normal 500 12px var(--mono); color: var(--muted); }
.px, .chg, .vol { font: 500 14px/1.2 var(--mono); }
.chg[data-dir="down"] { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.chg[data-dir="up"] { font-weight: 700; }
.spark svg { display: block; width: 100%; height: 28px; color: var(--muted); }

/* ---------- register ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-2); }
.pill[data-state="stated"] { background: var(--accent); color: var(--invert); border-color: var(--accent); }
.pill[data-state="absent"] { border-style: dashed; color: var(--muted); }
.pill[data-state="unconfirmed"] { border-style: double; border-width: 3px; padding: 4px 8px; }
.reg { padding: 8px; }
.reg-head, .reg-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px; align-items: center; }
.reg-head { display: none; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.reg-row { border-top: 1px solid var(--line); }
.reg-k { font-weight: 600; }
.reg-v { font: 500 13px/1.4 var(--mono); grid-column: 1 / -1; overflow-wrap: anywhere; color: var(--text); }
.reg-src { font-size: 12px; color: var(--faint); grid-column: 1 / -1; }
@media (min-width: 900px) {
  .reg-head, .reg-row { grid-template-columns: 1.1fr 0.9fr 2fr 1.6fr; }
  .reg-head { display: grid; }
  .reg-v, .reg-src { grid-column: auto; }
}

/* ---------- faq ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-weight: 600; padding: 8px 4px; transition: opacity 0.2s var(--ease); }
summary::-webkit-details-marker { display: none; }
summary:hover { opacity: 0.75; }
.plus { position: relative; width: 20px; height: 20px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 2px; right: 2px; top: 9px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
details p { color: var(--muted); padding: 0 4px 18px; max-width: 680px; animation: lineIn 0.35s var(--ease) both; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: grid; gap: 10px; }
.foot strong { color: var(--text); }
.foot-brand { font: 600 14px var(--mono); color: var(--faint); margin-top: 8px; }

/* ---------- value tick ---------- */
.tick { animation: tick 0.5s var(--ease) both; }
@keyframes tick { from { opacity: 0.25; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .ca.typing .ch { opacity: 1; }
}

/* ---------- brand motif: bracket corners, emblem, display headings ---------- */
h1, h2 { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; }
h1 { letter-spacing: 0.01em; line-height: 1.08; }
.brand img { width: 36px; height: 36px; display: block; }
.hero-side { display: grid; gap: 18px; justify-items: center; }
.hero-logo { width: min(100%, 300px); height: auto; animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); opacity: 0.92; } 50% { transform: translateY(-8px); opacity: 1; } }
.hero-side .card { width: 100%; }
.card::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none; opacity: 0.7;
  background:
    linear-gradient(var(--line-2), var(--line-2)) left top / 12px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) left top / 1px 12px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) right top / 12px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) right top / 1px 12px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) right bottom / 1px 12px no-repeat;
}
/* ---------- reference-parity additions (colors come from tokens only) ---------- */
.tag { display: inline-block; margin-left: 10px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.nav-pill { margin-left: auto; align-self: center; flex: none; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 99px; font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.hstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; max-width: 640px; }
@media (min-width: 720px) { .hstats { grid-template-columns: repeat(4, 1fr); } }
.hstats div { display: grid; gap: 6px; align-content: start; border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px; }
.hstats dd { font-size: 20px; margin: 0; }
.hstats .pill { justify-self: start; }
.caret { display: inline-block; width: 8px; height: 14px; margin-left: 6px; background: var(--accent); vertical-align: -2px; animation: pulse 1.1s steps(2, jump-none) infinite; }

.glyphs { display: grid; gap: 18px; }
.g-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .g-row { grid-template-columns: repeat(4, 1fr); } }
.g-fig { margin: 0; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: translate 0.25s var(--ease); }
.g-fig:hover { translate: 0 -3px; }
.g-fig figcaption { display: grid; gap: 2px; font: 500 12px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.g-fig figcaption b { color: var(--text); }
.glyph { width: 100%; height: auto; display: block; color: var(--accent); }
.glyph rect { fill: currentColor; opacity: var(--l, 0.8); transform-box: fill-box; transform-origin: center; animation: beat 4.4s ease-in-out infinite; animation-delay: calc(var(--dl, 0s) + var(--ph, 0s)); }
@keyframes beat { 0%, 100% { opacity: 0.35; transform: scale(0.86); } 50% { opacity: 1; transform: scale(1); } }

.otable { width: 100%; border-collapse: collapse; margin-top: 18px; font: 500 14px/1.4 var(--mono); }
.otable th, .otable td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); }
.otable th { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; border-top: 0; }

.steps li { transition: translate 0.25s var(--ease), opacity 0.4s var(--ease); }
.steps.ghost li { border-style: dashed; }
.steps.ghost h3 { color: var(--muted); }
#anatomy .steps li:not(.beat) { opacity: 0.6; }
#anatomy .steps li.beat { opacity: 1; translate: 0 -4px; }

.rvc { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .rvc { grid-template-columns: 2fr 1fr auto; } }
.tl { display: grid; gap: 12px; margin-top: 8px; }
.tl li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; opacity: 0.5; transition: opacity 0.4s var(--ease), translate 0.3s var(--ease); }
.tl li.on, .tl li.done { opacity: 1; }
.tl li.on { translate: 6px 0; }
.tl-n { font: 600 13px var(--mono); color: var(--faint); }
.tl h3 { margin: 0 0 4px; }
.tl p { color: var(--muted); font: 400 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.reveal .formula { margin: 16px 0; }
.reveal .g-row { grid-template-columns: minmax(0, 200px); }

.verify + .verify { margin-top: 16px; }
.vf-in { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .vf-in { grid-template-columns: 2fr 1fr 3fr; } }
.vf-wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .vf-wide { grid-column: auto; } }
.vf-out { font: 500 clamp(12px, 3.3vw, 15px)/1.5 var(--mono); overflow-wrap: anywhere; padding: 14px; margin: 14px 0; border: 1px dashed var(--line-2); border-radius: 12px; }
.vf-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font: 500 13px var(--mono); color: var(--muted); }
textarea { width: 100%; padding: 14px; font: 500 14px/1.6 var(--mono); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; resize: vertical; min-height: var(--tap); }
textarea:hover { background: var(--surface-2); }

.mach { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.mach-url { font-size: 16px; }

.foot-grid { display: grid; gap: 24px; margin-bottom: 8px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.contracts { display: grid; gap: 10px; }
.c-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 12px; }
.c-val { grid-column: 1 / -1; font: 500 13px var(--mono); overflow-wrap: anywhere; color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); color: var(--text); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

.docs { padding-top: 36px; padding-bottom: 24px; }
.docs-h { font-size: clamp(30px, 6vw, 52px); margin: 0; }
.docs .sec { padding-top: 24px; padding-bottom: 24px; }
.docs h2 { font-size: clamp(22px, 3.6vw, 32px); margin-bottom: 18px; }
.doc-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
.doc-grid p, .docs .sec > p { color: var(--muted); }
.docs code { font-size: 0.92em; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.docs a { text-underline-offset: 4px; }
