/* Nexus website — v1 "Obsidian" style, mirrors the app's default theme. */

@font-face { font-family: "Geist"; src: url("../fonts/geist/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist/geist-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist/geist-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bar: #0c0c0f;
  --card: #101014;
  --card-2: #0d0d10;
  --inset: #0b0b0e;
  --chip: #141418;
  --raised: #1c1c21;
  --line: #1f1f25;
  --line-2: #26262c;
  --line-3: #2a2a31;
  --fg: #f2f2f3;
  --fg-2: #b9b9c3;
  --fg-3: #d4d4dc;
  --muted: #9a9aa6;
  --muted-2: #868693;
  --faint: #6f6f7b;
  --accent: #7500db;
  --accent-ink: #c9a4ff;
  --accent-ink-hover: #e4d1ff;
  --accent-glow: rgba(117, 0, 219, .4);
  --orange: #fb923c;
  --green: #4ade80;
  --blue-ink: #93c5fd;
  --live: #e11d48;
  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Cascadia Code", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1344px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: none; transition: color .16s var(--ease-out); }
a:hover { color: var(--accent-ink-hover); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code { font: .9em var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--chip); border: 1px solid var(--line-2); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-top: 112px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.muted { color: var(--muted); }

/* ── Type ─────────────────────────────────────────────── */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.display { font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: .005em; }
.h-section { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.h-sub { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.lede { font-size: 17px; line-height: 1.55; color: var(--fg-2); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.push { margin-top: auto; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--fg); white-space: nowrap;
  transition: scale .16s var(--ease-out), background-color .16s var(--ease-out), border-color .16s var(--ease-out), color .16s var(--ease-out);
}
.btn:active { scale: .96; }
.btn svg { flex: none; }
.btn-lg { height: 52px; padding: 0 28px 0 22px; border-radius: 12px; font-size: 16px; font-weight: 650; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-lg.btn-glass { padding: 0 22px; font-size: 15px; font-weight: 550; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-glow { box-shadow: 0 10px 30px rgba(117, 0, 219, .35); }
.btn-accent:hover { background: #8410f0; color: #fff; }
.btn-glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 550; }
.btn-glass:hover { background: rgba(255, 255, 255, .13); color: var(--fg); }
.btn-light { background: var(--fg); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-dark { background: #1a1a1f; border: 1px solid var(--line-3); font-weight: 550; }
.btn-dark:hover { background: #222228; color: var(--fg); }

/* ── Top bar (the app's TopBar) ───────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 15, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid #1d1d21;
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; padding: 10px clamp(16px, 3vw, 28px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand:hover { color: var(--fg); }
.brand img { width: 22px; height: 22px; }
.ver-chip { font: 500 11px var(--mono); color: var(--accent-ink); padding: 1px 6px; border: 1px solid #3b2a55; border-radius: 6px; background: #170f24; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; color: #a6a6b0; font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--fg); background: #16161a; }
.nav a[aria-current="page"] { background: var(--raised); color: var(--fg); font-weight: 550; }
.count-pill { height: 18px; padding: 0 6px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); place-items: center; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--bar); border-bottom: 1px solid #1d1d21; }
  .nav.is-open { display: flex; }
  .nav a { height: 44px; }
}

/* ── Spotlight hero: the cover wall ───────────────────── */
.hero { position: relative; overflow: hidden; min-height: 820px; display: flex; align-items: center; padding: 72px 0 120px; }
.hero > .wrap { position: relative; display: flex; flex-direction: column; gap: 22px; }
.wall {
  position: absolute; top: -22%; right: -12%; width: 76%; height: 160%;
  display: flex; gap: 22px;
  transform: perspective(2400px) rotateX(18deg) rotateY(-18deg) rotateZ(9deg); transform-origin: 60% 40%;
  filter: saturate(1.08) brightness(.86);
}
.wall-col { flex: 1; min-width: 0; overflow: hidden; }
.wall-col img { display: block; width: 100%; height: auto; animation: drift 140s linear infinite; }
.wall-col:nth-child(2) img { animation-duration: 170s; animation-delay: -23s; animation-direction: reverse; }
.wall-col:nth-child(3) img { animation-duration: 200s; animation-delay: -46s; }
.wall-col:nth-child(4) img { animation-delay: -69s; animation-direction: reverse; }
.wall-col:nth-child(5) img { animation-duration: 170s; animation-delay: -92s; }
.wall-col:nth-child(6) img { animation-duration: 200s; animation-delay: -115s; animation-direction: reverse; }
@keyframes drift { to { transform: translateY(-50%); } }
.scrim-x { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(9, 9, 11, .97) 28%, rgba(9, 9, 11, .62) 48%, rgba(9, 9, 11, .08) 74%, rgba(9, 9, 11, .4) 100%); }
.scrim-y { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(9, 9, 11, 0) 28%), linear-gradient(to bottom, var(--bg) 0%, rgba(9, 9, 11, 0) 12%); }
.scrim-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 36% 55% at 34% 62%, rgba(117, 0, 219, .26), transparent 70%); }
.new-pill { align-self: flex-start; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; border-radius: 17px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #e4e4ea; font-size: 13.5px; font-weight: 500; }
.new-pill:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.new-pill b { height: 22px; padding: 0 8px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; }
.hero h1 { font-size: clamp(52px, 6.8vw, 100px); max-width: 740px; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.hero .lede { max-width: 600px; font-size: 18px; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; color: #cfcfd6; font-size: 14.5px; }
.meta-row strong { color: #fff; font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.small-meta { color: var(--muted-2); font-size: 13.5px; }

/* Floating app UI */
.floats { position: absolute; right: clamp(24px, 7vw, 132px); top: 50%; width: 420px; height: 600px; margin-top: -330px; }
.floats > * { position: absolute; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: bob 6s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-10px); } }
.f-streak { left: 34px; top: 34px; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 19px; background: rgba(26, 20, 16, .92); border: 1px solid #4a2e18; color: var(--orange); font-weight: 650; font-size: 14px; animation-duration: 5.5s; }
.f-level { right: -8px; top: 12px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 6px; border-radius: 23px; background: rgba(16, 16, 20, .9); border: 1px solid rgba(255, 255, 255, .12); font-weight: 600; font-size: 14px; animation-duration: 6.5s; animation-delay: -2s; }
.f-level .xp { color: var(--green); }
.ring { --p: 64%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--accent) 0 var(--p), #2a2a31 var(--p) 100%); }
.ring span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--card); font-size: 12px; font-weight: 700; }
.f-card { left: 0; top: 104px; width: 380px; border-radius: 18px; overflow: hidden; background: rgba(14, 14, 18, .86); border: 1px solid rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 50px 100px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(117, 0, 219, .15); animation-duration: 8s; animation-delay: -4s; }
.f-card-art { position: relative; height: 156px; }
.f-card-art > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.f-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(14, 14, 18) 0%, rgba(14, 14, 18, 0) 70%); }
.f-card-logo { position: absolute; z-index: 1; left: 18px; bottom: 10px; width: 150px; height: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6)); }
.f-card-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 18px 18px; }
.f-card-stats { display: flex; gap: 18px; font-size: 13px; color: #cfcfd6; }
.f-card-stats strong { color: #fff; }
.bar { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bar > span { display: block; height: 100%; background: #fff; }
.f-card-actions { display: flex; gap: 8px; margin-top: 2px; }
.f-play { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 11px; background: var(--accent); color: #fff; font-weight: 650; font-size: 15px; }
.f-status { height: 42px; padding: 0 14px; border-radius: 11px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 550; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.f-live { right: -26px; top: 452px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 8px; border-radius: 12px; background: rgba(16, 16, 20, .92); border: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; animation-duration: 7s; animation-delay: -1s; }
.f-live span:last-child { color: #a6a6b0; }
.f-live strong { color: var(--fg); font-weight: 650; }
.live-tag { height: 22px; padding: 0 7px; border-radius: 5px; background: var(--live); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; }
.f-toast { left: 40px; top: 512px; width: 320px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(16, 16, 20, .92); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); animation-delay: -3s; }
.f-toast-icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(34, 197, 94, .14); color: var(--green); display: grid; place-items: center; }
.f-toast small { display: block; color: var(--muted); font-size: 11.5px; }
.f-toast b { font-weight: 650; font-size: 14px; }
.rarity { color: var(--green); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; margin-left: 4px; }
@media (max-width: 1100px) { .floats { display: none; } .wall { opacity: .45; } }
@media (max-width: 640px) { .hero { min-height: 0; padding: 56px 0 104px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-col img, .floats > * { animation: none; }
}

/* ── Product shots ────────────────────────────────────── */
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-3); box-shadow: 0 50px 140px -30px rgba(117, 0, 219, .45), 0 24px 70px rgba(0, 0, 0, .6); background: var(--inset); }
.shot img { display: block; width: 100%; height: auto; }
.shot-rise { position: relative; margin-top: -72px; }

/* ── Chips (the app's filter chips) ───────────────────── */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-center { justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); background: #0f0f12; color: var(--fg-3); font-size: 13.5px; font-weight: 500; }
.chip-swatch { width: 16px; height: 16px; border-radius: 50%; }
.chip-btn { color: #a6a6b0; background: transparent; transition: background-color .16s var(--ease-out), color .16s var(--ease-out), scale .16s var(--ease-out); }
.chip-btn:hover { color: var(--fg); border-color: #34343c; }
.chip-btn:active { scale: .96; }
.chip-btn[aria-pressed="true"] { background: #1f1f25; border-color: #3a3a44; color: #fff; }
.chip-btn[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip-btn .n { color: var(--muted-2); margin-left: 4px; }

/* ── Cards (the app's dashboard cards) ────────────────── */
.card { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.card h3 { font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-text { display: flex; flex-direction: column; gap: 6px; }
.f7 { flex: 7 1 420px; } .f6 { flex: 6 1 420px; } .f5 { flex: 5 1 380px; } .f5s { flex: 5 1 340px; } .f4 { flex: 4 1 320px; } .f3 { flex: 3 1 260px; }
.live-tag-sm { height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10px; }
.crop { overflow: hidden; border-radius: 10px; border: 1px solid var(--line); }
.crop img { display: block; width: 100%; height: 100%; object-fit: cover; }
.panel { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 12px; background: var(--inset); border: 1px solid #1c1c22; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.panel-head span:last-child { color: var(--accent-ink); font-size: 12px; font-weight: 500; }
.big-num { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.up { color: var(--green); font-weight: 500; font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted-2); font-size: 11px; }
.bars i { width: 100%; max-width: 36px; height: var(--h); border-radius: 5px 5px 2px 2px; background: #2c2c34; }
.bars div:last-child i { background: var(--accent); }
.streak { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.streak-num { display: flex; flex-direction: column; gap: 2px; min-width: 96px; }
.streak-num > span:first-child { display: flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; font-size: 14px; }
.streak-num strong { font-size: 44px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.streak-num small { color: var(--muted-2); font-size: 13px; }
.heat { display: grid; grid-template-rows: repeat(7, 11px); grid-auto-flow: column; grid-auto-columns: 11px; gap: 3px; }
.heat i { border-radius: 2px; background: #1c1c21; }
.heat i.l1 { background: #4a2a14; } .heat i.l2 { background: #8a4513; } .heat i.l3 { background: #d9661a; } .heat i.l4 { background: var(--orange); }
.level { display: flex; align-items: center; gap: 16px; }
.level .ring { --p: 64%; width: 72px; height: 72px; }
.level .ring span { width: 58px; height: 58px; font-size: 24px; }
.level small { display: block; color: var(--muted); font-size: 13px; }
.tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.tier { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 13px; background: #16161b; border: 1px solid #24242b; font-size: 12px; font-weight: 600; }
.hltb-track { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.hltb-track i { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--muted); }
.hltb-track b { position: absolute; left: 0; top: 0; bottom: 0; width: 2%; border-radius: 4px; background: var(--accent); }
.hltb-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.hltb-legend strong { display: block; color: #fff; font-size: 15px; }
.rows { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rows li { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 10px; background: #16161b; border: 1px solid #22222a; font-size: 14px; font-weight: 500; }
.rows li span { margin-left: auto; color: var(--muted-2); font-size: 12px; font-weight: 400; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: rgba(117, 0, 219, .16); color: var(--accent-ink); display: grid; place-items: center; }

/* ── 1.0 milestone teaser ─────────────────────────────── */
.milestone { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: clamp(24px, 4vw, 48px); border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.milestone::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 70% at 0% 0%, rgba(117, 0, 219, .22), transparent 70%); pointer-events: none; }
.milestone > * { position: relative; }
.milestone-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.huge-num { font-size: clamp(96px, 12vw, 168px); line-height: .8; font-weight: 800; letter-spacing: -.04em; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; color: #dcdce3; font-size: 14.5px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.before-after { flex: 1 1 460px; display: flex; gap: 14px; align-items: flex-end; min-width: 0; }
.before-after figure { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.before-after img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); }
.before-after figcaption { color: var(--muted-2); font-size: 12.5px; }
.ba-old { flex: 2; } .ba-old img { filter: grayscale(.6) brightness(.8); }
.ba-new { flex: 3; } .ba-new img { border-color: #3b2a55; box-shadow: 0 20px 60px -10px var(--accent-glow); }
.ba-new figcaption { color: #dcdce3; font-weight: 500; }

/* ── Themes ───────────────────────────────────────────── */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.split-media { flex: 1.4 1 520px; min-width: 0; }
.shot-pink { border-color: #3a2752; box-shadow: 0 40px 120px -30px rgba(255, 46, 151, .35); }
.themes { gap: 8px; margin-top: 6px; }
.themes .chip { height: 34px; padding: 0 12px 0 8px; font-size: 13px; }

/* ── Feature list ─────────────────────────────────────── */
.list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.featgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; list-style: none; padding: 0; }
.featgrid li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--card-2); }
.featgrid b { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14.5px; }
.featgrid b small { color: var(--faint); font: 400 11.5px var(--mono); }
.featgrid span { color: var(--muted); font-size: 13.5px; }

/* ── Stat cards (the Stats page summary row) ──────────── */
.stat { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stat span { color: var(--muted); font-size: 13.5px; }
.stat strong { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { height: 30px; padding: 0 12px; border-radius: 8px; background: var(--chip); border: 1px solid var(--line-2); color: #c8c8d0; font: 12.5px var(--mono); display: inline-flex; align-items: center; }

/* ── Closing spotlight / download ─────────────────────── */
.cta { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid #2a2135; background: #0e0b14; padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 80% at 85% 100%, rgba(117, 0, 219, .4), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta-copy { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.cta h2 { font-size: clamp(44px, 6vw, 80px); }
.dl-meta { display: grid; grid-template-columns: auto auto; gap: 8px 24px; font-size: 14px; }
.dl-meta dt { color: var(--muted-2); }
.dl-meta dd { font-weight: 600; }
.version-badge { font-weight: 600; }

/* ── Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid #1d1d21; background: var(--bar); padding: 28px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 13.5px; }
.footer-brand img { width: 18px; height: 18px; opacity: .8; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13.5px; }
.footer nav a { color: #a6a6b0; }
.footer nav a:hover { color: var(--fg); }

/* ── What's new: hero + tour ──────────────────────────── */
.v1-hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.v1-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 85% 10%, rgba(117, 0, 219, .32), transparent 70%); }
.v1-hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.v1-hero-copy { flex: 1 1 560px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.v1-title { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 28px; }
.v1-title .huge-num { font-size: clamp(120px, 16vw, 232px); line-height: .78; letter-spacing: -.05em; }
.v1-title h1 { margin-bottom: 10px; font-size: clamp(32px, 3.6vw, 52px); line-height: 1; }
.v1-hero-copy .lede { max-width: 640px; font-size: 18px; }
.rebuilt { flex: 0 1 380px; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.rebuilt .chips { gap: 6px; }
.rebuilt .chip { height: 30px; padding: 0 11px; font-size: 13px; background: #18181d; color: #dcdce3; }
.ba-wide { display: flex; flex-wrap: wrap; gap: 16px; }
.ba-wide figure { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; min-width: 0; }
.ba-wide figcaption { display: flex; justify-content: space-between; font-size: 13px; }
.ba-wide img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ba-wide .ba-old { flex: 1 1 420px; background: var(--card-2); border: 1px solid #1c1c22; }
.ba-wide .ba-old img { border: 1px solid var(--line-2); filter: grayscale(.5) brightness(.85); }
.ba-wide .ba-new { flex: 1.5 1 520px; background: #120d1a; border: 1px solid #3b2a55; }
.ba-wide .ba-new img { border: 1px solid #2f2440; box-shadow: none; }
.mono { font-family: var(--mono); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs .chip-btn { height: 38px; padding: 0 16px; font-size: 14px; }
.tour { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.tour .shot { flex: 3 1 640px; min-width: 0; box-shadow: 0 40px 120px -40px var(--accent-glow); }
.tour-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.tour-text .mono { font-size: 12px; color: var(--muted-2); }
.tour-text h3 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.tour-text p { color: #b4b4be; font-size: 15px; }
.tour-nav { margin-top: auto; display: flex; gap: 8px; }
.tour-nav .btn-light { flex: 1; }
.icon-btn { width: 44px; height: 44px; padding: 0; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.grid-cards > div { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.grid-cards b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.grid-cards span { color: var(--muted); font-size: 14px; }
.tag { height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; }
.tag-new { background: rgba(117, 0, 219, .2); color: #d9bfff; }
.tag-imp { background: rgba(59, 130, 246, .16); color: var(--blue-ink); }
.duo > div { flex: 1 1 420px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.duo h2 { font-size: 20px; font-weight: 650; }
.duo p { color: var(--muted); font-size: 14.5px; }
.duo .retro { background: #0a0f0a; border-color: #1d2b1d; }
.duo .retro p { color: #a3b8a3; }
.term-tile { flex: none; width: 64px; height: 64px; border-radius: 12px; background: #050805; border: 1px solid #2a4a2a; color: var(--green); display: grid; place-items: center; font: 500 22px var(--mono); }
.duo .icon-tile { flex: none; width: 64px; height: 64px; }
.duo-text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.fixes { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fixes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 16px 20px; background: var(--card-2); border-bottom: 1px solid #1a1a1f; }
.fixes li:last-child { border-bottom: 0; }
.fixes b { display: flex; align-items: center; gap: 10px; min-width: 220px; font-weight: 600; font-size: 14.5px; }
.fixes span { flex: 1 1 320px; color: var(--muted); font-size: 14px; }

/* ── Doc pages: rail + content (the app's Settings page) ─ */
.doc { display: flex; flex-wrap: wrap; }
.rail { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 40px 24px 40px 0; }
.rail-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; }
.rail h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.rail-label { color: var(--muted-2); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px 12px; }
.rail a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: #a6a6b0; font-size: 14px; }
.rail a:hover { color: var(--fg); background: #16161a; }
.rail a.is-current { background: var(--raised); color: #fff; }
.rail a small { color: var(--muted-2); font-size: 12.5px; }
.doc-main { flex: 999 1 560px; min-width: 0; padding: 40px 0 0 clamp(16px, 3vw, 40px); border-left: 1px solid #1a1a1f; }
@media (max-width: 860px) {
  .rail { padding: 32px 0 8px; }
  .rail-sticky { position: static; }
  .doc-main { padding-left: 0; border-left: 0; }
}

/* Changelog entries (markup shared with the release skills) */
.changelog-intro { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.changelog-timeline { display: flex; flex-direction: column; gap: 20px; }
.changelog-entry { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); scroll-margin-top: 84px; }
.changelog-entry--latest { position: relative; overflow: hidden; background: var(--card); border-color: #2c2140; }
.changelog-entry--latest::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 100% 0%, rgba(117, 0, 219, .18), transparent 70%); pointer-events: none; }
.changelog-entry > * { position: relative; }
.changelog-entry-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.changelog-entry-version { font: 500 13px var(--mono); padding: 3px 9px; border-radius: 7px; background: var(--raised); border: 1px solid var(--line-3); }
.changelog-entry--latest .changelog-entry-version { font-size: 14px; color: #fff; border-color: #3b2a55; background: #170f24; }
.changelog-entry-date { color: var(--muted); font-size: 13.5px; }
.changelog-entry .version-badge { height: 22px; padding: 0 8px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; text-transform: uppercase; }
.changelog-entry-body { display: flex; flex-direction: column; gap: 18px; }
.changelog-entry-body > p { color: #b4b4be; font-size: 15.5px; max-width: 760px; }
.changelog-entry-body img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line-3); }
.changelog-category { display: flex; flex-direction: column; }
.changelog-category-title { margin-bottom: 6px; }
.changelog-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.changelog-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.changelog-badge--added { color: var(--accent-ink); }
.changelog-badge--changed { color: var(--blue-ink); }
.changelog-badge--fixed { color: #86efac; }
.changelog-list, .changelog-highlights { list-style: none; padding: 0; }
.changelog-list > li, .changelog-highlights > li { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 10px 0; border-top: 1px solid #1c1c22; color: #a6a6b0; font-size: 14.5px; }
.changelog-list > li > strong:first-child, .changelog-highlights > li > strong:first-child { flex: 0 0 210px; color: var(--fg); font-weight: 600; }
.changelog-list > li > .cl-text, .changelog-highlights > li > .cl-text { flex: 1 1 320px; }
.changelog-list strong, .changelog-highlights strong { color: var(--fg); font-weight: 600; }
.changelog-sublist { margin: 6px 0 0; padding-left: 18px; flex-basis: 100%; }
.changelog-sublist li { padding: 4px 0; }
.changelog-highlights > li { align-items: center; gap: 10px; padding: 3px 0; border-top: 0; color: #dcdce3; }
.changelog-entry .bullet { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.changelog-entry-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-bottom: -8px; }
.changelog-tour { margin-left: auto; font-size: 13.5px; font-weight: 500; }
.changelog-tag { height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(74, 222, 128, .14); color: #86efac; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; text-transform: uppercase; }
.rail-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted-2); margin-bottom: 10px; cursor: text; }
.rail-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--fg); font: inherit; font-size: 14px; }
.rail-list { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 230px); overflow-y: auto; }
.rail-list a { font-family: var(--mono); font-size: 13px; }
.rail-list a small { font-family: var(--font); }

/* Earlier releases collapse into rows */
.cl-older h2 { font-size: 16px; font-weight: 650; color: #c8c8d0; margin: 12px 0 10px; }
.cl-older-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.changelog-entry.is-collapsed { gap: 0; padding: 10px 20px; border-radius: 0; border: 0; border-bottom: 1px solid #1a1a1f; background: var(--card-2); }
.changelog-entry.is-collapsed:last-child { border-bottom: 0; }
.is-collapsed .changelog-entry-header { position: relative; min-height: 36px; gap: 6px 16px; }
.is-collapsed .changelog-entry-version { min-width: 64px; padding: 0; background: none; border: 0; }
.is-collapsed .changelog-entry-date { min-width: 96px; color: var(--muted-2); font-size: 13px; }
.cl-summary { flex: 1 1 300px; color: #c8c8d0; font-size: 14.5px; }
.cl-chev { margin-left: auto; color: var(--muted-2); transition: rotate .2s var(--ease-out); }
.cl-toggle { position: absolute; inset: -10px -20px; z-index: 1; border-radius: 0; }
.is-collapsed:not(.is-open) .changelog-entry-body { display: none; }
.is-open .cl-summary { visibility: hidden; }
.is-open .cl-chev { rotate: 180deg; }
.is-collapsed.is-open .changelog-entry-body { padding: 12px 0 14px; }


/* Legal pages (content markup kept from the previous site) */
.legal-hero { padding: 64px 0 40px; border-bottom: 1px solid #1a1a1f; }
.legal-hero .wrap { display: flex; flex-direction: column; gap: 14px; }
.legal-hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; }
.legal-hero .lede { max-width: 620px; }
.legal-switch { display: flex; gap: 6px; }
.legal-switch a { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-2); color: #a6a6b0; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; }
.legal-switch a[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 600; }
.legal-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted-2); font-size: 13.5px; }
.principles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.principle { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.principle-title { font-weight: 650; font-size: 15px; }
.principle-desc { color: var(--muted); font-size: 14px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.legal-toc a { justify-content: flex-start; }
.legal-toc .rail-list a { font-family: var(--font); font-size: 14px; }
.legal-toc-num { font: 12px var(--mono); color: var(--faint); }
.legal-content { display: flex; flex-direction: column; gap: 48px; max-width: 860px; padding-bottom: 24px; }
.legal-section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 84px; }
.legal-section p, .legal-section li { color: #b4b4be; font-size: 15.5px; line-height: 1.7; }
.legal-section-num { font: 12px var(--mono); color: var(--muted-2); }
.type-title1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.type-title2 { font-size: 17px; font-weight: 650; }
.legal-tldr { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 12px; background: #120d1a; border: 1px solid #2c2140; }
.legal-tldr-label { color: var(--accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
.legal-section .legal-tldr-text { color: #e4e4ea; font-size: 15px; }
.legal-list { padding-left: 20px; }
.legal-subsection { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.legal-questions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.legal-questions-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Phones: rails become a horizontal strip above the content */
@media (max-width: 860px) {
  .rail-list, .legal-toc ol { flex-direction: row; max-height: none; overflow-x: auto; padding-bottom: 4px; }
  .rail-list a { flex: none; }
}
