/* Dark, glossy trader theme */
:root {
  color-scheme: dark;
  --bg: #050807;
  --bg-muted: #08100d;
  --surface: #0c1411;
  --surface-2: #14201b;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f7f5;
  --muted: #9aaba4;
  --faint: #62726c;
  --accent: #10e29a;
  --accent-2: #5eead4;
  --accent-3: #38bdf8;
  --btn: #f2f7f5;
  --btn-text: #04110c;
  --glow: 0 0 0 1px rgba(16, 226, 154, 0.25), 0 10px 40px -10px rgba(16, 226, 154, 0.45);
  --shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 20px 50px -20px rgba(0,0,0,0.8);
  --glass: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  --shine: linear-gradient(100deg, #ffffff 0%, #b7ffe4 30%, var(--accent) 50%, var(--accent-2) 65%, #ffffff 100%);
  --radius: 18px;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Inter", system-ui, -apple-system, sans-serif;
  /* Heading style from the X banner: white fading to soft mint-grey */
  --heading-fill: linear-gradient(180deg, #f4fbf8 0%, #cfe3db 55%, #9fbcb0 100%);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: #030605;
  position: relative;
  isolation: isolate;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Page background: same as the X banner. Dark dome at the top, emerald rising from the bottom.
   Fixed behind everything so each screen gets the same look while you scroll. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, #030605 50%, rgba(3, 6, 5, 0) 100%),
    radial-gradient(ellipse 70% 40% at 50% 112%, rgba(16, 226, 154, 0.32), transparent 70%),
    linear-gradient(180deg, #030605 0%, #05110d 38%, #0a2c20 72%, #0f6a4b 100%);
}
body::after {
  /* fine grain so the fade doesn't band */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
h1, h2, h3 { margin: 0 0 0.4em; font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; font-optical-sizing: auto; }
h1, h2 { letter-spacing: -0.045em; line-height: 1.06; background: var(--heading-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { font-size: clamp(2.4rem, 5.6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
button, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.fine { color: rgba(242, 247, 245, 0.5); font-size: 0.85rem; }
.center { text-align: center; }

/* Buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b9ffe6, var(--accent) 45%, #0bbf83);
  color: var(--btn-text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(16, 226, 154, 0.4), 0 8px 28px -8px rgba(16, 226, 154, 0.7), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.75) 50%, transparent 70%);
  transition: transform 0.6s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(16, 226, 154, 0.6), 0 12px 36px -8px rgba(16, 226, 154, 0.9), inset 0 1px 0 rgba(255,255,255,0.6); }
.btn:hover::after { transform: translateX(120%); }
.btn-outline { box-shadow: none; }
.btn-outline::after { display: none; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* Nav */
/* Sidebar: black at the top fading into emerald at the bottom. Collapses to an icon strip. */
:root { --side-w: 240px; --side-w-min: 72px; }
body { padding-left: var(--side-w); transition: padding-left 0.22s ease; }
.side-collapsed body { padding-left: var(--side-w-min); }
.side {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; width: var(--side-w);
  display: flex; flex-direction: column; gap: 22px; padding: 18px 12px 16px; overflow: hidden;
  background: linear-gradient(0deg, #128a62 0%, #0b3526 22%, #06140f 48%, #030605 75%);
  border-right: 1px solid var(--border);
  transition: width 0.22s ease, transform 0.25s ease;
}
.side-collapsed .side { width: var(--side-w-min); }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.side-logo { padding-left: 8px; }
.side .logo-img, .mbar .logo-img { box-shadow: none; border-radius: 0; filter: drop-shadow(0 0 10px rgba(16, 226, 154, 0.45)); }
.side-toggle {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(3, 6, 5, 0.35); color: var(--text);
  transition: transform 0.22s ease, background 0.15s ease;
}
.side-toggle:hover { background: rgba(3, 6, 5, 0.6); }
.side-collapsed .side-toggle { transform: rotate(180deg); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; white-space: nowrap;
  color: rgba(242, 247, 245, 0.72); text-decoration: none; font-size: 0.93rem; font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-nav a.active, .side-nav a[aria-current="page"] { background: rgba(16, 226, 154, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(16, 226, 154, 0.25); }
.side-nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-nav .soon { margin-left: auto; }
.side-bottom { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.side-cta { flex: 1; text-align: center; white-space: nowrap; }
.side-cta-short { display: none; }
.side .x-btn { background: rgba(3, 6, 5, 0.45); border-color: rgba(255, 255, 255, 0.14); }
/* collapsed: icons only */
.side-collapsed .side-label { display: none; }
.side-collapsed .side-top { flex-direction: column; }
.side-collapsed .side-logo { padding-left: 0; }
.side-collapsed .side-nav a { justify-content: center; padding: 10px 0; }
.side-collapsed .side-bottom { flex-direction: column; }
.side-collapsed .side-cta { flex: none; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }
.side-collapsed .side-cta-short { display: inline; font-weight: 700; }
/* phone bar + slide-out (hidden on desktop) */
.mbar, .side-scrim { display: none; }
section[id], #leaderboard, #distribution { scroll-margin-top: 24px; }
.logo-img { width: 30px; height: 30px; flex: none; border-radius: 8px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 18px -6px rgba(16, 185, 129, 0.8); }
.avatar .logo-img { width: 100%; height: 100%; border-radius: 50%; box-shadow: none; }
.mark { filter: drop-shadow(0 0 10px rgba(16, 226, 154, 0.55)); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; margin: 0; }
.mark { width: 28px; height: 28px; flex: none; color: var(--accent); }
.x-btn {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  color: var(--text); border: 1px solid var(--border); background: var(--glass); text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.x-btn:hover { border-color: rgba(16, 226, 154, 0.5); background: rgba(16, 226, 154, 0.1); transform: translateY(-1px); }
.footer-inner .x-btn { margin-right: auto; }
.soon {
  font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}

/* Hero */
.hero { position: relative; padding: 64px 0 88px; overflow: hidden; isolation: isolate; }
.hero-inner { max-width: 780px; text-align: center; }
.shine {
  background: var(--shine); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -220% center; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.live-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; color: var(--text);
  background: var(--glass); border: 1px solid rgba(16, 226, 154, 0.3); box-shadow: var(--glow); text-decoration: none;
}
.live-pill b {
  font-size: 0.68rem; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px;
  background: var(--accent); color: var(--btn-text);
}
.live-pill span:last-child { color: var(--accent); }
.hero-stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats div {
  padding: 10px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted);
}
.hero-stats strong { color: var(--text); font-family: var(--display); margin-right: 6px; }


/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-size: 0.85rem; margin-bottom: 28px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sub { color: var(--muted); font-size: 1.1rem; margin: 0 auto 36px; max-width: 520px; }

/* Chat */
.chat { text-align: left; }
.thread { display: flex; flex-direction: column; gap: 20px; }
.thread:not(:empty) {
  max-height: 520px; overflow-y: auto; padding: 8px 4px 24px; margin-bottom: 8px;
  scrollbar-width: thin;
}
.msg-user {
  align-self: flex-end; max-width: 80%;
  background: var(--surface-2); padding: 12px 18px; border-radius: 22px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg-bot { display: flex; gap: 14px; align-items: flex-start; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.avatar .mark { width: 20px; height: 20px; }
.bot-body { flex: 1; min-width: 0; }
.bot-body p { margin: 0 0 10px; }
.bot-body ul { margin: 0 0 12px; padding-left: 20px; }
.bot-body li { margin-bottom: 4px; }
.steps-log { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin: 0 0 14px; }
.steps-log div::before { content: "✓ "; color: var(--accent); }
.typing { display: inline-flex; gap: 4px; padding: 10px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: bounce 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Mini site preview inside chat */
.preview { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 4px 0 12px; box-shadow: var(--shadow); }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.preview-bar span { margin-left: 8px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-site { padding: 34px 24px; text-align: center; }
.preview-site .p-emoji { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.preview-site .p-ticker { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 4px; }
.preview-site .p-tag { opacity: 0.8; font-size: 0.92rem; margin: 0 auto 18px; max-width: 380px; }
.preview-site .p-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.preview-site .p-btns span { padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.preview-site .p-extra { margin-top: 18px; display: inline-block; padding: 8px 14px; border-radius: 10px; font-size: 0.8rem; font-family: var(--mono); }
.bot-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bot-actions a.ghost-btn { text-decoration: none; color: var(--text); }
.site-frame { display: block; width: 100%; height: min(70vh, 560px); border: 0; background: #fff; }
.ship-live { border-color: rgba(16, 226, 154, 0.5); color: var(--accent); }
.live-link { color: var(--accent); font-size: 0.85rem; font-family: var(--mono); }
.live-done { margin-top: 10px; }
.live-done a { color: var(--accent); }
.publish-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.publish-form label { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 0 6px 0 14px; background: var(--surface); font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.publish-form input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; padding: 8px 4px; width: 140px; }
.publish-form .field-error { flex-basis: 100%; margin: 0; }
.build-status div::before { content: "◌ "; color: var(--accent); }
.build-status.done div::before { content: "✓ "; }
.build-status[data-time]::after { content: attr(data-time); color: var(--faint); margin-left: 8px; }
.build-status { display: flex; align-items: baseline; }

/* Deploy panel */
.deploy { width: min(640px, calc(100vw - 32px)); }
.dp-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; counter-reset: dp; }
.dp-steps li {
  counter-increment: dp; flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px;
  font-size: 0.82rem; color: var(--muted); border: 1px solid var(--border); background: var(--glass);
}
.dp-steps li::before {
  content: counter(dp); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 0.72rem; font-weight: 700; background: var(--surface-2); color: var(--muted);
}
.dp-steps li.on { color: var(--text); border-color: rgba(16, 226, 154, 0.45); }
.dp-steps li.on::before, .dp-steps li.done::before { background: linear-gradient(135deg, #b9ffe6, var(--accent)); color: var(--btn-text); }
.dp-steps li.done::before { content: "✓"; }
.dp-panel[hidden] { display: none; }
.dp-panel { display: flex; flex-direction: column; gap: 12px; }
.dp-panel > .ghost-btn { align-self: flex-start; }
.dp-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.dp-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.dp-result.taken { opacity: 0.55; }
.dp-name { font-family: var(--mono); font-size: 0.88rem; font-weight: 500; }
.dp-badge { font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.dp-result.available .dp-badge { background: rgba(16, 226, 154, 0.15); color: var(--accent); }
.dp-buy { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.dp-buy .ghost-btn { font-size: 0.78rem; padding: 6px 11px; text-decoration: none; color: var(--text); }
.dp-use { border-color: rgba(16, 226, 154, 0.45) !important; color: var(--accent) !important; }
.dp-loading { color: var(--muted); font-size: 0.88rem; padding: 6px 2px; }
.dp-records { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dp-rec { display: grid; grid-template-columns: 64px minmax(0, 0.7fr) minmax(0, 1.3fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--border); }
.dp-rec-head { border-top: 0; font-size: 0.74rem; color: var(--faint); padding-top: 8px; padding-bottom: 8px; }
.dp-rec code { font-family: var(--mono); font-size: 0.8rem; overflow-wrap: anywhere; }
.dp-type { font-weight: 600; font-size: 0.8rem; color: var(--accent); }
.dp-note { margin: 0; padding: 0 12px 10px; font-size: 0.78rem; color: var(--muted); }
.dep-status[data-state="ready"] .dep-dot { background: var(--accent); animation: none; }
.dep-status[data-state="ready"] { color: var(--text); }
.dp-launch { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.dp-launch .fine { margin: 0; }
.dp-launch-btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 11px 22px; }
.dp-launch-btn:disabled { cursor: not-allowed; opacity: 0.45; box-shadow: none; }
.dp-launch-btn:disabled::after { display: none; }
@media (max-width: 640px) {
  .dp-steps li { font-size: 0.74rem; padding: 7px 8px; }
  .dp-rec { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .dp-rec > code:nth-of-type(1) { grid-column: 2; }
  .dp-rec > code:nth-of-type(2) { grid-column: 1 / 3; }
  .dp-rec-head span:nth-child(3) { display: none; }
  .dp-buy { margin-left: 0; }
}
.ghost-btn { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 0.88rem; }
.ghost-btn:hover { background: var(--surface-2); }
.ghost-btn[disabled] { cursor: default; opacity: 0.6; }
.ghost-btn[disabled]:hover { background: transparent; }

/* Composer */
.composer {
  display: flex; align-items: flex-end; gap: 10px;
  border: 1px solid transparent; border-radius: 28px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--angle, 0deg), rgba(16,226,154,0.9), rgba(56,189,248,0.5), rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.08) 60%, rgba(94,234,212,0.8), rgba(16,226,154,0.9)) border-box;
  padding: 10px 10px 10px 22px;
  box-shadow: 0 20px 60px -20px rgba(16, 226, 154, 0.45), 0 0 0 6px rgba(16, 226, 154, 0.04);
  animation: spin-border 6s linear infinite;
  transition: box-shadow 0.2s ease;
}
.composer:focus-within { box-shadow: 0 20px 70px -15px rgba(16, 226, 154, 0.7), 0 0 0 6px rgba(16, 226, 154, 0.08); }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --angle: 360deg; } }
.composer textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent;
  padding: 9px 0; max-height: 180px; line-height: 1.5; font-size: 1rem; overflow-y: hidden;
}
.composer textarea.scrolls { overflow-y: auto; }
.composer textarea::placeholder { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Once chatting starts, the greeting steps aside like a chat app */
.hero .pill, .hero h1, .hero .sub { transition: opacity 0.25s ease; }
.hero.chatting { padding-top: 32px; }
.hero.chatting .pill, .hero.chatting h1, .hero.chatting .sub { display: none; }
.hero.chatting .thread:not(:empty) { max-height: min(62vh, 620px); }
.send {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #b9ffe6, var(--accent)); color: var(--btn-text); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 20px -6px rgba(16, 226, 154, 0.9);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.send:not(:disabled):hover { transform: scale(1.06); }
.send:disabled { opacity: 0.25; cursor: default; }

/* Chips + suggestions */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass);
  font-size: 0.9rem; color: var(--muted); cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chip:hover, .chip[aria-selected="true"] { color: var(--text); border-color: rgba(16, 226, 154, 0.5); background: rgba(16, 226, 154, 0.08); transform: translateY(-1px); }
.suggestions { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.suggestions button {
  display: block; width: 100%; text-align: left; padding: 13px 18px; border: 0; background: transparent;
  border-top: 1px solid var(--border); cursor: pointer; color: var(--muted); font-size: 0.93rem;
}
.suggestions button:first-child { border-top: 0; }
.suggestions button:hover { background: var(--surface-2); color: var(--text); }
.note { text-align: center; color: rgba(242, 247, 245, 0.55); font-size: 0.8rem; margin-top: 16px; }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section-muted { background: linear-gradient(180deg, transparent, rgba(16, 226, 154, 0.03) 30%, rgba(16, 226, 154, 0.03) 70%, transparent); }

/* Glass cards everywhere */
.steps li, .perks article, .flow-step, .stream, .dist, .tech-card, .example, .tease, .suggestions {
  background: var(--glass), var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.steps li:hover, .perks article:hover, .flow-step:hover, .tech-card:hover {
  border-color: rgba(16, 226, 154, 0.4); transform: translateY(-3px); box-shadow: var(--shadow), 0 16px 40px -16px rgba(16, 226, 154, 0.45);
}
.dist { background: var(--glass), rgba(12, 20, 17, 0.85); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.example {
  text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.example:hover { border-color: var(--faint); transform: translateY(-2px); }
.example .ex-type { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.example .ex-text { flex: 1; font-size: 0.95rem; line-height: 1.55; margin: 0; }
.example .ex-try { font-size: 0.82rem; color: var(--faint); }
.example:hover .ex-try { color: var(--text); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.step-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #b9ffe6, var(--accent)); color: var(--btn-text);
  box-shadow: 0 6px 18px -6px rgba(16, 226, 154, 0.9); font-size: 0.85rem; font-weight: 700; margin-bottom: 16px;
}
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features div { padding: 4px 4px; }
.features h3 { margin-bottom: 2px; font-size: 0.95rem; }
.features p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Token */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.flow-step {
  border-radius: var(--radius);
  padding: 18px; font-weight: 500; font-size: 0.95rem;
}
.flow-step span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #b9ffe6, var(--accent)); color: var(--btn-text); font-weight: 700; font-size: 0.78rem; margin-bottom: 12px;
  box-shadow: 0 6px 18px -6px rgba(16, 226, 154, 0.9);
}
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.perks article { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.perks p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.suite { margin-top: 56px; text-align: center; }
.suite-label { color: var(--muted); font-size: 0.9rem; }
.suite-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.suite-item { padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.9rem; font-weight: 500; }
.suite-item em { font-style: normal; color: var(--faint); font-weight: 400; margin-left: 6px; font-size: 0.82rem; }
.suite-live { border-color: var(--accent); }
.suite-live em { color: var(--accent); }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer .fine { max-width: 520px; margin: 0; text-align: right; }

/* Coin bar above the chat (shows the registered coin) */
.coinbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; font-size: 0.88rem;
}
.coinbar[hidden] { display: none; }
.coinbar .cb-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coinbar .cb-ticker { font-weight: 600; }
.coinbar .cb-ca { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.coinbar .cb-lock { color: var(--accent); font-size: 0.8rem; font-weight: 500; }
.coinbar button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.85rem; text-decoration: underline; padding: 0; }

/* Register modal */
.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 0;
  border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.modal::backdrop { background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.modal-inner { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head h2 { font-size: 1.6rem; margin: 0; }
.modal-step { color: var(--accent); font-size: 0.8rem; font-weight: 600; margin: 0 0 4px; }
.modal-close { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 500; flex: 1; min-width: 0; }
.field input, .ticker-input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text); font: inherit; font-weight: 400; font-size: 0.95rem; outline: none;
}
.field input:focus, .ticker-input:focus-within { border-color: var(--faint); }
.field input[aria-invalid="true"], .ticker-input.invalid { border-color: #ef4444; }
.mono-input { font-family: var(--mono) !important; font-size: 0.85rem !important; }
.field-row { display: flex; gap: 12px; }
.field-ticker { flex: 0 0 150px; }
.ticker-input { display: flex; align-items: center; gap: 2px; padding: 0 13px; }
.ticker-input em { font-style: normal; color: var(--muted); }
.ticker-input input { border: 0; padding: 11px 0; background: transparent; text-transform: uppercase; }
.lock { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 14px; padding: 14px 16px; }
.lock-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; }
.lock-top strong { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.lock ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.field-error { color: #ef4444; font-size: 0.85rem; margin: 0; min-height: 0; }
.field-error:empty { display: none; }
.modal-actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.modal-actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.modal .fine { margin: 0; text-align: center; }
.modal-actions-end { justify-content: flex-end; }
.modal-inner[hidden] { display: none; }
.dep-intro { margin: 0; color: var(--muted); font-size: 0.93rem; }
.dep-intro .mono { font-family: var(--mono); color: var(--text); font-size: 0.85rem; }
.dep-box { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.dep-box:first-of-type { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.dep-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.dep-value { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dep-value strong { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dep-value code { font-family: var(--mono); font-size: 0.82rem; overflow-wrap: anywhere; }
.dep-hint { font-size: 0.8rem; color: var(--faint); }
.copy-btn { flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.8rem; cursor: pointer; }
.dep-status { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.dep-dot { width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; flex: none; animation: dep-pulse 1.6s ease-in-out infinite; }
.dep-status[data-state="checking"] .dep-dot { background: var(--accent); }
.dep-status[data-state="error"] .dep-dot { background: #ef4444; animation: none; }
@keyframes dep-pulse { 50% { opacity: 0.35; } }
.dep-sig summary { cursor: pointer; font-size: 0.88rem; color: var(--muted); }
.dep-sig .field { margin-top: 10px; }
.done-mark { width: 56px; height: 56px; margin: 6px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.6rem; font-weight: 700; }
#reg-done h2 { margin: 0; font-size: 1.6rem; }
#reg-submit:disabled, #dep-check:disabled { opacity: 0.6; cursor: wait; }

/* Token streams */
.streams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.stream { border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.stream:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.stream-label { color: var(--accent); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; }
.stream h3 { font-size: 1.3rem; }
.stream p:last-child { color: var(--muted); margin: 0; }

/* Holder distribution */
.dist {
  border: 1px solid var(--border); border-radius: 24px; background: var(--surface);
  box-shadow: var(--shadow); padding: 28px; margin: 12px 0 28px;
}
.dist-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.dist-head h3 { font-size: 1.45rem; margin: 0 0 6px; }
.dist-head p:last-child { color: var(--muted); margin: 0; max-width: 560px; }
.dist-tag {
  flex: none; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.dist-calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 16px; padding: 16px 18px;
}
.dist-lookup { display: flex; gap: 10px; align-items: end; margin-bottom: 10px; }
.dist-lookup .btn { border: 0; cursor: pointer; font: inherit; font-weight: 500; padding: 11px 22px; }
#dist-wallet-error { margin: -2px 0 10px; }
.dist-result {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
}
.dist-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.dist-result-head div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dist-result-head .mono { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.dist-result-head strong { font-size: 0.95rem; }
.dist-clear { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 0.8rem; cursor: pointer; }
.dist-tokens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.dist-tokens li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.dist-tokens .dist-avatar { width: 30px; height: 30px; font-size: 0.85rem; flex: none; }
.dist-tokens .dist-name { flex: 1; }
.dist-amt { font-family: var(--display); font-size: 1.05rem; white-space: nowrap; }
.dist-amt.done { color: var(--accent); }
.dist-calc .btn { font: inherit; font-size: 0.88rem; padding: 10px 16px; cursor: not-allowed; opacity: 0.7; }
.dist-share { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; color: var(--muted); }
.dist-share strong { font-family: var(--display); font-size: 1.6rem; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.dist-share small { color: var(--faint); font-size: 0.78rem; }
.dist-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.dist-stats div { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.dist-stats strong { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; }
.dist-stats span { color: var(--muted); font-size: 0.82rem; }
.dist-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dist-coin { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.dist-row {
  width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto 16px;
  align-items: center; gap: 14px; padding: 12px 14px; border: 0; background: transparent;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.dist-row:hover { background: var(--bg-muted); }
.dist-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--display); }
.dist-name, .dist-num { display: flex; flex-direction: column; min-width: 0; }
.dist-name strong, .dist-num strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-name span, .dist-num span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist-num strong { font-size: 0.93rem; }
.dist-you strong { color: var(--accent); }
.dist-status { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.dist-status.done { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.dist-status.queued { background: var(--surface-2); color: var(--muted); }
.dist-chev { color: var(--faint); font-size: 1.3rem; transition: transform 0.15s; }
.dist-row[aria-expanded="true"] .dist-chev { transform: rotate(90deg); }
.dist-split { border-top: 1px solid var(--border); padding: 4px 14px 10px; background: var(--bg-muted); }
.dist-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dist-table th { text-align: left; font-weight: 500; color: var(--faint); font-size: 0.78rem; padding: 10px 8px 6px; }
.dist-table td { padding: 8px; border-top: 1px solid var(--border); }
.dist-table th:not(:first-child), .dist-table td:not(:first-child) { text-align: right; }
.dist-table .mono { font-family: var(--mono); font-size: 0.82rem; }
.dist-table .is-you td { color: var(--accent); font-weight: 600; }
.dist-table .is-rest td { color: var(--muted); }

/* Leaderboard */
.dist-tag.live { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.dist-tag.live::before { content: "● "; }
.lb-summary { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 14px; }
.lb-summary div { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.lb-summary div:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.lb-summary strong { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.lb-summary div:first-child strong { color: var(--accent); }
.lb-summary span { color: var(--muted); font-size: 0.82rem; }
.lb-table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.lb-row {
  display: grid; grid-template-columns: 28px minmax(0, 1.6fr) minmax(0, 1fr) 70px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); text-decoration: none;
}
#lb-body .lb-row { border-top: 1px solid var(--border); }
a.lb-row:hover { background: var(--bg-muted); }
.lb-headrow { font-size: 0.78rem; color: var(--faint); font-weight: 500; padding-top: 10px; padding-bottom: 10px; }
.lb-headrow span:nth-child(n+3) { text-align: right; }
.lb-row > span:nth-child(n+3) { text-align: right; }
.lb-rank { font-family: var(--display); font-weight: 700; color: var(--faint); }
.lb-rank.top { color: var(--accent); }
.lb-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-avatar { width: 32px; height: 32px; flex: none; overflow: hidden; font-size: 0.9rem; }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-label { display: none; }
.lb-mcap strong, .lb-amt strong, .lb-worth strong { font-weight: 600; font-size: 0.93rem; white-space: nowrap; }
.lb-worth strong { color: var(--accent); font-family: var(--display); font-size: 1.05rem; }
.lb-change { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lb-change.up { color: var(--accent); }
.lb-change.down { color: #ef4444; }

/* Ship Tech page */
.tease {
  position: relative; text-align: left; border: 1px solid var(--border); border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.tease-thread { display: flex; flex-direction: column; gap: 20px; padding: 28px 28px 120px; }
.tease-lock {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 26px; text-align: center;
  background: linear-gradient(to bottom, transparent, var(--surface) 55%);
}
.tease-lock p { color: var(--muted); margin: 10px 0 0; font-size: 0.95rem; }
.tease-lock .soon { font-size: 0.75rem; padding: 4px 12px; }
.approve {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font-weight: 500; font-size: 0.93rem;
}
.approve span:first-child::before { content: "● "; color: var(--accent); }
.approve-btn { padding: 7px 14px; border-radius: 999px; background: var(--btn); color: var(--btn-text); font-size: 0.85rem; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.tech-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.tc-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); font-size: 1.2rem; margin-bottom: 16px;
}
/* Ship Tech bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-width: 0;
  padding: 22px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--glass), var(--surface); box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover { border-color: rgba(16, 226, 154, 0.35); transform: translateY(-2px); }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: stretch; }
.tile-wide .tile-copy { flex: 0 0 40%; }
.tile-wide .viz { flex: 1; }
.tile-kicker { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 10px; }
.tile h3 { font-size: 1.25rem; letter-spacing: -0.025em; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.viz { border-radius: 14px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.35); padding: 12px 14px; font-size: 0.8rem; min-width: 0; }

.viz-log { font-family: var(--mono); font-size: 0.74rem; display: flex; flex-direction: column; gap: 7px; }
.log-head { display: flex; justify-content: space-between; color: var(--faint); padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.log-live { color: var(--accent); }
.log-live::before { content: "● "; }
.log-line { display: flex; gap: 10px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.log-line time { color: var(--faint); }
.log-line span { color: var(--accent-3); width: 34px; flex: none; }
.log-line span.burn { color: #fb923c; }
.log-line b { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.log-line i { font-style: normal; color: var(--faint); margin-left: auto; }
.log-foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px dashed var(--border); color: var(--muted); font-family: var(--sans); }
.log-foot strong { color: #fb923c; font-family: var(--display); font-size: 1.05rem; }

.viz-bars { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 0.7rem; }
.viz-bars div { display: grid; grid-template-columns: 72px 1fr 36px; align-items: center; gap: 8px; }
.viz-bars span { color: var(--faint); }
.viz-bars i { height: 8px; border-radius: 99px; width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.viz-bars b { font-weight: 500; text-align: right; }

.viz-gate { display: flex; flex-direction: column; gap: 10px; }
.gate-top, .gate-bottom { display: flex; justify-content: space-between; gap: 8px; }
.gate-top span:first-child { font-weight: 600; }
.gate-need { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.gate-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.gate-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.gate-bottom { font-size: 0.75rem; color: var(--muted); }
.gate-lock { color: #fbbf24; }
.gate-lock::before { content: ""; display: inline-block; width: 8px; height: 9px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 2px; border-top-width: 3px; vertical-align: -1px; }

.viz-tg { display: flex; flex-direction: column; justify-content: center; gap: 8px; background: linear-gradient(180deg, rgba(56, 189, 248, 0.07), rgba(0,0,0,0.35)); }
.tg-msg { align-self: flex-start; max-width: 92%; background: #17212b; border-radius: 12px 12px 12px 4px; padding: 8px 12px; }
.tg-msg p { color: var(--text); font-size: 0.8rem; margin: 0; }
.tg-name { font-size: 0.72rem; font-weight: 600; color: var(--accent-3); margin-bottom: 2px; }
.tg-name span { font-weight: 400; color: var(--faint); margin-left: 4px; }
.tg-msg b { color: var(--accent); }
.tg-whale b { color: #c084fc; }
.tg-meta { color: var(--muted) !important; font-size: 0.72rem !important; margin-top: 2px !important; }
.tg-meta u { color: var(--accent-3); text-decoration: none; margin-left: 4px; }

.viz-agent { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.agent-last { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); min-width: 0; }
.agent-last span { color: var(--faint); font-size: 0.72rem; flex: none; }
.agent-last b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-last em { font-style: normal; color: var(--accent); font-family: var(--mono); font-size: 0.75rem; margin-left: auto; flex: none; }
.viz-agent svg { width: 100%; height: 90px; display: block; }
.agent-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-rules span { font-family: var(--mono); font-size: 0.68rem; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); }

.viz-board { display: flex; flex-direction: column; gap: 6px; }
.viz-board div { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.viz-board div:last-child { border-bottom: 0; }
.viz-board span { font-family: var(--display); font-weight: 700; color: var(--faint); }
.viz-board div:first-child span { color: #fbbf24; }
.viz-board b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-board i { font-style: normal; font-family: var(--mono); font-size: 0.74rem; color: var(--accent); }

.tech-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* Responsive */
@media (max-width: 900px) {
  .examples, .perks, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .flow, .features { grid-template-columns: repeat(2, 1fr); }

  /* Sidebar becomes a slide-out menu */
  body, .side-collapsed body { padding-left: 0; }
  .side, .side-collapsed .side { width: 264px; transform: translateX(-102%); box-shadow: 20px 0 60px -20px rgba(0,0,0,0.8); }
  .menu-open .side { transform: none; }
  .side-collapsed .side-label { display: revert; }
  .side-collapsed .side-top, .side-collapsed .side-bottom { flex-direction: row; }
  .side-collapsed .side-logo { padding-left: 8px; }
  .side-collapsed .side-nav a { justify-content: flex-start; padding: 10px 12px; }
  .side-collapsed .side-cta { flex: 1; width: auto; height: auto; padding: 8px 16px; display: inline-block; }
  .side-collapsed .side-cta-short { display: none; }
  .side-toggle, .side-collapsed .side-toggle { transform: rotate(0deg); }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); }
  .side-scrim[hidden] { display: none; }
  .mbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 16px;
    background: linear-gradient(180deg, #128a62 0%, #0b3526 45%, #06140f 80%, #030605 100%);
  }
  .mbar .logo { margin-right: auto; font-size: 1.1rem; }
  .mbar .btn-small { padding: 7px 14px; font-size: 0.85rem; white-space: nowrap; }
  .side-open { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--text); border: 1px solid rgba(255,255,255,0.16); background: rgba(3, 6, 5, 0.35); }
  section[id], #leaderboard, #distribution { scroll-margin-top: 72px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 64px; }
  .section { padding: 72px 0; }
  .examples, .perks, .steps, .cards-grid { grid-template-columns: 1fr; }
  .tease-thread { padding: 20px 16px 120px; }
  .streams { grid-template-columns: 1fr; }
  .dist { padding: 18px 14px; border-radius: 20px; }
  .dist-head { flex-direction: column-reverse; gap: 10px; }
  .dist-calc { grid-template-columns: 1fr; }
  .dist-lookup { flex-direction: column; align-items: stretch; }
  .live-pill { font-size: 0.76rem; gap: 8px; text-align: left; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; flex-direction: column; }
  .tile-wide .tile-copy { flex: none; }
  .tile { padding: 18px; }
  .hero-stats { gap: 6px; }
  .hero-stats div { padding: 8px 12px; font-size: 0.78rem; }
  .lb-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lb-summary strong { font-size: 1.25rem; }
  .lb-headrow { display: none; }
  .lb-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    grid-template-areas: "r c ch" "r m m" "r a a" "r w w";
    row-gap: 6px; column-gap: 10px; padding: 12px;
  }
  #lb-body .lb-row:first-child { border-top: 0; }
  .lb-rank { grid-area: r; align-self: start; padding-top: 6px; }
  .lb-coin { grid-area: c; }
  .lb-change { grid-area: ch; }
  .lb-mcap { grid-area: m; }
  .lb-amt { grid-area: a; }
  .lb-worth { grid-area: w; }
  .lb-change { text-align: right !important; }
  .lb-mcap, .lb-amt, .lb-worth {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-left: 42px; min-width: 0;
  }
  .lb-worth { border-top: 1px dashed var(--border); padding-top: 6px; }
  .lb-label { display: inline; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
  .lb-mcap strong, .lb-amt strong { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; }
  .dist-tokens { grid-template-columns: 1fr; }
  .dist-stats { gap: 8px; }
  .dist-stats div { padding: 10px; }
  .dist-stats strong { font-size: 1.2rem; }
  .dist-stats span { font-size: 0.75rem; }
  .dist-row { grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a n s" "a p y"; row-gap: 8px; column-gap: 12px; }
  .dist-num strong { white-space: normal; overflow-wrap: anywhere; font-size: 0.88rem; }
  .dist-avatar { grid-area: a; width: 32px; height: 32px; align-self: start; }
  .dist-name { grid-area: n; }
  .dist-status { grid-area: s; justify-self: end; }
  .dist-num:not(.dist-you) { grid-area: p; }
  .dist-you { grid-area: y; text-align: right; }
  .dist-chev { display: none; }
  .dist-split { padding: 2px 8px 8px; }
  .dist-table { font-size: 0.8rem; }
  .dist-table th:nth-child(2), .dist-table td:nth-child(2) { display: none; }
  .dist-table td, .dist-table th { padding-left: 4px; padding-right: 4px; }
  .field-row { flex-direction: column; }
  .field-ticker { flex: 1; }
  .modal-inner { padding: 20px; }
  .modal-actions { flex-direction: column; }
  .modal-actions > * { width: 100%; text-align: center; }
  .msg-user { max-width: 90%; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer .fine { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typing span, .dep-dot, .shine, .composer { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .example { transition: none; }
}
