:root {
  --bg: #030607;
  --panel: rgba(8, 18, 20, .78);
  --line: rgba(64, 255, 230, .16);
  --line-2: rgba(64, 255, 230, .32);
  --text: #eefcfa;
  --muted: #8aa3a0;
  --accent: #3ff6e0;
  --accent-ink: #00201c;
  --green: #3ff6a0;
  --yellow: #ffd54a;
  --red: #ff5c6c;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body);
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 600px at 75% 10%, rgba(63, 246, 224, .10), transparent 60%),
    radial-gradient(700px 500px at 10% 70%, rgba(63, 246, 224, .06), transparent 60%),
    linear-gradient(rgba(63, 246, 224, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 246, 224, .035) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.traces { position: fixed; inset: 0; width: 100%; height: 100%; color: rgba(63, 246, 224, .09); pointer-events: none; z-index: 0; }
.traces .pulses circle { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); opacity: .7; }
header, main, footer { position: relative; z-index: 1; }

.label { font: 500 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.label.dim { color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* nav */
.nav {
  display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line); background: rgba(3, 6, 7, .72); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.brand { font: 700 20px var(--display); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: .02em; }
.chip-dot { width: 14px; height: 14px; border: 2px solid var(--accent); border-radius: 3px; box-shadow: 0 0 10px var(--accent), inset 0 0 6px var(--accent); }
.links { display: flex; gap: 22px; margin-left: 12px; }
.links a { text-decoration: none; color: var(--muted); font-size: 14px; transition: color .2s; }
.links a:hover { color: var(--text); }
.gpu { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.gpu i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.gpu.ok i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.gpu.bad i { background: var(--yellow); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) 36px; max-width: 1360px; margin: 0 auto;
}
.hero-copy { container-type: inline-size; min-width: 0; }
.title { font: 700 clamp(56px, 20cqi, 172px)/.92 var(--display); margin: 14px 0 18px; letter-spacing: -.02em; display: flex; flex-wrap: wrap; }
.title .accent { color: var(--accent); text-shadow: 0 0 28px rgba(63, 246, 224, .55); }
.hook { font-size: clamp(17px, 1.6vw, 21px); max-width: 36em; margin: 0 0 24px; color: #cfe7e4; }
.hook b { color: var(--text); }
.ca-form { display: flex; gap: 10px; max-width: 640px; }
.ca-form input {
  flex: 1; min-width: 0; background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 15px 16px; font: 500 15px var(--mono); outline: none; transition: border-color .2s, box-shadow .2s;
}
.ca-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(63, 246, 224, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; font-size: 13px; color: #cfe7e4; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.chip:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: rgba(63, 246, 224, .06); }
.chip:disabled { opacity: .45; cursor: default; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 520px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 14px 22px;
  font: 600 15px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 24px rgba(63, 246, 224, .3); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 36px rgba(63, 246, 224, .5); }
.btn.ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; transform: none; }

/* ticker */
.ticker { display: flex; align-items: center; border-block: 1px solid var(--line); background: rgba(0, 0, 0, .5); overflow: hidden; }
.ticker-tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 11px 16px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); border-right: 1px solid var(--line); background: var(--bg); }
.ticker-win { overflow: hidden; flex: 1; min-width: 0; }
.ticker-track { display: flex; gap: 10px; padding: 8px 12px; white-space: nowrap; }
.tk { flex: none; font: 500 13px var(--mono); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; color: var(--text); animation: tkin .5s ease both; }
.tk:hover { border-color: var(--accent); }
.tk em { font-style: normal; color: var(--accent); }
.tk small { color: var(--muted); font-size: 12px; margin-left: 6px; }
@keyframes tkin { from { opacity: 0; transform: translateX(-12px); } }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* dashboard */
.dash {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px;
  padding: 28px clamp(16px, 4vw, 48px) 40px; max-width: 1360px; margin: 0 auto; scroll-margin-top: 70px;
}
.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0;
  backdrop-filter: blur(6px);
}
.panel::before, .panel::after { content: ""; position: absolute; width: 22px; height: 6px; top: -4px; left: 22px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 7px); }
.panel::after { left: auto; right: 22px; top: auto; bottom: -4px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.term { grid-column: span 8; display: flex; flex-direction: column; }
.term-body {
  font: 13px/1.65 var(--mono); background: #010303; border: 1px solid var(--line); border-radius: 10px; padding: 14px;
  height: 380px; overflow-y: auto; overflow-x: hidden; word-break: break-word; white-space: pre-wrap; color: #bfe9e3;
}
.term-body .ln { display: block; }
.term-body .ok::before { content: "✓ "; color: var(--green); }
.term-body .err { color: var(--red); }
.term-body .err::before { content: "✗ "; }
.term-body .sys { color: var(--muted); }
.term-body .sys::before { content: "› "; }
.term-body .head { color: var(--accent); margin-top: 8px; }
.term-body .thought { color: #9fd9d1; font-style: italic; }
.term-body .answer { color: var(--text); font-weight: 500; }
.term-body .cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s infinite; }
.term-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.term-foot select { background: #010303; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; max-width: 100%; }
.load { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.load > div:first-child, .load-bar { height: 6px; border-radius: 9px; background: var(--accent); width: 0; box-shadow: 0 0 10px var(--accent); transition: width .3s; }
.load span { font: 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.verdict { grid-column: span 4; display: flex; flex-direction: column; gap: 10px; transition: border-color .4s, box-shadow .4s; }
.v-word { font: 700 clamp(44px, 5vw, 64px)/1 var(--display); text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.verdict[data-level="green"] { border-color: rgba(63, 246, 160, .5); box-shadow: 0 0 40px rgba(63, 246, 160, .12) inset; }
.verdict[data-level="green"] .v-word { color: var(--green); }
.verdict[data-level="yellow"] { border-color: rgba(255, 213, 74, .5); box-shadow: 0 0 40px rgba(255, 213, 74, .1) inset; }
.verdict[data-level="yellow"] .v-word { color: var(--yellow); }
.verdict[data-level="red"] { border-color: rgba(255, 92, 108, .55); box-shadow: 0 0 40px rgba(255, 92, 108, .12) inset; }
.verdict[data-level="red"] .v-word { color: var(--red); }
.v-why { margin: 0; color: #d6ecea; }
.v-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.v-flags li { display: flex; gap: 8px; align-items: baseline; }
.v-flags li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--muted); transform: translateY(-1px); }
.v-flags li.g::before { background: var(--green); }
.v-flags li.y::before { background: var(--yellow); }
.v-flags li.r::before { background: var(--red); }
.v-src { margin-top: auto; font: 11px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.facts { grid-column: span 6; }
.coin-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-width: 0; }
.coin-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.coin-id { display: flex; flex-direction: column; min-width: 0; }
.coin-id b { font: 600 18px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-id span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(0, 0, 0, .35); min-width: 0; }
.tile span { display: block; font-size: 12px; color: var(--muted); }
.tile b { display: block; font: 600 17px var(--mono); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile b.g { color: var(--green); } .tile b.y { color: var(--yellow); } .tile b.r { color: var(--red); }

.holders { grid-column: span 6; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bars li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font: 12px var(--mono); }
.bars li.muted { display: block; font-family: var(--body); font-size: 14px; }
.bars .who { position: relative; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.bars .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(63, 246, 224, .55), rgba(63, 246, 224, .2)); border-radius: 6px; transition: width .8s cubic-bezier(.2, .7, .3, 1); }
.bars li.dev .fill { background: linear-gradient(90deg, rgba(255, 213, 74, .7), rgba(255, 213, 74, .25)); }
.bars li.curve .fill { background: rgba(255, 255, 255, .14); }
.bars .who a { position: relative; z-index: 1; line-height: 24px; padding-left: 8px; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .who a:hover { color: var(--accent); }
.bars .pct { text-align: right; }
.bars .rank { color: var(--muted); }

.trades { grid-column: span 6; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; font: 12px var(--mono); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; animation: tkin .4s ease both; }
.feed li.muted { display: block; font-family: var(--body); font-size: 14px; border: 0; padding: 0; animation: none; }
.feed .side { font-weight: 700; text-transform: uppercase; }
.feed .buy .side, .feed li.buy .side { color: var(--green); }
.feed li.sell .side { color: var(--red); }
.feed .w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.feed a { text-decoration: none; }
.feed a:hover { color: var(--accent); }

.buy { grid-column: span 6; display: flex; flex-direction: column; gap: 14px; }
.amt label { font-size: 13px; color: var(--muted); }
.amt-in { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0, 0, 0, .5); margin-top: 6px; }
.amt-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 13px 14px; font: 600 20px var(--mono); }
.amt-in span { padding: 0 14px; font: 600 14px var(--mono); color: var(--accent); }
.amt-chips { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.amt-chips button { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font: 12px var(--mono); cursor: pointer; }
.amt-chips button:hover { border-color: var(--accent); color: var(--accent); }
.quote { font: 13px/1.6 var(--mono); color: #cfe7e4; border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px; }
.quote b { color: var(--text); }
.buy .fine a { color: var(--accent); }

/* how */
.how { padding: 60px clamp(16px, 4vw, 48px); max-width: 1360px; margin: 0 auto; scroll-margin-top: 70px; }
.how h2, .token h2 { font: 700 clamp(30px, 4.4vw, 54px)/1.05 var(--display); margin: 12px 0 30px; max-width: 18em; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 30px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 18px); animation: flowmove 1.2s linear infinite; background-size: 18px 2px; }
@keyframes flowmove { to { background-position: 18px 0; } }
.node { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: border-color .2s, transform .2s; }
.node:hover { border-color: var(--line-2); transform: translateY(-3px); }
.node .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); font: 700 14px var(--mono); color: var(--accent); margin-bottom: 14px; }
.node.mine { border-color: rgba(63, 246, 224, .4); box-shadow: 0 0 30px rgba(63, 246, 224, .08) inset; }
.node.mine .n { background: var(--accent); color: var(--accent-ink); }
.node b { font: 600 18px var(--display); display: block; }
.node p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.cmp { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(0, 0, 0, .3); }
.cmp.on { border-color: rgba(63, 246, 224, .45); background: rgba(63, 246, 224, .05); }
.cmp ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cmp li { padding-left: 22px; position: relative; }
.cmp li::before { content: "✗"; position: absolute; left: 0; color: var(--muted); }
.cmp.on li::before { content: "✓"; color: var(--accent); }

/* token */
.token { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: 40px clamp(16px, 4vw, 48px) 70px; max-width: 1360px; margin: 0 auto; scroll-margin-top: 70px; }
.token-art { display: flex; justify-content: center; }
.token-art img { width: min(100%, 420px); }
.token-box h2 { margin-bottom: 8px; }
.ca-box { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; padding: 10px 10px 10px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0, 0, 0, .55); min-width: 0; }
.ca-k { font: 700 13px var(--mono); color: var(--accent); }
.ca-box code { flex: 1; min-width: 0; font: 500 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.specs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 24px 0 0; }
.specs div { min-width: 0; }
.specs dt { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.specs dd { margin: 2px 0 0; font-weight: 600; }

.foot { border-top: 1px solid var(--line); padding: 22px clamp(16px, 4vw, 48px); font-size: 13px; color: var(--muted); text-align: center; }
.foot p { margin: 0 auto; max-width: 760px; }

/* entrance: pure CSS, always ends visible */
.reveal { animation: rise .8s cubic-bezier(.2, .7, .3, 1) both; }
.reveal.d1 { animation-delay: .1s; } .reveal.d2 { animation-delay: .2s; } .reveal.d3 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .tk, .feed li { animation: none; } }

@media (max-width: 1020px) {
  .term, .verdict, .facts, .holders, .trades, .buy { grid-column: span 12; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow::before { display: none; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 22px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(62vw, 300px); }
  .title { font-size: clamp(52px, 21cqi, 120px); }
  .ca-form { flex-direction: column; }
  .term-body { height: 320px; }
  .compare, .flow, .token { grid-template-columns: 1fr; }
  .token-art img { width: min(60vw, 280px); }
  .ticker-tag { padding: 11px 10px; font-size: 11px; }
}
