:root {
  --bg: #08090c;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hi: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.14);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --card-shadow: var(--inset);

  --indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.35);
  --indigo-soft: rgba(99, 102, 241, 0.12);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --emerald: #10b981;

  --text: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --link-accent: #a5b4fc;

  --scroll-thumb: #1c1f27;
  --selection-bg: rgba(99, 102, 241, 0.4);
  --selection-text: #ffffff;
  --glow-1: rgba(99, 102, 241, 0.14);
  --glow-2: rgba(6, 182, 212, 0.10);
  --glow-3: rgba(99, 102, 241, 0.10);
  --dots-color: rgba(255, 255, 255, 0.11);
  --noise-tint: rgba(255, 255, 255, 0.035);

  --nav-scrim: linear-gradient(180deg, rgba(8, 9, 12, 0.96) 0%, rgba(8, 9, 12, 0.78) 62%, rgba(8, 9, 12, 0) 100%);
  --nav-bg: rgba(18, 21, 29, 0.75);
  --nav-bg-scrolled: rgba(10, 12, 17, 0.9);
  --nav-border: rgba(255, 255, 255, 0.1);
  --nav-border-scrolled: rgba(255, 255, 255, 0.14);
  --nav-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --nav-shadow-scrolled: 0 24px 48px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(99, 102, 241, 0.15) inset;
  --nav-pill-bg: rgba(255, 255, 255, 0.08);
  --nav-pill-border: rgba(255, 255, 255, 0.14);
  --nav-pill-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 4px 16px -2px rgba(0, 0, 0, 0.35);
  --drawer-bg: rgba(12, 14, 21, 0.95);
  --drawer-link-bg: rgba(255, 255, 255, 0.03);
  --drawer-link-border: rgba(255, 255, 255, 0.06);

  --ticker-bg: rgba(10, 11, 16, 0.6);
  --marquee-bg: rgba(0, 0, 0, 0.3);
  --marquee-border: rgba(255, 255, 255, 0.04);

  --hero-grad: linear-gradient(180deg, #ffffff 15%, #cbd5e1 100%);
  --vision-grad: linear-gradient(90deg, #a5b4fc, #67e8f9);
  --pipeline-bg: rgba(18, 21, 29, 0.45);
  --pipeline-line: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
  --node-bg: #0e1016;

  --term-bg: #0b0c10;
  --term-border: rgba(255, 255, 255, 0.1);
  --term-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 40px 80px -20px rgba(0, 0, 0, 0.85), 0 0 80px -30px rgba(99, 102, 241, 0.55);
  --term-bar-bg: linear-gradient(180deg, #16181f, #11131a);
  --term-divider: rgba(255, 255, 255, 0.06);
  --term-body-text: #cbd5e1;
  --term-input-bg: #0a0b0f;
  --term-mind-bg: rgba(13, 16, 25, 0.95);
  --term-chips-bg: #090a0e;
  --term-user: #34d399;
  --term-host: #818cf8;
  --term-path: #22d3ee;
  --term-cmd: #f8fafc;
  --term-flag: #fbbf24;
  --term-str: #fda4af;
  --term-ok: #34d399;
  --term-key: #c084fc;
  --term-ghost: rgba(148, 163, 184, 0.36);

  --filters-bg: rgba(18, 21, 29, 0.65);
  --filters-pill-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(34, 211, 238, 0.16));
  --filters-pill-border: rgba(129, 140, 248, 0.45);
  --filters-pill-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.25), 0 4px 16px -2px rgba(99, 102, 241, 0.4);

  --input-bg: rgba(255, 255, 255, 0.03);
  --popover-bg: rgba(12, 14, 21, 0.98);
  --modal-backdrop: rgba(4, 5, 8, 0.85);
  --modal-bg: #0f1118;
  --modal-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(99, 102, 241, 0.4);
  --pass-wrap-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  --pass-sop-bg: rgba(0, 0, 0, 0.3);
  --pass-actions-bg: rgba(10, 12, 17, 0.95);
  --toast-bg: #0f1118;
  --toast-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(99, 102, 241, 0.4);
  --footer-bg: rgba(8, 9, 12, 0.7);

  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  --maxw: 1200px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-hi: #ffffff;
  --border: rgba(15, 23, 42, 0.09);
  --border-hi: rgba(79, 70, 229, 0.28);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -12px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.95);

  --indigo: #4f46e5;
  --indigo-glow: rgba(79, 70, 229, 0.24);
  --indigo-soft: rgba(79, 70, 229, 0.09);
  --cyan: #0891b2;
  --cyan-glow: rgba(8, 145, 178, 0.22);
  --emerald: #059669;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --link-accent: #4f46e5;

  --scroll-thumb: #cbd5e1;
  --selection-bg: rgba(79, 70, 229, 0.18);
  --selection-text: #0f172a;
  --glow-1: rgba(99, 102, 241, 0.12);
  --glow-2: rgba(6, 182, 212, 0.10);
  --glow-3: rgba(99, 102, 241, 0.08);
  --dots-color: rgba(15, 23, 42, 0.09);
  --noise-tint: rgba(79, 70, 229, 0.045);

  --nav-scrim: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.78) 62%, rgba(248, 250, 252, 0) 100%);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(15, 23, 42, 0.09);
  --nav-border-scrolled: rgba(15, 23, 42, 0.14);
  --nav-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  --nav-shadow-scrolled: 0 18px 40px -12px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(79, 70, 229, 0.1) inset;
  --nav-pill-bg: rgba(15, 23, 42, 0.06);
  --nav-pill-border: rgba(15, 23, 42, 0.09);
  --nav-pill-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 2px 8px rgba(15, 23, 42, 0.06);
  --drawer-bg: rgba(255, 255, 255, 0.96);
  --drawer-link-bg: rgba(15, 23, 42, 0.03);
  --drawer-link-border: rgba(15, 23, 42, 0.08);

  --ticker-bg: rgba(255, 255, 255, 0.74);
  --marquee-bg: rgba(15, 23, 42, 0.03);
  --marquee-border: rgba(15, 23, 42, 0.06);

  --hero-grad: linear-gradient(180deg, #0f172a 18%, #475569 100%);
  --vision-grad: linear-gradient(90deg, #4f46e5, #0891b2);
  --pipeline-bg: rgba(255, 255, 255, 0.82);
  --pipeline-line: linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.12));
  --node-bg: #ffffff;

  --term-bg: #ffffff;
  --term-border: rgba(15, 23, 42, 0.12);
  --term-shadow: 0 24px 56px -16px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --term-bar-bg: linear-gradient(180deg, #f8fafc, #f1f5f9);
  --term-divider: rgba(15, 23, 42, 0.08);
  --term-body-text: #1e293b;
  --term-input-bg: #f8fafc;
  --term-mind-bg: #f1f5f9;
  --term-chips-bg: #f1f5f9;
  --term-user: #047857;
  --term-host: #4338ca;
  --term-path: #0369a1;
  --term-cmd: #0f172a;
  --term-flag: #b45309;
  --term-str: #be123c;
  --term-ok: #047857;
  --term-key: #7e22ce;
  --term-ghost: rgba(71, 85, 105, 0.45);

  --filters-bg: rgba(255, 255, 255, 0.86);
  --filters-pill-bg: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(8, 145, 178, 0.12));
  --filters-pill-border: rgba(79, 70, 229, 0.34);
  --filters-pill-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.9), 0 2px 10px rgba(79, 70, 229, 0.12);

  --input-bg: #ffffff;
  --popover-bg: rgba(255, 255, 255, 0.98);
  --modal-backdrop: rgba(15, 23, 42, 0.46);
  --modal-bg: #ffffff;
  --modal-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.25), 0 0 40px -15px rgba(79, 70, 229, 0.2);
  --pass-wrap-bg: linear-gradient(145deg, #ffffff, #f8fafc);
  --pass-sop-bg: #f1f5f9;
  --pass-actions-bg: #f8fafc;
  --toast-bg: #ffffff;
  --toast-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.2), 0 0 18px -4px rgba(79, 70, 229, 0.18);
  --footer-bg: rgba(248, 250, 252, 0.88);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}
h1, h2, h3, h4 { color: var(--text); letter-spacing: -0.03em; line-height: 1.15; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(99, 102, 241, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c1f27; border-radius: 99px; border: 2px solid var(--bg); }

.mono { font-family: var(--font-mono); }

.bg-stack { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(140px); will-change: transform; }
.bg-glow.g1 { width: 720px; height: 720px; background: rgba(99, 102, 241, 0.14); top: -260px; left: 50%; margin-left: -520px; animation: drift 24s ease-in-out infinite alternate; }
.bg-glow.g2 { width: 620px; height: 620px; background: rgba(6, 182, 212, 0.10); top: 28%; right: -240px; animation: drift 30s ease-in-out infinite alternate-reverse; }
.bg-glow.g3 { width: 560px; height: 560px; background: rgba(99, 102, 241, 0.10); bottom: -240px; left: -200px; animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
}
.bg-noise {
  position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(1200px 500px at 50% 0%, rgba(255,255,255,0.035), transparent 70%);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }
section { position: relative; z-index: 2; padding: 6.5rem 0; }
main section[id] { content-visibility: auto; contain-intrinsic-size: 1px 720px; }
section[id], #screening-panel { scroll-margin-top: 5rem; }

.section-head { margin-bottom: 3rem; max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #cbd5e1; margin-bottom: 0.85rem;
  padding: 0.2rem 0.65rem 0.2rem 0.45rem; border-radius: 99px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 10px var(--indigo); }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 0.8rem; letter-spacing: -0.035em; }
.section-head p { font-size: 1.05rem; color: var(--text-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--inset);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
  contain: layout style;
}
.card:hover { border-color: var(--border-hi); }

.spot {
  position: relative;
  overflow: hidden;
  --spot-x: -100px;
  --spot-y: -100px;
  --spot-opacity: 0;
}
.spot::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(129, 140, 248, 0.65), rgba(6, 182, 212, 0.35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: var(--spot-opacity);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--spot-x) var(--spot-y), rgba(99, 102, 241, 0.08), transparent 70%);
  opacity: var(--spot-opacity);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 500; font-size: 0.88rem; padding: 0.65rem 1.25rem; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s var(--ease);
  white-space: nowrap; user-select: none;
}
.btn-primary {
  background: linear-gradient(180deg, #6366f1, #4f46e5);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 24px -4px rgba(99,102,241,0.65);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 32px -2px rgba(99,102,241,0.85);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--inset);
}
.btn-ghost:hover { background: var(--surface-hi); border-color: var(--border-hi); transform: translateY(-1px); }

