:root {
  --bg: #0e0a08;
  --bg2: #15100c;
  --panel: #18120e;
  --line: rgba(255, 196, 40, 0.14);
  --line2: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --mut: rgba(255, 255, 255, 0.66);
  --dim: rgba(255, 255, 255, 0.42);
  --accent: #ffc21a;
  --accent2: #ffe27a;
  --ink: #7a1408;
  --good: #7cf29a;
  --bad: #ff8a6b;
  --r: 10px;
  --display: "Pixelify Sans", "Space Grotesk", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body);
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
b { font-weight: 700; }
.mono { font-family: var(--mono); letter-spacing: 0.06em; font-size: 11px; text-transform: uppercase; color: var(--dim); }

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 72% 8%, rgba(255, 170, 20, 0.16), transparent 70%),
    radial-gradient(700px 500px at 0% 60%, rgba(122, 20, 8, 0.22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(14, 10, 8, 0.82);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); }
.brand img { width: 36px; height: 36px; display: block; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--mut); font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--accent); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  font: 600 16px/1 var(--body); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #1a0d04; box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-wide { width: 100%; padding: 16px; font-size: 17px; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* HERO */
main { padding: 0 clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(16px, 4vw, 48px); align-items: center;
  padding: clamp(22px, 4vw, 48px) 0 28px;
}
.hero-copy { container-type: inline-size; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.dot { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
h1 {
  margin: 0; font: 700 min(17cqi, 150px)/.92 var(--display); letter-spacing: -0.01em;
  color: var(--accent); text-shadow: 5px 5px 0 var(--ink), 0 0 60px rgba(255, 180, 20, .25);
  white-space: nowrap;
}
.ticker-name { margin: 10px 0 0; font: 700 22px/1 var(--mono); color: #fff; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--mut); max-width: 34em; margin: 18px 0 22px; }
.lead b { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 10px; min-width: 0; }
.tile b { display: block; font: 700 22px/1.15 var(--display); margin: 4px 0 2px; color: #fff; overflow-wrap: anywhere; }
.tile small { color: var(--dim); font-size: 12px; }
.t-label { font: 600 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; }
.hero-art img { width: min(500px, 100%); }
.hero-bubble {
  position: absolute; left: 0; bottom: 6%; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--mut); box-shadow: 4px 4px 0 rgba(0,0,0,.4);
}
.hero-bubble .mono { color: var(--accent); margin-right: 6px; }

/* TICKER */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 194, 26, 0.04); margin: 6px 0 0; }
.ticker-track { display: flex; gap: 40px; width: max-content; padding: 11px 0; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font: 500 13px/1 var(--mono); color: var(--mut); white-space: nowrap; }
.ticker-track span b { color: var(--accent); font-weight: 600; }
@keyframes tick { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: clamp(48px, 7vw, 88px) 0 0; }
.label { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h2 { font: 700 clamp(28px, 4.2vw, 46px)/1.08 var(--display); margin: 0 0 24px; max-width: 22em; overflow-wrap: anywhere; }
.sub { color: var(--mut); max-width: 44em; margin: -8px 0 22px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 2.4vw, 26px); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pill { font: 600 11px/1 var(--mono); padding: 5px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.pill-live { background: rgba(124, 242, 154, .12); color: var(--good); }
.pill-live::before { content: "● "; animation: blink 1.4s steps(2) infinite; }

/* FLOW */
.flow-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.flow { width: 100%; height: auto; display: block; }
.flow .wires use { fill: none; stroke: rgba(255, 194, 26, .35); stroke-width: 2; stroke-dasharray: 6 6; }
.flow .nodes rect { fill: #221811; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.flow .nodes rect.hot { stroke: var(--accent); stroke-width: 2; }
.flow .nodes rect.gold { fill: rgba(255, 194, 26, .14); stroke: var(--accent); }
.flow text { fill: #fff; font: 600 14px var(--body); text-anchor: middle; }
.flow text.sm { fill: rgba(255, 255, 255, .55); font: 500 11px var(--mono); }
.flow text.end { text-anchor: end; fill: var(--accent); }
.flow .bits rect { fill: var(--accent); }
.flow .bits rect.w { fill: #fff; }
.steps-card { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.steps-card li { display: flex; gap: 14px; }
.steps-card p { margin: 4px 0 0; color: var(--mut); font-size: 14.5px; }
.num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: #1a0d04; font: 700 18px/1 var(--display); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.fact { border: 1px dashed var(--line); border-radius: var(--r); padding: 14px; min-width: 0; }
.fact b { display: block; margin: 6px 0 2px; font-size: 16px; overflow-wrap: anywhere; }
.fact small { color: var(--dim); font-size: 12.5px; }
.fact a { color: var(--accent); }
.small-id { font-size: 12px !important; color: #fff !important; text-transform: none !important; letter-spacing: 0 !important; }

/* STACHE */
.stache svg { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.meter { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(16px, 4vw, 40px); align-items: center; }
.meter-art { text-align: center; }
.face {
  margin: 0 auto; width: min(360px, 100%); aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 194, 26, .12), transparent 70%);
  border-radius: 14px; border: 1px solid var(--line2);
}
.face .stache { width: 82%; transition: transform .25s; }
.meter-name { font: 700 34px/1 var(--display); color: var(--accent); margin: 16px 0 6px; }
.meter-sol { margin: 0; font-size: 13px; color: var(--mut); }
.meter-ctrl label { display: block; margin-bottom: 10px; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.stage-list { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.stage-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2); font-size: 13.5px; color: var(--mut); cursor: pointer; min-width: 0; }
.stage-list li .stache { width: 38px; flex: none; }
.stage-list li span { display: flex; flex-direction: column; min-width: 0; }
.stage-list li small { font: 500 11px var(--mono); color: var(--dim); }
.stage-list li.on { border-color: var(--accent); color: #fff; background: rgba(255, 194, 26, .08); }
.note { color: var(--dim); font-size: 13px; margin: 0; }

/* LAUNCH */
.launch-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: start; }
.launch-form { display: flex; flex-direction: column; gap: 14px; }
.launch-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mut); min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, textarea {
  width: 100%; background: #0f0b08; border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 8px;
  padding: 12px; font: 500 15px var(--body); outline: none; min-width: 0;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 194, 26, .15); }
textarea { resize: vertical; }
.file input { padding: 9px; font-size: 13px; }
.devbuy { display: flex; flex-direction: column; gap: 8px; }
.devbuy small, .sign-box small { color: var(--dim); font-size: 12.5px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 70px; padding: 10px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: var(--mut); font: 600 14px var(--body); cursor: pointer; }
.seg button[aria-pressed=true] { border-color: var(--accent); color: #1a0d04; background: var(--accent); }
.sign-box { border: 1px dashed var(--line); border-radius: var(--r); padding: 12px 14px; }
.sign-box ul { margin: 8px 0; padding-left: 18px; color: var(--mut); font-size: 14px; }
.sign-box b { color: var(--accent); }
.progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.progress li { font: 500 13px var(--mono); color: var(--dim); padding-left: 22px; position: relative; }
.progress li::before { content: "○"; position: absolute; left: 0; }
.progress li.run { color: #fff; }
.progress li.run::before { content: "◐"; color: var(--accent); animation: spin 1s linear infinite; display: inline-block; }
.progress li.done { color: var(--good); }
.progress li.done::before { content: "●"; }
.progress li.fail { color: var(--bad); }
.progress li.fail::before { content: "×"; }
@keyframes spin { to { transform: rotate(360deg); } }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 14.5px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); margin-top: 6px; overflow-wrap: anywhere; }
.msg.ok { border-color: rgba(124, 242, 154, .4); }
.msg.bad { border-color: rgba(255, 138, 107, .45); }
.msg .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* COIN CARDS */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 194, 26, .4); }
.coin-card.big { position: sticky; top: 84px; }
.cc-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cc-top canvas, .cc-top img.logo, .cc-top .logo-ph { width: 64px; height: 64px; border-radius: 12px; flex: none; object-fit: cover; background: #241a12; }
.coin-card.big .cc-top { flex-direction: column; align-items: stretch; }
.coin-card.big canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; }
.logo-ph { display: grid; place-items: center; font: 700 22px var(--display); color: var(--accent); }
.cc-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-id b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--mut); width: fit-content; }
.chip.gold { color: var(--accent); border-color: rgba(255, 194, 26, .4); background: rgba(255, 194, 26, .08); }
.cc-stache { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: #120d0a; border: 1px solid var(--line2); }
.cc-stache .stache { width: 96px; flex: none; }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cc-stats div { min-width: 0; }
.cc-stats span { display: block; font: 500 10.5px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.cc-stats b { font: 600 15px var(--mono); overflow-wrap: anywhere; }
.cc-foot { margin: 0; text-align: center; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card.empty { border-style: dashed; justify-content: center; text-align: center; align-items: center; min-height: 240px; }
.card.empty p { color: var(--mut); margin: 0; max-width: 24em; }
.skeleton { min-height: 230px; background: linear-gradient(90deg, var(--panel), #21180f, var(--panel)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* CHECKER */
.check-form { display: flex; gap: 10px; max-width: 760px; }
.check-form input { font-family: var(--mono); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 16px; }
.chip-btn { background: transparent; border: 1px solid rgba(255, 255, 255, .16); color: var(--mut); border-radius: 99px; padding: 6px 12px; font: 600 13px var(--mono); cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.check-out { min-height: 200px; }
.ck-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ck-head img.logo, .ck-head .logo-ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: #241a12; }
.ck-head .meta { display: flex; flex-direction: column; min-width: 0; }
.ck-head .meta b { font-size: 20px; }
.ck-head .meta span { color: var(--mut); font-size: 14px; }
.verdict { font: 700 clamp(19px, 2.4vw, 26px)/1.25 var(--display); margin: 18px 0 8px; }
.verdict.good { color: var(--accent); }
.verdict.warn { color: var(--bad); }
.ck-lines { color: var(--mut); margin: 0 0 16px; padding-left: 18px; }
.ck-lines li { margin: 4px 0; }
.ck-lines b { color: #fff; }
.shares { display: grid; gap: 8px; }
.share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; }
.share .who { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.share .who small { display: block; color: var(--dim); font: 500 11.5px var(--mono); }
.share .pct { font: 700 18px var(--mono); }
.share .bar { grid-column: 1 / -1; height: 6px; background: rgba(255, 255, 255, .06); border-radius: 4px; overflow: hidden; }
.share .bar i { display: block; height: 100%; background: rgba(255, 255, 255, .4); }
.share.charity { border-color: rgba(255, 194, 26, .45); background: rgba(255, 194, 26, .05); }
.share.charity .bar i { background: var(--accent); }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 18px; align-items: start; }
.ck-grid > *, .check-out, .ck-head .meta { min-width: 0; }
.mono, .ck-head .meta b, .ck-head .meta span, .verdict, .ck-lines li { overflow-wrap: anywhere; word-break: break-word; }
.ck-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px; border-radius: 12px; background: #120d0a; border: 1px solid var(--line2); }
.ck-side .stache { width: 80%; }
.ck-side b { font: 700 22px var(--display); color: var(--accent); }
.loading-row { display: flex; align-items: center; gap: 10px; color: var(--mut); }
.spin { width: 14px; height: 14px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.plain { color: var(--mut); }

/* STORY */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.lore p { font-size: 18px; color: var(--mut); margin: 0 0 14px; }
.lore b { color: #fff; }
.article { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); transition: border-color .2s, transform .2s; }
.article:hover { border-color: var(--accent); transform: translateY(-3px); }
.article-art { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; background: #2a1a0e; padding: 14px; border-right: 1px solid var(--line); }
.article-art .stache { width: 100%; }
.article-art .mono { color: var(--accent); }
.article-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.article-body b { font-size: 18px; line-height: 1.3; }
.article-body p { margin: 0; color: var(--mut); font-size: 14.5px; }
.article-body .site { text-transform: none; letter-spacing: .02em; }
.read { color: var(--accent); font-weight: 600; font-size: 14px; }

/* BUY */
.buy { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center; }
.buy-art { display: grid; place-items: center; min-width: 0; }
.buy-art img { width: min(380px, 100%); }
.ca-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.ca-box code { font: 600 14px var(--mono); color: #fff; overflow-wrap: anywhere; flex: 1 1 200px; min-width: 0; }

.foot { max-width: 1280px; margin: 80px auto 0; padding: 28px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--line2); }
.foot p { color: var(--dim); font-size: 13px; margin: 0; max-width: 70em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--accent); color: #1a0d04; font-weight: 600; padding: 10px 16px; border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); transition: .25s; z-index: 100; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal: never leaves content hidden (fallback in script + this timed animation) */
.reveal { animation: rv .7s ease both; }
@keyframes rv { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .ticker-track { animation: none; } }

/* RESPONSIVE */
@media (max-width: 980px) {
  .links { display: none; }
  #connectBtn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(300px, 70vw); }
  .hero-bubble { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid, .meter, .launch-grid, .story-grid, .buy, .ck-grid { grid-template-columns: minmax(0, 1fr); }
  .coin-card.big { position: static; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .check-form { flex-direction: column; }
  .article { grid-template-columns: 1fr; }
  .article-art { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; }
  .article-art .stache { width: 120px; }
  .brand span { font-size: 19px; }
  .btn { white-space: normal; text-align: center; }
}
