:root {
  --bg: #0a0e17;
  --bg2: #0f1522;
  --card: #131b2c;
  --card2: #182238;
  --border: #22304d;
  --text: #e8edf7;
  --muted: #93a3c0;
  --accent: #0052ff;
  --accent2: #4d8bff;
  --green: #2fbf71;
  --red: #ff5c6c;
  --amber: #ffb020;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #12295e 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: #0b1220; padding: .1em .35em; border-radius: 5px; border: 1px solid var(--border); word-break: break-all; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(10,14,23,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); font-size: .92rem; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }

/* hero */
.hero { padding: 56px 0 8px; }
.eyebrow { color: var(--accent2); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; margin: 0 0 12px; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.15; margin: 0 0 16px; max-width: 22ch; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 72ch; margin: 0 0 28px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.stat-label { color: var(--muted); font-size: .85rem; }
.notice { background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.35); color: #f3d9a4; border-radius: var(--radius); padding: 14px 16px; font-size: .93rem; margin: 18px 0; }

/* sections */
section { padding: 34px 0 6px; scroll-margin-top: 70px; }
h2 { font-size: 1.55rem; margin: 0 0 8px; }
.h2-sub { color: var(--muted); font-size: 1rem; font-weight: 500; }
.section-lede { color: var(--muted); max-width: 78ch; margin: 0 0 20px; }
.fineprint { color: var(--muted); font-size: .86rem; }

/* picks */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; }
.pick { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.pick-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pick-head img { width: 38px; height: 38px; border-radius: 50%; background: #fff; object-fit: cover; }
.pick-symbol { font-weight: 800; font-size: 1.15rem; }
.pick-name { color: var(--muted); font-size: .88rem; }
.pick-score { margin-left: auto; text-align: right; }
.pick-score b { font-size: 1.5rem; color: #fff; }
.pick-score span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.bar { height: 8px; background: #0b1220; border-radius: 99px; overflow: hidden; margin: 4px 0 10px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; }
.comp { display: grid; grid-template-columns: 1fr auto; font-size: .82rem; color: var(--muted); margin: 2px 0; }
.comp b { color: var(--text); font-weight: 600; }
.reasons { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.reasons li { margin: 3px 0; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); }
.badge.ok { color: var(--green); border-color: rgba(47,191,113,.4); background: rgba(47,191,113,.08); }
.badge.warn { color: var(--amber); border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.08); }
.hash-box { margin-top: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.anchor-status { color: var(--green); font-weight: 600; }
.anchor-status.pending { color: var(--amber); }

/* simulator */
.sim-controls { display: flex; gap: 18px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.sim-controls label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .88rem; }
.sim-controls input[type="number"] { background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 1rem; width: 180px; }
.profile-group { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-group button { background: var(--card); border: 1px solid var(--border); color: var(--muted); border-radius: 99px; padding: 9px 16px; cursor: pointer; font-size: .9rem; }
.profile-group button.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.alloc-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin: 12px 0; border: 1px solid var(--border); }
.alloc-bar > div { display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; min-width: 0; overflow: hidden; white-space: nowrap; }

/* tables */
.table-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.table-controls input[type="search"], .table-controls select { background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 12px; font-size: .93rem; }
.table-controls input[type="search"] { flex: 1 1 220px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; background: var(--card2); position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
.tok { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.tok img { width: 26px; height: 26px; border-radius: 50%; background: #fff; object-fit: cover; }
.up { color: var(--green); font-weight: 600; }
.down { color: var(--red); font-weight: 600; }
.verify-btn { background: var(--card2); border: 1px solid var(--border); color: var(--accent2); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: .8rem; white-space: nowrap; }
.verify-btn:hover { border-color: var(--accent2); }
.verify-result { font-size: .8rem; white-space: nowrap; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }

/* proof + method + buildlog */
.proof-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.proof-card dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0 0 14px; }
.proof-card dt { color: var(--muted); font-size: .85rem; }
.proof-card dd { margin: 0; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.method-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.method-card h3 { margin: 0 0 8px; font-size: 1rem; }
.method-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.buildlog { list-style: none; margin: 0; padding: 0; }
.buildlog li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.buildlog time { color: var(--accent2); font-weight: 700; white-space: nowrap; font-size: .88rem; padding-top: 2px; }
.buildlog p { margin: 0; color: var(--muted); }
.buildlog p b { color: var(--text); }
footer { padding: 34px 20px 44px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); margin-top: 30px; }

@media (max-width: 820px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-card dl { grid-template-columns: 1fr; }
  .topbar nav { display: none; }
  h1 { max-width: none; }
}
