/* hivekeep — honey by day, indigo by night. One amber accent, hexagons everywhere. */
:root {
  --bg: #fbf6ea;
  --bg-2: #f4ead2;
  --fg: #1f1708;
  --card: #fffaf0;
  --card-2: #fbf1dc;
  --muted: #6e5d40;
  --border: rgba(80, 52, 0, .14);
  --accent: #f2a900;
  --accent-2: #ffcf4a;
  --accent-ink: #9a5f00;
  --on-accent: #1f1708;
  --good: #2f8a4c;
  --bad: #c2412d;
  --comb: rgba(160, 110, 0, .09);
  --glow: rgba(242, 169, 0, .35);
  --header-bg: rgba(251, 246, 234, .78);
  --shadow: 0 1px 0 rgba(80, 52, 0, .06), 0 10px 30px -18px rgba(80, 52, 0, .35);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 16px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0a19;
  --bg-2: #120f24;
  --fg: #f4eedd;
  --card: #15122a;
  --card-2: #1c1836;
  --muted: #a49dc2;
  --border: rgba(255, 220, 140, .13);
  --accent: #ffc23d;
  --accent-2: #ffd978;
  --accent-ink: #ffd36e;
  --on-accent: #1a1405;
  --good: #6fd391;
  --bad: #ff8a73;
  --comb: rgba(255, 194, 61, .06);
  --glow: rgba(255, 194, 61, .28);
  --header-bg: rgba(12, 10, 25, .75);
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 34px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z M28 64 L28 97' fill='none' stroke='%23a06e00' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  transition: background-color .5s ease, color .5s ease;
  overflow-x: hidden;
}
:root[data-theme="dark"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z M28 64 L28 97' fill='none' stroke='%23ffc23d' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } [data-shift-label] { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; padding: 7px 11px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--fg); background: var(--comb); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--border); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; font-size: 16px; }
  .btn.menu-btn { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); text-decoration: none; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .chip:focus-visible, .key:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 8px 24px -10px var(--glow); }
.btn-primary:hover { background: var(--accent-2); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 12px; }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.hl { color: var(--accent-ink); position: relative; white-space: nowrap; }
:root:not([data-theme="dark"]) .hl { background: linear-gradient(transparent 62%, rgba(242,169,0,.35) 62%); color: inherit; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

section { padding: 72px 0; }
.page-head { padding: 64px 0 28px; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); margin: 10px 0 14px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head p { margin: 8px 0 0; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin: 14px 0 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ca { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 22px; padding: 8px 8px 8px 14px; border: 1px dashed var(--border); border-radius: 14px; background: var(--card); }
.ca-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--accent-ink); font-weight: 500; }
.ca code { min-width: 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ca.set { border-style: solid; }
.ca.set code { color: var(--fg); }
.ca .btn { flex: none; padding: 5px 12px; }
.hero-hint { margin-top: 22px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }

.kbd { font-family: var(--font-mono); font-size: 12px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); border-bottom-width: 2px; background: var(--card); }

/* The hive (hero interactive) */
.hive-stage { position: relative; }
.hive { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hive .cell {
  position: absolute; width: 31%; aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--card-2);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .25s ease, background .3s ease, filter .3s ease;
  border: 0; padding: 0;
}
.hive .cell::after { content: ""; position: absolute; inset: 3px; clip-path: inherit; background: var(--card); z-index: 0; transition: background .3s ease; }
.hive .cell > * { position: relative; z-index: 1; }
.hive .cell:hover, .hive .cell.active { transform: scale(1.06); }
.hive .cell:hover::after, .hive .cell.active::after { background: var(--agent, var(--accent)); }
.hive .cell .glyph { width: 46%; }
.hive .cell .glyph svg { width: 100%; height: auto; }
.hive .cell .name { position: absolute; bottom: 20%; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; z-index: 1; }
.hive .key {
  position: absolute; left: 34.5%; top: 34.5%; width: 31%; aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 0 0 0 var(--glow); transition: transform .2s ease, background .3s ease;
  animation: pulse 2.6s ease-in-out infinite;
}
.hive .key:hover { transform: scale(1.05); background: var(--accent-2); }
.hive .key:active { transform: scale(.96); }
.hive .key small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; font-weight: 500; opacity: .75; }
.hive .key span { font-size: clamp(16px, 2.4vw, 22px); text-align: center; line-height: 1.1; }
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 0 0 var(--glow)); } 50% { filter: drop-shadow(0 0 18px var(--glow)); } }
.hive-tip {
  margin: 16px auto 0; max-width: 440px; min-height: 76px; padding: 14px 16px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 14px; display: flex; gap: 12px; align-items: center;
}
.hive-tip .dot { flex: none; }
.hive-caption { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-top: 12px; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); display: inline-block; box-shadow: 0 0 0 0 currentColor; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Ticker strip */
.strip { border-block: 1px solid var(--border); background: var(--card); overflow: hidden; white-space: nowrap; }
.strip-track { display: inline-flex; gap: 36px; padding: 12px 0; animation: marquee 50s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-item { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; text-decoration: none; }
.strip-item b { font-family: var(--font-mono); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Agent cards */
.agent-card { padding: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.agent-card .top { display: flex; align-items: center; gap: 14px; }
.agent-badge {
  width: 52px; height: 60px; flex: none; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--agent, var(--accent));
}
.agent-badge svg { width: 26px; height: 26px; }
.agent-card .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.agent-card p { margin: 0; color: var(--muted); font-size: 15px; }
.agent-card .status { margin-top: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--good); }
.agent-card .now { font-size: 13px; padding: 9px 11px; border-radius: 10px; background: var(--card-2); color: var(--fg); min-height: 40px; }

/* Example tiles */
.tile { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile .art { aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden; }
.tile .meta { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--border); }
.tile .meta b { font-family: var(--font-display); }
.tile .meta span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* Steps / flywheel */
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); padding-top: 3px; min-width: 22px; }
.step b { display: block; }
.step span { color: var(--muted); font-size: 14px; }
.step.done .n { color: var(--good); }
.step.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.step.fail { border-color: var(--bad); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.field label .count, .field label .opt { font-weight: 400; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
textarea.input { min-height: 96px; resize: vertical; }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--font-mono); }
.prefix .input { padding-left: 30px; text-transform: uppercase; font-family: var(--font-mono); }
.err { color: var(--bad); font-size: 13px; min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 14px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.drop {
  border: 1.5px dashed var(--border); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; background: var(--bg); transition: border-color .2s ease, background .2s ease;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--comb); }
.drop .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; overflow: hidden; flex: none; font-size: 26px; color: var(--muted); }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }

.launch-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.launch-grid aside { position: sticky; top: 84px; display: grid; gap: 16px; }
@media (max-width: 900px) { .launch-grid { grid-template-columns: 1fr; } .launch-grid aside { position: static; } }

.preview { padding: 18px; }
.preview .head { display: flex; gap: 14px; align-items: center; }
.coin-img { width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #1f1708; }
.coin-img img { width: 100%; height: 100%; object-fit: cover; }
.coin-img.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border); font-size: 14px; }
.kv:first-of-type { border-top: 0; }
.kv span:first-child { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 4px 0; color: var(--muted); }
.check i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--border); }
.check.ok { color: var(--fg); }
.check.ok i { background: var(--good); color: #fff; border-color: transparent; }

/* Tables / lists */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .input { max-width: 320px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; transition: background .15s ease; }
.table tbody tr:hover { background: var(--comb); }
.table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.coin-cell { display: flex; gap: 12px; align-items: center; }
.coin-cell b { display: block; line-height: 1.2; }
.coin-cell small { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.up { color: var(--good); }
.down { color: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card-2); border: 1px solid var(--border); white-space: nowrap; }
.pill.on { color: var(--good); }
.pill.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.flash-up { animation: fu .8s ease; }
.flash-down { animation: fd .8s ease; }
@keyframes fu { from { background: rgba(47, 138, 76, .18); } }
@keyframes fd { from { background: rgba(194, 65, 45, .18); } }

.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.coin-card { padding: 16px; text-decoration: none; display: grid; gap: 12px; transition: transform .15s ease; }
.coin-card:hover { transform: translateY(-2px); }
.coin-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bar { height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .6s ease; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }

/* Rota */
.rota { padding: 18px; overflow-x: auto; }
.rota-inner { min-width: 720px; position: relative; }
.rota-hours { display: grid; grid-template-columns: 130px repeat(8, 1fr); font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding-bottom: 8px; }
.rota-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; height: 46px; border-top: 1px solid var(--border); }
.rota-row .who { font-weight: 600; font-size: 14px; }
.rota-row .who small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 400; }
.rota-track { position: relative; height: 26px; }
.rota-track i { position: absolute; top: 9px; width: 3px; height: 8px; border-radius: 2px; background: var(--agent); opacity: .85; }
.rota-track b { position: absolute; top: 2px; height: 22px; border-radius: 6px; background: var(--agent); color: #1f1708; font-size: 10px; font-family: var(--font-mono); display: grid; place-items: center; font-weight: 600; letter-spacing: .06em; padding: 0 4px; overflow: hidden; }
.rota-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); z-index: 2; pointer-events: none; }
.rota-now::before { content: "NOW"; position: absolute; top: -2px; left: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--bad); }

.stat { padding: 20px; }
.stat .big { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Ladder */
.ladder { display: grid; gap: 0; position: relative; }
.rung { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 20px; border-top: 1px solid var(--border); }
.rung:first-child { border-top: 0; }
.rung .lvl { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--accent-ink); }
.rung p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.rung .cnt { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: right; }
.rung .cnt b { display: block; font-size: 22px; color: var(--fg); }
@media (max-width: 600px) { .rung { grid-template-columns: 1fr; gap: 6px; } .rung .cnt { text-align: left; } }

/* Flywheel */
.wheel { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin: 0 auto; }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel .spin { transform-origin: 260px 260px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wheel text { font-family: var(--font-display); font-weight: 600; fill: var(--fg); }
.wheel .sub { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); font-weight: 400; letter-spacing: .06em; }

/* Docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.docs nav { position: sticky; top: 90px; display: grid; gap: 2px; }
.docs nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.docs nav a:hover { color: var(--fg); background: var(--comb); }
.docs article h2 { font-size: 28px; margin: 48px 0 12px; scroll-margin-top: 90px; }
.docs article h2:first-child { margin-top: 0; }
.docs article p, .docs article li { color: var(--muted); max-width: 680px; }
.docs article strong { color: var(--fg); }
.docs article ol li { margin-bottom: 8px; }
details.faq { border-top: 1px solid var(--border); padding: 14px 0; max-width: 680px; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-ink); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; }
@media (max-width: 800px) { .docs { grid-template-columns: 1fr; } .docs nav { position: static; display: flex; flex-wrap: wrap; } }

/* Coin page */
.coin-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.coin-hero .coin-img { width: 88px; height: 88px; border-radius: 22px; font-size: 34px; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.stats-row .card { padding: 16px; }
.stats-row small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats-row b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feed { display: grid; gap: 0; max-height: 520px; overflow-y: auto; }
.feed-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); animation: slide .4s ease; }
.feed-item:first-child { border-top: 0; }
.feed-item .agent-badge { width: 32px; height: 37px; }
.feed-item .agent-badge svg { width: 16px; height: 16px; }
.feed-item p { margin: 0; font-size: 14px; }
.feed-item p b { font-weight: 600; }
.feed-item time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer nav { display: flex; gap: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 100;
  transition: opacity .25s ease, transform .25s ease; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.night-only { display: none; }
:root[data-theme="dark"] .night-only { display: inline; }
:root[data-theme="dark"] .day-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Night shift: idle hive glyphs switch to the foreground ink so they read on dark cells. */
.hive .cell:not(:hover):not(.active) .glyph svg { stroke: var(--fg); }
.wheel [data-step] { outline: none; }
.wheel [data-step]:focus-visible path { stroke: var(--accent); stroke-width: 4; }
