/* PlayLedger landing page. Shares its structure with the Nexus and FrameBurst sites; only the tokens in :root differ. */

@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #080b12;
  --bg-2: #0c111c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef3fb;
  --muted: #9ba8bf;
  /* Accent pair: royal blue into sky blue, from the PlayLedger icon. */
  --a1: #1f5fff;
  --a1-rgb: 31, 95, 255;
  --a2: #5aa9ff;
  --a2-rgb: 90, 169, 255;
  --a3-rgb: 0, 140, 255;
  --a-soft: #8cc4ff;
  --glow-dark: #0b1a3a;
  --grad: linear-gradient(120deg, var(--a1) 0%, var(--a2) 100%);
  --grad-text: linear-gradient(100deg, #c2dcff 0%, #7fb6ff 35%, #3d84ff 100%);
  --ok: #3ccf6e;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; scrollbar-color: #2a3448 var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
::selection { background: rgba(var(--a1-rgb), 0.5); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--a-soft); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 760; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 740; }
h3 { font-size: 1.2rem; font-weight: 640; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { font: 500 0.86em var(--mono); padding: 0.15em 0.45em; border-radius: 6px; background: rgba(var(--a1-rgb), 0.16); border: 1px solid rgba(var(--a1-rgb), 0.3); overflow-wrap: anywhere; }
kbd { display: inline-block; font: 600 0.8em var(--mono); padding: 0.2em 0.55em; border-radius: 7px; color: var(--text); white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); border: 1px solid var(--line-strong); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Ambient aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, var(--glow-dark) 0%, var(--bg) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; mix-blend-mode: screen; will-change: transform; }
.orb-a { width: 60vmax; height: 60vmax; left: -15vmax; top: -25vmax; background: radial-gradient(circle, rgba(var(--a1-rgb), 0.75), transparent 60%); animation: drift-a 26s ease-in-out infinite alternate; }
.orb-b { width: 50vmax; height: 50vmax; right: -18vmax; top: -10vmax; background: radial-gradient(circle, rgba(var(--a2-rgb), 0.55), transparent 60%); animation: drift-b 32s ease-in-out infinite alternate; }
.orb-c { width: 40vmax; height: 40vmax; left: 30vw; top: 45vh; background: radial-gradient(circle, rgba(var(--a3-rgb), 0.3), transparent 60%); animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, 16vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-18vw, -10vh) scale(1.2); } }
.grain { position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.6em; text-decoration: none; font-weight: 620; white-space: nowrap;
  padding: 0.78em 1.3em; border-radius: 999px; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, border-color 0.3s;
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.ms { fill: currentColor; stroke: none; }
.btn-lg { padding: 0.95em 1.6em; font-size: 1.04rem; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.94rem; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(var(--a1-rgb), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%); transform: translateX(-120%); transition: transform 0.7s var(--ease); z-index: -1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(var(--a1-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 10px 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 14, 24, 0.6);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s;
}
.nav.scrolled .nav-inner { background: rgba(10, 14, 24, 0.85); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 720; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; font-weight: 520; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.menu { display: none; }
@media (max-width: 860px) {
  .nav-cta { margin-left: auto; }
  .js .menu { display: grid; place-content: center; gap: 5px; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
  .menu span { width: 16px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  /* Without JS the links stay hidden on small screens; every section is still reachable by scrolling. */
  .nav-links {
    position: absolute; top: 80px; left: var(--gutter); right: var(--gutter); margin: 0; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 20px; border: 1px solid var(--line); background: rgba(10, 14, 24, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none; visibility: hidden; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
}
@media (max-width: 400px) { .js .nav-cta { display: none; } .menu { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 0.86rem; font-weight: 540; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface); margin-bottom: 24px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(60, 207, 110, 0.2); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(60, 207, 110, 0); } }
.lede { max-width: 54ch; margin: 22px 0 32px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--a-soft); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.hero-stage { position: relative; perspective: 1600px; }
.stage-glow { position: absolute; inset: 10% -10% -10%; border-radius: 50%; filter: blur(60px); opacity: 0.55; z-index: -1;
  background: conic-gradient(from 180deg, rgba(var(--a1-rgb), 0.6), rgba(var(--a2-rgb), 0.5), rgba(var(--a3-rgb), 0.3), rgba(var(--a1-rgb), 0.6)); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.device {
  position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d; transition: transform 0.6s var(--ease);
}
.device::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.03) 100%); }
.device-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--line); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.device-bar i:nth-child(1) { background: #ff5f57; } .device-bar i:nth-child(2) { background: #febc2e; } .device-bar i:nth-child(3) { background: #28c840; }
.device-bar span { margin-left: auto; margin-right: auto; font: 500 0.72rem var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.hero-stage .device { transform: rotateY(-8deg) rotateX(4deg); }
.hero-stage .device[data-tilt].live { transition: transform 0.15s linear; }

/* Floating cards */
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: rgba(12, 18, 32, 0.78); border: 1px solid var(--line-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.86rem; white-space: nowrap; animation: bob 7s ease-in-out infinite;
}
.float-text { display: grid; line-height: 1.25; }
.float-text b { font-weight: 640; } .float-text small { color: var(--muted); font-size: 0.78rem; }
.float-a { left: -6%; bottom: 14%; animation-delay: -1s; }
.float-b { right: -5%; top: 10%; animation-delay: -3.5s; }
.float-c { right: 4%; bottom: -6%; animation-delay: -5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.float-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--grad); }
.float-ico svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.swatch { width: 34px; height: 34px; border-radius: 10px; flex: none; background: #008cff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(60, 207, 110, 0.2); flex: none; }
.count { font-size: 1.5rem; font-weight: 740; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.spark i { width: 5px; border-radius: 3px; background: var(--grad); opacity: 0.9; animation: grow 2.4s var(--ease) infinite alternate; transform-origin: bottom; }
.spark i:nth-child(1) { height: 30%; animation-delay: 0s; } .spark i:nth-child(2) { height: 55%; animation-delay: 0.2s; } .spark i:nth-child(3) { height: 40%; animation-delay: 0.4s; }
.spark i:nth-child(4) { height: 80%; animation-delay: 0.6s; } .spark i:nth-child(5) { height: 60%; animation-delay: 0.8s; } .spark i:nth-child(6) { height: 95%; animation-delay: 1s; } .spark i:nth-child(7) { height: 70%; animation-delay: 1.2s; }
@keyframes grow { to { transform: scaleY(0.55); } }

/* Capture overlay mock-up (FrameBurst hero) */
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(80% 90% at 15% 10%, #1c3d7a 0%, transparent 60%), radial-gradient(70% 80% at 90% 100%, #0b6a8f 0%, transparent 60%), linear-gradient(160deg, #0d1626, #101c33); }
.win { position: absolute; border-radius: 8px; background: rgba(18, 26, 42, 0.92); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7); }
.win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); border-radius: 8px 8px 0 0; }
.win-a { left: 6%; top: 12%; width: 50%; height: 56%; }
.win-b { left: 44%; top: 30%; width: 48%; height: 58%; }
.win i { position: absolute; left: 8%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.win i:nth-of-type(1) { top: 32px; width: 60%; } .win i:nth-of-type(2) { top: 48px; width: 42%; } .win i:nth-of-type(3) { top: 64px; width: 52%; }
.win-b .chart { position: absolute; left: 8%; right: 8%; bottom: 12%; height: 40%; display: flex; align-items: flex-end; gap: 6%; }
.win-b .chart b { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--a2), var(--a1)); opacity: 0.85; height: 40%; }
.win-b .chart b:nth-child(2) { height: 70%; } .win-b .chart b:nth-child(3) { height: 55%; } .win-b .chart b:nth-child(4) { height: 90%; } .win-b .chart b:nth-child(5) { height: 65%; }
.sel { position: absolute; left: 40%; top: 26%; width: 46%; height: 54%; border: 1.5px solid var(--a2); box-shadow: 0 0 0 999px rgba(3, 6, 12, 0.58), 0 0 24px rgba(var(--a2-rgb), 0.35); }
.sel::before, .sel::after { content: ""; position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--a2); border-radius: 2px; }
.sel::before { left: -5px; top: -5px; } .sel::after { right: -5px; bottom: -5px; }
.sel-size { position: absolute; left: 0; top: -26px; font: 600 0.68rem var(--mono); color: #fff; padding: 3px 7px; border-radius: 6px; background: var(--a1); }
.toolbar { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); display: flex; gap: 3px; padding: 4px; border-radius: 10px;
  background: rgba(14, 20, 34, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8); }
.toolbar span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 700 0.62rem var(--mono); color: var(--muted); }
.toolbar span.on { background: var(--grad); color: #fff; }
.toolbar em { width: 12px; height: 12px; margin: 5px 2px; border-radius: 50%; background: #ff4d5e; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.loupe { position: absolute; left: 30%; top: 62%; width: 70px; height: 70px; border-radius: 50%; overflow: hidden;
  border: 2px solid #fff; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.8);
  background: repeating-conic-gradient(#14335f 0 25%, #1a4a8a 0 50%) 0 0 / 14px 14px; }
.loupe::before, .loupe::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.85); }
.loupe::before { left: 50%; top: 20%; bottom: 20%; width: 1px; } .loupe::after { top: 50%; left: 20%; right: 20%; height: 1px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .cta { justify-content: center; } .trust { justify-content: center; }
  .hero-stage .device { transform: none; }
  .stage-glow { inset: 10% 0 -10%; }
  .float-a { left: 2%; } .float-b { right: 2%; } .float-c { right: 6%; }
}
@media (max-width: 560px) {
  .float { padding: 10px 12px; font-size: 0.8rem; }
  .float-b { display: none; }
  .float-a { bottom: -8%; }
  .float-c { right: 2%; bottom: auto; top: -8%; }
  .loupe { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 14px 0; border-block: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 36s linear infinite; font-size: 0.92rem; font-weight: 540; color: var(--muted); letter-spacing: 0.01em; }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.head p { color: var(--muted); font-size: 1.1rem; margin: 18px auto 0; max-width: 60ch; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 26px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.tile::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--a1-rgb), 0.2), transparent 40%); }
.tile:hover { transform: translateY(-4px); border-color: rgba(var(--a2-rgb), 0.4); box-shadow: 0 30px 60px -30px rgba(var(--a1-rgb), 0.55); }
.tile:hover::before { opacity: 1; }
.tile h3 { position: relative; }
.tile p { position: relative; margin: 0; color: var(--muted); font-size: 0.96rem; }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile-glass { background: linear-gradient(135deg, rgba(var(--a1-rgb), 0.2), rgba(var(--a2-rgb), 0.1)); border-color: rgba(var(--a2-rgb), 0.3); }
.ico { width: 44px; height: 44px; margin-bottom: auto; border-radius: 12px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(var(--a1-rgb), 0.85); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-art { margin: -26px -26px 18px; padding: 26px; flex: 1; display: grid; align-content: center; gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent); border-bottom: 1px solid var(--line); }
.big-num { font: 760 clamp(2.6rem, 5vw, 3.6rem)/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big-num small { font-size: 0.42em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.mono-note { font: 500 0.78rem var(--mono); color: var(--muted); }
/* All-colours gradient strip (pixel-exact tile) */
.spectrum { height: 54px; border-radius: 10px; border: 1px solid var(--line);
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00), linear-gradient(0deg, #000, transparent); background-blend-mode: multiply; }
.timeline { display: flex; align-items: center; gap: 8px; }
.timeline span { flex: none; font: 600 0.72rem var(--mono); color: var(--muted); }
.timeline b { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; position: relative; }
.timeline b::after { content: ""; position: absolute; inset: 0; width: var(--w, 50%); border-radius: inherit; background: var(--grad); }
.kbd-list { display: grid; gap: 8px; }
.kbd-list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: transform 0.6s var(--ease); font-size: 0.86rem; }
.tile:hover .mini-row:nth-child(1) { transform: translateX(6px); } .tile:hover .mini-row:nth-child(3) { transform: translateX(10px); }
.mini-row .t { margin-left: auto; font: 600 0.78rem var(--mono); color: var(--muted); }
.mini-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.mini-row .sq { width: 26px; height: 26px; border-radius: 7px; flex: none; background: var(--grad); opacity: 0.85; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--a2), var(--a1)); opacity: 0.85; transition: transform 0.5s var(--ease); transform-origin: bottom; }
.tile:hover .bars i:nth-child(odd) { transform: scaleY(1.08); }
.bars i { height: 30%; } .bars i:nth-child(2) { height: 55%; } .bars i:nth-child(3) { height: 20%; } .bars i:nth-child(4) { height: 70%; } .bars i:nth-child(5) { height: 45%; }
.bars i:nth-child(6) { height: 85%; } .bars i:nth-child(7) { height: 35%; } .bars i:nth-child(8) { height: 100%; } .bars i:nth-child(9) { height: 60%; } .bars i:nth-child(10) { height: 25%; }
.chips + .pipeline { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-tall { grid-row: span 1; } .tile-fill { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .tile-wide, .tile-fill { grid-column: span 1; } .tile { min-height: 200px; } }

/* ---------- Pipeline (how it works) ---------- */
.pipeline { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: p; }
.pipeline li { position: relative; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); }
.pipeline li::before { counter-increment: p; content: "0" counter(p); display: block; font: 600 0.78rem var(--mono); color: var(--a-soft); letter-spacing: 0.1em; margin-bottom: 10px; }
.pipeline h3 { margin-bottom: 8px; }
.pipeline p { margin: 0; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 820px) { .pipeline { grid-template-columns: 1fr; } }

/* ---------- Hotkeys ---------- */
.keys { margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.keys div { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.keys dt { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--muted); font-size: 0.85rem; }
.keys dd { margin: 0; font-weight: 560; }

/* ---------- Chips (launcher list) ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 560; font-size: 0.94rem; }
.chips li.more { color: var(--muted); border-style: dashed; }

/* ---------- Tour ---------- */
.tour { position: relative; }
.tour::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, rgba(var(--a1-rgb), 0.07) 50%, transparent); }
.tour-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-tabs { display: grid; gap: 6px; position: sticky; top: 100px; }
.tour-tabs a {
  display: grid; gap: 2px; text-align: left; padding: 12px 16px; border-radius: 14px; cursor: pointer; color: var(--muted); text-decoration: none;
  background: transparent; border: 1px solid transparent; transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.tour-tabs b { font-weight: 640; color: var(--text); font-size: 0.98rem; }
.tour-tabs span { font-size: 0.82rem; }
.tour-tabs a:hover { background: var(--surface); border-color: var(--line); }
.tour-tabs a[aria-selected="true"] { background: linear-gradient(135deg, rgba(var(--a1-rgb), 0.24), rgba(var(--a2-rgb), 0.12)); border-color: rgba(var(--a2-rgb), 0.4); transform: translateX(4px); }
.tour-device img.swap { animation: swap 0.5s var(--ease); }
.tour-narrow { max-width: 640px; width: 100%; justify-self: center; }
@keyframes swap { from { opacity: 0; transform: scale(0.985) translateY(6px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; }
  .tour-tabs { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; order: 2; }
  .tour-tabs a { padding: 10px 12px; }
  .tour-tabs span { display: none; }
}

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.privacy-copy p { color: var(--muted); font-size: 1.1rem; margin-top: 18px; max-width: 50ch; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 540; }
.checks span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); flex: none; }
.checks svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.privacy-cards { display: grid; gap: 14px; }
.glass {
  padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); transition: transform 0.5s var(--ease), border-color 0.4s;
}
.glass:hover { transform: translateX(6px); border-color: rgba(var(--a2-rgb), 0.35); }
.glass h3 { margin: 12px 0 8px; }
.glass p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.glass b { color: var(--text); font-weight: 600; }
.shield { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(var(--a2-rgb), 0.12); border: 1px solid rgba(var(--a2-rgb), 0.3); }
.shield svg { width: 20px; height: 20px; fill: none; stroke: var(--a-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .privacy { grid-template-columns: 1fr; } }

/* ---------- Install ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); }
.steps li::after { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 2px; border-radius: 2px; background: var(--grad); opacity: 0.8; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 720; margin-bottom: 18px; box-shadow: 0 8px 20px -8px rgba(var(--a1-rgb), 0.85); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.note { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid rgba(251, 191, 36, 0.3); background: linear-gradient(180deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.03)); }
.note svg { flex: none; width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: #fbbf24; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note p { margin: 0; color: var(--muted); } .note b { color: var(--text); font-weight: 620; }
.note-info { border-color: rgba(var(--a2-rgb), 0.3); background: linear-gradient(180deg, rgba(var(--a2-rgb), 0.08), rgba(var(--a2-rgb), 0.02)); }
.note-info svg { stroke: var(--a-soft); }
.req { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Final ---------- */
.final { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.final-card {
  position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); text-align: center; overflow: hidden; isolation: isolate;
  border-radius: 28px; border: 1px solid rgba(var(--a2-rgb), 0.35);
  background: linear-gradient(160deg, rgba(var(--a1-rgb), 0.24), rgba(8, 11, 18, 0.6) 50%, rgba(var(--a2-rgb), 0.16)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.final-glow { position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; opacity: 0.45; filter: blur(60px);
  background: conic-gradient(from 90deg, rgba(var(--a1-rgb), 0.5), rgba(var(--a2-rgb), 0.4), rgba(var(--a3-rgb), 0.3), rgba(var(--a1-rgb), 0.5)); animation: spin 24s linear infinite; }
.final-card img { margin: 0 auto 22px; border-radius: 18px; filter: drop-shadow(0 16px 30px rgba(var(--a1-rgb), 0.5)); }
.final-card p { color: var(--muted); font-size: 1.1rem; margin: 14px 0 30px; }
.final-card .cta { justify-content: center; }

/* ---------- Footer ---------- */
.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); background: rgba(4, 6, 11, 0.6); }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 36px; align-items: center; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.meta div { display: grid; gap: 2px; }
.meta dt { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.meta dd { margin: 0; font-weight: 620; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.foot-links a:hover { color: var(--text); }
.disclaimer { grid-column: 1 / -1; margin: 0; font-size: 0.84rem; color: var(--muted); }
.disclaimer a { color: var(--text); text-underline-offset: 3px; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; } .js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; } .js .reveal[data-delay="4"] { transition-delay: 0.4s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound img { margin: 0 auto 20px; border-radius: 16px; }
.notfound p { color: var(--muted); margin: 12px 0 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-stage .device { transform: none; }
}
