:root {
  color-scheme: dark;
  --page: #0c0d10;
  --card: #15171b;
  --card-2: #1b1e23;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --grid: #24272d;
  --text: #eef0f3;
  --text-2: #a9aeb8;
  --muted: #7d828c;
  --s-port: #3987e5;
  --s-spy: #d95926;
  --s-iwm: #199e70;
  --up: #3ccf6e;
  --down: #f07070;
  --accent: #3987e5;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(57, 135, 229, 0.10), transparent 60%),
    var(--page);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 13, 16, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--text); }
.brand svg { color: var(--accent); }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.links a:hover { color: var(--text); background: var(--card-2); }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-paper { color: #f5c76b; background: rgba(250, 178, 25, 0.12); border: 1px solid rgba(250, 178, 25, 0.25); }
.sample-banner { background: rgba(250, 178, 25, 0.12); border-bottom: 1px solid rgba(250, 178, 25, 0.25); color: #f5c76b; font-size: 13px; font-weight: 600; padding: 8px 0; text-align: center; }

/* hero */
.hero { padding: 64px 0 16px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; margin-top: 12px; max-width: 18ch; font-weight: 750; }
.lede { color: var(--text-2); font-size: 17px; max-width: 62ch; margin-top: 16px; }
.updated { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(60, 207, 110, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(60, 207, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } html { scroll-behavior: auto; } }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 32px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tile .k { color: var(--text-2); font-size: 13px; }
.tile .v { font-size: 28px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tile .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tile.hero-tile { background: linear-gradient(160deg, rgba(57, 135, 229, 0.16), var(--card) 70%); border-color: rgba(57, 135, 229, 0.3); }
.up { color: var(--up); }
.down { color: var(--down); }

/* sections & cards */
.section { padding: 28px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
h2 { font-size: 20px; font-weight: 700; }
.sub { color: var(--text-2); font-size: 14px; margin-top: 4px; max-width: 60ch; }
.note { color: var(--muted); font-size: 12.5px; margin-top: 14px; max-width: 90ch; }
.section-title { font-size: 26px; font-weight: 750; }
.section-sub { color: var(--text-2); margin-top: 6px; max-width: 70ch; }
.grid-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }

/* controls */
.controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { font: 600 13px var(--font); color: var(--text-2); background: none; border: 0; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg button.on { background: #2a2e35; color: var(--text); }
.seg button:focus-visible, .toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { width: 34px; height: 20px; border-radius: 999px; background: #2a2e35; position: relative; transition: background .2s; }
.knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #c9ccd2; transition: transform .2s; }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track .knob { transform: translateX(14px); background: #fff; }

/* chart */
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0 4px; font-size: 13px; color: var(--text-2); }
.legend .item { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 14px; height: 3px; border-radius: 2px; }
.legend b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.chart { position: relative; height: 360px; margin-top: 6px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .endlab { font-size: 12px; font-weight: 600; fill: var(--text); font-family: var(--font); }
.tip { position: absolute; pointer-events: none; background: #20242a; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; min-width: 170px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity .12s; }
.tip .t { color: var(--text-2); margin-bottom: 6px; }
.tip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tip .r span:first-child { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.tip .r b { font-variant-numeric: tabular-nums; }
.tip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* trades */
.table-wrap { overflow-x: auto; margin-top: 14px; }
table.trades { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.trades th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.trades td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.trades tbody tr:hover { background: var(--card-2); }
.trades .num { text-align: right; font-variant-numeric: tabular-nums; }
.tk { font-weight: 700; letter-spacing: 0.02em; }
.dim { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #22262c; color: var(--text-2); white-space: nowrap; }
.tag.open { background: rgba(57, 135, 229, 0.15); color: #8bb8f0; }
.tag.tp { background: rgba(60, 207, 110, 0.12); color: var(--up); }
.tag.sl { background: rgba(240, 112, 112, 0.12); color: var(--down); }

/* funnel */
.funnel { margin-top: 18px; display: grid; gap: 10px; }
.fbar .lab { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.fbar .lab b { color: var(--text); font-variant-numeric: tabular-nums; }
.fbar .bar { height: 26px; background: var(--card-2); border-radius: 6px; overflow: hidden; }
.fbar .fill { height: 100%; border-radius: 0 4px 4px 0; }
.mini { font-size: 13px; color: var(--text-2); font-weight: 600; margin: 22px 0 10px; }
.skips { display: grid; gap: 8px; }
.skip { display: grid; grid-template-columns: 130px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.skip .bar { height: 8px; background: var(--card-2); border-radius: 4px; overflow: hidden; }
.skip .fill { height: 100%; background: #5c6370; border-radius: 0 4px 4px 0; }
.skip b { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }

/* steps */
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(57, 135, 229, 0.15); color: #8bb8f0; font-weight: 700; font-size: 13px; }
.steps h3 { font-size: 16px; margin: 12px 0 6px; }
.steps p { color: var(--text-2); font-size: 14px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 22px 0 0; border-left: 2px solid var(--grid); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 0 0 22px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--page); border: 2px solid var(--accent); }
.timeline time { color: var(--muted); font-size: 13px; font-weight: 600; padding-top: 1px; }
.timeline h3 { font-size: 15.5px; }
.timeline p { color: var(--text-2); font-size: 14px; margin-top: 4px; max-width: 72ch; }

/* governance */
.gov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.gcard h3 { font-size: 15px; margin-bottom: 6px; }
.gcard p { color: var(--text-2); font-size: 14px; }
.gcard.warn { border-color: rgba(240, 112, 112, 0.3); background: linear-gradient(160deg, rgba(240, 112, 112, 0.08), var(--card) 70%); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.people { display: grid; gap: 12px; margin-top: 18px; }
.person { display: flex; gap: 12px; align-items: center; }
.person b { display: block; font-size: 14.5px; }
.person span:not(.avatar) { color: var(--text-2); font-size: 13px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #22262c; font-weight: 700; color: #8bb8f0; flex: none; }
.bullet { margin: 0; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--card-2); border-radius: 0 12px 12px 0; color: var(--text); font-size: 14.5px; }
.links-row { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.btn { text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn:hover { filter: brightness(1.1); }

.foot { color: var(--muted); font-size: 12.5px; padding: 32px 0 48px; border-top: 1px solid var(--line); margin-top: 24px; }

/* responsive */
@media (max-width: 980px) {
  .links { display: none; }
  .pill-paper { margin-left: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile.hero-tile { grid-column: 1 / -1; }
  .grid-2, .about { grid-template-columns: 1fr; }
  .steps, .gov { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero { padding-top: 40px; }
  .steps, .gov { grid-template-columns: 1fr; }
  .chart { height: 280px; }
  .card { padding: 16px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .skip { grid-template-columns: 110px 1fr 34px; }
  table.trades { min-width: 0; }
  .trades th:nth-child(3), .trades td:nth-child(3) { display: none; }
  .trades td, .trades th { padding-inline: 6px; }
}
.more { margin-top: 12px; width: 100%; font: 600 13px var(--font); color: var(--text-2); background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px; cursor: pointer; }
.more:hover { color: var(--text); }
