/* Maaind website - design system */

/* OBSIDIAN (default) - near-black, emerald accent. Biotech / scientific. */
:root,
[data-theme="obsidian"] {
  --bg: #0a0c0b;
  --bg-1: #0f1211;
  --bg-2: #14181a;
  --bg-3: #1a1f22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f4f1ea;
  --fg-1: #f4f1ea;
  --fg-2: rgba(244, 241, 234, 0.72);
  --fg-3: rgba(244, 241, 234, 0.48);
  --fg-4: rgba(244, 241, 234, 0.28);
  --accent: oklch(82% 0.18 165);
  --accent-2: oklch(78% 0.18 178);
  --accent-glow: oklch(82% 0.18 165 / 0.18);
  --accent-ink: #061412;
  --logo-filter: invert(1) brightness(1.6) drop-shadow(0 0 12px var(--accent-glow));
  --warn: oklch(78% 0.16 50);
  --max: 1400px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* CARBON - deep navy + electric cobalt. Automotive / enterprise. */
[data-theme="carbon"] {
  --bg: #04071a;
  --bg-1: #080d24;
  --bg-2: #0c142e;
  --bg-3: #121d3c;
  --line: rgba(160, 180, 255, 0.10);
  --line-2: rgba(160, 180, 255, 0.18);
  --fg: #eef2f8;
  --fg-1: #eef2f8;
  --fg-2: rgba(238, 242, 248, 0.74);
  --fg-3: rgba(238, 242, 248, 0.50);
  --fg-4: rgba(238, 242, 248, 0.30);
  --accent: oklch(72% 0.20 245);
  --accent-2: oklch(80% 0.18 220);
  --accent-glow: oklch(72% 0.20 245 / 0.32);
  --accent-ink: #04071a;
}

/* PLASMA - deep aubergine + magenta. Cutting-edge AI / research. */
[data-theme="plasma"] {
  --bg: #0d0420;
  --bg-1: #150930;
  --bg-2: #1d0e3e;
  --bg-3: #28154c;
  --line: rgba(220, 180, 255, 0.10);
  --line-2: rgba(220, 180, 255, 0.18);
  --fg: #f6eefa;
  --fg-1: #f6eefa;
  --fg-2: rgba(246, 238, 250, 0.74);
  --fg-3: rgba(246, 238, 250, 0.50);
  --fg-4: rgba(246, 238, 250, 0.30);
  --accent: oklch(76% 0.22 320);
  --accent-2: oklch(72% 0.22 290);
  --accent-glow: oklch(76% 0.22 320 / 0.32);
  --accent-ink: #200a35;
}

/* GRAPHITE - warm coffee + amber. Defence / industrial / safety. */
[data-theme="graphite"] {
  --bg: #120c06;
  --bg-1: #1a1209;
  --bg-2: #21180e;
  --bg-3: #2c2014;
  --line: rgba(255, 220, 170, 0.09);
  --line-2: rgba(255, 220, 170, 0.17);
  --fg: #f8efdf;
  --fg-1: #f8efdf;
  --fg-2: rgba(248, 239, 223, 0.74);
  --fg-3: rgba(248, 239, 223, 0.50);
  --fg-4: rgba(248, 239, 223, 0.30);
  --accent: oklch(80% 0.17 70);
  --accent-2: oklch(76% 0.18 50);
  --accent-glow: oklch(80% 0.17 70 / 0.30);
  --accent-ink: #1a1208;
}

/* LINEN - warm cream + sage. Soft, organic, human. */
[data-theme="linen"] {
  --bg: #f1ece0;
  --bg-1: #ebe5d4;
  --bg-2: #e4dcc6;
  --bg-3: #d8cfb4;
  --line: rgba(40, 32, 20, 0.10);
  --line-2: rgba(40, 32, 20, 0.18);
  --fg: #221c12;
  --fg-1: #221c12;
  --fg-2: rgba(34, 28, 18, 0.72);
  --fg-3: rgba(34, 28, 18, 0.50);
  --fg-4: rgba(34, 28, 18, 0.28);
  --accent: oklch(48% 0.10 150);
  --accent-2: oklch(42% 0.11 145);
  --accent-glow: oklch(48% 0.10 150 / 0.20);
  --accent-ink: #f1ece0;
  --logo-filter: none;
}

/* CLAY - warm dark cinnamon + terracotta. Earthy, human, less surveillance. */
[data-theme="clay"] {
  --bg: #1a120c;
  --bg-1: #221810;
  --bg-2: #2c2014;
  --bg-3: #38291a;
  --line: rgba(255, 200, 160, 0.10);
  --line-2: rgba(255, 200, 160, 0.18);
  --fg: #f4e6d4;
  --fg-1: #f4e6d4;
  --fg-2: rgba(244, 230, 212, 0.74);
  --fg-3: rgba(244, 230, 212, 0.50);
  --fg-4: rgba(244, 230, 212, 0.28);
  --accent: oklch(75% 0.14 40);
  --accent-2: oklch(70% 0.16 28);
  --accent-glow: oklch(75% 0.14 40 / 0.28);
  --accent-ink: #1a120c;
}

/* DUSK - warm plum/wine + soft peach. Calm, sophisticated, human. */
[data-theme="dusk"] {
  --bg: #1a1018;
  --bg-1: #211520;
  --bg-2: #2b1c2a;
  --bg-3: #38253a;
  --line: rgba(255, 215, 200, 0.10);
  --line-2: rgba(255, 215, 200, 0.18);
  --fg: #f6ebe6;
  --fg-1: #f6ebe6;
  --fg-2: rgba(246, 235, 230, 0.74);
  --fg-3: rgba(246, 235, 230, 0.50);
  --fg-4: rgba(246, 235, 230, 0.28);
  --accent: oklch(82% 0.12 55);
  --accent-2: oklch(76% 0.14 38);
  --accent-glow: oklch(82% 0.12 55 / 0.26);
  --accent-ink: #1a1018;
}

/* ATRIUM - bright off-white + maaind teal. Closest to www.maaind.com brand. */
[data-theme="atrium"] {
  --bg: #fafaf5;
  --bg-1: #f3f2ea;
  --bg-2: #ecebe0;
  --bg-3: #ddddca;
  --line: rgba(20, 28, 25, 0.10);
  --line-2: rgba(20, 28, 25, 0.18);
  --fg: #161c1a;
  --fg-1: #161c1a;
  --fg-2: rgba(22, 28, 26, 0.72);
  --fg-3: rgba(22, 28, 26, 0.50);
  --fg-4: rgba(22, 28, 26, 0.28);
  --accent: oklch(56% 0.12 178);
  --accent-2: oklch(50% 0.13 170);
  --accent-glow: oklch(56% 0.12 178 / 0.22);
  --accent-ink: #fafaf5;
  --logo-filter: none;
}

/* SAGE - warm putty + deep moss. Calm, editorial, organic. */
[data-theme="sage"] {
  --bg: #ece8dc;
  --bg-1: #e3decf;
  --bg-2: #d9d3be;
  --bg-3: #cac3ac;
  --line: rgba(30, 35, 20, 0.10);
  --line-2: rgba(30, 35, 20, 0.18);
  --fg: #1c2014;
  --fg-1: #1c2014;
  --fg-2: rgba(28, 32, 20, 0.72);
  --fg-3: rgba(28, 32, 20, 0.50);
  --fg-4: rgba(28, 32, 20, 0.28);
  --accent: oklch(42% 0.10 145);
  --accent-2: oklch(38% 0.11 155);
  --accent-glow: oklch(42% 0.10 145 / 0.20);
  --accent-ink: #ece8dc;
  --logo-filter: none;
}

/* BLOOM - warm blush/peach + clay rose. Soft, human, gentle. */
[data-theme="bloom"] {
  --bg: #f5ebe0;
  --bg-1: #efe3d2;
  --bg-2: #e8d8c2;
  --bg-3: #dac6ab;
  --line: rgba(50, 25, 15, 0.10);
  --line-2: rgba(50, 25, 15, 0.18);
  --fg: #281611;
  --fg-1: #281611;
  --fg-2: rgba(40, 22, 17, 0.72);
  --fg-3: rgba(40, 22, 17, 0.50);
  --fg-4: rgba(40, 22, 17, 0.28);
  --accent: oklch(52% 0.13 28);
  --accent-2: oklch(48% 0.14 20);
  --accent-glow: oklch(52% 0.13 28 / 0.20);
  --accent-ink: #f5ebe0;
  --logo-filter: none;
}

/* MIST - cool linen-grey + maaind teal. Brand-aligned, airy. */
[data-theme="mist"] {
  --bg: #eef0ec;
  --bg-1: #e5e8e2;
  --bg-2: #dce0d6;
  --bg-3: #ced3c5;
  --line: rgba(20, 30, 25, 0.10);
  --line-2: rgba(20, 30, 25, 0.18);
  --fg: #161c1a;
  --fg-1: #161c1a;
  --fg-2: rgba(22, 28, 26, 0.72);
  --fg-3: rgba(22, 28, 26, 0.50);
  --fg-4: rgba(22, 28, 26, 0.28);
  --accent: oklch(54% 0.13 175);
  --accent-2: oklch(48% 0.14 168);
  --accent-glow: oklch(54% 0.13 175 / 0.22);
  --accent-ink: #eef0ec;
  --logo-filter: none;
}

/* PARCHMENT - warm cream + deep ink + terracotta. Editorial / clinical. */
[data-theme="parchment"] {
  --bg: #f5f1e8;
  --bg-1: #efeadd;
  --bg-2: #e8e2d2;
  --bg-3: #ddd6c3;
  --line: rgba(20, 16, 10, 0.10);
  --line-2: rgba(20, 16, 10, 0.18);
  --fg: #1a160f;
  --fg-1: #1a160f;
  --fg-2: rgba(26, 22, 15, 0.72);
  --fg-3: rgba(26, 22, 15, 0.50);
  --fg-4: rgba(26, 22, 15, 0.28);
  --accent: oklch(50% 0.16 30);
  --accent-2: oklch(44% 0.14 18);
  --accent-glow: oklch(50% 0.16 30 / 0.22);
  --accent-ink: #f5f1e8;
  --logo-filter: none;
}

/* HARBOR - deep teal ink + bright maaind teal. Brand, but dark. */
[data-theme="harbor"] {
  --bg: #06130f;
  --bg-1: #0a1a14;
  --bg-2: #0f2319;
  --bg-3: #163024;
  --line: rgba(150, 255, 210, 0.09);
  --line-2: rgba(150, 255, 210, 0.17);
  --fg: #e9f5ee;
  --fg-1: #e9f5ee;
  --fg-2: rgba(233, 245, 238, 0.74);
  --fg-3: rgba(233, 245, 238, 0.50);
  --fg-4: rgba(233, 245, 238, 0.28);
  --accent: oklch(80% 0.13 178);
  --accent-2: oklch(74% 0.14 168);
  --accent-glow: oklch(80% 0.13 178 / 0.30);
  --accent-ink: #06130f;
}

/* SLATE - cool blue-grey + soft sky. Calm, technical. */
[data-theme="slate"] {
  --bg: #0b0f15;
  --bg-1: #10151d;
  --bg-2: #161d27;
  --bg-3: #1f2937;
  --line: rgba(180, 200, 230, 0.10);
  --line-2: rgba(180, 200, 230, 0.18);
  --fg: #eef1f6;
  --fg-1: #eef1f6;
  --fg-2: rgba(238, 241, 246, 0.74);
  --fg-3: rgba(238, 241, 246, 0.50);
  --fg-4: rgba(238, 241, 246, 0.28);
  --accent: oklch(80% 0.10 230);
  --accent-2: oklch(76% 0.12 220);
  --accent-glow: oklch(80% 0.10 230 / 0.28);
  --accent-ink: #0b0f15;
}

/* EMBER - warm charcoal + coral. Energetic, human. */
[data-theme="ember"] {
  --bg: #150d0a;
  --bg-1: #1d130d;
  --bg-2: #271811;
  --bg-3: #342017;
  --line: rgba(255, 190, 160, 0.10);
  --line-2: rgba(255, 190, 160, 0.18);
  --fg: #f6e9e0;
  --fg-1: #f6e9e0;
  --fg-2: rgba(246, 233, 224, 0.74);
  --fg-3: rgba(246, 233, 224, 0.50);
  --fg-4: rgba(246, 233, 224, 0.28);
  --accent: oklch(73% 0.16 38);
  --accent-2: oklch(68% 0.17 28);
  --accent-glow: oklch(73% 0.16 38 / 0.30);
  --accent-ink: #150d0a;
}

/* MIDNIGHT - deep indigo + soft gold. Premium, nocturnal. */
[data-theme="midnight"] {
  --bg: #08081a;
  --bg-1: #0d0d24;
  --bg-2: #141432;
  --bg-3: #1e1e44;
  --line: rgba(200, 200, 255, 0.10);
  --line-2: rgba(200, 200, 255, 0.18);
  --fg: #eeeefa;
  --fg-1: #eeeefa;
  --fg-2: rgba(238, 238, 250, 0.74);
  --fg-3: rgba(238, 238, 250, 0.50);
  --fg-4: rgba(238, 238, 250, 0.28);
  --accent: oklch(83% 0.13 88);
  --accent-2: oklch(78% 0.14 75);
  --accent-glow: oklch(83% 0.13 88 / 0.28);
  --accent-ink: #08081a;
}

/* FJORD - cool grey-blue + deep teal-blue. Crisp, light. */
[data-theme="fjord"] {
  --bg: #eaeef2;
  --bg-1: #e1e7ee;
  --bg-2: #d7dfe8;
  --bg-3: #c6d2de;
  --line: rgba(20, 30, 45, 0.10);
  --line-2: rgba(20, 30, 45, 0.18);
  --fg: #141c26;
  --fg-1: #141c26;
  --fg-2: rgba(20, 28, 38, 0.72);
  --fg-3: rgba(20, 28, 38, 0.50);
  --fg-4: rgba(20, 28, 38, 0.28);
  --accent: oklch(50% 0.12 230);
  --accent-2: oklch(45% 0.13 225);
  --accent-glow: oklch(50% 0.12 230 / 0.20);
  --accent-ink: #eaeef2;
  --logo-filter: none;
}

/* SAND - warm desert tan + bronze. Earthy, light. */
[data-theme="sand"] {
  --bg: #f1e8d8;
  --bg-1: #ebe1cd;
  --bg-2: #e3d7be;
  --bg-3: #d6c6a6;
  --line: rgba(60, 45, 20, 0.10);
  --line-2: rgba(60, 45, 20, 0.18);
  --fg: #271f10;
  --fg-1: #271f10;
  --fg-2: rgba(39, 31, 16, 0.72);
  --fg-3: rgba(39, 31, 16, 0.50);
  --fg-4: rgba(39, 31, 16, 0.28);
  --accent: oklch(50% 0.10 65);
  --accent-2: oklch(45% 0.11 55);
  --accent-glow: oklch(50% 0.10 65 / 0.20);
  --accent-ink: #f1e8d8;
  --logo-filter: none;
}

/* LILAC - soft lavender + violet. Gentle, light. */
[data-theme="lilac"] {
  --bg: #eeebf4;
  --bg-1: #e6e2ef;
  --bg-2: #ddd8e8;
  --bg-3: #cdc5dd;
  --line: rgba(35, 25, 50, 0.10);
  --line-2: rgba(35, 25, 50, 0.18);
  --fg: #1d1726;
  --fg-1: #1d1726;
  --fg-2: rgba(29, 23, 38, 0.72);
  --fg-3: rgba(29, 23, 38, 0.50);
  --fg-4: rgba(29, 23, 38, 0.28);
  --accent: oklch(50% 0.14 300);
  --accent-2: oklch(45% 0.15 295);
  --accent-glow: oklch(50% 0.14 300 / 0.20);
  --accent-ink: #eeebf4;
  --logo-filter: none;
}

/* MEADOW - fresh light + green. Bright, organic. */
[data-theme="meadow"] {
  --bg: #eef2e4;
  --bg-1: #e6ebd9;
  --bg-2: #dde4cc;
  --bg-3: #ccd6b4;
  --line: rgba(30, 40, 15, 0.10);
  --line-2: rgba(30, 40, 15, 0.18);
  --fg: #1a2210;
  --fg-1: #1a2210;
  --fg-2: rgba(26, 34, 16, 0.72);
  --fg-3: rgba(26, 34, 16, 0.50);
  --fg-4: rgba(26, 34, 16, 0.28);
  --accent: oklch(48% 0.13 145);
  --accent-2: oklch(43% 0.14 150);
  --accent-glow: oklch(48% 0.13 145 / 0.20);
  --accent-ink: #eef2e4;
  --logo-filter: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.dim { color: var(--fg-3); }
.dim-2 { color: var(--fg-2); }
.dim2 { color: var(--fg-3); }
.accent-text { color: var(--accent); }
.grad-text {
  background: linear-gradient(120deg, var(--fg) 0%, var(--accent) 50%, var(--fg) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0; transition: background 280ms ease, backdrop-filter 280ms ease, border-color 280ms ease; border-bottom: 1px solid transparent; }
.nav-scrolled { background: rgba(10, 12, 11, 0.7); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-left { display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 26px; width: auto; display: block; filter: var(--logo-filter, invert(1) brightness(1.6) drop-shadow(0 0 12px var(--accent-glow))); transition: filter 220ms ease; }
.logo-img-link:hover .logo-img { filter: var(--logo-filter-hover, invert(1) brightness(1.85) drop-shadow(0 0 18px var(--accent-glow))); }
.logo-img-footer { height: 32px; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--fg-2); }
.nav-links a { transition: color 180ms; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; transition: all 200ms cubic-bezier(.4,.2,.2,1); border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink, #061412); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-2); }
.btn-lg { padding: 14px 22px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; margin-top: 16px; }
.arr { transition: transform 200ms; display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }

/* Theme switcher (dropdown next to logo) */
.theme-switch { position: relative; }
.theme-switch-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border-radius: 99px; background: rgba(127,127,127,0.06); border: 1px solid var(--line); color: var(--fg-2); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all .15s; line-height: 1; }
.theme-switch-btn:hover { background: rgba(127,127,127,0.10); color: var(--fg-1); border-color: var(--line-2); }
.theme-swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.theme-swatch-dual { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); overflow: hidden; flex-shrink: 0; }
.theme-swatch-accent { position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--bg-1); }
.theme-caret { font-size: 8px; opacity: 0.5; margin-top: 1px; }
.theme-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 248px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 10px; padding: 4px; box-shadow: 0 18px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.02) inset; z-index: 120; animation: themePop .14s ease-out; max-height: min(70vh, 560px); overflow-y: auto; }
@keyframes themePop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.theme-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; color: var(--fg-2); font: inherit; font-size: 12.5px; cursor: pointer; border-radius: 6px; text-align: left; transition: background .12s, color .12s; }
.theme-item:hover { background: rgba(127,127,127,0.08); color: var(--fg-1); }
.theme-item.on { background: rgba(127,127,127,0.10); color: var(--fg-1); }
.theme-item .theme-swatch { width: 11px; height: 11px; box-shadow: 0 0 0 1px var(--line-2); }
.theme-item-mono { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-4); }
.theme-item.on .theme-item-mono { color: var(--accent); }

/* LIGHT-THEME shared tweaks (parchment / linen / atrium / sage / bloom / mist).
   Use [data-mode="light"] (set by ThemeSwitch for any light theme) as the hook. */
[data-mode="light"] .nav-scrolled { background: color-mix(in oklab, var(--bg) 78%, transparent); }
[data-mode="light"] .btn-ghost { background: color-mix(in oklab, var(--fg) 4%, transparent); color: var(--fg); border-color: var(--line-2); }
[data-mode="light"] .btn-ghost:hover { background: color-mix(in oklab, var(--fg) 7%, transparent); }
[data-mode="light"] .grad-text { background: linear-gradient(120deg, var(--fg) 0%, var(--accent) 60%, var(--fg) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-mode="light"] .viz-frame, [data-mode="light"] .viz-card { background: var(--bg-1); }
[data-mode="light"] .cv-stage-photo { background: var(--bg-3); }
[data-mode="light"] .viz-head,
[data-mode="light"] .viz-card-h,
[data-mode="light"] .viz-foot,
[data-mode="light"] .dtable-h,
[data-mode="light"] .code-tabs,
[data-mode="light"] .code-foot,
[data-mode="light"] .vp-hud,
[data-mode="light"] .health-chart,
[data-mode="light"] .health-stress,
[data-mode="light"] .health-tile { background: color-mix(in oklab, var(--fg) 4%, transparent); }
[data-mode="light"] .cap-pill,
[data-mode="light"] .chip,
[data-mode="light"] .db-pipe > span,
[data-mode="light"] .db-node,
[data-mode="light"] .sec-badge,
[data-mode="light"] .cv-readout,
[data-mode="light"] .vp-msg,
[data-mode="light"] .brand-pill { background: var(--bg-1); }
[data-mode="light"] .bar-track,
[data-mode="light"] .mini-bar { background: color-mix(in oklab, var(--fg) 8%, transparent); }
[data-mode="light"] .cap-feature,
[data-mode="light"] .benefit-detail-inner,
[data-mode="light"] .cabin-frame,
[data-mode="light"] .voice-panel,
[data-mode="light"] .health-panel { background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); }
[data-mode="light"] .section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%); }
[data-mode="light"] .section-dark { background: var(--bg-1); }
[data-mode="light"] .footer { background: var(--bg-1); }
[data-mode="light"] .stats,
[data-mode="light"] .logo-strip { background: color-mix(in oklab, var(--fg) 3%, transparent); }
[data-mode="light"] .cv-photo,
[data-mode="light"] .occ-face img,
[data-mode="light"] .vp-avatar img,
[data-mode="light"] .health-portrait img { filter: saturate(0.9) contrast(1.05) brightness(0.95); }
[data-mode="light"] .cv-photo-tint { background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 0%, transparent) 0%, color-mix(in oklab, var(--bg) 25%, transparent) 100%), radial-gradient(ellipse at 50% 35%, transparent 30%, color-mix(in oklab, var(--bg) 20%, transparent) 90%); }
[data-mode="light"] .cv-overlay-grid,
[data-mode="light"] .hero-grid-bg,
[data-mode="light"] .cabin-grid,
[data-mode="light"] .voice-grid-bg,
[data-mode="light"] .health-grid-bg,
[data-mode="light"] .cta-grid-bg { background-image: linear-gradient(to right, color-mix(in oklab, var(--fg) 5%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in oklab, var(--fg) 5%, transparent) 1px, transparent 1px); }
[data-mode="light"] .cabin-hud { background: color-mix(in oklab, var(--bg) 70%, transparent); }
[data-mode="light"] .occ-label { background: var(--bg-1); }
[data-mode="light"] .cv-tag { background: color-mix(in oklab, var(--bg) 70%, transparent); }
[data-mode="light"] .sec-badge.empty { background: color-mix(in oklab, var(--fg) 3%, transparent); }
[data-mode="light"] .c-com { color: color-mix(in oklab, var(--fg) 45%, transparent); }
[data-mode="light"] .c-key { color: oklch(40% 0.16 290); }
[data-mode="light"] .c-str { color: oklch(40% 0.14 130); }
[data-mode="light"] .c-num { color: oklch(45% 0.16 50); }
[data-mode="light"] .code-block { color: var(--fg-1); }
[data-mode="light"] .logo-img { filter: none; }
[data-mode="light"] .benefit-card-x { background: var(--bg-1); }
[data-mode="light"] .benefit-card-x.on { background: linear-gradient(180deg, var(--bg-1), var(--bg-2)); }
[data-mode="light"] .usecase-feature { background: var(--bg-2); }
[data-mode="light"] .vp-msg.agent { background: linear-gradient(135deg, color-mix(in oklab, var(--fg) 4%, transparent), var(--accent-glow)); }
[data-mode="light"] .health-portrait::after { background: linear-gradient(180deg, transparent 55%, color-mix(in oklab, var(--bg) 70%, transparent) 100%); }
[data-mode="light"] .occ-face::after { background: linear-gradient(180deg, transparent 45%, color-mix(in oklab, var(--bg) 65%, transparent) 100%); }

/* ---------- HERO ---------- */
.hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 80%);
  pointer-events: none;
}
.hero-spotlight {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,0.02); margin-bottom: 28px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(120, 220, 180, 0.5); } 100% { box-shadow: 0 0 0 12px rgba(120, 220, 180, 0); } }
.hero-title { font-family: 'Inter Tight', sans-serif; font-size: clamp(48px, 7vw, 96px); line-height: 0.96; letter-spacing: -0.04em; font-weight: 500; margin: 0 0 28px; max-width: 1100px; }
.hero-sub { font-size: 19px; line-height: 1.5; color: var(--fg-2); max-width: 620px; margin: 0 0 36px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 80px; }

/* hero viz frame */
.hero-viz { margin: 60px 0 60px; perspective: 1400px; }
.viz-frame {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.viz-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.viz-traffic { display: flex; gap: 6px; }
.viz-traffic span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.viz-traffic span:nth-child(1) { background: oklch(70% 0.16 30); }
.viz-traffic span:nth-child(2) { background: oklch(80% 0.14 90); }
.viz-traffic span:nth-child(3) { background: oklch(78% 0.16 145); }
.viz-path { color: var(--fg-3); flex: 1; }
.viz-live { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.5s infinite; }
.viz-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.viz-col { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.viz-col + .viz-col { border-left: 1px solid var(--line); }
.viz-card { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.viz-card.mini { padding-bottom: 10px; }
.viz-card-h { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.viz-foot { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); background: rgba(0,0,0,0.2); }

/* CV face mock */
.cv-stage { position: relative; height: 220px; background: linear-gradient(180deg, rgba(80,90,95,0.3), rgba(40,50,55,0.4)); overflow: hidden; }
.cv-overlay-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cv-face { position: absolute; inset: 20px; display: grid; place-items: center; }
.cv-face-frame { position: relative; width: 180px; height: 180px; border: 1.5px solid var(--accent); border-radius: 4px; background: radial-gradient(ellipse at center, rgba(180,170,150,0.25), rgba(60,55,50,0.4) 80%); }
.cv-face-frame::before, .cv-face-frame::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); }
.cv-face-frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.cv-face-frame::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.cv-eye { position: absolute; top: 38%; width: 22px; height: 10px; background: rgba(20,20,20,0.6); border-radius: 50%; border: 1px solid var(--accent); }
.cv-eye.left { left: 28%; }
.cv-eye.right { right: 28%; }
.cv-iris { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; transform: translate(-50%, -50%); }
.cv-gaze { position: absolute; top: -16px; left: 50%; width: 1px; height: 14px; background: linear-gradient(to bottom, transparent, var(--accent)); }
.cv-mouth { position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-bottom: 1.5px solid var(--accent); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.cv-tag { position: absolute; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--accent); letter-spacing: 0.05em; padding: 2px 5px; background: rgba(0,0,0,0.5); border-radius: 2px; }
.cv-tag.tl { top: -22px; left: -2px; }
.cv-tag.tr { top: -22px; right: -2px; }
.cv-tag.bl { bottom: -22px; left: -2px; }
.cv-tag.br { bottom: -22px; right: -2px; }

/* CV photo overlay */
.cv-stage-photo { position: relative; height: 260px; background: #0a0c0e; overflow: hidden; }
.cv-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: saturate(0.85) contrast(1.05); }
.cv-photo-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,14,0.15) 0%, rgba(10,12,14,0.5) 100%), radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(10,12,14,0.5) 90%); mix-blend-mode: multiply; }
.cv-photo-frame { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); width: 38%; aspect-ratio: 0.85; }
.cv-photo-bbox { position: absolute; inset: 0; border: 1.5px solid var(--accent); border-radius: 4px; box-shadow: 0 0 0 4px rgba(0,0,0,0.25); }
.cv-photo-bbox::before, .cv-photo-bbox::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--accent); }
.cv-photo-bbox::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.cv-photo-bbox::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.cv-marker { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); transform: translate(-50%, -50%); }
.cv-marker.eye-l { top: 38%; left: 35%; }
.cv-marker.eye-r { top: 38%; left: 65%; }
.cv-marker.nose { top: 55%; left: 50%; }
.cv-marker.mouth-l { top: 72%; left: 40%; }
.cv-marker.mouth-r { top: 72%; left: 60%; }
.cv-readouts { position: absolute; bottom: 10px; left: 10px; right: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cv-readout { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 4px; }
.cv-readout .mono { font-size: 9px; }

.speech-tags { display: flex; gap: 6px; padding: 0 14px 14px; flex-wrap: wrap; }
.chip { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 4px 8px; border-radius: 4px; background: rgba(255,255,255,0.04); color: var(--fg-2); border: 1px solid var(--line); letter-spacing: 0.04em; }
.chip.accent { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }

.bar-row { display: grid; grid-template-columns: 80px 1fr 50px; gap: 10px; align-items: center; }
.bar-label { color: var(--fg-3); font-size: 9px; }
.bar-track { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 2px; }
.bar-val { color: var(--fg); font-size: 9px; text-align: right; }

.hero-logos { margin-top: 60px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.logos-row { display: flex; gap: 8px; flex-wrap: wrap; }
.logo-pill { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; color: var(--fg-3); padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,0.02); transition: all 200ms; }
.logo-pill:hover { color: var(--fg); border-color: var(--line-2); }
.logo-pill.sm { font-size: 10px; padding: 4px 9px; letter-spacing: 0.1em; }

/* ---------- STATS ---------- */
.stats { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 20px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Inter Tight', sans-serif; font-size: 56px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; color: var(--fg); }
.stat-label { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.stat-label .mono { display: block; margin-top: 2px; }

/* ---------- SECTIONS ---------- */
.section { padding: 120px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%); }
.section-dark { background: var(--bg-1); }

.section-header { max-width: 760px; margin: 0 0 64px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow-line { flex: 0 0 32px; height: 1px; background: var(--line-2); }
.section-title { font-family: 'Inter Tight', sans-serif; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; margin: 0 0 20px; }
.section-sub { font-size: 17px; color: var(--fg-2); line-height: 1.5; max-width: 600px; text-wrap: pretty; }

/* ---------- CAPABILITIES ---------- */
.caps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cap-card { grid-column: span 2; padding: 28px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; transition: all 240ms; min-height: 260px; }
.cap-card:hover { border-color: var(--line-2); background: var(--bg-2); transform: translateY(-2px); }
.cap-feature { grid-column: span 6; min-height: 0; background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); position: relative; overflow: hidden; }
.cap-feature::before { content: ''; position: absolute; top: -20%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-glow), transparent 70%); pointer-events: none; }
.cap-head { display: flex; justify-content: space-between; align-items: center; }
.cap-num { color: var(--fg-4); }
.cap-tag { color: var(--accent); padding: 3px 8px; background: var(--accent-glow); border-radius: 3px; }
.cap-title { font-family: 'Inter Tight', sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.cap-feature .cap-title { font-size: 36px; max-width: 560px; }
.cap-desc { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.cap-feature .cap-desc { font-size: 16px; max-width: 560px; }
.cap-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; position: relative; z-index: 1; }
.cap-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; background: rgba(0,0,0,0.3); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.cap-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- FUSION ---------- */
.fusion-stage { display: grid; grid-template-columns: 280px 1fr 280px; gap: 24px; align-items: stretch; min-height: 540px; }
.fusion-col { display: flex; flex-direction: column; gap: 10px; }
.fusion-input { padding: 12px 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; transition: all 300ms; }
.fusion-input.on { border-color: var(--accent); background: linear-gradient(135deg, var(--bg-1), rgba(120, 220, 180, 0.06)); box-shadow: 0 0 30px var(--accent-glow); }
.fusion-input-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 8px; }
.fusion-input-head .dim { flex-basis: 100%; opacity: 0.7; }
.signal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-4); }
.fusion-input.on .signal-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.fusion-input-list { display: flex; flex-direction: column; gap: 3px; font-size: 9px; }
.fusion-core { position: relative; display: grid; place-items: center; }
.fusion-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fusion-core-box { position: relative; width: 220px; padding: 28px 20px; background: linear-gradient(135deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--accent); border-radius: 14px; text-align: center; box-shadow: 0 0 60px var(--accent-glow); z-index: 2; }
.core-title { font-family: 'Inter Tight', sans-serif; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; margin: 12px 0 16px; }
.core-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.core-stats > div { display: flex; justify-content: space-between; }
.core-pulse { position: absolute; inset: -2px; border-radius: 14px; border: 1px solid var(--accent); opacity: 0; animation: corepulse 2.4s infinite; pointer-events: none; }
@keyframes corepulse { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
.fusion-out-card { padding: 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; }
.fusion-out-card.small { gap: 8px; }
.out-row { display: grid; grid-template-columns: 60px 1fr 50px; gap: 8px; align-items: center; }
.out-row .mono { font-size: 10px; }
.mini-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.mini-bar.slim { height: 2px; }
.mini-bar > span { display: block; height: 100%; background: var(--accent); }
.downstream { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------- DEPLOY ---------- */
.deploy-table { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.dtable-h, .dtable-r { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 2fr; gap: 16px; padding: 14px 22px; align-items: center; }
.deploy-table-3col .dtable-h, .deploy-table-3col .dtable-r { grid-template-columns: 2fr 1fr 2fr; }
.deploy-caveat { padding: 14px 22px; margin-bottom: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; background: color-mix(in oklab, var(--fg) 4%, transparent); }
.dtable-h { border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.dtable-h .mono { color: var(--fg-4); }
.dtable-r { border-bottom: 1px solid var(--line); transition: background 200ms; }
.dtable-r:last-child { border-bottom: none; }
.dtable-r:hover { background: rgba(255,255,255,0.02); }
.dt-name { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.deploy-caveat { padding: 12px 22px; margin-bottom: 28px; text-align: center; border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--radius) var(--radius); background: color-mix(in oklab, var(--fg) 4%, transparent); margin-top: -28px; }
.sec-bucket { margin-bottom: 18px; }
.sec-bucket-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.sec-badge.empty { justify-content: center; opacity: 0.7; }
.deploy-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.db-card { padding: 28px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); }
.db-card h4 { font-family: 'Inter Tight', sans-serif; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 14px 0 12px; }
.db-card p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0 0 22px; }
.db-pipe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.db-pipe > span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 8px; min-width: 90px; }
.db-pipe .arrow { background: none; border: none; padding: 0; min-width: 0; color: var(--accent); font-size: 18px; }
.db-pipe > span > div { font-size: 12px; color: var(--fg-2); }
.db-flow { display: flex; align-items: center; gap: 12px; }
.db-node { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,0.3); }
.db-node.on { border-color: var(--accent); color: var(--accent); }
.db-arr { font-size: 10px; color: var(--fg-3); font-family: 'JetBrains Mono', monospace; }

/* ---------- AUTOMOTIVE ---------- */
.auto-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.cabin-frame { position: relative; aspect-ratio: 16/10; background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-1) 100%); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cabin-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, var(--accent-glow), transparent 60%); }
.cabin-grid { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 32px 32px; }
.occupant { position: absolute; }
.occ-bbox { width: 110px; height: 90px; border: 1.5px solid var(--accent); border-radius: 4px; background: radial-gradient(ellipse, rgba(120,220,180,0.06), transparent 70%); }
.occ-bbox::before, .occ-bbox::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--accent); }
.occ-bbox::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.occ-bbox::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.occ-label { margin-top: 6px; padding: 6px 8px; background: rgba(0,0,0,0.7); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; gap: 4px; min-width: 100px; }
.cabin-hud { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: rgba(0,0,0,0.55); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(8px); }
.hud-item { display: flex; flex-direction: column; gap: 3px; }
.auto-side { display: flex; flex-direction: column; gap: 14px; }
.auto-feature { padding: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.auto-feature h4 { font-family: 'Inter Tight', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 8px 0 6px; }
.auto-feature p { font-size: 13px; color: var(--fg-2); margin: 0; line-height: 1.5; }
.auto-partners { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- WEARABLES ---------- */
.wearables-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wearable-card { padding: 20px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); transition: all 240ms; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.wearable-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.wearable-vis { position: relative; flex: 1; display: grid; place-items: center; }
.wearable-pulse { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--accent); position: relative; }
.wearable-pulse::before, .wearable-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: ringpulse 2s infinite; }
.wearable-pulse::after { animation-delay: 1s; }
@keyframes ringpulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2); opacity: 0; } }
.wearable-meta { display: flex; flex-direction: column; gap: 4px; }
.wearable-name { font-family: 'Inter Tight', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.wearables-foot { margin-top: 24px; padding: 16px 22px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; text-align: center; }

/* ---------- INTEGRATIONS (3-up) ---------- */
.integ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.integ-card { padding: 28px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; min-height: 230px; transition: border-color .22s, transform .22s, background .22s; }
.integ-card:hover { border-color: var(--line-2); background: var(--bg-2); transform: translateY(-2px); }
.integ-card h4 { font-family: 'Inter Tight', sans-serif; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 4px 0 0; }
.integ-card p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0; text-wrap: pretty; }
.integ-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.integ-foot { margin-top: 14px; padding: 22px 26px; background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); border: 1px solid var(--accent); border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; box-shadow: 0 20px 56px -34px var(--accent-glow); }
.integ-foot-vis { width: 56px; height: 56px; display: grid; place-items: center; flex-shrink: 0; }
.integ-foot-vis .wearable-pulse { width: 44px; height: 44px; }
.integ-foot-body { min-width: 0; }
.integ-foot-body .accent-text { display: block; margin-bottom: 6px; }
.integ-foot-body p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0; max-width: 760px; text-wrap: pretty; }
.integ-foot-note { text-align: right; max-width: 150px; line-height: 1.6; }
@media (max-width: 1100px) {
  .integ-grid { grid-template-columns: 1fr; }
  .integ-foot { grid-template-columns: auto 1fr; }
  .integ-foot-note { display: none; }
}

/* ---------- SECURITY ---------- */
.sec-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.sec-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-pillar { padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.sec-check { width: 28px; height: 28px; display: grid; place-items: center; background: var(--accent-glow); color: var(--accent); border-radius: 6px; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.sec-pillar h4 { font-family: 'Inter Tight', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 8px; }
.sec-pillar p { font-size: 13px; color: var(--fg-2); margin: 0; line-height: 1.5; }
.sec-side { padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.sec-badges { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.sec-badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em; }
.sec-tick { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- DOCS ---------- */
.docs-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.docs-code { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.code-tabs { display: flex; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.code-tab { padding: 12px 18px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--fg-3); background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; transition: color .15s, background .15s; appearance: none; -webkit-appearance: none; }
.code-tab:hover { color: var(--fg-1); background: rgba(255,255,255,0.03); }
.code-tab.on { color: var(--accent); border-bottom: 1px solid var(--accent); margin-bottom: -1px; background: rgba(120, 220, 180, 0.06); }
.code-block { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; padding: 24px 28px; margin: 0; color: var(--fg-2); white-space: pre-wrap; overflow-x: auto; }
.code-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: rgba(0,0,0,0.2); flex-wrap: wrap; }
.link-accent { color: var(--accent); border-bottom: 1px solid currentColor; }
.link-accent:hover { color: var(--accent-2); }
.c-com { color: var(--fg-4); font-style: italic; }
.c-key { color: oklch(78% 0.16 290); }
.c-str { color: oklch(82% 0.14 90); }
.c-num { color: oklch(80% 0.16 50); }
.c-fn { color: var(--accent); }
.docs-side { display: flex; flex-direction: column; gap: 8px; }
.docs-link { padding: 18px 20px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 14px; transition: all 200ms; }
.docs-link:hover { border-color: var(--accent); background: var(--bg-2); }
.docs-link .dl-title { flex: 1; font-size: 14px; font-weight: 500; }
.docs-link .arr { color: var(--accent); }
.docs-link .mono { display: block; margin-bottom: 2px; }

/* ---------- CTA ---------- */
.section-cta { padding: 80px 0 120px; }
.cta-card { position: relative; padding: 80px 60px; background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); border: 1px solid var(--line); border-radius: 20px; text-align: center; overflow: hidden; }
.cta-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, black, transparent 70%); }
.cta-title { font-family: 'Inter Tight', sans-serif; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; margin: 14px 0 16px; position: relative; }
.cta-sub { font-size: 17px; color: var(--fg-2); margin: 0 0 32px; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-fineprint { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 28px; position: relative; }
.cta-fineprint .hr-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); display: inline-block; }

.cta-benefits { margin-bottom: 48px; }
.cta-benefits-head { text-align: center; margin-bottom: 32px; }
.cta-benefits-title { font-family: 'Inter Tight', sans-serif; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; margin: 10px 0 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.benefit-card { padding: 22px 20px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; transition: border-color .2s, transform .2s; }
.benefit-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.benefit-t { font-family: 'Inter Tight', sans-serif; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; color: var(--fg-1); margin-top: 4px; }
.benefit-d { font-size: 13px; line-height: 1.45; color: var(--fg-2); }
@media (max-width: 1100px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .benefit-grid { grid-template-columns: 1fr; } }

.hero-reassure { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.hero-reassure .hr-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); display: inline-block; }

/* ---------- WHY INTEGRATE (expandable benefits, top of page) ---------- */
.why-section { padding: 80px 0 60px; position: relative; }
.why-head { text-align: left; margin: 0 0 36px; max-width: 760px; }
.why-title { font-family: 'Inter Tight', sans-serif; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; margin: 10px 0 14px; }
.why-sub { font-size: 16px; color: var(--fg-2); line-height: 1.5; max-width: 640px; text-wrap: pretty; }
.benefit-grid-x { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.benefit-card-x { padding: 22px 22px 24px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; cursor: pointer; transition: border-color .22s, transform .22s, background .22s, box-shadow .22s; position: relative; text-align: left; width: 100%; appearance: none; color: inherit; font: inherit; }
.benefit-card-x:hover { border-color: var(--line-2); background: var(--bg-2); transform: translateY(-2px); }
.benefit-card-x.on { border-color: var(--accent); background: linear-gradient(180deg, var(--bg-1), var(--bg-2)); box-shadow: 0 18px 50px -20px var(--accent-glow), 0 0 0 1px var(--accent-glow) inset; transform: translateY(-2px); }
.benefit-card-x .benefit-toggle { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(127,127,127,0.08); color: var(--fg-3); border: 1px solid var(--line); font-size: 12px; line-height: 1; transition: all .22s; flex-shrink: 0; }
.benefit-card-x.on .benefit-toggle { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.benefit-card-x .benefit-t { font-family: 'Inter Tight', sans-serif; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; color: var(--fg-1); margin: 4px 28px 0 0; }
.benefit-card-x .benefit-d { font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.benefit-detail { grid-column: 1 / -1; padding: 0 4px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s cubic-bezier(.4,.2,.2,1), opacity .25s ease, margin .25s ease; margin-top: 0; }
.benefit-detail.open { max-height: 800px; opacity: 1; margin-top: 6px; }
.benefit-detail-inner { padding: 28px 32px; background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); border: 1px solid var(--accent); border-radius: 16px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; box-shadow: 0 24px 60px -30px var(--accent-glow); position: relative; overflow: hidden; }
.benefit-detail-inner::before { content: ''; position: absolute; top: -40%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-glow), transparent 70%); pointer-events: none; filter: blur(20px); }
.benefit-detail-body { position: relative; }
.benefit-detail-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--accent); }
.benefit-detail h3 { font-family: 'Inter Tight', sans-serif; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 14px; }
.benefit-detail p { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0 0 18px; max-width: 540px; text-wrap: pretty; }
.benefit-detail-points { display: flex; flex-direction: column; gap: 10px; position: relative; }
.benefit-point { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: rgba(127,127,127,0.05); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.benefit-point .bp-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 7px; box-shadow: 0 0 6px var(--accent-glow); }
.benefit-point strong { color: var(--fg-1); font-weight: 500; }
@media (max-width: 1100px) { .benefit-grid-x { grid-template-columns: repeat(2, 1fr); } .benefit-detail-inner { grid-template-columns: 1fr; gap: 20px; padding: 22px; } }
@media (max-width: 600px) { .benefit-grid-x { grid-template-columns: 1fr; } }

/* ---------- LOGO STRIP (trusted by) ---------- */
.logo-strip { padding: 36px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(127,127,127,0.025); overflow: hidden; }
.logo-strip-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 0 32px; max-width: var(--max); margin-left: auto; margin-right: auto; }
.logo-strip-head .hr-line { flex: 1; height: 1px; background: var(--line); }
.logo-marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent 0, black 80px, black calc(100% - 80px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, black 80px, black calc(100% - 80px), transparent 100%); }
.logo-marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; padding: 6px 0; }
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 99px; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--fg-2); flex-shrink: 0; transition: all .2s; }
.brand-pill:hover { color: var(--fg-1); border-color: var(--line-2); background: var(--bg-2); }
.brand-pill .brand-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.brand-pill.kind-research { color: var(--fg-3); }
.brand-pill.kind-research .brand-dot { background: var(--fg-3); }

/* ---------- AUTOMOTIVE CABIN FACE PHOTOS ---------- */
.occ-bbox { position: relative; width: 144px; height: 116px; border: 1.5px solid var(--accent); border-radius: 4px; background: radial-gradient(ellipse, rgba(120,220,180,0.06), transparent 70%); overflow: hidden; }
.occ-bbox::before, .occ-bbox::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--accent); z-index: 3; }
.occ-bbox::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.occ-bbox::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.occ-face { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, rgba(120,130,140,0.25), rgba(60,65,70,0.4)); }
.occ-face img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(0.85) contrast(1.05) brightness(0.92); }
.occ-face-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.occ-face-fallback svg { width: 60%; height: 60%; opacity: 0.45; }
.occ-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%), radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(0,0,0,0.35) 95%); pointer-events: none; }
.occ-landmark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 5px var(--accent); transform: translate(-50%, -50%); z-index: 2; }

/* ---------- PEOPLE / PLATFORM IN FLOW STRIP ---------- */
.flow-section { padding: 80px 0 60px; position: relative; }
.flow-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.flow-head-left { max-width: 620px; }
.flow-head-left h2 { font-family: 'Inter Tight', sans-serif; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; margin: 8px 0 8px; }
.flow-head-left p { font-size: 14px; color: var(--fg-2); line-height: 1.5; margin: 0; text-wrap: pretty; max-width: 540px; }
.flow-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.flow-tile { position: relative; aspect-ratio: 3/4; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: default; transition: transform .25s, border-color .25s, box-shadow .25s; }
.flow-tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 36px -18px var(--accent-glow); }
.flow-tile-img { position: absolute; inset: 0; overflow: hidden; }
.flow-tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(0.9) contrast(1.04); transition: transform .6s ease; }
.flow-tile:hover .flow-tile-img img { transform: scale(1.04); }
.flow-tile-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.78) 100%); pointer-events: none; }
.flow-tile-bbox { position: absolute; top: 14%; left: 18%; right: 18%; bottom: 38%; border: 1.5px solid var(--accent); border-radius: 4px; box-shadow: 0 0 0 3px rgba(0,0,0,0.18); pointer-events: none; opacity: 0.92; }
.flow-tile-bbox::before, .flow-tile-bbox::after { content: ''; position: absolute; width: 10px; height: 10px; border: 2px solid var(--accent); }
.flow-tile-bbox::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.flow-tile-bbox::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.flow-tile-tag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.12); border-radius: 99px; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.flow-tile-tag .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.flow-tile-meta { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.flow-tile-context { font-family: 'Inter Tight', sans-serif; font-size: 14px; line-height: 1.15; font-weight: 500; color: #fff; letter-spacing: -0.01em; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.flow-tile-state { display: flex; gap: 5px; flex-wrap: wrap; }
.flow-tile-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.10); border-radius: 4px; color: rgba(255,255,255,0.88); font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.04em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.flow-tile-chip .accent-text { color: var(--accent); }
.flow-tile-landmark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 4px var(--accent); transform: translate(-50%, -50%); }
@media (max-width: 1100px) { .flow-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .flow-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- BENEFIT DETAIL FACE THUMBNAIL ---------- */
.benefit-detail-face { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); margin-bottom: 14px; }
.benefit-detail-face img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(0.92) contrast(1.04); }
.benefit-detail-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%); }
.benefit-detail-face-tag { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }

/* ---------- VOICE AI SECTION ---------- */
.voice-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.voice-panel { position: relative; aspect-ratio: 16/10; background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 20px; display: flex; flex-direction: column; }
.voice-panel .voice-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black, transparent 80%); }
.voice-panel .voice-bg-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, var(--accent-glow), transparent 60%); pointer-events: none; }
.vp-hud { position: relative; display: flex; gap: 14px; align-items: center; padding: 10px 14px; background: rgba(0,0,0,0.45); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(8px); margin-bottom: 18px; z-index: 1; }
.vp-hud-item { display: flex; flex-direction: column; gap: 3px; }
.vp-call { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; z-index: 1; min-height: 0; }
.vp-side { display: flex; flex-direction: column; gap: 12px; }
.vp-side-head { display: flex; align-items: center; gap: 10px; }
.vp-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-3); position: relative; border: 1px solid var(--line-2); }
.vp-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: saturate(0.9) contrast(1.05); }
.vp-avatar.agent { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 600; font-size: 13px; }
.vp-side-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vp-name { font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.vp-msgs { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.vp-msg { padding: 10px 12px; background: rgba(127,127,127,0.06); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; line-height: 1.4; color: var(--fg-2); position: relative; }
.vp-msg.agent { background: linear-gradient(135deg, rgba(127,127,127,0.06), var(--accent-glow)); border-color: rgba(127,127,127,0.18); color: var(--fg-1); }
.vp-msg-meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.vp-msg-meta .chip { font-size: 9px; padding: 2px 6px; }
.vp-wave { display: flex; align-items: center; gap: 2px; height: 22px; padding: 4px 8px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 4px; margin-top: 6px; }
.vp-wave span { display: block; width: 2px; background: var(--accent); opacity: 0.7; border-radius: 1px; animation: vpwave 1.2s ease-in-out infinite; }
@keyframes vpwave { 0%,100% { height: 25%; } 50% { height: 90%; } }
.vp-state { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 8px; }
.vp-state-row { display: grid; grid-template-columns: 64px 1fr 36px; gap: 8px; align-items: center; }

/* ---------- HEALTH SECTION ---------- */
.health-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.health-panel { position: relative; aspect-ratio: 16/10; background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 22px; }
.health-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, black, transparent 90%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, black, transparent 90%); }
.health-bg-glow { position: absolute; top: -10%; right: -10%; width: 50%; height: 70%; background: radial-gradient(ellipse, var(--accent-glow), transparent 60%); pointer-events: none; filter: blur(20px); }
.health-inner { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; z-index: 1; }
.health-portrait { position: relative; border-radius: 10px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); }
.health-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: saturate(0.9) contrast(1.04); }
.health-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%); }
.health-portrait-tag { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.health-portrait-name { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.health-vitals { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; min-height: 0; }
.health-vitals-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.health-tile { padding: 12px 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.health-tile-v { font-family: 'Inter Tight', sans-serif; font-size: 22px; line-height: 1; letter-spacing: -0.02em; font-weight: 500; margin-top: 2px; }
.health-tile-trend { display: flex; align-items: center; gap: 4px; }
.health-tile-trend.up { color: var(--accent); }
.health-tile-trend.dn { color: var(--fg-3); }
.health-chart { background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.health-chart-h { display: flex; justify-content: space-between; align-items: baseline; }
.health-chart-svg { flex: 1; min-height: 0; }
.health-stress { background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.health-stress-bar { display: flex; align-items: stretch; gap: 2px; height: 30px; margin-top: 6px; border-radius: 4px; overflow: hidden; }
.health-stress-seg { flex: 1; min-width: 0; }

/* shared section-style 'use-case' headers (voice + health) */
.usecase-side { display: flex; flex-direction: column; gap: 14px; }
.usecase-feature { padding: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.usecase-feature h4 { font-family: 'Inter Tight', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 8px 0 6px; }
.usecase-feature p { font-size: 13px; color: var(--fg-2); margin: 0; line-height: 1.5; }
@media (max-width: 1100px) {
  .voice-grid, .health-grid { grid-template-columns: 1fr; }
  .voice-panel, .health-panel { aspect-ratio: auto; min-height: 520px; }
  .vp-call { grid-template-columns: 1fr; }
  .health-inner { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); background: var(--bg-1); }
.footer-top { display: grid; grid-template-columns: 1.5fr 2.5fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--fg-2); margin: 16px 0 24px; max-width: 320px; }
.footer-locations { display: flex; flex-direction: column; gap: 14px; }
.footer-locations > div { font-size: 13px; }
.footer-locations .mono { display: block; margin-bottom: 4px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols .mono { color: var(--fg-4); margin-bottom: 6px; }
.footer-cols a { font-size: 13px; color: var(--fg-2); transition: color 180ms; }
.footer-cols a:hover { color: var(--fg); }
.footer-bot { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card { grid-column: span 1; }
  .cap-feature { grid-column: span 2; }
  .fusion-stage { grid-template-columns: 1fr; }
  .deploy-bottom, .auto-grid, .sec-grid, .docs-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .nav-links { display: none; }
  .wearables-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-pillars { grid-template-columns: 1fr; }
  .viz-body { grid-template-columns: 1fr; }
  .viz-col + .viz-col { border-left: none; border-top: 1px solid var(--line); }
}


/* ---- PER-SECTION THEME ZONES ---- */
.theme-zone { background: var(--bg); color: var(--fg); transition: background .3s ease, color .3s ease; }

/* theme menu needs to scroll now that there are combos + many themes */
.theme-menu { max-height: min(72vh, 600px); overflow-y: auto; overscroll-behavior: contain; }
.theme-menu::-webkit-scrollbar { width: 11px; }
.theme-menu::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg-1); }
.theme-menu::-webkit-scrollbar-track { background: transparent; }
.theme-group-label { display: block; padding: 10px 10px 5px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-4); position: sticky; top: 0; background: var(--bg-1); z-index: 1; }
.theme-group-label:first-child { padding-top: 5px; }
.theme-pick { margin-left: 7px; font-family: 'JetBrains Mono', monospace; font-size: 8px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 2px 6px; white-space: nowrap; }
