/* GridCell site styles, shared by the landing page and the docs.
   Look: a white, product-first page in the social-app idiom (the user's reference was a waitlist page for a
   feed-trading app): huge tight Inter Tight headlines, ink pill buttons, app-screen mockups as the imagery.
   GridCell amber is the one brand accent; green/red only ever mean up/down. White by default, dark through
   the header toggle. */
:root {
  --bg: #ffffff;
  --soft: #f5f6f7;
  --card: #ffffff;
  --ink: #0d1014;
  --ink-2: #2f353c;
  --muted: #646d77;
  --line: #e5e7ea;
  --amber: #a86300;        /* text-safe amber on white */
  --amber-fill: #f0a033;   /* fills: brand cell, bars, highlights */
  --amber-soft: #fdf1df;
  --on-amber: #1a1206;
  --up: #12814a;
  --up-soft: #e3f4ea;
  --down: #c8372d;
  --down-soft: #fbe7e5;
  --prop: #5a55c9;
  --prop-soft: #eeedfb;
  --pill-bg: #0d1014;
  --pill-ink: #ffffff;
  --band: #0d1014;         /* closing banner and dark cards: dark in both modes */
  --band-ink: #f4f5f6;
  --frame: #0d1014;        /* phone bezel */
  --scrim: rgba(8, 10, 12, 0.32);
  --shadow: 0 1px 2px rgba(13, 16, 20, 0.05), 0 10px 30px rgba(13, 16, 20, 0.07);
  /* illustration colours (avatars, coin badges, clip art): same in both modes */
  --av1: #7c5cff; --av2: #e0703a; --av3: #1f9d8a; --av4: #d64f8a; --av5: #3a7be0;
  --gold: #c9971c; --sol: #8b5cf6; --btc: #f39a1e; --eth: #627eea; --oil: #3d3a36; --cu: #c26a3d;
  --chip-ink: #0d1014; --chip-up: #12814a; --chip-down: #c8372d;
  --display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0d10;
  --soft: #12151a;
  --card: #15191e;
  --ink: #f2f4f6;
  --ink-2: #d2d7dc;
  --muted: #98a1ab;
  --line: #262b32;
  --amber: #f5ad45;
  --amber-soft: #2a2114;
  --up: #3ccb7f;
  --up-soft: #11261a;
  --down: #ff6b5f;
  --down-soft: #2b1614;
  --prop: #aaa6ff;
  --prop-soft: #1d1c33;
  --pill-bg: #f2f4f6;
  --pill-ink: #0b0d10;
  --band: #15191e;
  --band-ink: #f4f5f6;
  --frame: #2a2f36;
  --scrim: rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber-fill); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: inherit; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(3.2rem, 6.4vw, 5.9rem); line-height: 0.92; letter-spacing: -0.045em; word-spacing: 0.04em; }
h2 { font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 0.98; letter-spacing: -0.038em; word-spacing: 0.03em; }
h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.55; max-width: 52ch; }
.accent { color: var(--amber); }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.fine { margin-top: 1.25rem; font-size: 0.8rem; color: var(--muted); max-width: 80ch; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.035em; }
.brand svg { width: 24px; height: 24px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; font-size: 0.93rem; }
.nav a:not(.pill) { color: var(--ink-2); text-decoration: none; }
.nav a:not(.pill):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
@media (max-width: 960px) { .nav .hide-md { display: none; } }
@media (max-width: 480px) { .nav { gap: 0.7rem; } .nav .pill { height: 2.35rem; padding: 0 0.95rem; font-size: 0.88rem; } }
@media (max-width: 400px) { .nav .hide-xs { display: none; } }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.6rem; padding: 0 1.15rem; border-radius: 999px; background: var(--pill-bg); color: var(--pill-ink); font: 600 0.95rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: opacity 0.15s; }
.pill:hover { opacity: 0.86; }
.pill.lg { height: 3.25rem; padding: 0 1.6rem; font-size: 1.02rem; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill.ghost:hover { opacity: 1; box-shadow: inset 0 0 0 1px var(--ink); }
.pill.on-band { background: var(--band-ink); color: var(--band); }
.icon-btn { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.icon-btn .sun, :root[data-theme="dark"] .icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }

/* ---------- sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section.soft { background: var(--soft); }
.head-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
@media (max-width: 820px) { .head-row { grid-template-columns: minmax(0, 1fr); } }
.center { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.center .eyebrow { margin: 0; }
.center .lede { max-width: 58ch; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero h1 .nw { white-space: nowrap; }
.hero-copy { order: 2; }
.hero-phone { order: 1; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero-copy { order: 1; } .hero-phone { order: 2; } }
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; max-width: 27rem; }
.steps button { width: 100%; display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0; background: none; border: 0; border-bottom: 1.5px solid var(--line); color: var(--muted); font: 600 1.15rem/1.2 var(--body); cursor: pointer; text-align: left; transition: color 0.2s, border-color 0.2s; }
.steps .n { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 0.8rem; flex: none; }
.steps .sd { margin-left: auto; font-weight: 400; font-size: 0.88rem; color: var(--muted); opacity: 0; transition: opacity 0.25s; text-align: right; }
.steps button[aria-current="step"] { color: var(--ink); border-bottom-color: var(--ink); }
.steps button[aria-current="step"] .n { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.steps button[aria-current="step"] .sd { opacity: 1; }
@media (max-width: 480px) { .steps .sd { display: none; } }
.hero .lede { margin-top: 2rem; }
.cta { margin-top: 1.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.status-line { margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.6rem; align-items: center; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--amber-fill); box-shadow: 0 0 0 4px var(--amber-soft); flex: none; }

/* ---------- phone mockup ---------- */
.hero-phone { margin: 0; display: grid; justify-items: center; gap: 0.9rem; }
.hero-phone figcaption { font-size: 0.78rem; color: var(--muted); }
.phone { width: min(330px, 84vw); aspect-ratio: 330 / 690; border-radius: 54px; padding: 10px; background: var(--frame); box-shadow: 0 50px 90px -40px rgba(13, 16, 20, 0.45); }
.screen { position: relative; height: 100%; border-radius: 45px; overflow: hidden; background: var(--card); color: var(--ink); font-size: 12.5px; line-height: 1.4; display: flex; flex-direction: column; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 4px; font-weight: 600; font-size: 13px; }
.sb svg { width: 54px; height: 12px; }
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 2px; }
.appbar .mk { width: 20px; height: 20px; }
.appbar .sp { width: 30px; }
.av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 10.5px; background: var(--c, var(--av1)); }
.av.sm { width: 24px; height: 24px; font-size: 9px; }
.ptabs { display: flex; justify-content: space-around; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 12px; margin-top: 4px; }
.ptabs span { padding: 7px 0 9px; }
.ptabs .on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber-fill); }
.post { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); transition: background 0.3s; }
.post .bd { min-width: 0; flex: 1; }
.post .who { font-weight: 700; }
.post .h { color: var(--muted); }
.post p { margin-top: 3px; }
.mkt { margin-top: 9px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 12px; }
.mkt .px { margin-left: auto; }
.lev { font-size: 10px; padding: 1px 5px; border-radius: 5px; background: var(--soft); color: var(--muted); }
.tk { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 8.5px; font-weight: 800; background: var(--c, var(--gold)); }
.read-tag { display: inline-flex; margin-top: 9px; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-weight: 700; font-size: 11px; }
.screen[data-step="1"] .read-tag { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber-fill) 28%, transparent); } }
.screen[data-step="1"] .post.feature { background: color-mix(in srgb, var(--amber-fill) 8%, var(--card)); }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.screen:not([data-step="1"]) .scrim { opacity: 1; }
.sheet { position: absolute; inset: auto 0 0 0; padding: 10px 16px 32px; background: var(--card); border-radius: 26px 26px 0 0; box-shadow: 0 -12px 30px rgba(8, 10, 12, 0.14); transform: translateY(105%); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.screen[data-step="2"] .sheet[data-for="2"], .screen[data-step="3"] .sheet[data-for="3"], .screen[data-step="4"] .sheet[data-for="4"] { transform: none; }
.homebar { position: absolute; left: 50%; bottom: 8px; width: 120px; height: 4px; border-radius: 4px; background: var(--ink); opacity: 0.85; transform: translateX(-50%); z-index: 3; }
.ai-h { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.sheet p { margin-top: 8px; }
.moves { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.moves span { color: var(--muted); font-size: 11px; margin-right: 2px; }
.moves b { font-weight: 600; font-size: 11.5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; }
.sheet .note { margin-top: 12px; font-size: 11px; color: var(--muted); }
.tr-h { display: flex; align-items: center; gap: 10px; }
.tr-h .sub { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.xs { margin-left: auto; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.xs.solid { background: var(--pill-bg); color: var(--pill-ink); border-color: transparent; }
.amts { display: flex; gap: 6px; margin-top: 14px; }
.amts span { flex: 1; text-align: center; padding: 8px 0; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.amts .on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.slide { position: relative; margin-top: 12px; height: 46px; border-radius: 999px; background: var(--up-soft); color: var(--up); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.slide .knob { position: absolute; left: 4px; top: 4px; width: 38px; height: 38px; border-radius: 50%; background: var(--up); color: var(--card); display: grid; place-items: center; font-size: 15px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(10px); } }
.compose { display: flex; gap: 9px; }
.compose p { margin: 2px 0 0; }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--amber-fill); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.att { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 9px 11px; display: flex; align-items: center; gap: 8px; }
.att .sub { display: block; color: var(--muted); font-size: 11px; }
.long { font-size: 10px; font-weight: 800; color: var(--up); background: var(--up-soft); padding: 2px 6px; border-radius: 5px; }
.row-end { display: flex; justify-content: flex-end; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .sheet, .scrim { transition: none; }
  .screen[data-step="1"] .read-tag, .slide .knob, .caret { animation: none; }
}

/* ---------- markets bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; min-width: 0; }
.tag { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.span2 { grid-column: span 2; }
.tall { grid-row: span 2; }
.card.ink { background: var(--band); color: var(--band-ink); border-color: transparent; display: flex; flex-direction: column; }
.card.ink .tag { color: color-mix(in srgb, var(--band-ink) 60%, transparent); }
.card.ink h3 { font-size: 1.35rem; }
.big { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 2.7rem); letter-spacing: -0.04em; line-height: 1; margin-top: 8px; }
.stock-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sym { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.sym small { color: var(--muted); font-weight: 500; }
.chart { display: block; width: 100%; height: 96px; margin-top: 10px; }
.minirow { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; }
.list { display: grid; gap: 12px; }
.li { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 600; }
.li .v { margin-left: auto; text-align: right; }
.li .v small { display: block; font-size: 0.78rem; }
.bk { display: grid; gap: 10px; margin-top: 14px; }
.bk-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 2.6rem; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; }
.bk-row .pct { text-align: right; }
.bar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--band-ink) 14%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--amber-fill); border-radius: inherit; }
.ink .note { margin-top: auto; padding-top: 16px; font-size: 0.82rem; color: color-mix(in srgb, var(--band-ink) 70%, transparent); }
.btn-amber { margin-top: 12px; display: block; text-align: center; padding: 0.75rem; border-radius: 999px; background: var(--amber-fill); color: var(--on-amber); font-weight: 700; font-size: 0.9rem; }
.chipx { font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.chipx.up { background: var(--up-soft); }
.lev-track { position: relative; height: 6px; border-radius: 6px; background: var(--soft); margin: 20px 0 8px; }
.lev-track i { position: absolute; inset: 0 auto 0 0; width: 44%; background: var(--up); border-radius: inherit; }
.lev-track b { position: absolute; left: 44%; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--up); transform: translate(-50%, -50%); }
.lev-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }
.q { font-weight: 600; font-size: 0.9rem; }
.yn { display: flex; height: 30px; border-radius: 10px; overflow: hidden; margin: 8px 0 14px; font-size: 0.8rem; font-weight: 700; }
.yn:last-child { margin-bottom: 0; }
.yn .y { background: var(--up-soft); color: var(--up); display: flex; align-items: center; padding: 0 8px 0 10px; min-width: max-content; }
.yn .n { background: var(--down-soft); color: var(--down); display: flex; align-items: center; justify-content: flex-end; padding: 0 10px 0 8px; flex: 1 0 auto; white-space: nowrap; }
.yn .y { white-space: nowrap; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tall { grid-row: auto; } .span2-md { grid-column: span 2; } }
@media (max-width: 580px) { .bento { grid-template-columns: minmax(0, 1fr); } .span2, .span2-md { grid-column: auto; } }

.live-badge { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 0.6rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--up-soft); color: var(--up); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; vertical-align: 1px; }
.live-badge i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } }

/* ticker tape */
.tape { margin-top: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.tape .track { display: flex; gap: 10px; width: max-content; animation: tape 60s linear infinite; }
.tape.rev .track { animation-direction: reverse; animation-duration: 70s; }
@keyframes tape { to { transform: translateX(calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce) { .tape .track { animation: none; } }
.tape .t { display: inline-flex; gap: 8px; align-items: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

/* ---------- clips ---------- */
.clips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.clip { position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; padding: 12px; display: flex; flex-direction: column; color: #fff; background: linear-gradient(160deg, var(--g1), var(--g2)); isolation: isolate; }
.clip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--art, none), radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.3), transparent 46%); }
.clip::after { content: ""; position: absolute; inset: 45% 0 0; z-index: -1; background: linear-gradient(transparent, rgba(0, 0, 0, 0.62)); }
.clip .ch { display: flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 600; }
.clip .ch .av { width: 24px; height: 24px; font-size: 9px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
.clip .dur { margin-left: auto; font-size: 0.7rem; background: rgba(0, 0, 0, 0.35); padding: 2px 6px; border-radius: 6px; }
.clip .play { margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; }
.clip .play svg { width: 16px; height: 16px; margin-left: 3px; }
.clip .cap { font-weight: 700; font-size: 0.9rem; line-height: 1.25; text-wrap: balance; }
.clip .cm { margin-top: 10px; display: flex; align-items: center; gap: 6px; background: #fff; color: var(--chip-ink); border-radius: 12px; padding: 7px 9px; font-size: 0.76rem; font-weight: 700; }
.clip .cm .v { margin-left: auto; }
.clip .cm .up { color: var(--chip-up); }
.clip .cm .down { color: var(--chip-down); }
.clip .prog { margin-top: 10px; height: 3px; background: rgba(255, 255, 255, 0.3); border-radius: 3px; }
.clip .prog i { display: block; height: 100%; width: var(--p); background: #fff; border-radius: inherit; }
@media (max-width: 1000px) { .clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 40%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; } .clip { scroll-snap-align: start; } }
@media (max-width: 560px) { .clips { grid-auto-columns: 66%; } }

/* ---------- Cell AI ---------- */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .ai { grid-template-columns: minmax(0, 1fr); } }
.nlist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.8rem; counter-reset: n; }
.nlist li { display: flex; gap: 0.8rem; align-items: center; font-weight: 600; }
.nlist li::before { counter-increment: n; content: counter(n); width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 0.8rem; flex: none; }
.ai-panel { padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.ai-panel .post { font-size: 0.92rem; padding: 18px; }
.ai-box { padding: 18px; display: grid; gap: 14px; }
.ai-status { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.ai-status span::before { content: "\2713\00a0"; color: var(--up); font-weight: 700; }
.ai-rows { display: grid; gap: 11px; }
.ai-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) minmax(3rem, 6rem) 2.6rem; align-items: center; gap: 10px; font-size: 0.9rem; }
.ai-row .tk { width: 2.4rem; height: 2.4rem; font-size: 0.68rem; }
.ai-row .nm { font-weight: 700; min-width: 0; }
.ai-row .nm small { display: block; color: var(--muted); font-weight: 500; font-size: 0.76rem; }
.ai-row .bar { background: var(--soft); }
.ai-row .pct { text-align: right; font-weight: 700; }
.ai-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--soft); }
.ai-foot small { display: block; color: var(--muted); font-size: 0.8rem; }
.js [data-reveal] .ai-row { opacity: 0; transform: translateY(8px); transition: opacity 0.45s, transform 0.45s; }
.js [data-reveal].in .ai-row { opacity: 1; transform: none; }
.js [data-reveal].in .ai-row:nth-child(2) { transition-delay: 0.12s; }
.js [data-reveal].in .ai-row:nth-child(3) { transition-delay: 0.24s; }
.js [data-reveal].in .ai-row:nth-child(4) { transition-delay: 0.36s; }
.js [data-reveal].in .ai-row:nth-child(5) { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] .ai-row { opacity: 1; transform: none; transition: none; } }

/* ---------- why: feed -> Cell AI -> markets ---------- */
.hub { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(2.5rem, 9vw, 8rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wires .w { fill: none; stroke: var(--line); stroke-width: 1.5; }
.wires .hot { stroke: var(--amber-fill); stroke-dasharray: 5 7; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) { .wires .hot { animation: none; } }
.hub .col { position: relative; z-index: 1; display: grid; gap: 10px; }
.colh { margin-bottom: 8px; }
.colh .eyebrow { margin-bottom: 0.35rem; }
.colh b { display: block; font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.035em; line-height: 1.1; }
.colh span:last-child { color: var(--muted); font-size: 0.88rem; }
.hub .mid { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 14rem; }
.node { width: 96px; height: 96px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; }
.node svg { width: 40px; height: 40px; color: var(--ink); }
.mini { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 0.82rem; line-height: 1.35; }
.mini .h { color: var(--muted); font-size: 0.75rem; display: block; }
.mini.m { align-items: center; justify-content: space-between; font-weight: 600; gap: 1rem; }
.mini.hot { box-shadow: inset 0 0 0 1.5px var(--amber-fill); }
@media (max-width: 860px) { .hub { grid-template-columns: minmax(0, 1fr); } .wires { display: none; } .hub .mid { justify-self: center; } }

/* ---------- calls ---------- */
.calls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .calls { grid-template-columns: minmax(0, 1fr); } }
.calls .card { display: flex; flex-direction: column; gap: 0.6rem; padding: 22px; }
.calls .card .tag { margin-bottom: 0; }
.calls h3 { font-size: 1.35rem; }
.calls .card > p { color: var(--muted); font-size: 0.93rem; }
.ui { margin-top: auto; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--soft); font-size: 0.85rem; display: grid; gap: 10px; }
.ui .row { display: flex; align-items: center; gap: 9px; }
.ui .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ui .stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.ui .stats b { display: block; font-size: 1.05rem; }
.ui .stats small { color: var(--muted); font-size: 0.72rem; }
.ui .note { color: var(--muted); font-size: 0.76rem; }
.ui .box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }

/* ---------- token ---------- */
.tok { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 900px) { .tok { grid-template-columns: minmax(0, 1fr); } }
.tok .card { padding: clamp(18px, 3vw, 28px); }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.facts div:first-child { padding-top: 0; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } }
.ticks { list-style: none; padding: 0; margin: 0.7rem 0 0; display: grid; gap: 0.6rem; }
.ticks li { padding-left: 1.4rem; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--amber-fill); }
.tok h3 + .ticks + h3 { margin-top: 1.6rem; }

/* ---------- docs strip ---------- */
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dcard { display: block; text-decoration: none; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); transition: border-color 0.2s, transform 0.2s; }
.dcard:hover { border-color: var(--ink); transform: translateY(-2px); }
.dcard b { display: block; font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.025em; margin-bottom: 0.3rem; }
.dcard span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- waitlist ---------- */
.wl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .wl { grid-template-columns: minmax(0, 1fr); } }
.wl .lede { margin-top: 1.25rem; }
.wl-form { padding: clamp(18px, 3vw, 28px); display: grid; gap: 1.1rem; box-shadow: var(--shadow); }
.field { display: grid; gap: 0.4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 0.85rem; font-weight: 600; padding: 0; }
.inp { width: 100%; height: 3rem; padding: 0 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.inp::placeholder { color: var(--muted); opacity: 0.8; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.4rem; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.chips input:checked + span { background: var(--pill-bg); color: var(--pill-ink); border-color: transparent; }
.chips input:focus-visible + span { outline: 2px solid var(--amber-fill); outline-offset: 2px; }
.wl-form .pill { width: 100%; }
.wl-form .pill:disabled { opacity: 0.6; cursor: progress; }
.form-msg { padding: 0.8rem 1rem; border-radius: 12px; background: var(--soft); font-size: 0.92rem; border-left: 3px solid var(--up); }
.form-msg[data-ok="0"] { border-left-color: var(--amber-fill); }
.form-small { font-size: 0.78rem; color: var(--muted); }

/* ---------- closing band + footer ---------- */
.band { background: var(--band); color: var(--band-ink); padding-block: clamp(4.5rem, 10vw, 8rem); }
.band-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.band-big { font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 11vw, 9rem); line-height: 0.88; letter-spacing: -0.06em; margin: 0; background: linear-gradient(180deg, var(--band-ink) 35%, color-mix(in srgb, var(--band-ink) 30%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band-big span { color: var(--amber-fill); }
.foot { padding-block: 2rem 2.5rem; font-size: 0.88rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.foot .brand { font-size: 1.1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--ink); }
.foot .copy { margin-left: auto; }
.foot .fine { margin-top: 1.2rem; display: block; }

/* ---------- docs page ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: 2.5rem 6rem; }
.side { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px) + 1.5rem); align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 0.9rem; padding-right: 4px; }
.side .grp { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 1.3rem 0 0.4rem 0.6rem; }
.side .grp:first-child { margin-top: 0; }
.side a { display: block; padding: 0.32rem 0.6rem; border-radius: 8px; color: var(--muted); text-decoration: none; }
.side a:hover { color: var(--ink); }
.side a.on { color: var(--ink); background: var(--soft); font-weight: 600; }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
  .side { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 5; max-height: none; display: flex; gap: 4px; overflow-x: auto; background: var(--bg); padding: 8px 0; margin-inline: -4px; border-bottom: 1px solid var(--line); }
  .side .grp { display: none; }
  .side a { white-space: nowrap; flex: none; }
}
.doc { max-width: 760px; min-width: 0; }
.doc > section { margin-bottom: 4rem; scroll-margin-top: 96px; }
.doc h1 { font-size: clamp(2.7rem, 6vw, 4.2rem); margin-bottom: 1.1rem; letter-spacing: -0.035em; }
.doc h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.doc h3 { margin: 1.8rem 0 0.55rem; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.7; }
.doc p + p { margin-top: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.25rem; margin: 0.8rem 0; }
.doc li + li { margin-top: 0.35rem; }
.doc a { color: var(--ink); text-decoration-color: var(--amber-fill); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.doc .lede { margin-bottom: 1rem; }
.callout { border: 1px solid var(--line); background: var(--soft); border-radius: 14px; padding: 14px 16px; margin: 1.2rem 0; font-size: 0.95rem; color: var(--ink-2); }
.callout.warn { border-color: color-mix(in srgb, var(--amber-fill) 45%, var(--line)); background: var(--amber-soft); }
.callout b { color: var(--ink); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 1.1rem 0; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.tbl th, .tbl td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--soft); font-weight: 700; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.14rem 0.6rem; border-radius: 999px; font: 700 0.72rem/1.5 var(--body); letter-spacing: 0.02em; white-space: nowrap; vertical-align: middle; }
.chip::before { content: ""; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: currentColor; }
.chip.live { color: var(--up); background: var(--up-soft); }
.chip.build { color: var(--amber); background: var(--amber-soft); }
.chip.plan { color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.chip.prop { color: var(--prop); background: var(--prop-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-top: 1rem; font-size: 0.85rem; color: var(--muted); align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 0.45rem; }
.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 1.2rem; }
.road .card { padding: 16px; }
.road .card b { display: block; font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.02em; margin: 0.5rem 0 0.4rem; }
.road ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }
@media (max-width: 700px) { .road { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.6rem; }
