/* ============================================================
   SafeVision AI — Marketing Site Design System
   Dark + cyan, modernized. Single file. No build, no framework.
   ============================================================ */

/* -------- TOKENS -------- */
:root {
  /* Surfaces — Volt Orange + Steel system. Steel family, slightly
     blue-cool to make the orange brand pop. */
  --bg:        #0E141C;
  --bg-1:      #131A24;
  --bg-2:      #1A2332;
  --bg-3:      #232E40;
  --card:      #1F2B40;
  --card-2:    #28344A;
  --card-3:    #344056;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.12);
  --border-3:  rgba(255, 107, 26, 0.30);

  /* Text — slightly warmer to sit well with the orange brand */
  --text:      #ECEFF4;
  --text-2:    #C5CCD8;
  --muted:     #8A93A4;
  --dim:       #5A6477;

  /* Brand — Volt Orange family.
     Variable names kept (--cyan etc.) so existing references keep
     working without a sweeping rename. The VALUES are now orange. */
  --cyan:      #FF6B1A;        /* primary brand: volt orange */
  --cyan-2:    #E55A14;        /* deeper orange (hover/pressed) */
  --cyan-3:    #FFB280;        /* peach/light orange (highlights) */
  --cyan-glow: rgba(255, 107, 26, 0.45);
  --cyan-soft: rgba(255, 107, 26, 0.10);
  --cyan-line: rgba(255, 107, 26, 0.24);

  /* Accents */
  --blue:      #38BDF8;        /* cool sky blue — data/AI accent */
  --indigo:    #818CF8;
  --green:     #10B981;
  --amber:     #FBBF24;        /* shifted yellower so warning is
                                  clearly distinct from brand orange */
  --red:       #DC2626;
  --purple:    #A855F7;

  /* Geometry */
  --r-xs:      4px;
  --r-sm:      6px;
  --r:         10px;
  --r-lg:      14px;
  --r-xl:      20px;
  --r-2xl:     28px;

  /* Shadow */
  --shadow:    0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 24px 80px var(--cyan-glow), 0 8px 24px rgba(0, 0, 0, 0.5);
  --inset-line: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Layout */
  --max-w:     1240px;
  --max-narrow: 880px;

  /* Type */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

/* -------- BASE -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-sans);
  background: var(--bg-1);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { border-radius: var(--r); }
a { color: var(--cyan); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--cyan-3); }
button { font-family: inherit; }
::selection { background: var(--cyan); color: #000; }

/* Skip link for a11y */
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--cyan); color: #000; padding: 8px 14px; border-radius: 6px;
  font-weight: 700; z-index: 200;
}
.skip:focus { left: 8px; }

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.container.narrow { max-width: var(--max-narrow); }

/* -------- TYPOGRAPHY -------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
h5 { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }

p { color: var(--text-2); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 720px;
  margin-bottom: 24px;
}
.lede.lg { font-size: clamp(18px, 1.7vw, 22px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--cyan);
}
.eyebrow.no-rule::before { display: none; }

.kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.gradtext {
  background: linear-gradient(95deg, var(--cyan) 0%, var(--cyan-3) 60%, #c2f5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-3);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--cyan-3);
  border: 1px solid var(--border);
}

/* -------- HEADER / NAV -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 15, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--text);
  letter-spacing: -0.01em;
}
.brand .logo {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.brand .logo svg { width: 30px; height: 30px; }
.brand .tag {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--cyan);
  font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--text-2); font-weight: 500; font-size: 14px;
  position: relative; padding: 6px 0;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--cyan); border-radius: 2px;
}
.nav .cta {
  background: var(--cyan); color: #000;
  padding: 10px 18px 10px 20px;
  border-radius: 10px;
  font-weight: 700; font-size: 13.5px;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 6px 18px rgba(255,107,26,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.nav .cta::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.nav .cta:hover::after { transform: translateX(100%); }
.nav .cta .arr {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
}
.nav .cta .arr svg { width: 11px; height: 11px; }
.nav .cta:hover {
  background: var(--cyan-3); color: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255,107,26,0.42), inset 0 1px 0 rgba(255,255,255,0.4);
}
.nav .cta:hover .arr { transform: translateX(2px); background: rgba(0,0,0,0.28); }
.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--border-2);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 20px 24px; gap: 12px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 16px; }
  .nav .cta { text-align: center; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* -------- SECTIONS -------- */
section { padding: 96px 0; position: relative; }
section.tight { padding: 56px 0; }
section.snug { padding: 72px 0; }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto; margin-right: auto; text-align: center;
}
.section-head h2 { margin-bottom: 16px; }

.divider-glow {
  position: absolute; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-line), transparent);
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: -0.005em;
  border: none; cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan); color: #000;
  box-shadow: 0 8px 24px rgba(255, 107, 26, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
  background: var(--cyan-3); color: #000;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(255, 107, 26, 0.45), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}
.btn-ghost {
  background: transparent; color: var(--cyan); padding: 8px 14px;
}
.btn-ghost:hover { color: var(--cyan-3); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-arrow svg { transition: transform 0.18s; }
.btn-arrow:hover svg { transform: translateX(3px); }
.btn-lg { padding: 16px 30px; font-size: 15px; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* -------- HERO -------- */
.hero {
  position: relative;
  padding: 80px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 1400px; height: 900px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(255, 107, 26, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 60%, rgba(99, 102, 241, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 35% 25% at 70% 70%, rgba(255, 107, 26, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 100%);
  -webkit-mask: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* -------- HERO CAMERA GRID (animated) -------- */
.cam-board {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--shadow);
}
.cam-board::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan-line), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.cam-board-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cam-board-head .lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase;
}
.cam-board-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--cyan); text-transform: uppercase;
}
.cam-board-head .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.cam-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.cam-tile {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1A2540, #0C1424);
  border: 1px solid var(--border);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
}
.cam-tile::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,107,26,0.04) 0%, transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
}
.cam-tile .ind {
  position: absolute; top: 6px; right: 6px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
}
.cam-tile .lbl {
  position: absolute; bottom: 6px; left: 6px;
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.cam-tile.alert {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(255,107,26,0.4);
  animation: alert-pulse 2.6s ease-in-out infinite;
}
.cam-tile.alert::after {
  content: 'VIOLATION';
  position: absolute; bottom: 6px; left: 6px;
  background: var(--cyan); color: #000;
  font-family: var(--font-mono);
  font-size: 8px; font-weight: 600;
  padding: 2px 6px; border-radius: 3px; letter-spacing: 0.12em;
}
.cam-tile.alert .lbl { display: none; }

.cam-board-foot {
  margin-top: 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.cam-board-foot .stat-mini {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase;
}
.cam-board-foot .stat-mini b {
  display: block;
  font-family: var(--font-sans);
  font-size: 22px; color: var(--text); letter-spacing: -0.02em;
  margin-top: 2px; font-weight: 700;
}
.cam-board-foot .stat-mini.accent b { color: var(--cyan); }

/* Live ticker */
.cam-ticker {
  margin-top: 12px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,107,26,0.06);
  border: 1px solid var(--cyan-line);
  border-radius: var(--r);
  padding: 10px 12px;
}
.cam-ticker .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(255,107,26,0.18);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.cam-ticker .text {
  flex: 1; font-size: 12px; color: var(--text);
}
.cam-ticker .time {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.12em;
}

/* -------- CARDS / GRIDS -------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: all 0.22s ease;
}
.card:hover {
  border-color: var(--border-3);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--cyan-line);
}
.card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-line);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }

.card-glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
}

.card-feature {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,107,26,0.10), transparent 40%),
    var(--card);
}

/* Cap-grid item with index */
.cap {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.2s;
}
.cap:hover { border-color: var(--cyan-line); background: var(--card-2); }
.cap .num {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,107,26,0.08);
  color: var(--cyan);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--cyan-line);
}
.cap h4 { margin-bottom: 4px; }
.cap p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* -------- STATS -------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.stat .num {
  font-size: 38px; font-weight: 800;
  color: var(--text); line-height: 1;
  letter-spacing: -0.03em;
}
.stat .num span { color: var(--cyan); }
.stat .lbl {
  color: var(--muted); font-size: 12.5px;
  margin-top: 10px; line-height: 1.4;
}

/* -------- BIG FEATURE BAND -------- */
.feature-band {
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.feature-band::before {
  content: '';
  position: absolute; top: -100px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--cyan-soft) 0%, transparent 70%);
  pointer-events: none;
}

/* -------- FLOW (numbered steps) -------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 880px) { .flow { grid-template-columns: 1fr; } }

.flow-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  position: relative;
  transition: all 0.22s;
}
.flow-step:hover { border-color: var(--cyan-line); }
.flow-step .step-num {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 10px;
}
.flow-step h3 { font-size: 26px; margin-bottom: 10px; }
.flow-step p { font-size: 14px; color: var(--muted); }
.flow-step::after {
  content: '';
  position: absolute; top: 50%; right: -14px;
  width: 12px; height: 12px;
  border-top: 1.5px solid var(--cyan);
  border-right: 1.5px solid var(--cyan);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.6;
}
.flow-step:last-child::after { display: none; }
@media (max-width: 880px) { .flow-step::after { display: none; } }

/* -------- TABS -------- */
.tabs { border-bottom: 1px solid var(--border); display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  background: transparent; border: none; color: var(--muted);
  padding: 14px 20px; font-size: 14px; font-weight: 500;
  cursor: pointer; position: relative;
  transition: color 0.15s;
}
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--cyan); }
.tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 12px; right: 12px;
  height: 2px; background: var(--cyan); border-radius: 2px;
}
.tab-panel { display: none; padding-top: 32px; }
.tab-panel.active { display: block; animation: fade-in 0.25s ease; }

/* -------- TABLES -------- */
.tbl-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
}
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.tbl th, .tbl td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.tbl th {
  background: var(--card-2);
  color: var(--text); font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  position: sticky; top: 0;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: rgba(255, 107, 26, 0.025); }
.tbl td.us { background: rgba(255, 107, 26, 0.04); }
.tbl td.us strong { color: var(--cyan); }
.tbl .check { color: var(--green); font-weight: 700; }
.tbl .cross { color: var(--dim); }
.tbl .pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--bg-3); color: var(--text-2);
  border: 1px solid var(--border-2);
}
.tbl .pill.us { background: var(--cyan-soft); color: var(--cyan); border-color: var(--cyan-line); }

/* -------- PRICING -------- */
.price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 36px;
}
.price {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.2s;
}
.price:hover { transform: translateY(-2px); border-color: var(--border-2); }
.price.featured {
  border-color: var(--cyan-line);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,107,26,0.10), transparent 50%),
    var(--card);
  box-shadow: 0 20px 60px rgba(255,107,26,0.10);
}
.price.featured::before {
  content: 'Most popular';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: #000;
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 600; letter-spacing: 0.18em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.price .name {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--cyan); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px;
}
.price .amt {
  font-size: 48px; font-weight: 800; color: var(--text);
  line-height: 1; letter-spacing: -0.035em; margin-bottom: 4px;
}
.price .amt sup {
  font-size: 18px; vertical-align: top; margin-right: 2px;
  color: var(--muted); font-weight: 500;
}
.price .amt .per {
  font-size: 14px; color: var(--muted); font-weight: 500;
  letter-spacing: 0;
}
.price .desc {
  font-size: 13.5px; color: var(--muted);
  min-height: 48px; margin-bottom: 24px; line-height: 1.55;
}
.price ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price ul li {
  padding: 7px 0; color: var(--text); font-size: 13.5px;
  display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px dashed var(--border);
}
.price ul li:last-child { border-bottom: none; }
.price ul li::before {
  content: '✓'; color: var(--cyan); font-weight: 800; flex-shrink: 0;
  margin-top: -1px;
}
.price ul li.no { color: var(--dim); }
.price ul li.no::before { content: '—'; color: var(--dim); }
.price .btn { width: 100%; justify-content: center; }

/* -------- FAQ (accordion) -------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.18s;
}
.faq-item:hover { border-color: var(--border-2); }
.faq-item[open] { border-color: var(--cyan-line); }
.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-size: 16px; font-weight: 600; color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ind {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,107,26,0.08); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px; font-weight: 600; line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary .ind { transform: rotate(45deg); }
.faq-item .body {
  padding: 0 24px 22px;
  color: var(--text-2); font-size: 14.5px; line-height: 1.65;
}

/* -------- BADGES & PILLS -------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  background: var(--card);
  color: var(--text-2);
}
.badge-cyan { background: var(--cyan-soft); color: var(--cyan); border-color: var(--cyan-line); }
.badge-green { background: rgba(16, 185, 129, 0.12); color: var(--green); border-color: rgba(16,185,129,0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); border-color: rgba(245,158,11,0.3); }
.badge-red   { background: rgba(239, 68, 68, 0.12); color: var(--red); border-color: rgba(239,68,68,0.3); }
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* -------- LOGO MARQUEE -------- */
.marquee {
  overflow: hidden;
  position: relative;
  mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 64px; align-items: center;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.marquee-item svg { width: 18px; height: 18px; opacity: 0.6; }

/* -------- ARCHITECTURE DIAGRAM -------- */
.arch {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
}
@media (max-width: 880px) { .arch { grid-template-columns: 1fr; } }
.arch-node {
  background: var(--card-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 20px 16px;
  text-align: center;
  position: relative;
}
.arch-node.accent {
  border-color: var(--cyan);
  background: linear-gradient(180deg, var(--cyan-soft), var(--card-2));
}
.arch-node .ic {
  width: 36px; height: 36px; margin: 0 auto 10px;
  border-radius: 8px;
  background: var(--cyan-soft); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.arch-node .ic svg { width: 18px; height: 18px; }
.arch-node h5 { font-size: 13px; margin-bottom: 4px; }
.arch-node p { font-size: 11.5px; color: var(--muted); margin: 0; line-height: 1.4; }
.arch-node:not(:last-child)::after {
  content: '';
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  border-top: 1.5px solid var(--cyan);
  border-right: 1.5px solid var(--cyan);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}
@media (max-width: 880px) { .arch-node:not(:last-child)::after { display: none; } }

/* -------- CTA BAND -------- */
.cta-band {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,107,26,0.18), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(99,102,241,0.10), transparent 50%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 580px; margin: 0 auto 28px; }
.cta-band .btn-group { justify-content: center; }
@media (max-width: 700px) { .cta-band { padding: 40px 24px; } }

/* -------- FOOTER -------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg);
  margin-top: 96px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid .col-brand p {
  color: var(--muted); font-size: 14px;
  max-width: 320px; margin-top: 12px;
}
.foot-grid h5 {
  color: var(--text); font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-grid a {
  display: block; color: var(--muted);
  font-size: 14px; padding: 5px 0;
}
.foot-grid a:hover { color: var(--cyan); }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-bottom a { color: var(--muted); }

/* -------- FORMS -------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  letter-spacing: 0.01em;
}
.field label .req { color: var(--cyan); margin-left: 2px; }
.field input, .field select, .field textarea {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit; font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(255,107,26,0.10);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--dim); }
.honey { position: absolute; left: -9999px; }

/* -------- LONG-FORM PROSE -------- */
.prose { max-width: 780px; }
.prose p, .prose li {
  font-size: 16.5px; color: var(--text-2);
  line-height: 1.78;
}
.prose h2 { margin-top: 56px; margin-bottom: 16px; font-size: 32px; }
.prose h3 { margin-top: 36px; margin-bottom: 12px; font-size: 22px; }
.prose ul, .prose ol { margin: 14px 0 14px 28px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: 12px 20px; margin: 24px 0;
  color: var(--text); background: var(--cyan-soft);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 17px;
}

/* TOC sidebar */
.layout-doc {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 56px; align-items: start;
}
@media (max-width: 960px) { .layout-doc { grid-template-columns: 1fr; } }
.toc {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 22px;
  margin-bottom: 32px;
}
/* Only sticky when used as a sidebar inside .layout-doc */
.layout-doc .toc {
  position: sticky;
  top: 96px;
  margin-bottom: 0;
}
.toc h5 {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 14px;
}
.toc ol {
  list-style: none; counter-reset: item;
  display: flex; flex-direction: column; gap: 8px;
}
.toc ol li {
  counter-increment: item;
  font-size: 13.5px;
}
.toc ol li::before {
  content: counter(item, decimal-leading-zero) '.';
  color: var(--dim); font-family: var(--font-mono);
  font-size: 11px; margin-right: 8px;
}
.toc ol li a { color: var(--text-2); }
.toc ol li a:hover { color: var(--cyan); }

/* -------- SCROLL REVEAL --------
   Content is ALWAYS visible (works for no-JS, crawlers, screenshots).
   When .in is added by the observer, it animates from a soft offset
   to its final position. */
.reveal { opacity: 1; transform: none; }
html.js .reveal.in {
  animation: reveal-in 0.75s cubic-bezier(.2,.7,.2,1) both;
}
html.js .reveal.delay-1.in { animation-delay: 0.08s; }
html.js .reveal.delay-2.in { animation-delay: 0.16s; }
html.js .reveal.delay-3.in { animation-delay: 0.24s; }
html.js .reveal.delay-4.in { animation-delay: 0.32s; }
@keyframes reveal-in {
  from { opacity: 0.2; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------- ANIMATIONS -------- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(255,107,26,0.4); }
  50% { box-shadow: 0 0 0 1px var(--cyan), 0 0 36px rgba(255,107,26,0.7); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* -------- UTILITIES -------- */
.center      { text-align: center; }
.left        { text-align: left; }
.mt-0        { margin-top: 0 !important; }
.mt-1        { margin-top: 8px; }
.mt-2        { margin-top: 16px; }
.mt-3        { margin-top: 24px; }
.mt-4        { margin-top: 32px; }
.mt-6        { margin-top: 48px; }
.mt-8        { margin-top: 64px; }
.mb-0        { margin-bottom: 0 !important; }
.mb-2        { margin-bottom: 16px; }
.mb-4        { margin-bottom: 32px; }
.mb-6        { margin-bottom: 48px; }
.dim         { color: var(--muted); }
.text-cyan   { color: var(--cyan); }
.flex        { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.flex.between { justify-content: space-between; }
.spacer-sm   { height: 24px; }
.spacer      { height: 48px; }
.spacer-lg   { height: 80px; }
.divider     { height: 1px; background: var(--border); margin: 48px 0; }

/* ============================================================
   CREATIVE / INTERACTIVE LAYER
   Live detection scenes, magnetic CTAs, tilt cards, cursor spot
   ============================================================ */

/* -------- HERO SPOTLIGHT (cursor-following glow) -------- */
.spotlight {
  position: relative;
  isolation: isolate;
}
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 107, 26, 0.12),
      transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.spotlight.has-cursor::before { opacity: 1; }

/* -------- LIVE DETECTION SCENE INSIDE CAMERA TILES -------- */
/* Scene replaces empty .cam-tile interior with synthesized "AI vision" */
.cam-tile {
  /* Existing styles preserved; we add scene support */
  cursor: crosshair;
  isolation: isolate;
}
.cam-tile .scene {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
}
.cam-tile .scene svg { width: 100%; height: 100%; display: block; }

/* Scan-line passing across the tile */
.cam-tile .scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.cam-tile .scan::after {
  content: '';
  position: absolute;
  left: -10%; right: -10%;
  top: -100%;
  height: 30%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 107, 26, 0.0) 30%,
    rgba(255, 107, 26, 0.45) 50%,
    rgba(255, 107, 26, 0.0) 70%,
    transparent 100%);
  filter: blur(2px);
  animation: scan-y 3.6s linear infinite;
  animation-delay: var(--scan-delay, 0s);
}
@keyframes scan-y {
  0% { transform: translateY(0); }
  100% { transform: translateY(360%); }
}

/* Bounding box drawn on top of the scene */
.det-box {
  position: absolute;
  border: 1.5px solid var(--green);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  z-index: 3;
}
.det-box.warn { border-color: var(--cyan); animation: bbox-flash 1.4s ease-in-out infinite; }
.det-box.danger { border-color: #FF6B7A; animation: bbox-flash 1.0s ease-in-out infinite; }

@keyframes bbox-flash {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 8px rgba(255,107,26,0.4); }
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 16px rgba(255,107,26,0.7); }
}

/* Detection label badge attached to a box */
.det-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--green);
  color: #000;
  white-space: nowrap;
  z-index: 4;
  line-height: 1;
}
.det-label.warn { background: var(--cyan); color: #000; }
.det-label.danger { background: #FF6B7A; color: #000; }

/* Live confidence percent that pulses */
.det-conf {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.9;
}

/* Cam tile decorative overlays */
.cam-tile .grid-lines {
  position: absolute; inset: 6px;
  border: 1px dashed rgba(255,255,255,0.05);
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
}
.cam-tile .corner {
  position: absolute;
  width: 8px; height: 8px;
  border-color: rgba(255,255,255,0.18);
  border-style: solid;
  pointer-events: none;
  z-index: 1;
}
.cam-tile .corner.tl { top: 4px; left: 4px; border-width: 1.5px 0 0 1.5px; }
.cam-tile .corner.tr { top: 4px; right: 4px; border-width: 1.5px 1.5px 0 0; }
.cam-tile .corner.bl { bottom: 4px; left: 4px; border-width: 0 0 1.5px 1.5px; }
.cam-tile .corner.br { bottom: 4px; right: 4px; border-width: 0 1.5px 1.5px 0; }

/* Camera label overlay (bottom-left) */
.cam-tile .cam-meta {
  position: absolute;
  bottom: 5px; left: 6px;
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  z-index: 2;
}
.cam-tile .cam-meta b {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
/* Hide old .lbl when new meta is used */
.cam-tile.scene-tile .lbl,
.cam-tile.scene-tile .ind { display: none; }

/* Active alert ring around tile (synced with ticker) */
.cam-tile.beacon {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 1px var(--cyan), 0 0 32px rgba(255,107,26,0.6) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* -------- MAGNETIC CTA -------- */
.mag {
  transition: transform 0.18s cubic-bezier(.2,.7,.2,1);
}

/* -------- TILT CARDS -------- */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.tilt > * { transform: translateZ(0); }
.tilt .ic { transform: translateZ(20px); transition: transform 0.4s; }
.tilt h3 { transform: translateZ(12px); transition: transform 0.4s; }

/* -------- ARCH FLOW PARTICLES -------- */
.arch { isolation: isolate; }
.arch-flow {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.arch-flow .pulse {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  top: -2px; left: 0;
  animation: flow-x 4s linear infinite;
}
.arch-flow .pulse:nth-child(2) { animation-delay: 1.3s; opacity: 0.7; }
.arch-flow .pulse:nth-child(3) { animation-delay: 2.6s; opacity: 0.5; }
@keyframes flow-x {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(calc(100vw - 200px)); opacity: 0; }
}

/* -------- COUNTER PULSE on view -------- */
.stat .num { transition: text-shadow 0.4s ease; }
.stat.in-view .num { text-shadow: 0 0 24px rgba(255,107,26,0.5); }

/* ============================================================
   DASHBOARD MOCK — synthetic "incident history" UI for marketing
   Used in product.html evidence + live sections; reusable elsewhere.
   ============================================================ */
.dash-mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 107, 26, 0.06);
  font-size: 13px;
  max-width: 960px;
  margin: 0 auto;
}
.dash-head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.dash-head .traffic { display: flex; gap: 6px; }
.dash-head .traffic span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.dash-head .traffic span:nth-child(1) { background: #FF5F57; }
.dash-head .traffic span:nth-child(2) { background: #FEBC2E; }
.dash-head .traffic span:nth-child(3) { background: #28C840; }
.dash-head .url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-2);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.dash-head .url::before {
  content: '🔒'; opacity: 0.4; margin-right: 6px;
  font-size: 10px;
}
.dash-head .live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.dash-head .live-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* App bar (inside dashboard) */
.dash-appbar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--card));
  border-bottom: 1px solid var(--border);
}
.dash-appbar .brand-mini {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px;
  letter-spacing: -0.01em;
}
.dash-appbar .brand-mini .lg {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: inline-flex; align-items: center; justify-content: center;
  color: #000;
}
.dash-appbar .brand-mini .lg svg { width: 12px; height: 12px; }
.dash-appbar .brand-mini .tag {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--cyan);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.dash-appbar .tabs-mini { display: flex; gap: 4px; margin-left: 12px; }
.dash-appbar .tab-mini {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 6px;
  cursor: default;
}
.dash-appbar .tab-mini.active { color: var(--text); background: rgba(255,107,26,0.10); }
.dash-appbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dash-appbar .site-pick {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--text-2); text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--border-2);
  border-radius: 5px;
  background: var(--bg-2);
}

/* KPI strip */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.dash-kpis .kpi {
  padding: 14px 18px;
  border-right: 1px solid var(--border);
}
.dash-kpis .kpi:last-child { border-right: none; }
.dash-kpis .kpi .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.dash-kpis .kpi .value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.dash-kpis .kpi.alert .value { color: var(--cyan); }
.dash-kpis .kpi.crit .value { color: #FF6B7A; }
.dash-kpis .kpi.good .value { color: var(--green); }

/* Body grid: filters + content */
.dash-body {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.dash-filters {
  padding: 18px 18px;
  border-right: 1px solid var(--border);
  background: var(--card-2);
  font-size: 12px;
}
.dash-filters .group { margin-bottom: 16px; }
.dash-filters .group:last-child { margin-bottom: 0; }
.dash-filters .group h6 {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.dash-filters .chips { display: flex; gap: 4px; flex-wrap: wrap; }
.dash-filters .chip {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.dash-filters .chip.on { background: var(--cyan); color: #000; border-color: var(--cyan); font-weight: 600; }
.dash-filters .select {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  font-size: 11.5px;
  color: var(--text-2);
}
.dash-filters .select::after { content: '▾'; color: var(--muted); font-size: 9px; }

.dash-content {
  padding: 18px 22px;
  background: var(--card);
}
.dash-content-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.dash-content-head h4 {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.dash-content-head .meta {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dash-content-head .actions { display: flex; gap: 6px; }
.dash-content-head .pill-btn {
  padding: 5px 10px;
  font-size: 11px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 5px;
}
.dash-content-head .pill-btn svg { width: 11px; height: 11px; }

/* Incident row */
.inc-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 8px; overflow: hidden; }
.inc-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  padding: 12px;
  background: var(--card);
  align-items: center;
  transition: background 0.12s;
}
.inc-row:hover { background: var(--card-2); }
.inc-thumb {
  width: 88px; height: 56px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  flex-shrink: 0;
}
.inc-thumb svg { width: 100%; height: 100%; display: block; }
.inc-thumb .play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  opacity: 0.85;
}
.inc-thumb .play svg { width: 9px; height: 9px; }
.inc-thumb .clip-len {
  position: absolute; bottom: 3px; right: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

.inc-body .inc-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px;
}
.inc-body .inc-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.inc-body .inc-meta b { color: var(--text-2); font-weight: 500; }

.sev-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
}
.sev-pill.critical { background: rgba(239, 68, 68, 0.18); color: #FF8A92; border: 1px solid rgba(239, 68, 68, 0.4); }
.sev-pill.high     { background: rgba(245, 158, 11, 0.18); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.4); }
.sev-pill.medium   { background: rgba(255, 107, 26, 0.14); color: var(--cyan); border: 1px solid var(--cyan-line); }

.inc-status {
  text-align: right;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.status-tag {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  padding: 2px 7px; border-radius: 3px;
}
.status-tag.resolved { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.status-tag.ack      { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.status-tag.open     { background: rgba(239, 68, 68, 0.18); color: #FF8A92; animation: pulse-dot 2s ease-in-out infinite; }
.inc-status .ago {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

@media (max-width: 760px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-filters { display: none; }
  .dash-kpis { grid-template-columns: repeat(3, 1fr); }
  .dash-kpis .kpi:nth-child(n+4) { display: none; }
  .inc-row { grid-template-columns: 64px 1fr; gap: 10px; }
  .inc-thumb { width: 64px; height: 40px; }
  .inc-status { display: none; }
}

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