/* ==========================================================================
   Crime Watch Box — Design System
   crimewatchbox.com
   Fonts: Lexend (display) / Source Sans 3 (body) / IBM Plex Mono (technical)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Night palette (primary brand surfaces) */
  --navy-950: #050a16;
  --navy-900: #081020;
  --navy-850: #0b1528;
  --navy-800: #101d36;
  --navy-750: #142442;
  --navy-700: #1a2b4a;
  --navy-600: #24375c;

  /* Emergency blue ramp */
  --blue-700: #1548b8;
  --blue-600: #1b5fd9;   /* CTA fill — 4.6:1 with white */
  --blue-500: #2e7bff;   /* glows, markers, product lighting */
  --blue-400: #5ca0ff;   /* links + accents on dark */
  --blue-300: #8fbfff;
  --blue-glow: rgba(46, 123, 255, 0.45);

  /* Light surfaces */
  --paper: #f5f8fc;
  --paper-raised: #ffffff;
  --ink-900: #0b1528;
  --ink-600: #3d4f6b;
  --ink-500: #52657f;
  --line-light: #d9e2ef;

  /* Text on dark */
  --text-hi: #eaf1fb;
  --text-mid: #a9b9d0;
  --text-low: #8496b3;

  /* Semantic */
  --red-500: #e5484d;    /* emergency button only */
  --green-500: #2fbf71;  /* status: online */
  --line-dark: rgba(140, 168, 210, 0.16);

  /* Type */
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Fluid type scale */
  --fs-hero: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-body-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.8125rem;

  /* Space scale (8px rhythm) */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-9: 6rem; --sp-10: 8rem;

  --section-pad: clamp(4rem, 3rem + 5vw, 8rem);
  --container: 74rem;
  --container-wide: 84rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 2px rgba(5, 10, 22, 0.06), 0 8px 24px rgba(5, 10, 22, 0.07);
  --shadow-pop: 0 2px 6px rgba(5, 10, 22, 0.25), 0 20px 48px rgba(5, 10, 22, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  /* z-index scale */
  --z-nav: 100;
  --z-drawer: 110;
  --z-skip: 200;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  font-weight: 600;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.4; }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

::selection { background: var(--blue-600); color: #fff; }

/* Focus — always visible, never removed */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible {
  outline-color: var(--blue-300);
}

/* Visually hidden (screen-reader only) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* h4-scale styling for h3 elements used as card titles */
.hsub { font-size: 1.125rem; line-height: 1.4; }

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--sp-4);
  z-index: var(--z-skip);
  background: var(--blue-600);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 150ms var(--ease);
}
.skip-link:focus { top: var(--sp-4); text-decoration: none; }

/* ---------- Layout utilities ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--wide { width: min(100% - 2.5rem, var(--container-wide)); }

.section { padding-block: var(--section-pad); }
.section--dark { background: var(--navy-950); color: var(--text-mid); }
.section--dark-raised { background: var(--navy-900); color: var(--text-mid); }
.section--light { background: var(--paper); color: var(--ink-600); }
.section--white { background: var(--paper-raised); color: var(--ink-600); }

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--dark-raised h1, .section--dark-raised h2, .section--dark-raised h3, .section--dark-raised h4 {
  color: var(--text-hi);
}
.section--light h1, .section--light h2, .section--light h3, .section--light h4,
.section--white h1, .section--white h2, .section--white h3, .section--white h4 {
  color: var(--ink-900);
}
.section--dark a:not(.btn), .section--dark-raised a:not(.btn) { color: var(--blue-400); }

/* Section header block */
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { font-size: var(--fs-body-lg); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  color: var(--blue-600);
}
.section--dark .eyebrow, .section--dark-raised .eyebrow { color: var(--blue-400); }
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Grids */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: center;
}
.split--offset { grid-template-columns: 1.1fr 0.9fr; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn svg { flex: none; }

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 0 0 0 var(--blue-glow);
}
.btn--primary:hover {
  background: var(--blue-700);
  box-shadow: 0 6px 24px -6px var(--blue-glow);
}

.btn--ghost-dark {
  background: rgba(140, 168, 210, 0.08);
  border-color: rgba(140, 168, 210, 0.28);
  color: var(--text-hi);
}
.btn--ghost-dark:hover {
  border-color: var(--blue-400);
  background: rgba(46, 123, 255, 0.12);
}

.btn--ghost-light {
  background: transparent;
  border-color: var(--line-light);
  color: var(--ink-900);
}
.btn--ghost-light:hover { border-color: var(--blue-600); color: var(--blue-600); }

.btn--lg { min-height: 56px; padding: 1rem 2.1rem; font-size: 1.0625rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 500;
}
.arrow-link svg { transition: transform var(--dur) var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
  background: linear-gradient(rgba(5, 10, 22, 0.72), rgba(5, 10, 22, 0));
}
.site-header.is-solid {
  background: rgba(5, 10, 22, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .brand-mark { width: 34px; height: 34px; flex: none; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--blue-400);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links > li > a,
.nav-links > li > button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 0;
  background: none;
  color: var(--text-mid);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-links > li > a:hover,
.nav-links > li > button:hover {
  color: var(--text-hi);
  background: rgba(140, 168, 210, 0.1);
  text-decoration: none;
}
.nav-links a[aria-current="page"] { color: var(--text-hi); }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  position: relative;
  top: 0.45rem;
  height: 2px;
  margin-top: -2px;
  background: var(--blue-500);
  border-radius: 2px;
}
.nav-cta { margin-left: var(--sp-2); }
.nav-cta .btn { min-height: 42px; padding: 0.5rem 1.25rem; font-size: 0.9375rem; }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > button svg { transition: transform var(--dur) var(--ease); }
.nav-drop.is-open > button svg { transform: rotate(180deg); }
.drop-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 460px;
  background: var(--navy-850);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: var(--sp-3);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
}
.nav-drop.is-open .drop-panel { display: grid; }
.drop-panel a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
}
.drop-panel a span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-low);
  margin-top: 1px;
}
.drop-panel a:hover { background: rgba(46, 123, 255, 0.12); text-decoration: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: 1px solid rgba(140, 168, 210, 0.28);
  border-radius: 10px;
  background: rgba(140, 168, 210, 0.06);
  color: var(--text-hi);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 0;
  z-index: var(--z-drawer);
  background: var(--navy-950);
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-5) var(--sp-9);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav a, .mobile-nav button.m-drop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0.25rem;
  background: none;
  border: 0;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 1.125rem;
  cursor: pointer;
  text-align: left;
}
.mobile-nav a:hover { text-decoration: none; color: var(--blue-300); }
.mobile-nav .m-sub { display: none; padding: 0 0 var(--sp-4) var(--sp-4); }
.mobile-nav .m-sub.is-open { display: block; }
.mobile-nav .m-sub a { font-size: 1rem; color: var(--text-mid); padding: 0.55rem 0.25rem; }
.mobile-nav .m-cta { margin-top: var(--sp-5); }
body.nav-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  color: var(--text-mid);
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-scene svg { width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 40rem; }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
}
.hero h1 .accent { color: var(--blue-400); }
.hero .lead {
  font-size: var(--fs-body-lg);
  max-width: 34rem;
  margin-bottom: var(--sp-6);
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.22em;
  color: var(--blue-400);
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero-tagline::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 12px 2px var(--blue-glow);
  animation: beacon 2.4s ease-in-out infinite;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  translate: -50% 0;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-low);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue:hover { color: var(--blue-300); text-decoration: none; }
.scroll-cue svg { animation: cue-drop 2s ease-in-out infinite; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background: var(--navy-950);
  color: var(--text-mid);
  padding: 11rem 0 5rem;
  overflow: hidden;
}
.page-hero--tall { min-height: 78svh; display: flex; align-items: center; }
.page-hero .hero-scene { opacity: 0.95; }
.page-hero h1 { color: var(--text-hi); font-weight: 700; max-width: 18ch; }
.page-hero .lead { font-size: var(--fs-body-lg); max-width: 36rem; }
.page-hero .container { position: relative; z-index: 2; }

/* Breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-small);
  font-family: var(--font-display);
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.crumbs li + li::before { content: "/"; color: var(--text-low); }
.crumbs a { color: var(--text-low); }
.crumbs [aria-current] { color: var(--text-mid); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }
.card:hover { transform: translateY(-4px); border-color: rgba(27, 95, 217, 0.35); box-shadow: 0 2px 4px rgba(5,10,22,0.05), 0 18px 40px rgba(5,10,22,0.11); }

.card--dark {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-850) 70%);
  border-color: var(--line-dark);
  box-shadow: none;
}
.card--dark:hover { border-color: rgba(92, 160, 255, 0.4); box-shadow: 0 18px 44px -18px rgba(5, 10, 22, 0.9); }
.card--dark h3, .card--dark h4 { color: var(--text-hi); }
.card--dark p { color: var(--text-mid); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  background: rgba(46, 123, 255, 0.12);
  color: var(--blue-500);
  border: 1px solid rgba(46, 123, 255, 0.22);
}
.card--dark .card-icon { color: var(--blue-400); }
.card-icon svg { width: 26px; height: 26px; }

.card .card-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--sp-2);
}
.card--dark .card-kicker { color: var(--blue-400); }

/* Solution card w/ scene strip */
.scene-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.scene-card .scene { aspect-ratio: 16 / 9; background: var(--navy-900); }
.scene-card .scene svg { width: 100%; height: 100%; }
.scene-card .scene-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); flex: 1; }

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  text-align: left;
}
.stat {
  border-left: 2px solid rgba(46, 123, 255, 0.5);
  padding-left: var(--sp-4);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat b .unit { font-size: 0.55em; font-weight: 500; color: var(--blue-400); margin-left: 2px; }
.stat span { display: block; margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--text-mid); }
.section--light .stat b, .section--white .stat b { color: var(--ink-900); }
.section--light .stat span, .section--white .stat span { color: var(--ink-600); }

/* ---------- Product explorer / hotspots ---------- */
.explorer {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: center;
}
.explorer-stage {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(46, 123, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-850));
  border: 1px solid var(--line-dark);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.explorer-stage > svg { width: 100%; max-height: 640px; margin-inline: auto; }
.hotspot {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(46, 123, 255, 0.25);
  display: grid;
  place-items: center;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  translate: -50% -50%;
}
.hotspot::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 10px 2px var(--blue-glow);
  transition: background-color var(--dur) var(--ease);
}
.hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(92, 160, 255, 0.6);
  animation: pulse-ring 2.6s var(--ease) infinite;
}
.hotspot:hover, .hotspot[aria-expanded="true"] { background: rgba(46, 123, 255, 0.45); transform: scale(1.12); }
.hotspot[aria-expanded="true"]::before { background: #fff; }

.explorer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.explorer-list li { margin: 0; }
.explorer-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  color: var(--text-mid);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.explorer-item h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 1.0625rem;
  margin: 0;
  color: var(--text-hi);
  font-weight: 500;
}
.explorer-item h3 .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-400);
  min-width: 1.6rem;
}
.explorer-item p {
  margin: var(--sp-2) 0 0 2.35rem;
  font-size: var(--fs-small);
  display: none;
}
.explorer-item:hover { background: rgba(140, 168, 210, 0.06); }
.explorer-item[aria-expanded="true"] {
  background: rgba(46, 123, 255, 0.09);
  border-color: rgba(46, 123, 255, 0.3);
}
.explorer-item[aria-expanded="true"] p { display: block; }

/* ---------- Process timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  counter-reset: step;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 3%;
  right: 3%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(46, 123, 255, 0.5) 12%, rgba(46, 123, 255, 0.5) 88%, transparent);
}
.step { position: relative; padding-top: var(--sp-7); }
.step .step-num {
  position: absolute;
  top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-850);
  border: 1px solid rgba(46, 123, 255, 0.45);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--blue-300);
  box-shadow: 0 0 0 8px var(--navy-950);
}
.section--dark-raised .step .step-num { box-shadow: 0 0 0 8px var(--navy-900); }
.step h3 { color: var(--text-hi); font-size: 1.125rem; margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-small); color: var(--text-mid); }

/* ---------- Environment tabs ---------- */
.env-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.env-tab {
  border: 1px solid var(--line-dark);
  background: rgba(140, 168, 210, 0.05);
  color: var(--text-mid);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.env-tab:hover { border-color: rgba(92, 160, 255, 0.5); color: var(--text-hi); }
.env-tab[aria-selected="true"] {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}
.env-panel { display: none; }
.env-panel.is-active { display: grid; }
.env-panel {
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  align-items: center;
}
.env-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--navy-900);
}
.env-visual svg { width: 100%; height: auto; }
.env-panel h3 { font-size: var(--fs-h3); }
.env-panel ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-4); }
.env-panel ul li {
  display: flex;
  gap: var(--sp-2);
  align-items: baseline;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-mid);
}
.env-panel ul li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  position: relative;
  top: -2px;
}

/* ---------- SOC / camera grid ---------- */
.soc {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background: var(--navy-900);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.soc-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}
.soc-bar .live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-300);
}
.soc-bar .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  animation: beacon 1.8s ease-in-out infinite;
}
.soc-bar .demo-tag { margin-left: auto; color: var(--text-low); border: 1px solid var(--line-dark); border-radius: 4px; padding: 2px 8px; }
.soc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
}
.soc-cell { position: relative; background: var(--navy-950); aspect-ratio: 16 / 10; overflow: hidden; }
.soc-cell svg { width: 100%; height: 100%; }
.soc-cell .cam-label {
  position: absolute;
  left: 10px; top: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgba(234, 241, 251, 0.85);
  background: rgba(5, 10, 22, 0.55);
  padding: 2px 8px;
  border-radius: 4px;
}
.soc-cell .cam-rec {
  position: absolute;
  right: 10px; top: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--blue-300);
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(5, 10, 22, 0.55);
  padding: 2px 8px;
  border-radius: 4px;
}
.soc-cell .cam-rec::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: beacon 2s ease-in-out infinite;
}

/* ---------- Architecture diagram ---------- */
.arch { max-width: 56rem; margin-inline: auto; }
.arch svg { width: 100%; height: auto; }
.flow-dash {
  stroke-dasharray: 6 8;
  animation: flow 1.6s linear infinite;
}

/* ---------- Deployment map ---------- */
.map-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-5);
  align-items: stretch;
}
.map-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--navy-900);
}
.map-stage > svg { width: 100%; height: 100%; display: block; }
.map-pin {
  cursor: pointer;
}
.map-pin circle.ring { animation: pulse-ring-svg 2.8s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
.map-pin:hover .dot, .map-pin.is-active .dot { fill: #fff; }
.map-pin.is-active .halo { fill: rgba(46, 123, 255, 0.35); }
.map-note {
  position: absolute;
  left: 12px; bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-low);
  background: rgba(5, 10, 22, 0.65);
  padding: 3px 10px;
  border-radius: 4px;
}
.map-detail {
  background: linear-gradient(170deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
}
.map-detail .unit-id {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--blue-400);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.map-detail h3 { color: var(--text-hi); margin-bottom: var(--sp-2); }
.map-detail .status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--green-500);
  margin-bottom: var(--sp-5);
}
.map-detail .status-line::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}
.map-detail dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-5);
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-small);
}
.map-detail dt { color: var(--text-low); font-family: var(--font-display); }
.map-detail dd { margin: 0; color: var(--text-hi); }
.map-detail .demo-note {
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--text-low);
  border-top: 1px solid var(--line-dark);
  padding-top: var(--sp-4);
}

/* ---------- Before / after slider ---------- */
.ba-wrap { max-width: 62rem; margin-inline: auto; }
.ba {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
  touch-action: none;
}
.ba .ba-layer { position: absolute; inset: 0; }
.ba .ba-layer svg { width: 100%; height: 100%; }
.ba .ba-after { clip-path: inset(0 0 0 var(--ba-x, 50%)); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-x, 50%);
  width: 2px;
  background: var(--blue-400);
  z-index: 3;
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-600);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 18px rgba(5, 10, 22, 0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6 2 12l6 6M16 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
}
.ba-tags { position: absolute; z-index: 2; top: 14px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-hi); background: rgba(5, 10, 22, 0.6); padding: 4px 12px; border-radius: 4px; }
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.ba-caption { text-align: center; margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--text-low); }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--sp-5); }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-small);
  margin-bottom: var(--sp-2);
  color: var(--ink-900);
}
.field .req { color: var(--red-500); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--ink-900);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(27, 95, 217, 0.18);
}
.field .hint { font-size: 0.8438rem; color: var(--ink-500); margin-top: var(--sp-2); }
.field .error-msg {
  display: none;
  font-size: 0.8438rem;
  color: var(--red-500);
  margin-top: var(--sp-2);
  font-weight: 600;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-500); }
.field.has-error .error-msg { display: block; }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  font-size: var(--fs-small);
}
.check:hover { border-color: var(--blue-600); }
.check input { width: 20px; height: 20px; accent-color: var(--blue-600); flex: none; }
.check:has(input:checked) { border-color: var(--blue-600); background: rgba(27, 95, 217, 0.06); }

/* Multi-step */
.steps-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
}
.steps-nav .snav {
  border-top: 3px solid var(--line-light);
  padding-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--ink-500);
}
.steps-nav .snav b { display: block; color: inherit; font-weight: 600; font-size: var(--fs-small); }
.steps-nav .snav .snum { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; }
.steps-nav .snav.is-active { border-top-color: var(--blue-600); color: var(--blue-600); }
.steps-nav .snav.is-done { border-top-color: var(--green-500); }
.form-step { display: none; }
.form-step.is-active { display: block; }
.form-nav-row { display: flex; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); }
.form-success { text-align: center; padding: var(--sp-8) var(--sp-5); display: none; }
.form-success.is-active { display: block; }
.form-success .ok-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  background: rgba(47, 191, 113, 0.12);
  color: var(--green-500);
  display: grid;
  place-items: center;
}

/* Upload */
.upload {
  border: 2px dashed var(--line-light);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-align: center;
  color: var(--ink-500);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  cursor: pointer;
}
.upload:hover, .upload.is-drag { border-color: var(--blue-600); background: rgba(27, 95, 217, 0.04); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload .file-name { font-weight: 600; color: var(--ink-900); }

/* ---------- Accordion (FAQ) ---------- */
.faq { max-width: 48rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line-light); }
.section--dark .faq-item, .section--dark-raised .faq-item { border-color: var(--line-dark); }
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  background: none;
  border: 0;
  text-align: left;
  padding: var(--sp-5) var(--sp-2);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: inherit;
  min-height: 48px;
}
.section--dark .faq-item button, .section--dark-raised .faq-item button { color: var(--text-hi); }
.section--light .faq-item button, .section--white .faq-item button { color: var(--ink-900); }
.faq-item button svg { flex: none; transition: transform var(--dur) var(--ease); color: var(--blue-500); }
.faq-item button[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-item .faq-body { display: none; padding: 0 var(--sp-2) var(--sp-5); max-width: 60ch; }
.faq-item .faq-body.is-open { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 85% 10%, rgba(46, 123, 255, 0.22), transparent 55%),
    linear-gradient(170deg, var(--navy-850), var(--navy-950) 75%);
  border-top: 1px solid var(--line-dark);
  color: var(--text-mid);
}
.cta-band .cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-7);
  align-items: center;
}
.cta-band h2 { color: var(--text-hi); max-width: 20ch; }
.cta-band .cta-visual svg { width: 100%; max-width: 420px; margin-inline: auto; }

/* ---------- Checklist ---------- */
.ticks { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.ticks li { display: flex; gap: var(--sp-3); align-items: baseline; margin: 0; }
.ticks svg { flex: none; width: 20px; height: 20px; color: var(--blue-500); position: relative; top: 4px; }
.ticks--2col { grid-template-columns: 1fr 1fr; }

/* ---------- Table (spec placeholder) ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.spec-table th, .spec-table td {
  text-align: left;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}
.spec-table th { font-family: var(--font-display); font-weight: 600; color: var(--ink-900); width: 34%; }

/* ---------- Article / prose ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.75rem; margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose p, .prose li { font-size: var(--fs-body-lg); line-height: 1.7; color: var(--ink-600); }
.prose blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--blue-600);
  background: rgba(27, 95, 217, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  color: var(--ink-900);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-low);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--text-mid);
  border-top: 1px solid var(--line-dark);
  padding: var(--sp-9) 0 var(--sp-6);
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.footer-brand p { max-width: 30ch; color: var(--text-low); }
.site-footer h4,
.site-footer .footer-h {
  color: var(--text-hi);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: var(--sp-3); }
.site-footer ul a { color: var(--text-mid); }
.site-footer ul a:hover { color: var(--blue-300); }
.footer-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: -0.01em;
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: var(--sp-6);
}
.footer-tagline .accent { color: var(--blue-400); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  color: var(--text-low);
  font-size: 0.8438rem;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); margin-left: auto; }
.footer-legal ul li { margin: 0; }
.footer-legal a { color: var(--text-low); }
.footer-legal a:hover { color: var(--blue-300); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes beacon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes pulse-ring-svg {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}
@keyframes flow { to { stroke-dashoffset: -14; } }
@keyframes cue-drop {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(7px); opacity: 1; }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.45; }
}
.beacon-glow { animation: glow-breathe 3.2s ease-in-out infinite; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-nav);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(5, 10, 22, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-dark);
}
.mobile-cta .btn { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .split--offset, .explorer, .env-panel.is-active, .map-wrap, .cta-band .cta-inner { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-5); }
  .timeline { grid-template-columns: 1fr; gap: var(--sp-5); padding-left: 27px; }
  .timeline::before {
    top: 3%; bottom: 3%; left: 27px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, transparent, rgba(46, 123, 255, 0.5) 8%, rgba(46, 123, 255, 0.5) 92%, transparent);
  }
  .step { padding: 0 0 0 var(--sp-7); }
  .step .step-num { left: -27px; translate: -50% 0; top: -4px; }
  .hero { min-height: auto; padding-top: 9rem; }
  .scroll-cue { display: none; }
  .soc-grid { grid-template-columns: repeat(2, 1fr); }
  .map-stage { aspect-ratio: 4 / 3; }
  .explorer-stage { max-width: 30rem; margin-inline: auto; }
}

@media (max-width: 767px) {
  :root { --section-pad: clamp(3.5rem, 2.5rem + 4vw, 5rem); }
  .nav-bar { gap: var(--sp-4); }
  .brand small { letter-spacing: 0.16em; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .ticks--2col { grid-template-columns: 1fr; }
  .env-panel ul { grid-template-columns: 1fr; }
  .steps-nav .snav b { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-legal ul { margin-left: 0; }
  .mobile-cta.is-ready { display: block; }
  body { padding-bottom: 76px; }
  .soc-grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero { padding-top: 7.5rem; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
