:root {
  --bg: #03030c;
  --bg-2: #070a1c;
  --panel: rgba(12, 18, 44, 0.62);
  --panel-solid: #0b1030;
  --line: rgba(120, 170, 255, 0.16);
  --line-hot: rgba(90, 200, 255, 0.55);
  --text: #e8f1ff;
  --muted: #8d9cc4;
  --cyan: #5fd8ff;
  --blue: #2f7bff;
  --violet: #8b5cff;
  --green: #3ef2a0;
  --red: #ff5d7a;
  --glow: 0 0 24px rgba(95, 216, 255, 0.45), 0 0 64px rgba(47, 123, 255, 0.25);
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, #12185a55, transparent 60%),
              radial-gradient(900px 600px at -10% 110%, #3b1a7a44, transparent 60%), var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

#stars, #sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#stars { z-index: -1; }
#sparkles { z-index: 60; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line-hot);
  background: rgba(20, 40, 90, 0.4); text-decoration: none; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  border: 0; color: #02101f;
  background: linear-gradient(100deg, #b8f3ff, var(--cyan) 40%, #4f8dff);
  box-shadow: 0 0 30px rgba(95, 216, 255, .45);
}
.btn-ghost { background: transparent; }
.btn-icon { width: 50px; padding: 13px 0; font-size: 18px; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn.full { width: 100%; }
.btn-wallet { padding: 10px 18px; font-size: 14px; }
.btn-wallet.connected { border-color: var(--green); color: var(--green); }
.btn-wallet.connected::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(3, 3, 12, .9), rgba(3, 3, 12, .55));
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.brand b { color: var(--cyan); }
.brand-dot { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 45%, var(--blue)); box-shadow: var(--glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.18); box-shadow: 0 0 34px var(--cyan); } }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.links a:hover { color: var(--cyan); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  max-width: 1240px; margin: 0 auto; padding: clamp(32px, 7vh, 80px) clamp(16px, 4vw, 48px) 48px;
  min-height: calc(100vh - 70px);
}
.urlbar {
  display: inline-flex; align-items: center; gap: 14px; padding: 9px 16px 9px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-family: var(--mono); font-size: 14px;
  margin-bottom: 22px; max-width: 100%;
}
.lights { display: flex; gap: 5px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.url { color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.lock { font-size: 11px; }
#urlText { white-space: nowrap; overflow: hidden; }
#urlText .hl { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); font-weight: 600; }
.caret { width: 2px; height: 16px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.eyebrow { margin: 0 0 10px; color: var(--cyan); font-family: var(--mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
h1 { font-size: clamp(38px, 5.2vw, 70px); line-height: 1.02; margin: 0 0 18px; letter-spacing: -.02em; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gdot { color: var(--cyan); text-shadow: 0 0 18px var(--cyan), 0 0 40px var(--blue); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: #b9c6e8; max-width: 34em; margin: 0 0 26px; }

.ca {
  display: flex; align-items: center; gap: 12px; max-width: 560px;
  padding: 8px 8px 8px 14px; border: 1px solid var(--line-hot); border-radius: 14px; background: var(--panel);
  box-shadow: inset 0 0 30px rgba(95, 216, 255, .06);
}
.ca-label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: #02101f; background: var(--cyan); padding: 3px 8px; border-radius: 6px; }
.ca code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d4e6ff; }
.ca-copy { border: 0; background: var(--blue); padding: 9px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.ca-copy:disabled { opacity: .45; cursor: not-allowed; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }

.hero-stats { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--mono); font-size: 20px; }
.hero-stats span { color: var(--muted); font-size: 13px; }

.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.charge {
  position: relative; width: min(100%, 540px); aspect-ratio: 1; padding: 0; border: 1px solid var(--line);
  border-radius: 28px; overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(47, 123, 255, .25);
  transition: box-shadow .2s;
  animation: float 6s ease-in-out infinite;
}
.charge img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, filter .25s; }
.charge:hover img { transform: scale(1.03); }
.charge.zap img { filter: brightness(1.35) saturate(1.3); transform: scale(1.05) translate(4px, -4px); }
.charge.lightspeed { box-shadow: 0 0 120px var(--cyan), 0 0 220px var(--violet); }
@keyframes float { 50% { translate: 0 -10px; } }
#bolts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#bolts path { fill: none; stroke: #c9f4ff; stroke-width: .5; filter: drop-shadow(0 0 2px var(--cyan)); }

.speedo {
  display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 8px;
  width: min(100%, 540px); padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  font-family: var(--mono);
}
.speedo > span { grid-column: 1 / -1; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.speedo b { font-size: 30px; color: var(--cyan); text-shadow: 0 0 14px var(--cyan); }
.speedo small { color: var(--muted); }
.speed-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.speed-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan), #fff); box-shadow: 0 0 12px var(--cyan); transition: width .2s; }
.speedo em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- section divider: the dot streaks across a charged line ---------- */
.divider { position: relative; height: 24px; max-width: 1240px; margin: clamp(56px, 9vh, 96px) auto 0; padding: 0 clamp(16px, 4vw, 48px); overflow: hidden; }
.divider::before {
  content: ""; position: absolute; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 255, .45) 20%, rgba(95, 216, 255, .55) 50%, rgba(139, 92, 255, .45) 80%, transparent);
}
.comet {
  position: absolute; top: 50%; left: 0; width: 180px; height: 3px; margin-top: -1.5px; border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 255, .6) 40%, var(--cyan) 92%, #fff);
  filter: drop-shadow(0 0 6px var(--cyan));
  animation: streak 5.5s cubic-bezier(.55, 0, .2, 1) infinite;
}
.comet::after {
  content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px #fff, 0 0 22px var(--cyan), 0 0 44px var(--blue);
}
@keyframes streak {
  0% { transform: translateX(-200px); opacity: 0; }
  10% { opacity: 1; }
  60%, 100% { transform: translateX(calc(min(100vw, 1240px) + 20px)); opacity: 1; }
}
.divider:nth-of-type(2n) .comet { animation-delay: 1.8s; }

/* ---------- sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 8vh, 88px) clamp(16px, 4vw, 48px) 0; }
.section-head { margin-bottom: 36px; }
h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 0 0 8px; letter-spacing: -.02em; line-height: 1.1; }
.section-sub { color: var(--muted); margin: 0; font-size: 17px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- chart ---------- */
.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.chart-frame { min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.chart-frame iframe { width: 100%; height: 100%; min-height: 560px; border: 0; display: block; }
.chart-empty { height: 100%; min-height: 560px; display: grid; place-content: center; text-align: center; padding: 24px; }
.chart-empty .bars { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 160px; margin-bottom: 22px; }
.chart-empty .bars i { width: 18px; border-radius: 4px; background: linear-gradient(to top, var(--blue), var(--cyan)); box-shadow: 0 0 14px rgba(95, 216, 255, .5); animation: grow 1.6s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(.4); opacity: .5; } }
.chart-empty h3 { margin: 0 0 6px; font-size: 22px; }
.chart-empty p { margin: 0; color: var(--muted); }

.summary { display: flex; flex-direction: column; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.summary-head { display: flex; justify-content: space-between; align-items: center; }
.token-id { display: flex; align-items: center; gap: 12px; }
.token-id img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 75% 25%; border: 1px solid var(--line-hot); }
.token-id b { display: block; font-size: 18px; }
.token-id small { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.live { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; }
.live.on { color: var(--green); border-color: rgba(62, 242, 160, .4); }
.live.on::before { content: "● "; animation: blink 1.4s steps(1) infinite; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-row b { font-family: var(--mono); font-size: 30px; }
.chg { font-family: var(--mono); font-weight: 600; padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.up { color: var(--green); }
.down { color: var(--red); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 12px; }
.stats dd { margin: 2px 0 0; font-family: var(--mono); font-weight: 600; font-size: 15px; }
.pressure-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pressure-bar { height: 10px; border-radius: 99px; background: rgba(255, 93, 122, .5); overflow: hidden; }
.pressure-bar i { display: block; height: 100%; width: 50%; background: var(--green); transition: width .6s; }
.changes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.changes div { padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.changes small { display: block; color: var(--muted); font-size: 11px; }
.changes b { font-family: var(--mono); font-size: 13px; }

/* ---------- lore ---------- */
.tldr { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-hot); background: linear-gradient(120deg, rgba(47, 123, 255, .16), rgba(139, 92, 255, .12)); margin-bottom: 40px; }
.tldr span { flex: none; font-family: var(--mono); font-weight: 600; font-size: 13px; color: #02101f; background: var(--cyan); padding: 4px 10px; border-radius: 8px; }
.tldr p { margin: 0; font-size: 18px; }
.tldr b { color: var(--cyan); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 2px; background: linear-gradient(90deg, #ffffff55, var(--cyan), var(--blue), var(--violet)); box-shadow: 0 0 12px var(--cyan); }
.chapter { position: relative; }
.ch-num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 20px; background: var(--panel-solid); border: 2px solid var(--cyan); box-shadow: var(--glow); position: relative; margin-bottom: 18px; }
.chapter:first-child .ch-num { border-color: #fff; box-shadow: 0 0 18px #ffffff55; }
.ch-body { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); height: calc(100% - 70px); display: flex; flex-direction: column; }
.ch-body h3 { margin: 0 0 8px; font-size: 20px; }
.ch-body p { margin: 0 0 16px; color: #c3cfee; flex: 1; }
.ch-body b { color: var(--cyan); }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.tag.hot { color: var(--cyan); border-color: var(--line-hot); box-shadow: 0 0 14px rgba(95, 216, 255, .3); }

.glossary { margin-top: 36px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.glossary h3 { margin: 0 0 14px; }
.glossary dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.glossary dt { font-weight: 700; color: var(--cyan); }
.glossary dd { margin: 2px 0 0; color: #c3cfee; }

/* ---------- gallery ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button { padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.tabs button:hover { color: var(--cyan); border-color: var(--line-hot); }
.tabs button.on { color: #02101f; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px rgba(95, 216, 255, .4); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.g-card { animation: cardIn .45s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.g-card { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); cursor: zoom-in; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s; }
.g-card:hover { border-color: var(--line-hot); box-shadow: var(--glow); }
.g-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.g-card .g-meta { padding: 14px 16px 16px; }
.g-card .g-stage { font-family: var(--mono); font-size: 12px; color: var(--cyan); }
.g-card b { display: block; font-size: 18px; margin: 2px 0 4px; }
.g-card span { color: var(--muted); font-size: 14px; }

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(2, 2, 10, .88); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 760px); }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 16px; box-shadow: var(--glow); }
.lightbox figcaption { margin: 14px 0; }
.lightbox figcaption b { display: block; font-size: 20px; }
.lightbox figcaption span { color: var(--muted); }
.lb-actions { display: flex; gap: 10px; }

/* ---------- lab ---------- */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tool header h3 { margin: 0; font-size: 22px; }
.tool header small { color: var(--muted); }

.term { height: 240px; overflow-y: auto; padding: 14px; border-radius: 12px; background: #02030a; border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
.term p { margin: 0 0 10px; }
.term .q { color: var(--muted); }
.term .q::before { content: "you> "; color: var(--violet); }
.term .a { color: #cfeeff; }
.term .a::before { content: "dot> "; color: var(--cyan); }
.term-input { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; border: 1px solid var(--line-hot); background: #02030a; font-family: var(--mono); }
.term-input span { color: var(--cyan); }
.term-input input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chips button:hover { color: var(--cyan); border-color: var(--line-hot); }

.race { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.race-dot { position: relative; width: 140px; height: 140px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 40% 40%, #fff, #9fe8ff 30%, var(--cyan) 50%, var(--blue) 80%); box-shadow: var(--glow); transition: transform .08s; touch-action: manipulation; }
.race-dot:active { transform: scale(.93); }
.race-dot i { position: absolute; top: 34%; width: 14px; height: 32px; border-radius: 99px; background: #02030a; transform: rotate(-24deg); }
.race-dot i:first-child { left: 48%; top: 40%; }
.race-dot i:last-child { left: 66%; top: 30%; }
.race-dot.hot { animation: shake .1s linear infinite; box-shadow: 0 0 60px var(--cyan), 0 0 120px var(--violet); }
@keyframes shake { 50% { translate: 1px -1px; } }
.race-track { position: relative; width: 100%; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.race-runner { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px var(--cyan), -24px 0 18px -6px var(--blue); transition: left .12s; }
.race-goal { position: absolute; right: -6px; top: -22px; font-family: var(--mono); color: var(--cyan); font-weight: 700; }
.race-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; text-align: center; }
.race-read div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.race-read small { display: block; color: var(--muted); font-size: 12px; }
.race-read b { font-family: var(--mono); font-size: 18px; }

#idCanvas { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #02030a; }
.id-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.id-controls input, .field input[type="number"] { flex: 1; min-width: 140px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #02030a; color: var(--text); font: inherit; outline: none; }
.id-controls input:focus, .field input:focus { border-color: var(--line-hot); }
.hint { margin: 0; color: var(--muted); font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field span { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.field span b { color: var(--cyan); font-family: var(--mono); }
.field input[type="range"] { width: 100%; accent-color: var(--cyan); }
.calc-out { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.calc-out div { padding: 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(47, 123, 255, .14), rgba(139, 92, 255, .1)); border: 1px solid var(--line-hot); }
.calc-out small { display: block; color: var(--muted); font-size: 12px; }
.calc-out b { font-family: var(--mono); font-size: 24px; color: #fff; word-break: break-all; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 6px 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); cursor: pointer; }
.presets button:hover { color: var(--cyan); border-color: var(--line-hot); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 120px 16px 48px; }
.footer-dot { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 45%, var(--blue)); box-shadow: 0 0 60px var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
.footer-big { font-size: clamp(28px, 5vw, 54px); font-weight: 700; margin: 0 0 14px; }
.footer-big span { color: var(--cyan); text-shadow: 0 0 20px var(--cyan); }
.footer-links { color: var(--muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.disclaimer { max-width: 680px; margin: 22px auto 0; color: #6a789f; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; padding: 12px 20px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-hot); box-shadow: var(--glow); transition: transform .3s, visibility .3s; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .charge, .speedo { width: min(100%, 420px); }
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .lab { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .links { display: none; }
  .btn-wallet { margin-left: auto; }
  .urlbar { font-size: 12px; }
  h1 { font-size: 36px; }
  .hero { padding-top: 24px; }
  .hero-stats { gap: 18px; }
  .chart-frame, .chart-frame iframe, .chart-empty { min-height: 440px; }
  .timeline, .gallery, .glossary dl { grid-template-columns: 1fr; }
  .ch-body { height: auto; }
  .tldr { flex-direction: column; gap: 10px; }
  .tldr p { font-size: 16px; }
  .cta { gap: 8px; }
  .cta .btn { padding-inline: 12px; }
  .cta .btn:not(.btn-icon) { flex: 1; }
  .cta .btn-icon { width: 46px; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
