:root { --bg:#000; --fg:#fff; --mute:#8a8a8a; --dim:#3a3a3a; --line:#1c1c1c; --card:#0a0a0a; --soft:#bdbdbd; }
* { box-sizing:border-box; margin:0; padding:0; }
html,body { background:var(--bg); color:var(--fg); }
body { font-family:'Inter Tight',system-ui,sans-serif; -webkit-font-smoothing:antialiased; overflow-x:hidden; min-height:100vh; display:flex; flex-direction:column; }
main { flex:1; }
.mono { font-family:'JetBrains Mono',monospace; }
a { color:inherit; text-decoration:none; }
button { font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
input, textarea { font:inherit; color:var(--fg); }
body::after { content:''; position:fixed; inset:0; pointer-events:none; opacity:.05; z-index:90;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

header { position:sticky; top:0; z-index:40; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 40px; border-bottom:1px solid var(--line); background:rgba(0,0,0,.84); backdrop-filter:blur(10px); }
.logo { display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.18em; font-size:15px; }
nav { display:flex; gap:28px; font-size:14px; color:var(--mute); }
nav a:hover, nav a.on { color:var(--fg); }
.hdr-r { display:flex; gap:10px; align-items:center; }
.pill { font-size:12px; color:var(--mute); border:1px solid var(--line); padding:7px 12px; border-radius:99px; white-space:nowrap; }
.pill b { color:var(--fg); font-weight:500; }
.xl { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--line); border-radius:50%; color:var(--soft); }
.xl:hover { color:#fff; border-color:#444; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:600; font-size:14px; padding:11px 18px; border-radius:99px; background:var(--fg); color:#000; border:1px solid var(--fg); cursor:pointer; transition:.2s; white-space:nowrap; }
.btn:hover { background:#000; color:#fff; }
.btn.ghost { background:transparent; color:var(--fg); border-color:#333; }
.btn.ghost:hover { border-color:#fff; }
.btn:disabled, .btn.off { opacity:.4; pointer-events:none; }
.btn.sm { padding:7px 12px; font-size:12px; }
.btn.wide { width:100%; padding:14px; }

.eyebrow { font-size:11px; letter-spacing:.24em; color:var(--mute); text-transform:uppercase; font-family:'JetBrains Mono',monospace; }
h1 { font-family:'Instrument Serif',serif; font-weight:400; font-size:76px; line-height:.95; letter-spacing:-.02em; margin:16px 0 18px; }
h1 i, h2 i { color:var(--mute); }
h2 { font-family:'Instrument Serif',serif; font-weight:400; font-size:56px; letter-spacing:-.02em; line-height:1; }
.lede { color:var(--soft); font-size:16px; line-height:1.55; }
.sub { color:var(--mute); margin-top:14px; font-size:16px; max-width:600px; line-height:1.55; }

/* ── hero tree ── */
.hero { position:relative; border-bottom:1px solid var(--line); overflow:hidden; }
.hero::before { content:''; position:absolute; left:0; top:0; bottom:0; width:520px; z-index:2; pointer-events:none; background:linear-gradient(90deg,#000 55%,rgba(0,0,0,0)); }
.hero-copy { position:absolute; left:40px; top:44px; z-index:3; max-width:400px; }
.hero-cta { display:flex; gap:10px; margin-top:26px; flex-wrap:wrap; }
.stage { position:relative; height:calc(100vh - 69px); min-height:640px; max-height:900px; cursor:grab; touch-action:none; }
.stage.drag { cursor:grabbing; }
svg.tree { position:absolute; inset:0; width:100%; height:100%; user-select:none; }
.tree .br { fill:none; stroke:#fff; stroke-linecap:round; transition:opacity .3s; }
.tree .br.grow { stroke-dasharray:1; stroke-dashoffset:1; animation:draw 1.6s cubic-bezier(.6,.05,.25,1) forwards; }
@keyframes draw { to { stroke-dashoffset:0; } }
.tree .node { fill:#000; stroke:#fff; stroke-width:1.5; cursor:pointer; transition:opacity .3s; }
.tree .node.grad { fill:#fff; }
.tree .node.root { fill:#fff; }
.tree .lbl { font-family:'JetBrains Mono',monospace; font-size:11px; fill:#fff; letter-spacing:.04em; cursor:pointer; transition:opacity .3s; }
.tree .cap { font-family:'JetBrains Mono',monospace; font-size:9.5px; fill:#777; pointer-events:none; transition:opacity .3s; }
.tree .pop { opacity:0; animation:pop .6s 1.3s forwards; }
@keyframes pop { from { opacity:0; } to { opacity:1; } }
.tree .ring { fill:none; stroke:#fff; opacity:0; pointer-events:none; animation:ring 1.6s ease-out forwards; }
@keyframes ring { 0% { r:3; opacity:.9; } 100% { r:46; opacity:0; } }
.tree .burnring { fill:none; stroke:#fff; stroke-dasharray:2 4; opacity:0; pointer-events:none; animation:ring 1.4s ease-out forwards; }
.tree .fruit { fill:#fff; pointer-events:none; }
.tree.dim .br:not(.lit) { opacity:.14; }
.tree.dim .node:not(.lit), .tree.dim .lbl:not(.lit), .tree.dim .cap:not(.lit) { opacity:.22; }
.tree .soil { stroke:#262626; }
.tree .rootline { fill:none; stroke:#fff; opacity:.08; stroke-linecap:round; }
.tree .seed { font-family:'JetBrains Mono',monospace; font-size:12px; fill:#777; letter-spacing:.14em; }
.zoom { position:absolute; left:40px; bottom:28px; z-index:4; display:flex; gap:6px; }
.zoom button { width:34px; height:34px; border:1px solid #2a2a2a; border-radius:10px; background:#000; color:#bbb; font-size:16px; }
.zoom button:hover { border-color:#fff; color:#fff; }
.hint { position:absolute; right:40px; bottom:30px; z-index:4; font-size:11px; color:#555; }

.tip { position:absolute; z-index:6; pointer-events:none; background:#000; border:1px solid #333; border-radius:12px; padding:12px 14px; min-width:220px; font-size:12px; opacity:0; transform:translateY(6px); transition:opacity .15s, transform .15s; }
.tip.on { opacity:1; transform:none; }
.tip h4 { font-size:15px; margin-bottom:8px; display:flex; align-items:center; gap:10px; }
.tip h4 img { width:28px; height:28px; border-radius:8px; object-fit:cover; filter:grayscale(1); border:1px solid #222; }
.tip h4 small { margin-left:auto; color:#888; font-size:11px; font-family:'JetBrains Mono',monospace; }
.tip .row { display:flex; justify-content:space-between; color:var(--mute); padding:3px 0; gap:18px; }
.tip .row b { color:#fff; font-weight:500; font-family:'JetBrains Mono',monospace; }
.tip .line { margin-top:8px; padding-top:8px; border-top:1px solid #222; color:#bbb; font-size:11px; font-family:'JetBrains Mono',monospace; }

.feed { position:absolute; right:40px; top:44px; width:320px; z-index:3; border:1px solid var(--line); background:rgba(0,0,0,.72); backdrop-filter:blur(8px); border-radius:16px; overflow:hidden; }
.feed-h { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--mute); }
.live { display:flex; align-items:center; gap:7px; color:#fff; }
.live i { width:7px; height:7px; border-radius:50%; background:#fff; animation:blink 1.4s infinite; }
@keyframes blink { 50% { opacity:.2; } }
.feedlist { list-style:none; max-height:330px; overflow:hidden; }
.feedlist li { padding:12px 16px; border-bottom:1px solid #111; font-size:13px; display:flex; justify-content:space-between; gap:10px; animation:slide .5s ease-out; }
.feedlist li a:hover b { text-decoration:underline; }
.feedlist li span { color:var(--mute); }
.feedlist li .k { font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:#666; display:block; margin-bottom:3px; font-family:'JetBrains Mono',monospace; }
.feedlist li em { font-style:normal; color:var(--mute); font-size:11px; white-space:nowrap; font-family:'JetBrains Mono',monospace; }
.feedlist .empty { color:#8a8a8a; justify-content:center; padding:26px 16px; }
[hidden] { display:none !important; }
.soon { text-align:center; padding:46px 30px; }
.soon h3 { font-family:'Instrument Serif',serif; font-weight:400; font-size:40px; margin:14px 0 10px; }
.soon p { color:var(--soft); max-width:380px; margin:0 auto; line-height:1.55; }
.soon .ca-wait { margin-top:22px; font-size:12px; color:var(--mute); letter-spacing:.12em; text-transform:uppercase; }
.mine-row td b small { color:var(--mute); font-weight:400; }
@keyframes slide { from { opacity:0; transform:translateY(-10px); background:#141414; } to { opacity:1; transform:none; } }

.toast { position:fixed; left:50%; bottom:34px; transform:translate(-50%,20px); opacity:0; z-index:80; background:#fff; color:#000; border-radius:99px; padding:10px 18px; font-size:13px; font-weight:600; transition:.4s; white-space:nowrap; pointer-events:none; max-width:92vw; overflow:hidden; text-overflow:ellipsis; }
.toast.on { opacity:1; transform:translate(-50%,0); }
.toast.err { background:#000; color:#fff; border:1px solid #fff; }

.stats { display:grid; grid-template-columns:repeat(5,1fr); border-bottom:1px solid var(--line); }
.stat { padding:28px 40px; border-right:1px solid var(--line); }
.stat:last-child { border-right:0; }
.stat .v { font-family:'Instrument Serif',serif; font-size:44px; line-height:1; }
.stat .k { font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--mute); margin-top:10px; }

section.wrap { padding:90px 40px; border-bottom:1px solid var(--line); }
section.page { padding:56px 40px 90px; max-width:1320px; margin:0 auto; width:100%; }
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:18px; overflow:hidden; margin-top:48px; }
.step { background:#000; padding:30px 26px 34px; min-height:260px; display:flex; flex-direction:column; }
.step .n { font-size:11px; color:var(--mute); letter-spacing:.2em; font-family:'JetBrains Mono',monospace; }
.step svg { margin:28px 0 22px; }
.step h3 { font-size:20px; font-weight:600; margin-bottom:10px; }
.step p { color:var(--mute); font-size:14px; line-height:1.55; }

.split { display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:start; }
.card { border:1px solid #222; border-radius:20px; padding:26px; background:var(--card); }
.card h4 { font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--mute); margin-bottom:18px; font-family:'JetBrains Mono',monospace; font-weight:500; }
.field { margin-bottom:14px; }
.field label { display:flex; justify-content:space-between; font-size:12px; color:var(--mute); margin-bottom:7px; }
.inp { width:100%; background:#000; border:1px solid #222; border-radius:12px; padding:13px 14px; color:#fff; font-size:14px; outline:none; transition:border-color .2s; }
.inp:focus { border-color:#666; }
textarea.inp { resize:vertical; min-height:72px; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.three { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
.bar { display:flex; height:10px; border-radius:99px; overflow:hidden; margin:14px 0 12px; gap:2px; }
.legend { display:grid; grid-template-columns:1fr 1fr; gap:8px 18px; font-size:12px; color:#bbb; }
.legend span { display:flex; align-items:center; gap:8px; }
.legend i { width:10px; height:10px; border-radius:3px; display:inline-block; flex:none; }
.kv { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid #151515; font-size:13px; color:var(--mute); gap:12px; }
.kv b { color:#fff; font-weight:500; font-family:'JetBrains Mono',monospace; text-align:right; }
.note { font-size:12px; color:#666; line-height:1.5; margin-top:12px; }

.pic { display:flex; gap:14px; align-items:center; }
.pic .ph { width:72px; height:72px; border-radius:14px; border:1px dashed #333; display:grid; place-items:center; color:#555; font-size:11px; overflow:hidden; flex:none; }
.pic .ph img { width:100%; height:100%; object-fit:cover; }
.picker { position:relative; }
.picker .opts { position:absolute; left:0; right:0; top:calc(100% + 6px); background:#000; border:1px solid #333; border-radius:12px; max-height:260px; overflow:auto; z-index:10; }
.picker .opts button { display:flex; width:100%; justify-content:space-between; gap:10px; padding:11px 14px; text-align:left; font-size:13px; border-bottom:1px solid #111; }
.picker .opts button:hover { background:#111; }
.picker .opts small { color:#777; font-family:'JetBrains Mono',monospace; }
.off { display:flex; align-items:center; justify-content:space-between; border:1px solid #fff; border-radius:12px; padding:12px 14px; gap:10px; cursor:pointer; }
.off .ln { color:var(--mute); font-size:12px; font-family:'JetBrains Mono',monospace; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

table { width:100%; border-collapse:collapse; font-size:14px; }
th { text-align:left; font-weight:500; font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--mute); padding:12px 10px; border-bottom:1px solid #222; white-space:nowrap; }
td { padding:14px 10px; border-bottom:1px solid #111; vertical-align:middle; }
th.r, td.r { text-align:right; }
tbody tr { cursor:pointer; transition:background .15s; }
tbody tr:hover { background:#0b0b0b; }
.chip { font-size:11px; border:1px solid #333; border-radius:99px; padding:3px 9px; color:#bbb; white-space:nowrap; font-family:'JetBrains Mono',monospace; }
.chip.w { background:#fff; color:#000; border-color:#fff; }
.lineage { color:var(--mute); font-size:12px; font-family:'JetBrains Mono',monospace; }
.tok { display:flex; align-items:center; gap:12px; }
.tok img, .tok .noimg { width:34px; height:34px; border-radius:10px; object-fit:cover; border:1px solid #222; filter:grayscale(1); flex:none; background:#111; }
.tok b { display:block; }
.tok small { color:var(--mute); font-size:12px; }
.up { color:#fff; } .down { color:#777; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; }
.tabs button { padding:8px 14px; border-radius:99px; border:1px solid #222; font-size:13px; color:var(--mute); }
.tabs button.on { background:#fff; color:#000; border-color:#fff; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:34px 0 10px; flex-wrap:wrap; }
.search { width:320px; max-width:100%; }

/* coin page */
.coinhead { display:flex; gap:22px; align-items:center; flex-wrap:wrap; }
.coinhead img, .coinhead .noimg { width:92px; height:92px; border-radius:20px; object-fit:cover; border:1px solid #222; background:#111; }
.coinhead h1 { font-size:58px; margin:4px 0 6px; }
.crumbs { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--mute); }
.crumbs a:hover { color:#fff; }
.crumbs .cur { color:#fff; }
.grid2 { display:grid; grid-template-columns:1.25fr .75fr; gap:28px; margin-top:34px; align-items:start; }
.tiles { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.tile { background:#000; padding:18px; }
.tile .v { font-family:'Instrument Serif',serif; font-size:32px; line-height:1; }
.tile .k { font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--mute); margin-top:8px; }
.prog { height:6px; border-radius:99px; background:#1a1a1a; overflow:hidden; margin-top:10px; }
.prog i { display:block; height:100%; background:#fff; }
.family { position:relative; height:420px; border:1px solid var(--line); border-radius:16px; margin-top:18px; overflow:hidden; }
.links { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.seg { display:grid; grid-template-columns:1fr 1fr; background:#000; border:1px solid #222; border-radius:12px; padding:4px; margin-bottom:16px; }
.seg button { padding:10px; border-radius:9px; font-weight:600; font-size:14px; color:var(--mute); }
.seg button.on { background:#fff; color:#000; }
.quick { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.quick button { padding:6px 10px; border:1px solid #222; border-radius:8px; font-size:12px; color:#bbb; font-family:'JetBrains Mono',monospace; }
.quick button:hover { border-color:#fff; color:#fff; }
.route { font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--mute); margin-top:12px; line-height:1.6; }
.route b { color:#fff; font-weight:500; }
.ca { font-family:'JetBrains Mono',monospace; font-size:12px; color:#bbb; border:1px solid #222; border-radius:10px; padding:8px 10px; display:inline-flex; gap:8px; align-items:center; cursor:pointer; }
.ca:hover { border-color:#666; }
.empty-state { text-align:center; padding:60px 20px; color:var(--mute); }
.empty-state h3 { font-family:'Instrument Serif',serif; font-weight:400; font-size:36px; color:#fff; margin-bottom:10px; }
.spinner { width:16px; height:16px; border:2px solid #444; border-top-color:#fff; border-radius:50%; animation:spin .8s linear infinite; display:inline-block; vertical-align:middle; }
@keyframes spin { to { transform:rotate(360deg); } }
.prose { max-width:760px; }
.prose h3 { font-size:22px; font-weight:600; margin:40px 0 12px; }
.prose p, .prose li { color:#bdbdbd; line-height:1.65; font-size:15px; }
.prose ul { padding-left:20px; margin-top:8px; }
.prose li { margin:6px 0; }
.spark { display:block; }

footer { padding:30px 40px; display:flex; justify-content:space-between; gap:20px; color:#555; font-size:12px; border-top:1px solid var(--line); }

@media (max-width: 1100px) {
  .feed { display:none; }
  .stats { grid-template-columns:repeat(3,1fr); }
  .steps { grid-template-columns:repeat(2,1fr); }
  .split, .grid2 { grid-template-columns:1fr; }
  nav { display:none; }
}
@media (max-width: 720px) {
  header { padding:12px 16px; }
  .pill, .xl { display:none !important; }
  #connect { display:none; }
  .hero::before { width:100%; height:300px; bottom:auto; background:linear-gradient(180deg,#000 60%,rgba(0,0,0,0)); }
  .hero-copy { left:16px; right:16px; top:24px; }
  h1 { font-size:48px; }
  h2 { font-size:40px; }
  .stage { height:760px; max-height:none; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .stat { padding:20px 16px; }
  .stat .v { font-size:32px; }
  section.wrap, section.page { padding:56px 16px; }
  .steps { grid-template-columns:1fr; }
  .tiles { grid-template-columns:repeat(2,1fr); }
  .two, .three { grid-template-columns:1fr; }
  .zoom { left:16px; } .hint { display:none; }
  footer { padding:24px 16px; flex-direction:column; }
  .coinhead h1 { font-size:42px; }
  .hide-sm { display:none; }
}
