:root {
  --bg: #070708;
  --bg-raised: #101114;
  --bg-card: #16171c;
  --bg-hover: #1d1e25;
  --line: #2a2b33;
  --line-strong: #3a3b45;
  --text: #eceae4;
  --muted: #8b8d97;
  --faint: #5c5e68;
  --accent: #c8ff3d;
  --accent-ink: #12130a;
  --accent-soft: rgba(200, 255, 61, 0.12);
  --buy: #3dffa8;
  --buy-soft: rgba(61, 255, 168, 0.14);
  --sell: #ff5a6a;
  --sell-soft: rgba(255, 90, 106, 0.14);
  --warn: #ffb020;
  --warn-soft: rgba(255, 176, 32, 0.12);
  --mm: #7ad7ff;
  --mm-soft: rgba(122, 215, 255, 0.12);
  --buyback: #c8ff3d;
  --launch: #ffb020;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* Treasury + CA bar */
.address-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #0c0e12;
  border-bottom: 1px solid var(--line);
}
.address-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  min-height: 48px;
  padding: 6px 0;
}
.addr-item {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  flex: 0 1 auto;
}
.addr-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.addr-full, .addr-short {
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.addr-short { display: none; }
.addr-soon {
  color: var(--faint);
  font-size: 0.86rem;
}
.addr-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.address-bar .icon-btn,
.pair-treasury .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 10px;
  text-decoration: none;
}
.address-bar .icon-btn[hidden],
.addr-actions[hidden] { display: none; }

/* Nav */
.nav {
  position: sticky;
  top: var(--addr-bar-h, 52px);
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 8, 0.94);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  line-height: 0;
}
.logo-img {
  display: block;
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--bg-hover); }
.nav-links a.active { color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sim-pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-sm { padding: 7px 13px; font-size: 0.82rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--bg-hover); }
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}
.icon-btn {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 4px 7px;
  font-family: var(--mono);
  font-size: 0.7rem;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

/* Hero */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 50%;
  width: 620px;
  height: 620px;
  transform: translateX(-40%);
  background: radial-gradient(circle, rgba(200, 255, 61, 0.08), transparent 62%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.7);
  animation: live-dot 1.8s ease-out infinite;
}
h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
  max-width: 16ch;
}
.hero-sub {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.ticker-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(200, 255, 61, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.split-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.split-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.split-card .pct {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.split-card.mm .pct { color: var(--mm); }
.split-card.buyback .pct { color: var(--buyback); }
.split-card.launch .pct { color: var(--launch); }
.split-card h3 { font-size: 0.95rem; margin: 4px 0 6px; }
.split-card p { font-size: 0.82rem; color: var(--muted); }

section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  font-weight: 650;
}
.section-head p { color: var(--muted); max-width: 54ch; margin-top: 6px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-card .k { font-size: 0.78rem; color: var(--muted); display: block; }
.stat-card .v {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-family: var(--mono);
  margin-top: 4px;
}
.stat-card .s { font-size: 0.76rem; color: var(--faint); margin-top: 2px; }

/* Partner cards */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.partner-top { display: flex; gap: 12px; align-items: center; }
.partner-top img, .avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.partner-top h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
.partner-top .ticker { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; }
.partner-top .creator-source { margin-top: 3px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.01em; }
.mint-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mint-row code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
}
.meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.82rem;
}
.meta-row .k { color: var(--faint); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.meta-row .v { color: var(--text); font-family: var(--mono); font-size: 0.86rem; }
.partner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chart-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-raised);
  min-height: 180px;
  position: relative;
}
.chart-wrap iframe { width: 100%; height: 220px; border: 0; }
.spark-fallback { width: 100%; height: 180px; padding: 12px; }
.spark-fallback .label { font-size: 0.72rem; color: var(--faint); margin-bottom: 8px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.spark-fallback svg { width: 100%; height: 130px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.badge-accent { color: var(--accent); background: var(--accent-soft); border-color: rgba(200, 255, 61, 0.3); }
.badge-mm { color: var(--mm); background: var(--mm-soft); border-color: rgba(122, 215, 255, 0.3); }
.badge-warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(255, 176, 32, 0.3); }
.badge-sell { color: var(--sell); background: var(--sell-soft); border-color: rgba(255, 90, 106, 0.3); }
.badge-buy { color: var(--buy); background: var(--buy-soft); border-color: rgba(61, 255, 168, 0.3); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); position: relative; z-index: 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(42, 43, 51, 0.55);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
td a { color: var(--mm); }
td a:hover { color: var(--accent); text-decoration: underline; }

.split-bars { display: grid; gap: 16px; margin-bottom: 28px; }
.split-bar { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.split-bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.split-bar-head h3 { font-size: 0.95rem; }
.track { height: 10px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--line); overflow: hidden; display: flex; }
.track span { height: 100%; }
.track .sent { background: var(--buy); }
.track .pending { background: var(--warn); }
.track .failed { background: var(--sell); }
.split-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 0.75rem; color: var(--muted); font-family: var(--mono); }
.split-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.split-legend .s { background: var(--buy); }
.split-legend .p { background: var(--warn); }
.split-legend .f { background: var(--sell); }

.risk-banner {
  background: rgba(255, 176, 32, 0.06);
  border: 1px solid rgba(255, 176, 32, 0.25);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.risk-banner strong { color: var(--warn); }
.risk-banner ul { margin: 10px 0 0 18px; }
.risk-banner li { margin: 4px 0; }

footer { padding: 28px 0 42px; color: var(--faint); font-size: 0.84rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 390px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: none; }
.toast strong { display: block; font-size: 0.92rem; margin-bottom: 3px; }
.toast p { font-size: 0.83rem; color: var(--muted); }

.empty { color: var(--muted); padding: 24px; text-align: center; }

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.65); }
  100% { box-shadow: 0 0 0 8px rgba(200, 255, 61, 0); }
}

@media (max-width: 820px) {
  .split-row { grid-template-columns: 1fr; }
  h1 { max-width: none; }
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.changelog {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.changelog-item {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(42, 43, 51, 0.55);
  padding-top: 8px;
}
.changelog-item .mono { color: var(--text); font-size: 0.75rem; }
.dash-grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 16px;
}
.dash-coin-list { display: flex; flex-direction: column; gap: 8px; }
.dash-coin-list button {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.dash-coin-list button.active,
.dash-coin-list button:hover { border-color: var(--accent); }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pace-lock-badge, .launch-lock-badge {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: rgba(255, 176, 32, 0.3);
}
.pending-note.pace-lock #pace-lock-countdown, .pending-note.launch-lock #launch-countdown {
  font-family: var(--mono);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pending-note {
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid rgba(255, 176, 32, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  margin: 10px 0;
}
.field-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.field-row input {
  flex: 1;
  min-width: 220px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
@media (max-width: 820px) {
  .dash-grid { grid-template-columns: 1fr; }
}

.demo-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--accent, #7dffb3);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent, #7dffb3) 10%, transparent);
}
.demo-callout-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #7dffb3);
  font-weight: 700;
  margin-bottom: 8px;
}
.demo-callout a { color: var(--accent, #7dffb3); }

.mm-how { display: flex; flex-direction: column; gap: 28px; }
.mm-how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.preset-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preset-card h3 { font-size: 1.05rem; }
.preset-card .risk {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.preset-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.82rem;
}
.preset-facts .k { display: block; color: var(--faint); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.preset-facts .v { color: var(--text); font-family: var(--mono); font-size: 0.84rem; }
.preset-charts { display: flex; flex-direction: column; gap: 10px; }
.preset-charts svg, .preset-explain-charts svg { width: 100%; height: auto; background: transparent; }
.preset-compare { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.preset-compare th, .preset-compare td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.preset-compare th { color: var(--muted); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.preset-compare td.mono { font-size: 0.84rem; }
.preset-compare .highlight { color: var(--accent); }
.preset-explain {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.preset-explain-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  align-items: start;
}
.handoff-note { font-size: 0.82rem; }
@media (max-width: 960px) {
  .mm-how-grid, .preset-explain-grid { grid-template-columns: 1fr; }
}
/* How to pair callout */
.pair-callout {
  margin-top: 40px;
  padding: 22px 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero .pair-callout { position: relative; z-index: 1; }
#pair-how.pair-callout { margin-top: 0; margin-bottom: 28px; }
.pair-callout h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.pair-lead { color: var(--muted); max-width: 62ch; margin-bottom: 18px; }
.pair-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pair-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.pair-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}
.pair-steps h3 { font-size: 0.98rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.pair-steps p { font-size: 0.86rem; color: var(--muted); }
.pair-treasury {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
}
.pair-treasury code {
  font-size: 0.78rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
  flex: 1 1 160px;
  min-width: 0;
}
.pair-treasury .addr-short {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  flex: 0 1 auto;
}

/* ========== Layout polish: how-it-works, FAQ, mobile nav ========== */
html { scroll-padding-top: calc(var(--addr-bar-h, 52px) + 76px); }
section, #flywheel, #pair, #pair-how { scroll-margin-top: calc(var(--addr-bar-h, 52px) + 76px); }
#faq, [id^="preset-"] { scroll-margin-top: calc(var(--addr-bar-h, 52px) + 80px); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav { position: sticky; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}
.nav-toggle-bars span {
  display: block;
  height: 1.8px;
  width: 100%;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav.is-open .nav-toggle-bars span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 56px;
}
.how-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.how-step:hover { border-color: var(--line-strong); background: var(--bg-hover); }
.how-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.how-step-icon svg { width: 34px; height: 34px; }
.how-step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.how-step h3 {
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.how-step p { font-size: 0.88rem; color: var(--muted); }

.how-mm { margin-top: 8px; }
.how-mm .section-head { margin-bottom: 22px; }

.faq { margin-top: 56px; }
.faq .section-head { margin-bottom: 18px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.02em;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}
.faq-list details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.faq-list details p {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0 0 16px;
  max-width: 68ch;
}

.mobile-cta { display: none; }

.mono, td a, .mint-row code, .meta-row .v { overflow-wrap: anywhere; word-break: break-word; }
.table-wrap, .panel { max-width: 100%; }
.chart-wrap, .preset-charts, .spark-fallback { max-width: 100%; }
iframe { max-width: 100%; }

@media (max-width: 1100px) {
  html { scroll-padding-top: calc(var(--addr-bar-h, 52px) + 68px); }
  section, #flywheel { scroll-margin-top: 8px; }
  #faq, [id^="preset-"] { scroll-margin-top: 72px; }

  .nav.is-open {
    background: #070708;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle { display: inline-flex; order: 3; margin-left: 0; }
  .logo { order: 1; }
  .nav-inner {
    flex-wrap: nowrap;
    padding: 6px 0;
    gap: 8px;
    min-height: 60px;
    position: static;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    flex: none;
    overflow: auto;
    max-height: min(70dvh, calc(100dvh - 60px));
    padding: 10px 16px 18px;
    background: #070708;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 61;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    transform: translateZ(0);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .nav-right {
    margin-left: auto;
    order: 2;
    gap: 8px;
    flex-shrink: 0;
  }
  .nav-right .btn,
  .nav-right .btn-sm {
    min-height: 44px;
    padding: 10px 16px;
  }
  /* sim-pill hidden below 520px */

  .how-steps { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .mm-how-grid, .preset-explain-grid, .dash-grid, .split-row { grid-template-columns: 1fr; }

  .btn, .btn-sm {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .field-row input { min-height: 44px; font-size: 16px; }

  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(7, 7, 8, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { flex: 1; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-cta,
  body.hero-in-view .mobile-cta { display: none; }

  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }

  .hero { padding: 56px 0 48px; }
  section { padding: 56px 0; }
  h1 { max-width: none; font-size: clamp(2rem, 11vw, 3rem); }
  .hero-sub { font-size: 1.02rem; }
  .hero-actions .btn { flex: 1 1 auto; min-width: min(100%, 160px); }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .section-head h2 { font-size: 1.55rem; }

  .preset-facts { grid-template-columns: 1fr 1fr; }
  .preset-compare { font-size: 0.8rem; min-width: 520px; }
  #mm-how .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .preset-charts svg, .preset-explain-charts svg, .spark-fallback svg {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .chart-wrap iframe { height: 200px; }
  .footer-inner { flex-direction: column; gap: 6px; }
  td a, .meta-row a, .demo-callout a, .mint-row a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 55;
  }
  .nav-backdrop.is-on { display: block; }
}


@media (max-width: 1100px) {
  .addr-full { display: none; }
  .addr-short { display: inline; }
  .address-bar-inner { gap: 2px 12px; padding: 4px 0; min-height: 0; }
  .addr-item {
    flex: 1 1 100%;
    min-height: 44px;
  }
  .address-bar .icon-btn,
  .pair-treasury .icon-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
  }
  .pair-steps { grid-template-columns: 1fr; }
  section, #flywheel, #pair, #pair-how { scroll-margin-top: calc(var(--addr-bar-h, 52px) + 68px); }
}

@media (max-width: 600px) {
  .how-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .meta-row { grid-template-columns: 1fr; }
  .logo-img { height: 30px; }
}
@media (max-width: 520px) {
  .sim-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .nav-right { margin-left: auto; }
}

/* Desktop nav: More menu + fit 1024–1440 */
.nav-more {
  display: none;
  position: relative;
  flex-shrink: 0;
}
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  white-space: nowrap;
  cursor: pointer;
}
.nav-more-btn:hover,
.nav-more.is-open .nav-more-btn,
.nav-more.has-active .nav-more-btn {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-more.has-active .nav-more-btn { color: var(--accent); }
.nav-more-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.15s ease;
}
.nav-more.is-open .nav-more-caret {
  transform: translateY(1px) rotate(225deg);
}
.mw-more-panel,
.mw-more-panel:popover-open {
  margin: 0;
  inset: auto;

  position: fixed;
  z-index: 9999;
  min-width: 188px;
  padding: 6px;
  background: rgba(14, 15, 19, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mw-more-panel[hidden] { display: none !important; }
.mw-more-panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
}
.mw-more-panel a:hover,
.mw-more-panel a.active {
  color: var(--text);
  background: var(--bg-hover);
}
.mw-more-panel a.active { color: var(--accent); }

@media (min-width: 1024px) {
  /* backdrop-filter on .nav clips overflowing descendants in Chrome,
     so move the blur to a ::before layer and let the More menu spill out. */
  .nav {
    overflow: visible;
    isolation: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
  }
  .nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(7, 7, 8, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner { position: relative; z-index: 1; }

  /* Keep a horizontal nav (with More) from 1024px up, even though
     other layout rules still collapse at 1100px. Mobile <1024 is unchanged. */
  .nav-toggle { display: none !important; }
  .nav-inner {
    flex-wrap: nowrap;
    gap: 16px;
    min-height: 68px;
    padding: 0;
    position: relative;
  }
  .logo { order: 0; }
  .nav-right {
    margin-left: auto;
    order: 0;
    flex-shrink: 0;
  }
  .nav-links {
    display: flex !important;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    overflow: visible;
    max-height: none;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    isolation: auto;
    transform: none;
  }
  .nav-links > a {
    min-height: 0;
    display: inline-flex;
    align-items: center;
    padding: 7px 8px;
    font-size: 0.8rem;
    border-radius: 999px;
  }
  .nav-more-btn { font-size: 0.8rem; padding: 7px 8px; }
  .nav-compact-hide { display: none !important; }
  .nav-more { display: block; }
  .nav.is-open {
    background: rgba(7, 7, 8, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .sim-pill { display: none; }
  .nav-inner { gap: 10px; }
  .nav-links > a,
  .nav-more-btn { padding: 6px 7px; font-size: 0.78rem; }
}

@media (min-width: 1280px) {
  .nav-links { gap: 4px; }
  .nav-links > a,
  .nav-more-btn { padding: 8px 10px; font-size: 0.82rem; }
}

/* Left rail: market cap + burn counter */
.left-rail {
  --burn-glow: 0 0 18px rgba(200, 255, 61, 0.28), 0 0 36px rgba(255, 176, 32, 0.22);
  --mcap-glow: 0 0 18px rgba(122, 215, 255, 0.22), 0 0 32px rgba(200, 255, 61, 0.18);
  position: relative;
  margin: 8px auto 0;
  width: min(var(--max), calc(100% - 32px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.burn-widget,
.mcap-widget {
  position: relative;
  width: 100%;
  margin: 0;
}
.burn-widget-toggle,
.mcap-widget-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  text-decoration: none;
  background: linear-gradient(180deg, #14160f 0%, #0c0d0a 100%);
  border: 1px solid rgba(200, 255, 61, 0.28);
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: var(--burn-glow), var(--shadow);
  color: var(--text);
}
.mcap-widget-toggle {
  border-color: rgba(122, 215, 255, 0.32);
  box-shadow: var(--mcap-glow), var(--shadow);
}
.burn-widget-toggle:hover,
.burn-widget-toggle:focus-visible {
  border-color: rgba(255, 176, 32, 0.7);
  outline: none;
}
.mcap-widget-toggle:hover,
.mcap-widget-toggle:focus-visible {
  border-color: rgba(122, 215, 255, 0.75);
  outline: none;
}
.mcap-widget-toggle[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}
.burn-flame {
  flex: 0 0 auto;
  width: 28px;
  height: 36px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 8px rgba(200, 255, 61, 0.55)) drop-shadow(0 0 14px rgba(255, 176, 32, 0.4));
}
.burn-flame-svg {
  width: 28px;
  height: 36px;
  overflow: visible;
  transform-origin: 50% 92%;
  animation: flame-sway 1.6s ease-in-out infinite;
}
.flame-outer { animation: flame-flicker 1.15s ease-in-out infinite; transform-origin: 32px 78px; }
.flame-mid { animation: flame-flicker 0.9s ease-in-out infinite reverse; transform-origin: 32px 70px; opacity: 0.9; }
.flame-inner { animation: flame-inner 0.7s ease-in-out infinite; transform-origin: 32px 62px; }
@keyframes flame-sway {
  0%, 100% { transform: rotate(-1.4deg) scale(1, 1); }
  50% { transform: rotate(1.6deg) scale(1.04, 1.08); }
}
@keyframes flame-flicker {
  0%, 100% { transform: scale(1, 1) translateX(0); }
  35% { transform: scale(1.05, 1.1) translateX(-0.6px); }
  70% { transform: scale(0.96, 0.94) translateX(0.7px); }
}
@keyframes flame-inner {
  0%, 100% { transform: scale(1, 1); opacity: 0.95; }
  50% { transform: scale(0.9, 1.08); opacity: 1; }
}
.burn-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.burn-kicker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.burn-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.burn-empty[hidden] { display: none; }
.burn-value {
  white-space: nowrap;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(200, 255, 61, 0.35);
}
.burn-empty {
  font-size: 0.72rem;
  color: var(--muted);
}
.burn-panel {
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(200, 255, 61, 0.22);
  border-radius: 14px;
  padding: 10px 12px 8px;
  box-shadow: var(--shadow);
  max-height: min(480px, 70vh);
  overflow: auto;
}
.burn-panel-title {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.burn-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.burn-list a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 6px;
  border-radius: 8px;
  color: var(--text);
}
.burn-list a:hover { background: var(--bg-hover); color: var(--accent); }
.burn-list-meta { font-size: 0.72rem; color: var(--muted); }
.burn-list-empty { color: var(--muted); font-size: 0.82rem; padding: 6px; }

.pair-callout a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 1100px) {
  main { padding-left: 200px; }
  .left-rail {
    position: fixed;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 176px;
    margin: 0;
    z-index: 45;
    gap: 10px;
  }
  .burn-widget-toggle,
  .mcap-widget-toggle {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 12px 12px;
    text-align: center;
  }
  .burn-flame,
  .burn-flame-svg { width: 52px; height: 66px; margin-inline: auto; }
  .mcap-icon,
  .mcap-icon-svg { width: 52px; height: 52px; margin-inline: auto; }
  .burn-kicker { justify-content: center; }
  .burn-value { font-size: 1.28rem; }
  .burn-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: 240px;
  }
}


.mcap-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 8px rgba(122, 215, 255, 0.5)) drop-shadow(0 0 12px rgba(200, 255, 61, 0.28));
}
.mcap-icon-svg {
  width: 32px;
  height: 32px;
  overflow: visible;
  transform-origin: 50% 50%;
  animation: mcap-pulse 2.6s ease-in-out infinite;
}
@keyframes mcap-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.07); opacity: 0.88; }
}
.mcap-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mcap-widget.is-soon .burn-value {
  color: var(--muted);
  text-shadow: none;
  font-weight: 650;
}
.mcap-change {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mcap-change.up { color: var(--buy); }
.mcap-change.down { color: var(--sell); }
.mcap-updated {
  font-size: 0.68rem;
  color: var(--muted);
}
.mcap-change[hidden],
.mcap-updated[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .mcap-icon-svg,
  .burn-flame-svg,
  .flame-outer,
  .flame-mid,
  .flame-inner {
    animation: none !important;
  }
}
