/* ============================================================
   VIZIRIX — marketing site
   Dark, editorial, security-infrastructure grade.
   ============================================================ */

:root {
  /* Brand accent + neutrals */
  --orange:        #F95C12;
  --orange-dark:   #99320D;
  --slate:         #202a36;
  --slate-mid:     #38434f;
  --gray:          #BEBEC0;
  --white:         #FFFFFF;

  /* Deep blue-black backdrop stops */
  --bg-glow:       #0a1420;   /* radial center */
  --bg-mid:        #070b12;
  --bg-deep:       #04060a;   /* outer / page base */
  --black:         #04060a;   /* page base alias */

  /* Derived tones (cooled toward blue-black) */
  --ink:           #EBEEF3;   /* primary text on dark */
  --ink-soft:      #AEB6C2;   /* muted body */
  --ink-faint:     #6d7583;   /* captions */
  --hairline:      rgba(174,182,194,0.13);
  --hairline-2:    rgba(174,182,194,0.08);
  --surface:       #0b131d;
  --surface-2:     #101b27;
  --orange-glow:   rgba(249,92,18,0.14);

  /* Type — Apple's San Francisco, native (renders as real SF Pro on macOS/iOS) */
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --f-body:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --f-mono:    ui-monospace, "SF Mono", "SFMono-Regular", Menlo, monospace;

  /* Spacing scale (4/8) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  --maxw: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Deep blue-black radial glow: #0a1420 -> #070b12 -> #04060a */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 70% at 80% -8%, rgba(18,38,60,0.55) 0%, rgba(18,38,60,0) 58%),
    radial-gradient(135% 115% at 50% -4%, var(--bg-glow) 0%, var(--bg-mid) 48%, var(--bg-deep) 82%);
}
/* Fine grid texture — barely there, adds "infrastructure" feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hairline-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* ---------- Typography primitives ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
.num, .cite-time, .stat-num, .console-scope { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.accent { color: var(--orange); }

.kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-4);
}
.kicker::before { content: "// "; opacity: 0.6; }

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  color: var(--white);
  max-width: 18ch;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 12px 22px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 15px;
  padding: var(--btn-pad);
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn-sm { --btn-pad: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 8px 24px -10px rgba(249,92,18,0.7);
  border-color: #ff7434;
}
.btn-primary:hover { background: #ff6a22; transform: translateY(-1px); }
.btn-primary:active { background: var(--orange-dark); transform: translateY(0); box-shadow: 0 2px 8px -4px rgba(153,50,13,0.9) inset; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--slate-mid); background: rgba(255,255,255,0.02); transform: translateY(-1px); }
.btn-ghost svg { transition: transform .2s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ============================================================
   OPS HUD BAR  (replaces marketing header)
   ============================================================ */
.hud {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(8,8,14,0.86), rgba(8,8,14,0.62));
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.hud-inner {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  height: 60px; padding-inline: clamp(16px, 4vw, 40px);
  max-width: 1600px; margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { height: 34px; width: auto; }
.brand-wordmark { height: 22px; width: auto; }

.hud-nav { display: flex; gap: 4px; margin-left: 8px; }
.hud-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--ink-soft); padding: 7px 12px; border-radius: 8px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.hud-nav a i { font-family: var(--f-mono); font-style: normal; font-size: 10px; color: var(--ink-faint); letter-spacing: 0.05em; }
.hud-nav a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.hud-nav a:hover i { color: var(--orange); }

.hud-status {
  margin-left: auto; display: flex; align-items: center; gap: 18px;
  padding-right: 4px;
}
.hud-stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-soft);
  white-space: nowrap;
}
.hud-stat b { color: var(--ink-faint); font-weight: 400; letter-spacing: 0.1em; }
.hud-stat .num { color: var(--white); }
.hud-rec { color: var(--orange); }
.hud-rec b { color: var(--orange); opacity: .7; }
.hud-rec .num { color: var(--orange); }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: pulse 1.6s var(--ease) infinite; }

.hud-cta {
  flex-shrink: 0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; font-weight: 500;
  color: var(--white); padding: 9px 16px; border-radius: 8px;
  border: 1px solid rgba(249,92,18,0.5);
  background: linear-gradient(180deg, rgba(249,92,18,0.16), rgba(249,92,18,0.06));
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.hud-cta::before { content: "▸ "; color: var(--orange); }
.hud-cta:hover { background: var(--orange); border-color: #ff7434; box-shadow: 0 8px 24px -12px rgba(249,92,18,0.8); }

.menu-toggle {
  display: none; margin-left: 4px;
  width: 40px; height: 40px; border: 1px solid var(--hairline); background: transparent;
  border-radius: 9px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { width: 17px; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px clamp(16px,4vw,40px) 20px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(8,8,14,0.96);
  backdrop-filter: blur(12px);
}
.mobile-nav a { padding: 12px 0; color: var(--ink-soft); border-bottom: 1px solid var(--hairline-2); }
.mobile-nav a.hud-cta { margin-top: 14px; justify-content: center; text-align: center; border-bottom: none; padding: 13px; }

/* ============================================================
   OPS WALL  (hero)
   ============================================================ */
.ops {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 60px);
  display: flex; flex-direction: column;
  padding-inline: clamp(16px, 4vw, 40px);
  isolation: isolate;
}

/* --- the live camera wall: a few scattered feeds (JS-positioned) --- */
.wall {
  position: absolute; inset: 0; z-index: -2; opacity: 0.96;
  /* protect the left reading column (headline + console); keep the right side crisp */
  -webkit-mask-image: linear-gradient(100deg, transparent 0 30%, rgba(0,0,0,0.45) 42%, #000 55%);
          mask-image: linear-gradient(100deg, transparent 0 30%, rgba(0,0,0,0.45) 42%, #000 55%);
}
/* glowing dotted trace threading under the feeds */
.wall-link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.wall-link path {
  fill: none; stroke: var(--orange); stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 0.5 7; stroke-linecap: round;
  filter: drop-shadow(0 0 3px var(--orange)) drop-shadow(0 0 7px rgba(249,92,18,0.55));
  opacity: 0.85;
  animation: dashflow 2.4s linear infinite;
}
@keyframes dashflow { to { stroke-dashoffset: -15; } }

/* each unit = a CCTV feed + a VIZIRIX analytics panel beside it */
.tile {
  position: absolute; display: flex; align-items: stretch;
  filter: drop-shadow(0 26px 50px rgba(0,0,0,0.6));
  animation: floatY var(--flt,9s) ease-in-out var(--fdelay,0s) infinite;
}
.feed {
  position: relative; overflow: hidden; flex-shrink: 0; align-self: stretch;
  width: var(--fw,200px); min-height: 248px;
  background: #0a121c;
  border: 1px solid rgba(174,182,194,0.12); border-right: none;
  border-radius: 8px 0 0 8px;
}
/* the CCTV feed — scaled in slightly so subjects read closer */
.feed .tvid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transform: scale(1.2); transform-origin: 50% 45%;
  filter: grayscale(0.28) contrast(1.06) brightness(0.86) saturate(0.82);
}
/* scanlines + soft vignette over the video */
.feed::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, transparent 0 2px, rgba(0,0,0,0.16) 2px 3px),
    radial-gradient(120% 100% at 50% 40%, transparent 52%, rgba(0,0,0,0.5));
  opacity: .8;
}
/* HUD targeting frame (corner brackets) */
.feed::before {
  content: ""; position: absolute; inset: 6px; z-index: 6; pointer-events: none;
  --c: rgba(160,224,255,0.34); --n: 11px;
  background:
    linear-gradient(var(--c),var(--c)) 0 0/var(--n) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 0/1px var(--n) no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 0/var(--n) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 0/1px var(--n) no-repeat,
    linear-gradient(var(--c),var(--c)) 0 100%/var(--n) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 100%/1px var(--n) no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 100%/var(--n) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 100%/1px var(--n) no-repeat;
}
.tile.live .feed::before { --c: rgba(249,92,18,0.5); }
/* feed labels */
.feed .tid {
  position: absolute; top: 7px; left: 9px; z-index: 5;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; color: rgba(210,216,224,0.82);
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}
.feed .tclock {
  position: absolute; bottom: 7px; left: 9px; z-index: 5;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.06em; color: rgba(210,216,224,0.78);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.feed .tstate {
  position: absolute; top: 6px; right: 8px; z-index: 5;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.1em; color: rgba(210,216,224,0.6);
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}
.feed .tstate::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(210,216,224,0.5); }
.tile.live .tstate { color: var(--orange); }
.tile.live .tstate::before { background: var(--orange); box-shadow: 0 0 6px var(--orange); animation: pulse 1.5s var(--ease) infinite; }
/* active-analysis scan sweep (live feeds only) */
.tile.live .tscan {
  position: absolute; left: 0; right: 0; height: 16px; z-index: 5; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(160,224,255,0.14), transparent);
  border-top: 1px solid rgba(160,224,255,0.25);
  animation: vscan 3.6s linear infinite;
}

/* --- VIZIRIX analytics panel --- */
.vzpanel {
  width: 176px; align-self: stretch;
  background: linear-gradient(180deg, rgba(13,21,31,0.95), rgba(7,12,19,0.97));
  border: 1px solid rgba(174,182,194,0.14);
  border-radius: 0 8px 8px 0;
  padding: 9px 11px; display: flex; flex-direction: column; gap: 6px;
  backdrop-filter: blur(4px);
}
.vz-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vz-name { font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: 0.02em; color: #fff; }
.vz-name b { color: var(--orange); font-weight: 600; }
.vz-live { width: 6px; height: 6px; border-radius: 50%; background: rgba(160,224,255,0.85); }
.tile.live .vz-live { background: var(--orange); box-shadow: 0 0 6px var(--orange); animation: pulse 1.5s var(--ease) infinite; }
.vz-cam { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.04em; color: var(--ink-faint); text-transform: uppercase; }
.vz-cam .vz-live { flex-shrink: 0; }
.vz-rows { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.vz-row {
  position: relative; padding-left: 12px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.01em; line-height: 1.25;
  color: var(--ink-soft);
}
.vz-row::before {
  content: ""; position: absolute; left: 0; top: 3.5px; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(160,224,255,0.85);
}
.vz-row.ok { color: var(--ink-faint); }
.vz-row.ok::before { background: rgba(174,182,194,0.45); }
.vz-row.event { color: #a6e3ff; }
.vz-row.event::before { background: #a6e3ff; box-shadow: 0 0 6px rgba(120,210,255,0.6); }
.vz-row.alert { color: #ff9a5a; }
.vz-row.alert::before { background: var(--orange); box-shadow: 0 0 7px var(--orange); }
.vz-foot {
  margin-top: auto; display: flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.05em; color: var(--ink-faint);
  padding-top: 4px; border-top: 1px solid rgba(174,182,194,0.09);
}
.vz-foot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(160,224,255,0.7); }
.tile.live .vz-foot::before { background: var(--orange); animation: pulse 1.5s var(--ease) infinite; }

@keyframes vscan  { 0% { top: -8%; } 100% { top: 108%; } }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }

/* faint global sweep line, like a refreshing monitor */
.ops-scan {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(249,92,18,0.05), transparent);
  height: 40%; opacity: .0;
  animation: sweep 7s linear infinite;
}
@keyframes sweep { 0%{transform:translateY(-40%); opacity:0} 8%{opacity:.6} 50%{opacity:.25} 92%{opacity:.5} 100%{transform:translateY(260%); opacity:0} }

/* --- hero content --- */
.ops-inner {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(32px, 4vw, 52px);
  max-width: 1180px; width: 100%; margin-inline: auto;
  padding-block: clamp(48px, 7vw, 88px);
}
.ops-lede { max-width: 760px; }
.ops-title {
  font-size: clamp(44px, 7.4vw, 94px);
  line-height: 0.94; letter-spacing: -0.045em; color: var(--white);
  font-weight: 600;
}
.ops-title .l1, .ops-title .l2 { display: block; }
.ops-title .l2 { color: var(--ink-soft); }
.ops-title .accent { color: var(--orange); }

/* --- Chat with your footage --- */
.chat {
  margin-top: clamp(32px, 4vw, 52px);
  width: 100%; max-width: 580px;
  border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,28,40,0.55), rgba(8,13,20,0.6));
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 20px; border-bottom: 1px solid var(--hairline);
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.chat-mark { width: 25px; height: auto; }
.chat-live { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: pulse 1.6s var(--ease) infinite; }
/* Reserve a stable height so the box never reflows the page as the answer appears/clears */
.chat-body { padding: 20px; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; min-height: 236px; }

.bubble { max-width: 88%; padding: 13px 17px; line-height: 1.45; border-radius: 16px; }
.bubble-you {
  align-self: flex-end; border-bottom-right-radius: 5px;
  background: var(--slate); color: var(--ink);
  font-family: var(--f-mono); font-size: 14.5px;
}
.bubble-you .op-caret { display: inline-block; width: 8px; height: 16px; vertical-align: -2px; margin-left: 1px; background: var(--orange); animation: blink 1.05s step-end infinite; }
.bubble-vz {
  align-self: flex-start; border-bottom-left-radius: 5px;
  display: flex; flex-direction: column; gap: 11px;
  background: linear-gradient(180deg, rgba(249,92,18,0.12), rgba(249,92,18,0.05));
  border: 1px solid rgba(249,92,18,0.32); color: var(--ink);
  animation: bubbleIn 0.3s var(--ease) both;
}
.bubble-vz[hidden] { display: none; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.bubble-line { display: flex; align-items: center; gap: 10px; }
.bubble-tick {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  background: var(--orange); color: #0a0a12;
}
.bubble-ans { font-size: 15px; }
.bubble-ans .c-cam { color: var(--orange); font-weight: 600; font-family: var(--f-mono); font-size: 14px; }
.bubble-ans .num, .bubble-ans .cn { font-family: var(--f-mono); font-size: 13px; color: var(--ink-soft); }

/* retrieved frames */
.bubble-thumbs { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.bubble-thumbs::-webkit-scrollbar { display: none; }
.bthumb {
  position: relative; width: 84px; height: 54px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(249,92,18,0.3); flex-shrink: 0;
}
.bthumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) contrast(1.06) brightness(0.88); display: block; }
.bthumb-rec { position: absolute; top: 5px; left: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.bthumb-t {
  position: absolute; bottom: 3px; right: 5px;
  font-family: var(--f-mono); font-size: 9px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

/* --- HOW IT WORKS: triangular architecture --- */
.how {
  width: 100%; max-width: 580px;
  border: 1px solid var(--hairline); border-radius: 18px;
  padding: 18px 24px 18px;
  background: rgba(255,255,255,0.012);
}
.how-head {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 4px;
}
.how-head::before { content: "// "; color: var(--orange); }
.tri { position: relative; height: 184px; margin: 2px auto 0; }
.tri-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tri-lines line { stroke: rgba(249,92,18,0.4); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.tri-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 15px; border-radius: 11px;
  border: 1px solid var(--hairline); background: var(--surface);
}
.tri-apex { left: 50%; top: 13%; }
.tri-l { left: 27%; top: 86%; }
.tri-r { left: 73%; top: 86%; }
.tri-ico { width: 27px; height: 27px; color: var(--ink-soft); flex-shrink: 0; }
.tri-lbl { display: flex; flex-direction: column; line-height: 1.15; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.tri-lbl em { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--ink-faint); margin-top: 3px; }
.tri-apex {
  border-color: rgba(249,92,18,0.5);
  background: linear-gradient(180deg, rgba(249,92,18,0.12), rgba(249,92,18,0.04));
  box-shadow: 0 0 0 1px rgba(249,92,18,0.14), 0 16px 40px -24px rgba(249,92,18,0.6);
}
.tri-apex .tri-lbl { color: #fff; }
.tri-apex .tri-lbl em { color: var(--orange); }
.how-note {
  margin-top: 12px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--ink-faint);
}
.how-note::before { content: "↳ "; color: var(--orange); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { padding-block: clamp(64px, 10vw, 128px); }
.section-head { margin-bottom: var(--sp-6); }
.problem-lead {
  font-family: var(--f-display);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.24;
  max-width: 22ch;
  margin-bottom: var(--sp-8);
}
.strike { position: relative; color: var(--gray); white-space: nowrap; }
.strike::after { content:""; position:absolute; left:-2%; right:-2%; top:54%; height:2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) .2s; }
.problem-lead.in .strike::after { transform: scaleX(1); }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.stat-num { font-family: var(--f-display); font-size: clamp(34px, 4.5vw, 56px); font-weight: 600; color: var(--white); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 14px; color: var(--ink-soft); max-width: 24ch; }

.problem-turn { margin-top: var(--sp-7); font-size: clamp(17px, 2vw, 22px); color: var(--ink-soft); max-width: 40ch; }
.problem-turn strong { color: var(--white); font-weight: 600; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.capabilities { padding-block: clamp(64px, 10vw, 128px); }
.section-head.split { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: var(--sp-8); }
.section-note { color: var(--ink-soft); font-size: 15px; max-width: 34ch; }

.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.cap {
  display: grid;
  grid-template-columns: 72px 1fr 300px;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.cap::after { content:""; position:absolute; left:0; top:0; bottom:0; width:0; background: linear-gradient(90deg, var(--orange-glow), transparent); opacity:0; transition: opacity .3s var(--ease); pointer-events:none; }
.cap:hover::after { opacity: 1; width: 60%; }
.cap-index { font-family: var(--f-mono); font-size: 15px; color: var(--orange); padding-top: 4px; }
.cap-main h3 { font-size: clamp(22px, 2.6vw, 30px); color: var(--white); margin-bottom: 12px; }
.cap-main p { color: var(--ink-soft); font-size: 15.5px; max-width: 48ch; }
.cap-main em { color: var(--ink); font-style: italic; }

.cap-figure {
  border: 1px solid var(--hairline); border-radius: 10px; padding: 14px;
  background: rgba(255,255,255,0.015); font-family: var(--f-mono); font-size: 12px;
  align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
/* timeline figure */
.tl { display: flex; flex-direction: column; gap: 10px; }
.tl-row { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; grid-template-areas: "time bar" "time label"; }
.tl-row b { grid-area: time; color: var(--gray); font-weight: 500; }
.tl-row .bar { grid-area: bar; height: 6px; border-radius: 3px; background: var(--slate-mid); width: var(--w); }
.tl-row .bar-flag { background: var(--orange); }
.tl-row u { grid-area: label; text-decoration: none; color: var(--ink-faint); font-size: 11px; }
/* search figure */
.mini-query { color: var(--white); padding: 7px 10px; border: 1px dashed var(--slate-mid); border-radius: 6px; }
.mini-hits { display: flex; flex-direction: column; gap: 6px; }
.mini-hit { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); position: relative; padding-left: 4px; }
.mini-hit .rec { position: static; }
.mini-hit.dim { color: var(--ink-faint); }
/* config figure */
.cfg { display: block; color: var(--ink-soft); line-height: 1.5; }
.cfg-prompt { color: var(--orange); }
.cfg-hl { color: var(--white); border-bottom: 1px solid var(--orange); }
.cfg-ok { color: #6fcf97; font-size: 11px; }
/* digest figure */
.digest-row { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 11.5px; }
.sev { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sev-high { background: var(--orange); }
.sev-mid { background: #e0a33e; }
.sev-low { background: var(--slate-mid); }

/* ============================================================
   MULTI-BRANCH MAP
   ============================================================ */
.branches { padding-block: clamp(64px, 10vw, 128px); }
.branches-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.branches-copy > p { color: var(--ink-soft); font-size: 16px; margin-top: var(--sp-4); max-width: 46ch; }

.branch-map { position: relative; min-height: clamp(300px, 38vw, 400px); display: flex; }
.map-field {
  position: relative; flex: 1; align-self: stretch;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background:
    radial-gradient(90% 90% at 50% 46%, rgba(249,92,18,0.09), transparent 55%),
    radial-gradient(120% 120% at 50% 50%, rgba(90,150,210,0.08), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
/* faint background graticule, faded at the edges (sits behind the map) */
.map-field::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(174,182,194,0.12) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: 0.4;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 50%, #000 35%, transparent 80%);
          mask-image: radial-gradient(120% 120% at 50% 50%, #000 35%, transparent 80%);
}
/* hypothetical territory: blended real coastlines, glowing coastline + faint highways */
.map-geo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter:
    drop-shadow(0 0 1px rgba(150,190,225,0.85))
    drop-shadow(0 0 3px rgba(140,185,225,0.4))
    drop-shadow(0 0 9px rgba(249,92,18,0.2));
}
.map-geo path,
.map-geo polyline { vector-effect: non-scaling-stroke; }
.map-geo .rd-minor { fill: none; stroke: rgba(150,180,215,0.18); stroke-width: 0.7; stroke-linecap: round; stroke-linejoin: round; }
.map-geo .rd-major { fill: none; stroke: rgba(185,208,235,0.28); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-lines line { stroke: var(--hairline); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.map-lines .ln-alert { stroke: rgba(249,92,18,0.55); stroke-dasharray: none; }

.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -100%);
       display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pin-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 9px; border-radius: 8px;
  border: 1px solid var(--hairline); background: rgba(11,19,29,0.92); backdrop-filter: blur(3px);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--ink-soft);
}
.pin-chip .cam-ico { width: 13px; height: 13px; color: var(--ink-faint); flex-shrink: 0; }
.pin-chip b { color: var(--white); font-weight: 500; }
.pin-chip i { font-style: normal; color: var(--ink-faint); }
.pin-chip i.flag { color: var(--orange); }
.pin-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-mid);
           border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--hairline); }

.pin-alert .pin-chip { border-color: rgba(249,92,18,0.4); }
.pin-alert .cam-ico { color: var(--orange); }
.pin-alert .pin-dot { background: var(--orange); box-shadow: 0 0 0 1px rgba(249,92,18,0.5), 0 0 10px var(--orange); animation: pulse 1.7s var(--ease) infinite; }

/* central hub */
.pin-hub { transform: translate(-50%, -50%); gap: 7px; z-index: 2; }
.hub-core {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--orange); background: rgba(249,92,18,0.1);
  border: 1px solid rgba(249,92,18,0.45);
  box-shadow: 0 0 0 6px rgba(249,92,18,0.06), 0 12px 34px -14px rgba(249,92,18,0.6);
}
.hub-lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }

/* ============================================================
   INTEGRATION
   ============================================================ */
.integration { padding-block: clamp(64px, 10vw, 128px); }
.integration-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.integration-copy > p { color: var(--ink-soft); font-size: 16px; margin-top: var(--sp-4); max-width: 46ch; }
.check-list { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-soft); font-size: 15.5px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 5px;
  background: var(--orange-glow); border: 1px solid rgba(249,92,18,0.4);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 3px;
  border-left: 1.5px solid var(--orange); border-bottom: 1.5px solid var(--orange); transform: rotate(-45deg);
}
.check-list strong { color: var(--white); }

/* diagram */
.integration-diagram { display: flex; justify-content: center; }
.stack { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; }
.layer {
  width: 100%; border: 1px solid var(--hairline); border-radius: 12px; padding: 18px 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); position: relative;
}
.layer-tag {
  position: absolute; top: -9px; left: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--black); padding: 1px 8px; border: 1px solid var(--hairline); border-radius: 20px;
}
.layer-tag-accent { color: var(--orange); border-color: rgba(249,92,18,0.4); }
.layer-name { display: block; color: var(--white); font-weight: 500; font-size: 15px; font-family: var(--f-display); letter-spacing: -0.01em; }
.layer-sub { display: block; color: var(--ink-faint); font-size: 12px; margin-top: 4px; font-family: var(--f-mono); }
.layer-cameras .cams { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; margin: 4px 0 12px; }
.cam { aspect-ratio: 1; border-radius: 3px; background: var(--slate); border: 1px solid var(--slate-mid); position: relative; }
.cam::after { content:""; position:absolute; top:2px; right:2px; width:3px; height:3px; border-radius:50%; background: var(--gray); opacity:.5; }
.layer-vizirix { border-color: rgba(249,92,18,0.4); box-shadow: 0 0 0 1px rgba(249,92,18,0.15), 0 18px 50px -30px rgba(249,92,18,0.5); }
.layer-vizirix .layer-name { color: var(--orange); }

.flow { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 30px; justify-content: center; }
.flow span { width: 1.5px; height: 5px; background: var(--slate-mid); border-radius: 2px; }
.flow span:nth-child(2) { background: var(--slate-mid); }

/* ============================================================
   TRUST
   ============================================================ */
.trust { padding-block: clamp(64px, 10vw, 128px); }
.trust .section-head { max-width: none; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: var(--sp-7); }
.trust-card {
  border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(35,41,51,0.35), rgba(20,21,31,0.5));
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.trust-card:hover { border-color: var(--slate-mid); transform: translateY(-3px); }
.trust-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: var(--orange); background: var(--orange-glow); border: 1px solid rgba(249,92,18,0.3); margin-bottom: var(--sp-5); }
.trust-icon svg { width: 22px; height: 22px; }
.trust-card h3 { font-size: 20px; color: var(--white); margin-bottom: 10px; }
.trust-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding-block: clamp(64px, 9vw, 120px); }
.cta-inner {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  border: 1px solid var(--hairline); border-radius: 20px;
  padding: clamp(32px, 5vw, 60px);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(249,92,18,0.1), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative; overflow: hidden;
}
.cta-copy .section-title { font-size: clamp(26px, 3.4vw, 40px); }
.cta-copy p { color: var(--ink-soft); font-size: 16px; margin-top: var(--sp-4); max-width: 40ch; }

.cta-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select {
  font-family: var(--f-body); font-size: 15px; color: var(--white);
  background: var(--black); border: 1px solid var(--hairline); border-radius: 9px; padding: 12px 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  width: 100%;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23BEBEC0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input[type=number] { -moz-appearance: textfield; }
.field input[type=number]::-webkit-outer-spin-button,
.field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note.ok { color: #6fcf97; }
.form-note.err { color: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--hairline); padding-top: clamp(48px, 6vw, 72px); margin-top: var(--sp-6); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1.6fr; gap: 40px; padding-bottom: var(--sp-7); }
.footer-brand img { margin-bottom: 16px; }
.footer-tag { color: var(--ink-soft); font-size: 14.5px; max-width: 32ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 32px; justify-content: end; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.footer-col a { color: var(--ink-soft); font-size: 14.5px; transition: color .18s var(--ease); white-space: nowrap; }
.footer-col a:hover { color: var(--white); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: var(--sp-5); border-top: 1px solid var(--hairline-2);
  font-size: 12.5px; color: var(--ink-faint);
}
.footer-legal { font-family: var(--f-mono); letter-spacing: 0.04em; }

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-fab {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 90; display: inline-flex; align-items: center; gap: 0;
  height: 56px; padding: 0 16px; border-radius: 999px;
  background: #25D366; border: 1px solid rgba(255,255,255,0.14);
  color: #04170c;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,0.6), 0 0 0 0 rgba(37,211,102,0.55);
  animation: waThrob 2.4s var(--ease) infinite;
  transition: gap .28s var(--ease), padding .28s var(--ease),
              background .18s var(--ease), transform .18s var(--ease);
}
.wa-glyph { width: 27px; height: 27px; flex: none; fill: #ffffff; }
.wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.02em; font-weight: 600; color: #04170c;
  opacity: 0; transition: max-width .28s var(--ease), opacity .2s var(--ease), margin-left .28s var(--ease);
}
.wa-fab:hover, .wa-fab:focus-visible {
  gap: 10px; background: #2ee06f; transform: translateY(-2px);
}
.wa-fab:hover .wa-label, .wa-fab:focus-visible .wa-label { max-width: 160px; opacity: 1; margin-left: 4px; }

@keyframes waThrob {
  0%   { box-shadow: 0 8px 22px -8px rgba(0,0,0,0.6), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 8px 22px -8px rgba(0,0,0,0.6), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 22px -8px rgba(0,0,0,0.6), 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 640px) {
  .wa-fab { height: 54px; padding: 0 15px; }
  /* keep it icon-only on small screens so it never covers content */
  .wa-fab:hover .wa-label, .wa-fab:focus-visible .wa-label { max-width: 0; opacity: 0; margin-left: 0; }
  .wa-fab:hover, .wa-fab:focus-visible { gap: 0; padding: 0 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-glyph, .wa-label { transition: none; }
  .wa-fab { animation: none; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rec-dot, .op-caret, .ops-scan, .bubble-vz,
  .tile, .tile.live .tstate::before, .tile.live .vz-live,
  .tile.live .vz-foot::before, .tile.live .tscan,
  .pin-alert .pin-dot, .wall-link path { animation: none !important; }
  .strike::after { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .hud-status { gap: 14px; }
  .hud-stat:nth-child(2) { display: none; }
}

@media (max-width: 1040px) {
  .cap { grid-template-columns: 56px 1fr; }
  .cap-figure { grid-column: 1 / -1; margin-top: 4px; }
}

/* Analytics cards: keep two on mid screens, drop the wall on small ones */
/* Below the card layout: hide the feeds and center the hero column */
@media (max-width: 1180px) {
  .wall { display: none; }
  .ops-inner { align-items: center; text-align: center; }
  .ops-lede { display: flex; flex-direction: column; align-items: center; }
  .chat, .how { margin-inline: auto; text-align: left; }
}

@media (max-width: 900px) {
  .hud-nav { display: none; }
  .hud-status { display: none; }
  .hud-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }

  .ops { min-height: auto; }
  .ops-title { font-size: clamp(42px, 12vw, 76px); }

  .integration-grid { grid-template-columns: 1fr; }
  .integration-diagram { order: -1; }
  .branches-grid { grid-template-columns: 1fr; }
  .branch-map { order: -1; min-height: clamp(280px, 60vw, 360px); }
  .cta-inner { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
  .section-note { max-width: 46ch; }
}

@media (max-width: 640px) {
  .problem-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .chat, .how { max-width: 100%; }
  .chat-body { min-height: 300px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { grid-template-columns: repeat(2, auto); justify-content: start; }
  .cap { grid-template-columns: 1fr; gap: 8px; }
  .cap-index { padding-top: 0; }
}
