/* Maaind website - design system */

/* OBSIDIAN (default) - near-black, emerald accent. Biotech / scientific. */
:root,
: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. */
:root[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. */
:root[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. */
:root[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;
}

/* PARCHMENT - warm cream + deep ink + terracotta. Editorial / clinical. */
:root[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;
}

* { 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; }
@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); }

/* PARCHMENT-specific tweaks (light theme readability) */
:root[data-theme="parchment"] .nav-scrolled { background: rgba(245, 241, 232, 0.78); }
:root[data-theme="parchment"] .btn-ghost { background: rgba(20, 16, 10, 0.03); color: var(--fg); border-color: var(--line-2); }
:root[data-theme="parchment"] .btn-ghost:hover { background: rgba(20, 16, 10, 0.06); }
:root[data-theme="parchment"] .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; }
:root[data-theme="parchment"] .viz-frame, :root[data-theme="parchment"] .viz-card { background: var(--bg-1); }
:root[data-theme="parchment"] .cv-stage-photo { background: var(--bg-3); }
:root[data-theme="parchment"] .viz-head, :root[data-theme="parchment"] .viz-card-h, :root[data-theme="parchment"] .viz-foot, :root[data-theme="parchment"] .dtable-h, :root[data-theme="parchment"] .code-tabs, :root[data-theme="parchment"] .code-foot { background: rgba(20, 16, 10, 0.04); }
:root[data-theme="parchment"] .cap-pill, :root[data-theme="parchment"] .chip, :root[data-theme="parchment"] .db-pipe > span, :root[data-theme="parchment"] .db-node, :root[data-theme="parchment"] .sec-badge, :root[data-theme="parchment"] .cv-readout { background: var(--bg-1); }
:root[data-theme="parchment"] .bar-track, :root[data-theme="parchment"] .mini-bar { background: rgba(20, 16, 10, 0.08); }
:root[data-theme="parchment"] .cap-feature { background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); }
:root[data-theme="parchment"] .section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%); }
:root[data-theme="parchment"] .section-dark { background: var(--bg-1); }
:root[data-theme="parchment"] .footer { background: var(--bg-1); }
:root[data-theme="parchment"] .stats { background: rgba(20,16,10,0.03); }
:root[data-theme="parchment"] .cv-photo { filter: saturate(0.9) contrast(1.05) brightness(0.95); }
:root[data-theme="parchment"] .cv-photo-tint { background: linear-gradient(180deg, rgba(245,241,232,0.0) 0%, rgba(245,241,232,0.25) 100%), radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(245,241,232,0.2) 90%); }
:root[data-theme="parchment"] .cv-overlay-grid { background-image: linear-gradient(to right, rgba(20,16,10,0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(20,16,10,0.04) 1px, transparent 1px); }
:root[data-theme="parchment"] .hero-grid-bg { background-image: linear-gradient(to right, rgba(20,16,10,0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(20,16,10,0.04) 1px, transparent 1px); }
:root[data-theme="parchment"] .cabin-frame { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%); }
:root[data-theme="parchment"] .cabin-grid { background-image: linear-gradient(to right, rgba(20,16,10,0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(20,16,10,0.04) 1px, transparent 1px); }
:root[data-theme="parchment"] .cabin-hud { background: rgba(245,241,232,0.7); }
:root[data-theme="parchment"] .occ-label { background: var(--bg-1); }
:root[data-theme="parchment"] .cv-tag { background: rgba(245,241,232,0.7); }
:root[data-theme="parchment"] .sec-badge.empty { background: rgba(20,16,10,0.03); }
:root[data-theme="parchment"] .c-com { color: rgba(26,22,15,0.45); }
:root[data-theme="parchment"] .c-key { color: oklch(40% 0.16 290); }
:root[data-theme="parchment"] .c-str { color: oklch(40% 0.14 130); }
:root[data-theme="parchment"] .c-num { color: oklch(45% 0.16 50); }
:root[data-theme="parchment"] .code-block { color: var(--fg-1); }
:root[data-theme="parchment"] .logo-img { filter: none; }

/* ---------- 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; gap: 8px; margin-bottom: 8px; }
.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: rgba(0,0,0,0.15); }
.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: rgba(0,0,0,0.15); 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; }

/* ---------- 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; }

/* ---------- 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); }
}
