:root {
  --bg: #0A0A0A; --surface: #131313; --surface-2: #1B1B1B; --surface-3: #242424;
  --line: #262626; --line-2: #1E1E1E;
  --ink: #FAFAFA; --ink-2: #A3A3A3; --ink-3: #686868;
  --accent: #FAFAFA; --accent-2: #E4E4E4; --accent-ink: #0A0A0A; --accent-soft: #262626;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --side: 262px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
h1, h2, h3 { font-weight: 600; margin: 0; text-wrap: balance; }
h1.hero { font-size: clamp(40px, 6vw, 74px); letter-spacing: -.055em; line-height: 1.0; }
h1.ptitle { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.05em; line-height: 1.05; }
h2 { font-size: 22px; letter-spacing: -.025em; line-height: 1.1; }
h3 { font-size: 15px; letter-spacing: -.025em; line-height: 1.1; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shell ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); border-right: 1px solid var(--line-2); background: var(--bg); display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; transition: transform .2s var(--ease); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 600; font-size: 17px; letter-spacing: -.03em; }
.brand .logo, .hero-logo { image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 8px; flex: none; }
.brand .logo { width: 28px; height: 28px; }
.hero-logo { width: 88px; height: 88px; border-radius: 22px; border: 1px solid var(--line); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--ink-2); transition: background .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.on { background: var(--surface-2); color: var(--ink); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line-2); padding: 14px 10px 0; display: flex; flex-direction: column; gap: 6px; }
.side-foot .row { display: flex; align-items: center; gap: 8px; }
.main { margin-left: var(--side); min-width: 0; transition: margin-left .2s var(--ease); }
body.collapsed .side { transform: translateX(-100%); }
body.collapsed .main { margin-left: 0; }
.top { position: sticky; top: 0; z-index: 20; height: 66px; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.top .search { flex: 1; display: flex; justify-content: center; }
.search form { width: 100%; max-width: 520px; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 999px; padding: 0 18px 0 42px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: 12.5px; outline: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.search input::placeholder { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .icon { position: absolute; left: 15px; top: 12px; color: var(--ink-3); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: border-color .15s var(--ease), color .15s var(--ease); }
.icon-btn:hover { border-color: var(--line); color: var(--ink); }
.page { max-width: 1240px; margin: 0 auto; padding: 0 32px 80px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), opacity .15s; white-space: nowrap; }
.btn.lg { height: 48px; padding: 0 24px; }
.btn.sm { height: 30px; padding: 0 13px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); }
.btn.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.secondary:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .45; cursor: default; }
.input { height: 42px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); padding: 0 14px; font: inherit; outline: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); min-width: 0; }
.input.mono { font-family: var(--mono); font-size: 12.5px; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-family: var(--mono); font-size: 11px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.inv { background: var(--ink); color: var(--accent-ink); }
.dim { opacity: .6; }
.live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ink); animation: pulse 2s var(--ease) infinite; }
.live.off { background: var(--ink-3); }
.live.off::after { display: none; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg button { height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- hero ---------- */
.hero-wrap { text-align: center; padding: 72px 0 56px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-wrap p { font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 34em; margin: 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; position: relative; overflow: hidden; }
.card.click { cursor: pointer; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.card.click:hover { transform: translateY(-2px); border-color: #3A3A3A; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 284px; gap: 14px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; }
.card.graph { padding: 0; display: flex; flex-direction: column; }
.card.graph .card-head { padding: 20px 20px 0; margin: 0; }
.card.graph canvas { flex: 1; width: 100%; min-height: 0; display: block; }
.graph-legend { display: flex; gap: 16px; padding: 0 20px 16px; color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.graph-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.mid { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.note { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.track { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.track > i { display: block; height: 100%; background: var(--ink); border-radius: 999px; width: 0; transition: width .6s var(--ease); }
.stack { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }

/* ---------- stats row ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: 56px 0; }
.stat { padding: 26px 22px; border-left: 1px solid var(--line-2); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .mid { margin: 8px 0 4px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- feeds ---------- */
.feed { list-style: none; margin: 0; padding: 0; position: relative; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line-2); align-items: center; }
.feed li:first-child { border-top: 0; }
.feed .who { font-family: var(--mono); font-size: 12.5px; }
.feed .meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); grid-column: 1; }
.feed .proof { grid-row: span 2; grid-column: 2; font-family: var(--mono); font-size: 11px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; height: 24px; padding: 0 9px; transition: border-color .15s var(--ease), color .15s var(--ease); }
.feed .proof:hover { border-color: var(--ink-3); color: var(--ink); }
.feed.compact li { padding: 8px 0; }
.feed li.enter { animation: enter .35s var(--ease) both; }
.feed.sliding { transition: transform .9s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.flash { animation: flash 1.4s var(--ease); border-radius: 6px; }
@keyframes flash { 0% { background: rgba(250, 250, 250, .16); } 100% { background: transparent; } }
.empty { text-align: center; color: var(--ink-3); padding: 34px 10px; font-size: 14px; }

/* ---------- sections ---------- */
section.block { margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.addr { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.linkrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps .card::before { counter-increment: s; content: '0' counter(s); font-family: var(--mono); font-size: 11px; color: var(--ink-3); display: block; margin-bottom: 26px; }
.steps p { color: var(--ink-2); margin: 8px 0 0; font-size: 14px; }
.page-head { padding: 56px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.page-head p { color: var(--ink-2); max-width: 40em; margin: 0; font-size: 15px; }
.checker { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.checker { align-items: center; }
.checker .input { flex: 1; min-width: 240px; }
.result-coin { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.result-coin:first-child { border-top: 0; }
.verdict { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }

.spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--surface-3); border-top-color: var(--ink); animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line-2); }
.tabs button { background: none; border: 0; height: 40px; padding: 0; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s var(--ease), border-color .15s var(--ease); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--ink); color: var(--accent-ink); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; font-weight: 500; max-width: 340px; animation: enter .3s var(--ease) both; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line-2); height: 34px; display: flex; align-items: center; }
.ticker .lane { display: inline-flex; gap: 40px; white-space: nowrap; padding-left: 100%; animation: marquee 60s linear infinite; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- responsive ---------- */
.only-small { display: none; }
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento > * { grid-column: span 2 !important; grid-row: auto !important; min-height: 220px; }
  .card.graph { height: 380px; }
  .grid4 > .span-2, .grid4 > .span-3 { grid-column: span 2; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .grid4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .side { transform: translateX(-100%); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .95); }
  body.menu-open .side { transform: none; }
  .main { margin-left: 0; }
  .only-small { display: grid; }
  .only-wide { display: none; }
}
@media (max-width: 640px) {
  .page { padding: 0 16px 64px; }
  .top { padding: 0 16px; gap: 8px; }
  .top-actions .pill { display: none; }
  .hero-wrap { padding: 48px 0 40px; }
  .hero-wrap p { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 14px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid var(--line-2); padding-left: 14px; }
  .grid4, .grid2, .steps { grid-template-columns: 1fr; }
  .grid4 > .span-2, .grid4 > .span-3 { grid-column: auto; }
  .big { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
