:root {
  --bg: #0b0d10;
  --bg-2: #11141a;
  --card: #151921;
  --line: #232936;
  --line-2: #2e3646;
  --text: #e9ebef;
  --muted: #8c94a5;
  --faint: #5c6576;
  --gold: #f2b544;
  --gold-2: #ffd27a;
  --gold-ink: #1a1405;
  --green: #4fd18b;
  --red: #ff6b6b;
  --radius: 14px;
  --font: "General Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(900px 420px at 85% -120px, rgba(242,181,68,.10), transparent 60%),
  radial-gradient(700px 380px at -10% 10%, rgba(120,140,255,.06), transparent 60%), var(--bg); }
a { color: inherit; }
button { font: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 40px); background: rgba(11,13,16,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-size: 19px; letter-spacing: -.01em; }
.brand span { color: var(--text); font-weight: 500; }
.brand b { color: var(--gold); font-weight: 700; }
nav { display: flex; gap: 6px; flex: 1; }
nav a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 8px; font-weight: 500; }
nav a:hover { color: var(--text); background: var(--bg-2); }
nav a.on { color: var(--text); background: var(--card); }

.btn { text-decoration: none; display: inline-block; text-align: center; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover:not(:disabled) { background: var(--gold-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); }
.btn-block { width: 100%; padding: 13px; }

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 64px; }
.banner { margin: 0; padding: 10px clamp(16px, 4vw, 40px); background: rgba(242,181,68,.09); border-bottom: 1px solid rgba(242,181,68,.25); color: var(--gold-2); font-size: 14px; text-align: center; }

.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 600; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 14px; font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 10px; font-weight: 600; }
.lead { color: var(--muted); font-size: 17px; max-width: 56ch; margin: 0 0 22px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--card); padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.stat .v { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.stat .v small { color: var(--muted); font-size: 12px; margin-left: 4px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.tcard { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s, transform .15s; }
.tcard:hover { border-color: var(--gold); transform: translateY(-1px); }
.tcard .row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.tcard .row b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.tid { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; color: var(--gold); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tid .n { font-weight: 600; }
.tid .s { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 36px; text-align: center; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.layout { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.kv > div { background: var(--card); padding: 14px 16px; }
.kv .k { color: var(--muted); font-size: 12.5px; }
.kv .v { font-family: var(--mono); font-size: 16px; margin-top: 2px; }
.stack { display: grid; gap: 18px; }

.tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 11px; margin-bottom: 16px; }
.tabs button { flex: 1; background: transparent; border: 0; color: var(--muted); padding: 8px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.tabs button.on { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.field { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; }
.field:focus-within { border-color: var(--gold); }
.field input, .field textarea { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; padding: 11px 0; min-width: 0; }
.field input.mono { font-family: var(--mono); }
.field .unit { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.field .max { background: none; border: 0; color: var(--gold); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0 4px 10px; }
.hint { color: var(--faint); font-size: 12.5px; margin-top: 6px; }
.quote { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin: 12px 0; }
.quote b { color: var(--text); font-family: var(--mono); font-weight: 500; }
input[type=range] { width: 100%; accent-color: var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.notes { width: 100%; border-collapse: collapse; font-size: 13px; }
.notes th, .notes td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.notes th { color: var(--muted); font-weight: 500; }
.notes td { font-family: var(--mono); }

.addr { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-decoration: none; }
.addr:hover { color: var(--gold); }
.pill { text-decoration: none; display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line-2); color: var(--muted); }
.pill.gold { color: var(--gold); border-color: rgba(242,181,68,.4); }
.pill.green { color: var(--green); border-color: rgba(79,209,139,.4); }

.docs { max-width: 760px; }
.docs ol { padding-left: 20px; }
.docs li { margin: 0 0 14px; color: var(--muted); }
.docs li b { color: var(--text); }
.docs code { font-family: var(--mono); background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; color: var(--gold-2); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 30px; }
.flow .card { padding: 16px; }
.flow .num { font-family: var(--mono); color: var(--gold); font-size: 13px; }
.flow p { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot a { color: var(--muted); text-decoration: none; margin-left: 14px; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 380px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; font-size: 14px; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.toast.err { border-color: rgba(255,107,107,.6); }
.toast a { color: var(--gold); }
.back { color: var(--muted); text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 14px; }
.back:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero, .layout { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
  nav a { padding: 7px 8px; }
}
@media (max-width: 560px) {
  .top { gap: 10px; flex-wrap: wrap; }
  nav { order: 3; width: 100%; }
  .flow, .two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { #panel { order: -1; } }
