/* ==========================================================================
   shuffle-on.com — shared design system (2026-10 refresh)
   Dark by default; light via prefers-color-scheme or [data-theme="light"].
   Display: Fraunces (Google Fonts, with Georgia fallback). Text: system sans.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #07080c;
  --bg-2: #0b0d13;
  --surface: #10131b;
  --surface-2: #151926;
  --surface-3: #1b2030;
  --line: rgba(148, 163, 205, 0.12);
  --line-strong: rgba(148, 163, 205, 0.22);
  /* text */
  --text: #e8eaf2;
  --text-2: #b4b9cc;
  --muted: #8a90a8;
  --faint: #767c95;
  /* brand */
  --cyan: #22d3ee;
  --emerald: #34d399;
  --pink: #f472b6;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --red: #f87171;
  --accent: var(--cyan);
  --accent-ink: #04141a;
  --grad: linear-gradient(100deg, #22d3ee 0%, #34d399 45%, #f472b6 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(52, 211, 153, 0.08) 45%, rgba(244, 114, 182, 0.12));
  /* glows */
  --glow-cyan: rgba(34, 211, 238, 0.18);
  --glow-pink: rgba(244, 114, 182, 0.14);
  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  --fs-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  --fs-hero: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
  /* space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --maxw: 1200px;
  --maxw-text: 46rem;
  /* shape */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --nav-h: 64px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f6f2;
    --bg-2: #f1f0ea;
    --surface: #ffffff;
    --surface-2: #f6f6f9;
    --surface-3: #eceef4;
    --line: rgba(30, 36, 60, 0.10);
    --line-strong: rgba(30, 36, 60, 0.18);
    --text: #12141c;
    --text-2: #3a3f52;
    --muted: #5d6378;
    --faint: #6b7185;
    --cyan: #0e7490;
    --emerald: #047857;
    --pink: #be185d;
    --violet: #6d28d9;
    --amber: #b45309;
    --red: #b91c1c;
    --accent-ink: #ffffff;
    --grad: linear-gradient(100deg, #0e7490 0%, #047857 45%, #be185d 100%);
    --grad-soft: linear-gradient(135deg, rgba(14, 116, 144, 0.08), rgba(4, 120, 87, 0.05) 45%, rgba(190, 24, 93, 0.07));
    --glow-cyan: rgba(14, 116, 144, 0.10);
    --glow-pink: rgba(190, 24, 93, 0.08);
    --shadow-1: 0 1px 2px rgba(20, 24, 40, 0.06), 0 8px 24px -16px rgba(20, 24, 40, 0.18);
    --shadow-2: 0 2px 4px rgba(20, 24, 40, 0.06), 0 24px 48px -28px rgba(20, 24, 40, 0.28);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6f2; --bg-2: #f1f0ea; --surface: #ffffff; --surface-2: #f6f6f9; --surface-3: #eceef4;
  --line: rgba(30, 36, 60, 0.10); --line-strong: rgba(30, 36, 60, 0.18);
  --text: #12141c; --text-2: #3a3f52; --muted: #5d6378; --faint: #6b7185;
  --cyan: #0e7490; --emerald: #047857; --pink: #be185d; --violet: #6d28d9; --amber: #b45309; --red: #b91c1c;
  --accent-ink: #ffffff;
  --grad: linear-gradient(100deg, #0e7490 0%, #047857 45%, #be185d 100%);
  --grad-soft: linear-gradient(135deg, rgba(14, 116, 144, 0.08), rgba(4, 120, 87, 0.05) 45%, rgba(190, 24, 93, 0.07));
  --glow-cyan: rgba(14, 116, 144, 0.10); --glow-pink: rgba(190, 24, 93, 0.08);
  --shadow-1: 0 1px 2px rgba(20, 24, 40, 0.06), 0 8px 24px -16px rgba(20, 24, 40, 0.18);
  --shadow-2: 0 2px 4px rgba(20, 24, 40, 0.06), 0 24px 48px -28px rgba(20, 24, 40, 0.28);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint grain + top glow on every page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 12% -10%, var(--glow-cyan), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, var(--glow-pink), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--emerald); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(34, 211, 238, 0.28); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-display); font-optical-sizing: auto; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-weight: 650; }
p { margin: 0 0 var(--s-4); }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-text { max-width: var(--maxw-text); }
.section { padding-block: var(--s-9); position: relative; }
.section.tight { padding-block: var(--s-8); }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: var(--s-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 6fr; } .split.rev { grid-template-columns: 6fr 5fr; } }
.split > *, .grid > *, .flow > *, .stats > * { min-width: 0; }
.stack > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-md); color: var(--text-2); max-width: 44rem; }
.center .lead { margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Top navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #05070b; font: 800 13px/1 var(--font-mono); box-shadow: 0 6px 18px -6px var(--glow-cyan); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--r-pill); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 550; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nav-links .nav-agent { font-family: var(--font-mono); font-size: 0.8rem; }
.nav-toggle { display: none; margin-left: auto; background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; font: 600 var(--fs-sm) var(--font-sans); cursor: pointer; }
.nav-toggle-bars { display: inline-block; width: 16px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 8px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-3) var(--gutter) var(--s-5); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .nav-links a { padding: 12px 14px; font-size: var(--fs-base); border-radius: 10px; }
  .site-nav[data-open="true"] .nav-links { display: flex; }
}

/* ---------- Grouped navigation (Security / Writing dropdowns) ---------- */
.nav-group { position: relative; }
.nav-group-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font: 550 var(--fs-sm) var(--font-sans); cursor: pointer; }
.nav-group-btn:hover, .nav-group[data-open="true"] .nav-group-btn { color: var(--text); background: var(--surface-2); }
.nav-group[data-active="true"] .nav-group-btn { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nav-caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.nav-group[data-open="true"] .nav-caret { transform: translateY(1px) rotate(-135deg); }
.nav-sub { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 300px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-2); z-index: 60; }
.nav-sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* hover bridge */
.nav-group[data-open="true"] .nav-sub { display: block; }
@media (hover: hover) and (min-width: 981px) { .nav-group:hover .nav-sub { display: block; } }
.nav-sub a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.nav-sub a strong { color: var(--text); font-size: var(--fs-sm); font-weight: 650; }
.nav-sub a small { color: var(--muted); font-size: 0.78rem; font-weight: 450; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--surface-2); box-shadow: none; }
.nav-sub a[aria-current="page"] strong::after { content: " ·  you are here"; color: var(--cyan); font-weight: 500; font-size: 0.75rem; }
.nav-links .nav-cta { margin-left: 6px; background: var(--text); color: var(--bg); font-weight: 650; }
.nav-links .nav-cta:hover { background: var(--cyan); color: #05070b; }
@media (max-width: 980px) {
  .site-nav[data-open="true"] .nav-links { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav-group-btn { width: 100%; justify-content: space-between; padding: 14px 14px 6px; border-radius: 10px; font: 700 0.72rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; background: none !important; box-shadow: none !important; }
  .nav-caret { display: none; }
  .nav-sub { display: block; position: static; transform: none; min-width: 0; padding: 0 0 6px; background: none; border: 0; box-shadow: none; }
  .nav-sub::before { display: none; }
  .nav-sub a { padding: 10px 14px; }
  .nav-links .nav-cta { margin: 10px 0 0; text-align: center; }
}
@media (min-width: 981px) and (max-width: 1120px) { .nav-links a, .nav-group-btn { padding-inline: 9px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-7); margin-top: var(--s-8); background: var(--bg-2); font-size: var(--fs-sm); color: var(--muted); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-grid h4 { font: 700 var(--fs-xs)/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--s-4); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { max-width: 22rem; }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; color: var(--faint); font-size: var(--fs-xs); }

/* ---------- Eyebrows, section headers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--fs-xs)/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: var(--s-4); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.emerald { color: var(--emerald); } .eyebrow.pink { color: var(--pink); } .eyebrow.violet { color: var(--violet); } .eyebrow.amber { color: var(--amber); }
.section-head { margin-bottom: var(--s-7); max-width: 52rem; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-bottom: var(--s-4); }
.split h2 { margin-bottom: var(--s-5); }
.stats.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .stats.stats-3 { grid-template-columns: 1fr; } }
.section-head h2 em { font-style: italic; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(4rem, 3rem + 6vw, 8.5rem) var(--s-8); position: relative; overflow: hidden; }
.hero h1 { font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; max-width: 15ch; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); margin-top: var(--s-5); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero .eyebrow { display: flex; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--s-6); text-decoration: none; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px color-mix(in srgb, var(--emerald) 22%, transparent); }
.hero-badge b { color: var(--text); font-weight: 650; }
.hero-art { position: absolute; right: 1%; top: 7%; width: min(40vw, 560px); opacity: 0.9; pointer-events: none; }
@media (max-width: 960px) { .hero-art { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-pill); font: 650 var(--fs-sm)/1 var(--font-sans); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { color: var(--bg); background: color-mix(in srgb, var(--text) 86%, var(--cyan)); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 80%, transparent); overflow: hidden; margin-top: var(--s-8); box-shadow: var(--shadow-1); }
.stat { position: relative; padding: var(--s-5) var(--s-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.stat-value { font: 600 clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem)/1.05 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: block; }
.stat-label { display: block; margin-top: 8px; font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-note { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--faint); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); margin-right: 6px; vertical-align: middle; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-caption { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--faint); }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-1); }
.card h3 { margin-bottom: var(--s-3); }
.card p:last-child { margin-bottom: 0; }
.card .card-kicker { font: 700 var(--fs-xs)/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-4); display: block; }
.card-glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.55; pointer-events: none; }
.card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-strong); margin-bottom: var(--s-4); color: var(--cyan); }
.card-icon svg { width: 22px; height: 22px; }
.card-num { font: 600 var(--fs-xl)/1 var(--font-display); letter-spacing: -0.02em; margin: var(--s-2) 0 var(--s-3); display: block; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--text-2); }
.card li + li { margin-top: 6px; }
.feature { display: flex; gap: var(--s-4); align-items: flex-start; }
.feature .card-icon { flex: none; margin: 0; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font: 650 var(--fs-xs)/1.6 var(--font-mono); letter-spacing: 0.04em; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface-2); }
.badge.cyan { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 40%, transparent); background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.badge.emerald { color: var(--emerald); border-color: color-mix(in srgb, var(--emerald) 40%, transparent); background: color-mix(in srgb, var(--emerald) 10%, transparent); }
.badge.pink { color: var(--pink); border-color: color-mix(in srgb, var(--pink) 40%, transparent); background: color-mix(in srgb, var(--pink) 10%, transparent); }
.badge.amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.badge.violet { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 40%, transparent); background: color-mix(in srgb, var(--violet) 10%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Pipeline / flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); counter-reset: step; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); }
.flow li { display: flex; flex-direction: column; position: relative; padding: var(--s-5) var(--s-4) var(--s-5) var(--s-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; counter-increment: step; }
.flow li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 var(--fs-xs)/1 var(--font-mono); color: var(--faint); letter-spacing: 0.1em; margin-bottom: var(--s-3); }
.flow li::after { content: ""; position: absolute; left: var(--s-5); right: var(--s-4); top: 0; height: 2px; background: var(--grad); opacity: 0.0; }
.flow li:hover::after { opacity: 0.8; }
.flow strong { display: block; font-size: var(--fs-base); margin-bottom: 4px; }
.flow span { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.flow .flow-num { display: block; margin-top: auto; padding-top: var(--s-4); font: 600 var(--fs-sm)/1.3 var(--font-mono); color: var(--cyan); letter-spacing: -0.01em; }
.flow .flow-num span { display: inline; font: inherit; color: inherit; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--s-5); border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 var(--s-6) var(--s-5); }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) - 5px); top: 0.45em; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.timeline time { display: block; font: 700 var(--fs-xs)/1 var(--font-mono); letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 6px; text-transform: uppercase; }
.timeline strong { display: block; margin-bottom: 4px; }
.timeline p { color: var(--text-2); margin: 0; font-size: var(--fs-sm); }

/* ---------- Callout ---------- */
.callout { border: 1px solid var(--line-strong); border-left: 3px solid var(--cyan); background: var(--grad-soft); border-radius: var(--r-md); padding: var(--s-5) var(--s-6); color: var(--text-2); }
.callout strong { color: var(--text); }
.callout.emerald { border-left-color: var(--emerald); } .callout.pink { border-left-color: var(--pink); } .callout.amber { border-left-color: var(--amber); }
.pull { font: 400 italic clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem)/1.3 var(--font-display); color: var(--text); max-width: 34ch; margin: 0; }
.pull cite { display: block; margin-top: var(--s-4); font: 600 var(--fs-sm) var(--font-sans); color: var(--muted); font-style: normal; }

/* ---------- Terminal / code ---------- */
.terminal { background: #090b11; border: 1px solid rgba(148, 163, 205, 0.16); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-2); color: #d7dbe8; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid rgba(148, 163, 205, 0.12); background: #0e1119; font: 600 var(--fs-xs) var(--font-mono); color: #7d84a0; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f40; display: inline-block; }
.terminal-bar i:nth-child(1) { background: #f87171; opacity: .75; } .terminal-bar i:nth-child(2) { background: #fbbf24; opacity: .75; } .terminal-bar i:nth-child(3) { background: #34d399; opacity: .75; }
.terminal-bar span { margin-left: 8px; }
.terminal pre { margin: 0; padding: var(--s-5); overflow-x: auto; font-size: 0.82rem; line-height: 1.7; white-space: pre; }
.terminal .c { color: #6b7290; } .terminal .k { color: #22d3ee; } .terminal .s { color: #34d399; } .terminal .p { color: #f472b6; } .terminal .y { color: #fbbf24; } .terminal .w { color: #ffffff; font-weight: 600; }
.chat { display: grid; gap: var(--s-3); }
.bubble { border-radius: 16px; padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); line-height: 1.6; max-width: 92%; }
.bubble.user { justify-self: end; background: var(--surface-3); border: 1px solid var(--line-strong); border-bottom-right-radius: 4px; }
.bubble.ai { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble .tool { display: inline-block; font: 600 var(--fs-xs)/1.5 var(--font-mono); color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent); border-radius: 6px; padding: 1px 7px; margin: 0 4px 6px 0; }
.bubble small { display: block; margin-top: 8px; color: var(--muted); font-size: var(--fs-xs); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.data th, table.data td { padding: 11px 12px; white-space: nowrap; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font: 700 var(--fs-xs)/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
table.data .ok { color: var(--emerald); font-weight: 650; }

/* ---------- Bar meter ---------- */
.meter { display: grid; gap: 10px; }
.meter-row { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; gap: var(--s-3); align-items: center; font-size: var(--fs-sm); }
.meter-track { display: block; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.meter-row .v { font-family: var(--font-mono); color: var(--text-2); font-size: var(--fs-xs); }
@media (max-width: 520px) { .meter-row { grid-template-columns: 1fr auto; } .meter-track { grid-column: 1 / -1; order: 3; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(2rem, 1.5rem + 3vw, 4rem); border: 1px solid var(--line-strong); background: radial-gradient(700px 300px at 0% 0%, var(--glow-cyan), transparent 70%), radial-gradient(600px 300px at 100% 100%, var(--glow-pink), transparent 70%), var(--surface); box-shadow: var(--shadow-2); }
.cta h2 { max-width: 20ch; margin-bottom: var(--s-4); }
.cta .lead { margin-bottom: var(--s-6); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
  .btn, .btn .arrow { transition: none; }
}
@media print {
  .site-nav, .site-footer, .hero-art { display: none; }
  body::before, body::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* snapshot marker added by site-stats.js for hand-maintained values */
.snap-badge { display: none; }
.stat .snap-badge { display: inline; font-size: .7rem !important; opacity: .55 !important; position: absolute; top: 10px; right: 12px; margin: 0 !important; }
