/* ================= Design tokens =================
   Default theme: Midnight (navy + the robots' cyan glow, one warm accent).
   [data-theme="light"]: Cool Mist, for people who prefer a light page. */
:root {
  --paper: #0e1520;
  --paper-2: #1a2433;
  --card: #151f2e;
  --card-2: #1b2738;
  --ink: #eaf3fb;
  --ink-2: #9fb2c6;
  --ink-3: #8597ac;
  --line: #ffffff12;
  --line-2: #ffffff24;
  --accent: #5fd0ff;          /* accent text */
  --grad-a: #3fe0ff;          /* brand gradient: cyan -> blue */
  --grad-b: #4f8dff;
  --on-grad: #04121c;
  --glow: #1593b838;          /* cyan haze behind the hero */
  --glow-2: #4f8dff1c;
  --cyan: #3fe0ff;
  --cyan-ink: #5fe6ff;
  --cyan-soft: #12343f;
  --coral: #ff6b5e;
  --coral-soft: #3a1f22;
  --warm: #ff9a3c;            /* the single warm accent: Super Match */
  --warm-soft: #3a2616;
  --tag-bg: #0e1520cc;
  --tag-ink: #eaf3fb;
  --stamp-bg: #0e1520d9;

  --ff-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --ff-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;

  --r: 28px;
  --side: 248px;
  --gutter: clamp(16px, 4vw, 56px);
  --shadow-soft: 0 30px 60px -30px #000c, 0 10px 24px -12px #0008;
  --shadow-card: 0 1px 0 #ffffff0d inset, 0 18px 40px -24px #000c;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #edf3f7;
  --paper-2: #e1e9ef;
  --card: #f9fcfe;
  --card-2: #ffffff;
  --ink: #13202b;
  --ink-2: #526472;
  --ink-3: #66788a;
  --line: #13202b14;
  --line-2: #13202b26;
  --accent: #0a6fa3;
  --grad-a: #0a8fbf;
  --grad-b: #2f6fe0;
  --glow: #c9eefa;
  --glow-2: #dbe7ff;
  --cyan-ink: #0a7aa3;
  --cyan-soft: #d4f1f8;
  --coral-soft: #fde3e0;
  --warm-soft: #ffe9d6;
  --tag-bg: #ffffffe0;
  --tag-ink: #13202b;
  --stamp-bg: #ffffffd9;
  --shadow-soft: 0 30px 60px -30px #1a3a5a40, 0 10px 24px -12px #1a3a5a22;
  --shadow-card: 0 1px 0 #ffffff inset, 0 18px 40px -24px #1a3a5a55;
  color-scheme: light;
}

/* ================= Base ================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; color: var(--ink);
  background:
    radial-gradient(55% 45% at 75% 10%, var(--glow), transparent 70%),
    radial-gradient(45% 40% at 5% 100%, var(--glow-2), transparent 70%),
    var(--paper);
  background-attachment: fixed;
  font: 400 16px/1.6 var(--ff-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s;
}
h1, h2, h3 { font-family: var(--ff-display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; }
h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 12px; transition: top .2s; }
.skip:focus { top: 12px; }
kbd { font: 600 12px var(--ff-mono); background: var(--card); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

.eyebrow { font: 700 12px/1 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.grad {
  background: linear-gradient(100deg, var(--grad-a) 10%, var(--grad-b) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.link { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
.link:hover { text-decoration-color: currentColor; }

/* ================= Image crops ================= */
/* A window onto a transparent 1536x1024 robot sheet (default: assets/robots-cutout.webp; override with --img).
   Set --x --y --w --h in source pixels. */
.crop {
  display: block; aspect-ratio: var(--w) / var(--h);
  background-image: var(--img, url(assets/robots-cutout.webp)); background-repeat: no-repeat;
  background-size: calc(1536 / var(--w) * 100%) auto;
  background-position: calc(var(--x) / (1536 - var(--w)) * 100%) calc(var(--y) / (1024 - var(--h)) * 100%);
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--ff-body); text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px; padding: 13px 20px;
  transition: transform .35s var(--spring), background .2s, box-shadow .25s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(100deg, var(--grad-a), var(--grad-b)); color: #fff; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--grad-a) 70%, transparent); }
:root:not([data-theme="light"]) .btn-primary { color: var(--on-grad); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--grad-a) 80%, transparent); }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; cursor: pointer; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }

/* theme switch: shows the moon in Midnight, the sun in Cool Mist */
.theme-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--ink-2); cursor: pointer; font-weight: 500; font-size: 14px; }
.theme-toggle:hover { background: var(--paper-2); color: var(--ink); }
.i-sun { display: none; }
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }

/* ================= Sidebar ================= */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 20;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 18px 22px; background: color-mix(in srgb, var(--paper) 75%, var(--card));
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 6px 10px; }
.brand-mark {
  width: 40px; height: 40px; display: block; flex: none; border-radius: 12px; transition: transform .4s var(--spring);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--grad-a) 55%, transparent), inset 0 0 0 1px #ffffff33;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-name { font: 800 23px/1 var(--ff-display); letter-spacing: -.04em; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 14px; text-decoration: none; font-weight: 500; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.side-nav a:hover { background: var(--paper-2); color: var(--ink); }
.side-nav a.is-active { background: var(--card-2); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-card); }
.side-nav a.is-active::before { content: ""; position: absolute; left: -18px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.side-nav .live-dot { margin-left: auto; }
.side-note { font-size: 13px; line-height: 1.45; color: var(--ink-3); padding: 0 4px; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-link { font-size: 14px; color: var(--ink-2); padding: 0 6px; text-decoration: none; }
.side-link:hover { color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 #22c55e88; animation: pulse 2s ease-out infinite; flex: none; }

.topbar, .tabbar { display: none; }

/* ================= Main ================= */
main { margin-left: var(--side); padding: 0 var(--gutter); }
main > section, .footer { max-width: 1120px; margin-inline: auto; }

/* ================= Hero ================= */
.hero {
  display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(28px, 4vw, 56px);
  min-height: min(92svh, 820px); padding: 48px 0 24px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 36ch; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.trust { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.trust svg { width: 18px; height: 18px; color: #22c55e; margin-top: 2px; }

/* Robots stand directly on the page (transparent cutout) under a soft cyan spotlight. */
.hero-art { position: relative; margin: 0; width: 100%; max-width: 560px; justify-self: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 4% 6% 18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cyan) 26%, transparent), transparent);
  filter: blur(8px);
}
.hero-art::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 3%; height: 14%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cyan) 22%, transparent), transparent);
}
.hero-art img { display: block; width: 100%; height: auto; margin-top: -8%; }   /* the source has ~10% empty sky */
/* Minimal name capsules under each robot.
   --at is the robot's horizontal centre in the source image (Bolt 17%, Nova 48.5%, Volt 81.5%). */
.cast { position: relative; height: 28px; margin-top: -2%; pointer-events: none; }
.cast-item {
  position: absolute; top: 0; left: var(--at); transform: translateX(-50%);
  padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line-2);
}
.cast-item b { display: block; font: 600 11px/1 var(--ff-body); letter-spacing: .04em; color: var(--ink-2); }
.cast-item[data-agent="bolt"] { --at: 17%; }
.cast-item[data-agent="nova"] { --at: 48.5%; }
.cast-item[data-agent="volt"] { --at: 81.5%; }

/* ================= Steps ================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 8px 0 40px; }
.step {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px;
  background: var(--card); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  transition: transform .35s var(--spring);
}
.step:hover { transform: translateY(-3px); }
.step > div { display: flex; align-items: baseline; gap: 8px; }
.step-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper-2); flex: none; }
.ico-cyan { background: var(--cyan); color: #04212b; box-shadow: 0 0 18px -4px var(--cyan); }
.step-n { font: 700 13px var(--ff-mono); color: var(--accent); }

/* ================= Deck ================= */
.deck-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: 80px 0; }
.deck-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.deck-copy > p:not(.eyebrow) { color: var(--ink-2); max-width: 38ch; }
.kbd-hint { font-size: 14px; }
.matched { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; min-height: 44px; }
.matched li {
  display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--card); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  animation: pop-in .5s var(--spring) both;
}
.matched li.super { box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--warm); }
.matched li .crop { width: 32px; border-radius: 50%; background-color: var(--paper-2); }

.deck-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.deck { position: relative; width: min(370px, 100%); height: 560px; outline: none; }
.card {
  position: absolute; inset: 0; border-radius: var(--r); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; touch-action: pan-y; user-select: none; cursor: grab;
  transition: transform .55s var(--ease), opacity .4s var(--ease);
  will-change: transform;
}
.card.dragging { transition: none; cursor: grabbing; }
/* each agent gets its own glow colour behind the cutout */
.card-art {
  position: relative; height: 50%; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; padding-bottom: 4%;
  background: radial-gradient(85% 75% at 50% 35%, var(--a1), var(--a2));
}
.card-art::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 4%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, #0006, transparent); }
.card-art[data-agent="bolt"] { --a1: #1b6a84; --a2: #0f2131; }
.card-art[data-agent="nova"] { --a1: #3a3f99; --a2: #151a3a; }
.card-art[data-agent="volt"] { --a1: #8c4a1c; --a2: #2a160d; }
.card-art[data-agent="tally"] { --a1: #1d6d5f; --a2: #0d221f; }
.card-art[data-agent="wink"] { --a1: #1f4f9a; --a2: #0f1b36; }
.card-art[data-agent="kiko"] { --a1: #86325a; --a2: #2a1020; }
.card-art[data-agent="byte"] { --a1: #3a4658; --a2: #141a24; }
:root[data-theme="light"] .card-art[data-agent="bolt"] { --a1: #c4ecf6; --a2: #e3f4fa; }
:root[data-theme="light"] .card-art[data-agent="nova"] { --a1: #d3d7fb; --a2: #eceefd; }
:root[data-theme="light"] .card-art[data-agent="volt"] { --a1: #ffd9b8; --a2: #fff0e3; }
:root[data-theme="light"] .card-art[data-agent="tally"] { --a1: #c6efe2; --a2: #e8f8f2; }
:root[data-theme="light"] .card-art[data-agent="wink"] { --a1: #cfe0fb; --a2: #eaf2fe; }
:root[data-theme="light"] .card-art[data-agent="kiko"] { --a1: #fad3e3; --a2: #fdeef4; }
:root[data-theme="light"] .card-art[data-agent="byte"] { --a1: #dde3ea; --a2: #f1f4f7; }
:root[data-theme="light"] .card-art::after { background: radial-gradient(closest-side, #13202b26, transparent); }
.card-bot { position: relative; z-index: 1; height: 88%; pointer-events: none; }
.badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font: 700 11px/1 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.card-body { display: flex; flex-direction: column; gap: 9px; padding: 14px 18px 18px; flex: 1; }
.card-title { display: flex; align-items: baseline; gap: 10px; }
.card-title h3 { font-size: 26px; letter-spacing: -.03em; font-weight: 800; }
.role { font: 700 11px var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tagline { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.result { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.result b { font: 700 20px var(--ff-mono); color: var(--cyan-ink); letter-spacing: -.02em; }
.pill { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan-ink); }
.stats { display: grid; gap: 6px; margin-top: auto; }
.stat { display: grid; grid-template-columns: 84px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.bar { height: 7px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); }
.stat em { font: 700 12px var(--ff-mono); font-style: normal; text-align: right; color: var(--ink); }
.stamp {
  position: absolute; top: 22px; z-index: 3; opacity: 0; pointer-events: none;
  font: 800 26px/1 var(--ff-display); letter-spacing: .06em; padding: 8px 14px; border-radius: 12px; border: 4px solid; background: var(--stamp-bg);
}
.stamp.yes { left: 18px; color: var(--cyan-ink); border-color: var(--cyan); transform: rotate(-14deg); box-shadow: 0 0 24px -6px var(--cyan); }
.stamp.no { right: 18px; color: var(--coral); border-color: var(--coral); transform: rotate(14deg); }
.stamp.super { left: 50%; top: 34%; color: var(--warm); border-color: var(--warm); transform: translateX(-50%) rotate(-6deg); box-shadow: 0 0 28px -6px var(--warm); }
.deck-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; border-radius: var(--r); border: 2px dashed var(--line-2); color: var(--ink-2); }
.deck-empty .btn { margin-top: 14px; }
.swipe-hint { font-size: 13px; color: var(--ink-3); }

.deck-actions { display: flex; gap: 12px; align-items: center; }
.round-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 20px 12px 12px; border: 0; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .35s var(--spring), box-shadow .25s;
}
.round-btn svg { width: 36px; height: 36px; padding: 9px; border-radius: 50%; }
.round-btn:hover { transform: translateY(-2px); }
.round-btn:active { transform: scale(.94); }
.round-btn.nope { background: var(--card); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line); }
.round-btn.nope svg { background: var(--coral-soft); color: var(--coral); }
.round-btn.super { padding: 12px; background: var(--card); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line); }
.round-btn.super svg { background: var(--warm-soft); color: var(--warm); fill: currentColor; }
.round-btn.super:hover { box-shadow: 0 0 26px -6px var(--warm), inset 0 0 0 1px var(--warm); }
.round-btn.yes { background: linear-gradient(100deg, var(--grad-a), var(--grad-b)); color: var(--on-grad); box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--grad-a) 80%, transparent); }
:root[data-theme="light"] .round-btn.yes { color: #fff; }
.round-btn.yes svg { background: #04121c; color: var(--cyan); fill: currentColor; }

/* Minimal "On Robinhood Chain" tag above the hero headline */
.chain-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; font: 600 11px/1 var(--ff-body); letter-spacing: .04em; color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line-2);
}
.chain-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ================= Onchain utility + $QPICK ================= */
.onchain, .token-sec { display: flex; flex-direction: column; gap: 14px; padding: 40px 0 20px; }
.onchain h2, .token-sec h2 { max-width: 20ch; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 10px; }
.feature {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 22px;
  background: var(--card); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  transition: transform .35s var(--spring);
}
.feature:hover { transform: translateY(-3px); }
.feature-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper-2); color: var(--accent); margin-bottom: 4px; }
.feature-ico.ico-cyan { background: var(--cyan); color: #04212b; }
.feature h3 { font-size: 17px; }
.feature p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.token-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ================= FAQ ================= */
.faq { display: flex; flex-direction: column; gap: 12px; padding: 40px 0 60px; max-width: 820px !important; }
.faq h2 { margin-bottom: 10px; }
.acc { border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 700; font-size: 16px;
}
.acc-ico { position: relative; width: 22px; height: 22px; flex: none; color: var(--accent); transition: transform .4s var(--spring); }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.acc-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-q[aria-expanded="true"] .acc-ico { transform: rotate(135deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 20px 18px; color: var(--ink-2); }
.acc-q[aria-expanded="true"] + .acc-a { grid-template-rows: 1fr; }
.fineprint { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--ink-3); max-width: 70ch; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.footer nav { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ================= Community: CA + X + Telegram ================= */
.community { display: flex; flex-direction: column; gap: 10px; }
.ca {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 14px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2);
}
.ca-label { font: 700 10px/1 var(--ff-mono); letter-spacing: .12em; color: var(--accent); }
.ca-value { flex: 1; min-width: 0; font: 500 12px/1 var(--ff-mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--paper-2); color: var(--ink-2); transition: background .2s, color .2s, transform .3s var(--spring);
}
.ca-copy svg { width: 15px; height: 15px; }
.ca-copy:hover:not(:disabled) { color: var(--ink); transform: scale(1.06); }
.ca-copy:disabled { opacity: .45; cursor: not-allowed; }
.ca-copy.copied { background: var(--cyan); color: #04212b; }
.socials { display: flex; gap: 8px; }
.social {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--ink-2);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, background .2s, transform .3s var(--spring);
}
.social svg { width: 17px; height: 17px; }
.social[href]:hover { color: var(--ink); transform: translateY(-2px); }
.social[aria-disabled="true"] { opacity: .5; cursor: default; }
.footer-token { flex-basis: 100%; display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.community-wide { flex-direction: row; flex-wrap: wrap; align-items: center; }
.community-wide .ca { flex: 0 1 340px; }
.ca-warn { font-size: 12px; color: var(--ink-3); }

/* ================= Toast ================= */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 160%);
  display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--card-2); color: var(--ink); font-weight: 700; font-size: 14px;
  box-shadow: 0 20px 40px -16px #000a, inset 0 0 0 1px var(--line-2);
  opacity: 0; visibility: hidden; white-space: nowrap;
  transition: transform .5s var(--spring), opacity .25s, visibility .25s; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.super { box-shadow: 0 20px 40px -16px #000a, inset 0 0 0 1.5px var(--warm), 0 0 30px -10px var(--warm); }
.toast .crop { width: 34px; border-radius: 50%; flex: none; background-color: var(--paper-2); }

/* ================= Reveal ================= */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ================= Keyframes ================= */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #22c55e88; } 100% { box-shadow: 0 0 0 8px #22c55e00; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

/* ================= Responsive ================= */
/* two-column hero only when there is room for the headline beside the art */
@media (max-width: 1199px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { max-width: 520px; }
}
@media (max-width: 1023px) {
  .sidebar { display: none; }
  main { margin-left: 0; padding-bottom: 110px; }
  .topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    position: sticky; top: 0; z-index: 30; padding: 12px var(--gutter);
    background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(12px);
  }
  .topbar .brand { padding: 0; margin-right: auto; }
  .tabbar {
    display: flex; justify-content: space-around; position: fixed; z-index: 30;
    left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); padding: 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -16px #0008, inset 0 0 0 1px var(--line-2);
  }
  .tabbar a { display: grid; place-items: center; width: 52px; height: 44px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
  .tabbar a.is-active { background: linear-gradient(100deg, var(--grad-a), var(--grad-b)); color: var(--on-grad); }
  :root[data-theme="light"] .tabbar a.is-active { color: #fff; }
  .hero { padding-top: 20px; }
  .deck-section { grid-template-columns: 1fr; padding: 56px 0; }
  .toast { bottom: 96px; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .hero-actions { align-items: stretch; text-align: center; }
  .cast { height: 24px; }
  .cast-item { padding: 4px 9px; }
  .cast-item b { font-size: 10px; }
  .footer { flex-direction: column; }
  .round-btn { padding-right: 16px; font-size: 15px; }
}
@media (max-width: 400px) {
  .toast { white-space: normal; border-radius: 22px; font-size: 13px; }
  .stat { grid-template-columns: 72px 1fr 26px; gap: 8px; font-size: 12px; }
  .round-btn span { display: none; }
  .round-btn, .round-btn.super { padding: 10px; }
}
/* let grid columns shrink below their content's width on narrow screens */
.hero > *, .deck-section > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
