/* ═══════════════════════════════════════════════════════════════
   AIVision v2 — Complete Design System
   Clean white · Light green accent (cirtec-style)
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FFFFFF;
  --bg2:       #F0F9F4;
  --white:     #FFFFFF;
  --amber:     #F59E0B;
  --amber-d:   #D97706;
  --teal:      #16A34A;
  --teal-d:    #15803D;
  --purple:    #8B5CF6;
  --red:       #EF4444;
  --dark:      #060D1C;
  --dark2:     #0A1220;
  --dark3:     #0D1A2E;
  --border:    #E2E8F0;
  --text:      #0F172A;
  --muted:     #64748B;
  --light-b:   rgba(22,163,74,.05);
  --light-b2:  rgba(22,163,74,.08);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Layer scroll snap targets ──────────────────────────────── */
.hero,
section.showcase,
.ucdetail-section,
.radar-section,
.cta-section,
footer.footer {
  scroll-snap-align: start;
}
.font-mono { font-family: 'JetBrains Mono', monospace; }
.container  { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.rel { position: relative; z-index: 1; }

/* ── Cursor glow ─────────────────────────────────────────────── */
#cursor-glow {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,.06) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  transition: opacity .3s;
}

/* ── Navigation ─────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 0; transition: all .3s;
}
#nav.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,.08);
}
.nav-wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.lm-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--teal); opacity: .6;
  animation: ringPulse 3s ease-in-out infinite;
}
.lm-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(245,158,11,.5);
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.15); opacity: .3; }
}
.logo span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.01em;
}
.logo em { font-style: normal; color: var(--teal); }
.footer-logo span { color: rgba(255,255,255,.9); }
.footer-logo em { color: var(--teal); }

.nav-links {
  display: flex; list-style: none; gap: .25rem; margin-left: auto;
}
.nav-links a {
  display: block; padding: .45rem .9rem;
  font-size: .875rem; font-weight: 500; color: var(--muted);
  text-decoration: none; border-radius: 7px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--teal); background: rgba(22,163,74,.06); }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.nav-demo {
  font-size: .875rem; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: .45rem .9rem;
  transition: color .2s;
}
.nav-demo:hover { color: var(--text); }
.nav-cta {
  padding: .5rem 1.1rem; font-size: .875rem; font-weight: 700;
  background: var(--teal); color: #FFFFFF; border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(22,163,74,.25);
  transition: background .2s, transform .15s;
  display: inline-block;
}
.nav-cta:hover { background: var(--teal-d); transform: translateY(-1px); }

/* Magnetic button shared style */
.mag-btn { display: inline-block; transition: transform .15s ease; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex; align-items: center;
  padding: 5.5rem 2rem 3rem;
  position: relative; overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .5; pointer-events: none;
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  opacity: .4;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1.15fr;
  align-items: center; gap: 3rem;
}
.hero-left { padding-right: 1rem; }

.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal); background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.22);
  padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.75rem;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:.4; transform: scale(1.4); }
}

.hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.04em;
  color: var(--text); margin-bottom: 1.5rem;
  display: flex; flex-direction: column;
}
.h1-line { display: block; overflow: hidden; }
.h1-accent {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #EF4444 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1rem; color: var(--muted); line-height: 1.75;
  max-width: 460px; margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: .85rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem; font-weight: 700; font-size: .925rem;
  background: linear-gradient(135deg, var(--amber), var(--amber-d));
  color: white; border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(245,158,11,.3);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,158,11,.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem; font-weight: 600; font-size: .925rem;
  background: rgba(22,163,74,.06); color: var(--text); border-radius: 10px;
  text-decoration: none; border: 1.5px solid rgba(22,163,74,.25);
  transition: border-color .15s, background .15s, transform .15s;
}
.btn-secondary:hover { border-color: var(--teal); background: rgba(22,163,74,.12); transform: translateY(-1px); }

.hero-kpi-row {
  display: flex; align-items: center; gap: 1.75rem;
}
.kpi { text-align: left; }
.kpi-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem; font-weight: 900; color: var(--text);
}
.kpi-u { font-size: 1rem; font-weight: 700; color: var(--amber); }
.kpi-lbl { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); margin-top: .1rem; }
.kpi-sep { width: 1px; height: 40px; background: var(--border); }

/* ── Product Window ──────────────────────────────────────────── */
.hero-right { position: relative; }
.product-win {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 24px 60px rgba(0,0,0,.4),
    0 8px 24px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  transition: transform .4s ease;
}
.product-win:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }

.pw-titlebar {
  display: flex; align-items: center; gap: 1rem;
  padding: .65rem 1rem;
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tl-dots { display: flex; gap: 5px; }
.tld { width: 11px; height: 11px; border-radius: 50%; }
.tld.r { background: #FF5F57; }
.tld.y { background: #FFBD2E; }
.tld.g { background: #28CA41; }
.pw-title-text {
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.45);
  flex: 1; text-align: center; letter-spacing: .01em;
}
.pw-badges { display: flex; align-items: center; gap: .75rem; }
.pw-clock { font-size: .7rem; color: rgba(255,255,255,.3); }
.pw-rec {
  display: flex; align-items: center; gap: .3rem;
  font-size: .65rem; font-weight: 700; color: #EF4444; letter-spacing: .05em;
}
.pw-rec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EF4444; animation: pulseDot 1.2s infinite;
}
.pw-body { display: flex; height: 280px; }

/* Sidebar */
.pw-sidebar {
  width: 130px; flex-shrink: 0;
  background: var(--dark2);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.pws-section {
  padding: .6rem .65rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.pws-label {
  font-size: .55rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.25); margin-bottom: .4rem;
}
.pws-cam {
  display: flex; align-items: center; gap: .5rem;
  padding: .28rem .4rem; border-radius: 5px; cursor: pointer;
  transition: background .15s;
}
.pws-cam:hover, .pws-cam.active { background: rgba(255,255,255,.05); }
.pws-cam.warn:hover { background: rgba(245,158,11,.08); }
.pws-cam.danger:hover { background: rgba(239,68,68,.08); }
.pws-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.pws-dot.green { background: #22c55e; }
.pws-dot.amber { background: #F59E0B; }
.pws-dot.red   { background: #EF4444; }
.pulse-dot { animation: pulseDot 1.5s infinite; }
.pws-cam-info { display: flex; flex-direction: column; }
.pws-cam-name  { font-size: .62rem; color: rgba(255,255,255,.55); white-space: nowrap; }
.pws-cam-badge {
  font-size: .52rem; font-family: 'JetBrains Mono', monospace; font-weight: 700;
  padding: .1rem .35rem; border-radius: 3px; margin-top: .15rem;
  width: fit-content;
}
.pws-cam-badge.ok    { background: rgba(34,197,94,.12); color: #22c55e; }
.pws-cam-badge.warn-badge { background: rgba(245,158,11,.15); color: #F59E0B; }
.pws-cam-badge.crit-badge { background: rgba(239,68,68,.15); color: #EF4444; animation: textBlink 1s infinite; }
@keyframes textBlink { 0%,100%{opacity:1}50%{opacity:.4} }
.pws-model {
  display: flex; align-items: center; gap: .4rem;
  padding: .2rem 0; font-size: .6rem; color: rgba(255,255,255,.4);
}
.pws-perf { padding: .6rem .65rem; margin-top: auto; }
.pws-perf-row { display: flex; align-items: center; gap: .35rem; margin-bottom: .3rem; }
.pws-perf-lbl { font-size: .58rem; color: rgba(255,255,255,.3); width: 20px; }
.pws-perf-val { font-size: .58rem; color: rgba(255,255,255,.35); }
.perf-bar-t { flex: 1; height: 3px; background: rgba(255,255,255,.08); border-radius: 100px; overflow: hidden; }
.perf-bar-f { height: 100%; border-radius: 100px; }
.gpu-f { width: 68%; background: linear-gradient(90deg,#0D9488,#06b6d4); }
.fps-f { width: 97%; background: linear-gradient(90deg,#22c55e,#10b981); }

/* Camera feeds grid */
.pw-feeds {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px; background: #050505; overflow: hidden;
}
.pw-feed {
  position: relative; overflow: hidden; cursor: pointer;
}
.pw-feed:hover::after {
  content: ''; position: absolute; inset: 0;
  outline: 2px solid rgba(245,158,11,.5); outline-offset: -2px;
  pointer-events: none; border-radius: 2px;
}

/* Rebar/concrete texture background */
.feed-rebar {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 10px,
      rgba(80,70,50,.10) 10px, rgba(80,70,50,.10) 11px),
    repeating-linear-gradient(90deg, transparent, transparent 10px,
      rgba(80,70,50,.10) 10px, rgba(80,70,50,.10) 11px),
    linear-gradient(135deg, #141210 0%, #1C1A13 50%, #111008 100%);
}
.fire-rebar {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 10px,
      rgba(100,50,20,.15) 10px, rgba(100,50,20,.15) 11px),
    repeating-linear-gradient(90deg, transparent, transparent 10px,
      rgba(100,50,20,.15) 10px, rgba(100,50,20,.15) 11px),
    linear-gradient(135deg, #1A0E06 0%, #240F06 50%, #1A0805 100%);
  animation: fireFlicker 3s ease-in-out infinite;
}
@keyframes fireFlicker {
  0%,100% { filter: brightness(1); }
  30% { filter: brightness(1.2); }
  60% { filter: brightness(.9); }
}

/* Overhead worker */
.ow {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
}
.ow-box {
  position: relative;
  border: 1.5px solid var(--amber);
  border-radius: 2px;
  padding: 9px 6px;
  background: rgba(245,158,11,.04);
}
.ow-box-red { border-color: #EF4444; background: rgba(239,68,68,.06); }
.ow-id {
  position: absolute; top: -8px; left: 2px;
  background: var(--amber); color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 6.5px; font-weight: 700; padding: 1px 3px; border-radius: 2px;
}
.ow-id-red { background: #EF4444; color: white; }
.ow-timer {
  position: absolute; bottom: -8px; right: 2px;
  background: rgba(0,0,0,.75); color: var(--amber);
  font-size: 6.5px; font-weight: 700; padding: 1px 3px; border-radius: 2px;
}
.ow-timer-red { color: #EF4444; }
.ow-body {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 9px; height: 13px;
  background: rgba(180,160,110,.65);
  border-radius: 50% 50% 35% 35%;
}
.ow-body-red { background: rgba(239,100,80,.7); }

.feed-camid {
  position: absolute; bottom: 5px; left: 5px;
  font-size: 6.5px; color: rgba(255,255,255,.35); z-index: 4;
}
.feed-ts {
  position: absolute; bottom: 5px; right: 5px;
  font-size: 6.5px; color: rgba(255,255,255,.3); z-index: 4;
}
.feed-status-ok {
  position: absolute; top: 5px; right: 5px;
  font-size: 6.5px; color: #22c55e; background: rgba(34,197,94,.1);
  padding: 1px 4px; border-radius: 2px; z-index: 4;
}

/* Vehicle proximity feed */
.feed-warn { background: #0b0c10; }
.proximity-zone-outer {
  position: absolute; top: 50%; left: 52%; transform: translate(-50%,-50%);
  width: 120px; height: 80px; border-radius: 50%;
  border: 1.5px dashed rgba(239,68,68,.4);
  animation: zonePulse 2.5s ease-in-out infinite;
}
.proximity-zone-inner {
  position: absolute; top: 50%; left: 52%; transform: translate(-50%,-50%);
  width: 75px; height: 50px; border-radius: 50%;
  border: 1.5px dashed rgba(239,68,68,.6);
  animation: zonePulse 2s ease-in-out infinite .3s;
}
@keyframes zonePulse {
  0%,100% { opacity:.7; transform: translate(-50%,-50%) scale(1); }
  50% { opacity:.3; transform: translate(-50%,-50%) scale(1.05); }
}
.feed-vehicle-shape {
  position: absolute; top: 35%; left: 40%; transform: translate(-50%,-50%); z-index: 3;
}
.vs-body { width: 50px; height: 28px; background: #F59E0B; border-radius: 3px; position: relative; }
.vs-wheel {
  position: absolute; bottom: -5px; width: 8px; height: 8px;
  background: #111; border-radius: 50%;
}
.vs-wheel.w1 { left: 6px; }
.vs-wheel.w2 { right: 6px; }
.ow-danger { z-index: 5; }
.prox-line {
  position: absolute; top: 50%; left: 28%; right: 40%;
  height: 1.5px;
  background: linear-gradient(90deg, #EF4444, rgba(239,68,68,0));
  transform: translateY(-50%);
  animation: lineFlash 1.5s ease-in-out infinite;
  z-index: 4;
}
@keyframes lineFlash { 0%,100%{opacity:.4}50%{opacity:1} }

/* Fire feed */
.feed-fire { background: var(--dark); }
.fire-detect-box {
  position: absolute; top: 12%; left: 16%; width: 44%; height: 55%;
  border: 1.5px solid rgba(239,68,68,.9);
  border-radius: 3px;
  background: rgba(239,68,68,.05);
  box-shadow: 0 0 20px rgba(239,68,68,.25), inset 0 0 15px rgba(239,68,68,.08);
  display: flex; align-items: flex-end; justify-content: center; z-index: 3;
  animation: fireBoxPulse 1.5s ease-in-out infinite;
}
@keyframes fireBoxPulse {
  0%,100% { box-shadow: 0 0 15px rgba(239,68,68,.2); }
  50% { box-shadow: 0 0 30px rgba(239,68,68,.4); }
}
.fdb-label {
  position: absolute; top: -1px; left: 3px;
  font-size: 6.5px; font-weight: 700; line-height: 1.3;
  color: white; background: #EF4444;
  padding: 1px 4px; border-radius: 2px;
}
.fire-fx {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 2px; padding-bottom: 2px;
}
.ff-flame {
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  animation: flameDance 1.2s ease-in-out infinite;
}
.ff1 { width: 10px; height: 20px; background: linear-gradient(to top,#F59E0B,#EF4444); animation-delay:.1s; }
.ff2 { width: 14px; height: 28px; background: linear-gradient(to top,#FBBF24,#F97316); }
.ff3 { width: 10px; height: 18px; background: linear-gradient(to top,#F59E0B,#EF4444); animation-delay:.3s; }
@keyframes flameDance {
  0%,100% { transform: scaleX(1) scaleY(1) rotate(-2deg); }
  50% { transform: scaleX(1.1) scaleY(.92) rotate(2deg); }
}
.smoke-detect-box {
  position: absolute; top: 8%; right: 10%; width: 36%; height: 40%;
  border: 1.5px dashed rgba(180,120,60,.6); border-radius: 3px;
  background: rgba(100,80,40,.06); z-index: 3;
}
.sdb-label {
  position: absolute; top: -1px; left: 3px;
  font-size: 6.5px; font-weight: 700; line-height: 1.3;
  color: rgba(255,255,255,.8); background: rgba(130,100,60,.85);
  padding: 1px 4px; border-radius: 2px;
}
.smoke-puff-anim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse, rgba(100,80,60,.25) 0%, transparent 70%);
  animation: smokePuffAnim 3s ease-in-out infinite;
}
@keyframes smokePuffAnim { 0%,100%{opacity:.4}50%{opacity:.9} }
.fire-screen-flash {
  position: absolute; inset: 0; pointer-events: none;
  animation: screenFlash 2.5s ease-in-out infinite;
  background: rgba(239,68,68,.0);
}
@keyframes screenFlash {
  0%,85%,100% { background: rgba(239,68,68,0); }
  90% { background: rgba(239,68,68,.06); }
}

/* Alert banner inside feed */
.feed-alert-banner {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 6px;
  background: rgba(239,68,68,.85); color: white;
  z-index: 5; animation: textBlink 1.5s infinite;
}
.fire-banner { background: rgba(180,60,20,.9); }

/* Feed severity meter */
.df-meter {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: rgba(255,255,255,.07); z-index: 5; overflow: visible;
  display: flex; align-items: flex-end;
}
.dfm-bar {
  height: 3px; border-radius: 1px;
  animation: meterGrow 2s ease-out infinite;
}
.fire-meter-bar { width: 87%; background: linear-gradient(90deg,#F59E0B,#EF4444); }
.nm-meter-bar   { width: 72%; background: linear-gradient(90deg,#8B5CF6,#EF4444); }
.veh-meter-bar  { width: 65%; background: linear-gradient(90deg,#F59E0B,#EF4444); }
.sm-meter-bar   { width: 93%; background: linear-gradient(90deg,#EF4444,#F97316); }
.ppe-meter-bar  { width: 50%; background: linear-gradient(90deg,#0D9488,#F59E0B); }
@keyframes meterGrow { 0%{width:0}100%{width:inherit} }
.dfm-lbl {
  position: absolute; top: 5px; left: 0; right: 0;
  font-size: 6px; color: rgba(255,255,255,.3); padding: 0 5px;
}

/* Live events panel */
.pw-events {
  width: 110px; flex-shrink: 0;
  background: var(--dark2);
  border-left: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
}
.pwe-head {
  font-size: .55rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  padding: .55rem .65rem .3rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.pwe-list { display: flex; flex-direction: column; overflow: hidden; }
.pwe-row {
  display: flex; align-items: flex-start; gap: .4rem;
  padding: .45rem .6rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer; transition: background .15s;
}
.pwe-row:hover { background: rgba(255,255,255,.03); }
.pwe-sev-dot {
  width: 5px; height: 5px; border-radius: 50%; margin-top: 3px; flex-shrink: 0;
}
.critical-dot { background: #EF4444; box-shadow: 0 0 4px #EF4444; animation: pulseDot 1.5s infinite; }
.fire-dot     { background: #F97316; }
.warn-dot     { background: #F59E0B; }
.ok-dot       { background: #22c55e; }
.pwe-name { font-size: .62rem; font-weight: 600; color: rgba(255,255,255,.7); }
.pwe-meta { font-size: .55rem; color: rgba(255,255,255,.3); margin-top: .05rem; }
.pwe-ago  { font-size: .52rem; color: rgba(255,255,255,.2); margin-top: .1rem; }
.pwe-critical .pwe-name { color: #EF4444; }
.pwe-fire .pwe-name     { color: #F97316; }
.pwe-warn .pwe-name     { color: #F59E0B; }

/* Status bar */
.pw-statusbar {
  display: flex; align-items: center; gap: 1.25rem;
  padding: .45rem .85rem;
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .62rem; color: rgba(255,255,255,.3);
}
.sb-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: .3rem; }
.sb-dot.green { background: #22c55e; }
.pws-alert-count { margin-left: auto; color: var(--amber); }

/* Floating chips */
.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.97); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 10px; padding: .55rem .8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.12), 0 0 0 0 rgba(22,163,74,.1);
  font-size: .75rem; font-weight: 600; color: var(--text);
  white-space: nowrap; z-index: 10;
}
.chip-1 { top: 18%; right: -30px; animation: chipFloat 4s ease-in-out infinite; }
.chip-2 { bottom: 15%; right: -36px; animation: chipFloat 4s ease-in-out infinite 1.5s; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.fc-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900;
}
.red-icon  { background: rgba(239,68,68,.1); color: var(--red); }
.teal-icon { background: rgba(22,163,74,.1); color: var(--teal); }

/* ── Marquee ─────────────────────────────────────────────────── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2); overflow: hidden; padding: 1rem 0;
}
.marquee-track { overflow: hidden; }
.marquee-inner {
  display: flex; align-items: center; gap: 1.5rem;
  white-space: nowrap;
  animation: marqueeScroll 20s linear infinite;
}
.mq-item {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  opacity: .6; transition: opacity .2s;
}
.mq-item:hover { opacity: 1; }
.mq-sep { color: var(--border); font-size: .8rem; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Showcase / Use Cases ────────────────────────────────────── */
.showcase {
  padding: 7rem 0 0;
  background: var(--bg);
}
.showcase-header { max-width: 1240px; margin: 0 auto; padding: 0 2rem 3.5rem; text-align: center; }
.s-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.22);
  padding: .28rem .85rem; border-radius: 100px; margin-bottom: 1rem;
}
.s-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: .85rem;
}
.grad-text {
  background: linear-gradient(135deg, var(--amber), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.s-sub { font-size: .975rem; color: var(--muted); line-height: 1.7; }
.white-h2 { color: white; }

/* Tab bar */
.sc-tabs {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tab {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border: none; background: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .875rem; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .2s, border-color .2s;
  white-space: nowrap; flex-shrink: 0;
}
.sc-tab:hover { color: var(--text); }
.sc-tab.active { color: var(--text); border-bottom-color: var(--amber); }
.tab-icon { font-size: 1rem; }

/* Tab panels */
.sc-panel {
  display: none; max-width: 1240px; margin: 0 auto;
  padding: 3rem 2rem 5rem;
  grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center;
}
.sc-panel.active { display: grid; animation: fadeUp .4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Demo window inside panels */
.demo-win {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
  overflow: hidden;
}
.dw-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .9rem;
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dw-cam  { font-size: .7rem; color: rgba(255,255,255,.4); }
.dw-status {
  font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 4px;
}
.fire-status { background: rgba(239,68,68,.15); color: #f87171; animation: textBlink 1.5s infinite; }
.nm-status   { background: rgba(139,92,246,.15); color: #c4b5fd; animation: textBlink 1.5s infinite; }
.veh-status  { background: rgba(245,158,11,.12); color: #fcd34d; }
.sm-status   { background: rgba(239,68,68,.12); color: #fca5a5; }
.ppe-status  { background: rgba(245,158,11,.12); color: #fcd34d; }
.dw-feed {
  position: relative; height: 300px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.df-rebar {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 12px,
      rgba(80,70,50,.09) 12px, rgba(80,70,50,.09) 13px),
    repeating-linear-gradient(90deg, transparent, transparent 12px,
      rgba(80,70,50,.09) 12px, rgba(80,70,50,.09) 13px),
    linear-gradient(135deg, #141210 0%, #1C1A13 60%, #111008 100%);
}
.dw-footer {
  padding: .55rem .9rem;
  background: var(--dark2); border-top: 1px solid rgba(255,255,255,.05);
  font-size: .65rem; color: rgba(255,255,255,.3);
}

/* Fire panel scene */
.dw-fire-feed .df-rebar { background: linear-gradient(135deg,#1A0E06 0%,#240F06 50%,#1A0805 100%); }
.df-fire-box {
  position: absolute; top: 14%; left: 18%; width: 42%; height: 58%;
  border: 2px solid rgba(239,68,68,.9); border-radius: 4px;
  background: rgba(239,68,68,.04);
  box-shadow: 0 0 30px rgba(239,68,68,.2), inset 0 0 20px rgba(239,68,68,.05);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 3; animation: fireBoxPulse 1.5s infinite;
}
.df-fire-label {
  position: absolute; top: -1px; left: 4px;
  font-size: 9px; font-weight: 700; line-height: 1.4;
  color: white; background: #EF4444; padding: 2px 6px; border-radius: 3px;
}
.df-flames {
  display: flex; align-items: flex-end; gap: 4px; padding-bottom: 6px;
}
.dff {
  border-radius: 50% 50% 25% 25% / 60% 60% 40% 40%;
  animation: flameDance 1.2s ease-in-out infinite;
}
.df1 { width: 24px; height: 45px; background: linear-gradient(to top,#F59E0B,#EF4444); animation-delay:.1s; }
.df2 { width: 32px; height: 60px; background: linear-gradient(to top,#FBBF24,#F97316); }
.df3 { width: 20px; height: 40px; background: linear-gradient(to top,#FDE68A,#F59E0B); animation-delay:.3s; }
.df4 { width: 18px; height: 35px; background: linear-gradient(to top,#F97316,#DC2626); animation-delay:.15s; }
.df-smoke-box {
  position: absolute; top: 8%; right: 10%; width: 34%; height: 42%;
  border: 1.5px dashed rgba(150,120,60,.6); border-radius: 4px;
  background: rgba(100,80,40,.06); z-index: 3;
}
.df-smoke-label {
  position: absolute; top: -1px; left: 4px;
  font-size: 9px; font-weight: 700; line-height: 1.4;
  color: rgba(255,255,255,.8); background: rgba(130,100,60,.85);
  padding: 2px 6px; border-radius: 3px;
}
.df-smoke-cloud {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse, rgba(100,80,60,.3) 0%, transparent 70%);
  animation: smokePuffAnim 3s ease-in-out infinite;
}
.df-flash {
  position: absolute; inset: 0; pointer-events: none;
  animation: screenFlash 2.5s ease-in-out infinite;
}

/* Near-miss panel */
.dw-nm-feed .df-rebar {}
.nm-skeleton-wrap {
  display: flex; align-items: center; gap: 2rem; z-index: 3;
  position: relative;
}
.nm-skeleton {
  width: 120px; height: 210px;
  filter: drop-shadow(0 0 16px rgba(245,158,11,.35));
  animation: skeletonSway 3s ease-in-out infinite;
}
@keyframes skeletonSway { 0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)} }
.nm-drop-bar {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.nmdb-fill {
  width: 12px; height: 100px; background: rgba(255,255,255,.07);
  border-radius: 6px; position: relative; overflow: hidden;
}
.nmdb-fill::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42%; background: linear-gradient(to top, #EF4444, #F97316);
  border-radius: 4px; animation: fillPulse 2s ease-in-out infinite;
}
@keyframes fillPulse { 0%,100%{opacity:.7}50%{opacity:1} }
.nmdb-label { font-size: .62rem; color: #EF4444; font-weight: 700; writing-mode: horizontal-tb; }
.nm-flow-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 60%, rgba(139,92,246,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Vehicle panel */
.dw-veh-feed {}
.veh-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.veh-zone {
  position: absolute; border-radius: 50%;
  top: 50%; left: 52%; transform: translate(-50%,-50%);
  animation: zonePulse 2.5s ease-in-out infinite;
}
.vz-3 { width: 260px; height: 180px; border: 2px dashed rgba(239,68,68,.25); background: rgba(239,68,68,.02); }
.vz-2 { width: 180px; height: 124px; border: 2px dashed rgba(245,158,11,.4); background: rgba(245,158,11,.03); animation-delay:.3s; }
.vz-1 { width: 110px; height: 76px; border: 2px solid rgba(245,158,11,.6); background: rgba(245,158,11,.05); animation-delay:.6s; }
.veh-shape {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); z-index: 3;
}
.veh-bbox-label {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700;
  background: #F59E0B; color: #000; padding: 1px 6px; border-radius: 2px; white-space: nowrap;
}
.veh-worker {
  position: absolute; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.danger-pos { top: 35%; left: 18%; }
.safe-pos   { top: 35%; right: 8%; }
.veh-worker-label { font-family: 'JetBrains Mono', monospace; font-size: 7px; font-weight: 700; color: var(--amber); }
.veh-worker-dist {
  font-size: 7px; font-weight: 700; color: #EF4444;
  background: rgba(239,68,68,.1); padding: 1px 4px; border-radius: 2px;
}
.veh-dist-line {
  position: absolute; top: 46%; left: 24%; right: 42%;
  height: 1.5px; background: linear-gradient(90deg,#EF4444,rgba(239,68,68,0));
  animation: lineFlash 1.5s infinite; z-index: 4;
}

/* Smoking panel */
.sm-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 2rem;
}
.sm-person { position: relative; z-index: 3; }
.sm-bbox {
  position: absolute; inset: -6px -8px;
  border: 1.5px solid rgba(255,165,0,.5); border-radius: 3px;
}
.sm-bbox-label {
  position: absolute; top: -10px; left: 2px;
  font-family: 'JetBrains Mono', monospace; font-size: 7px; font-weight: 700;
  background: rgba(255,165,0,.8); color: #000; padding: 1px 4px; border-radius: 2px;
}
.sm-detect {
  position: relative; z-index: 3;
  border: 2px solid rgba(239,68,68,.8); border-radius: 4px;
  width: 70px; height: 90px;
  background: rgba(239,68,68,.05);
  box-shadow: 0 0 20px rgba(239,68,68,.15);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 4px;
  animation: fireBoxPulse 2s infinite;
}
.sm-detect-label {
  font-size: 8px; font-weight: 700; line-height: 1.4; text-align: center;
  color: #f87171;
}
.sm-smoke-particles { position: absolute; inset: 0; }
.ssp {
  position: absolute; border-radius: 50%;
  background: rgba(200,180,120,.25);
  animation: smokePuffUp 3s ease-out infinite;
}
.s1 { width: 20px; height: 20px; bottom: 30px; left: 50%; margin-left: -10px; animation-delay: 0s; }
.s2 { width: 14px; height: 14px; bottom: 40px; left: 40%; animation-delay: .8s; }
.s3 { width: 16px; height: 16px; bottom: 35px; left: 55%; animation-delay: 1.6s; }
@keyframes smokePuffUp {
  0%   { opacity: 0; transform: translateY(0) scale(.5); }
  30%  { opacity: .7; }
  100% { opacity: 0; transform: translateY(-40px) scale(2); }
}
.sm-conf-panel {
  position: absolute; right: 12px; bottom: 20px;
  display: flex; flex-direction: column; gap: 6px; z-index: 4;
}
.sm-conf-row { display: flex; align-items: center; gap: 6px; }
.sm-conf-frame { font-size: 7px; color: rgba(255,255,255,.3); width: 36px; }
.sm-conf-bar-t { width: 80px; height: 4px; background: rgba(255,255,255,.08); border-radius: 100px; overflow: hidden; }
.sm-conf-bar { height: 100%; background: linear-gradient(90deg,#EF4444,#F97316); border-radius: 100px; }
.sm-conf-row .font-mono:last-child { font-size: 7px; color: #fca5a5; width: 28px; }

/* PPE panel */
.ppe-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 2.5rem;
}
.ppe-worker { position: relative; z-index: 3; }
.ppe-viol-box {
  position: absolute; inset: -6px -8px;
  border: 2px solid rgba(239,68,68,.8); border-radius: 3px;
  background: rgba(239,68,68,.04);
  animation: fireBoxPulse 1.5s infinite;
}
.ppe-viol-label {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 7.5px; font-weight: 700; line-height: 1.3;
  background: #EF4444; color: white; padding: 2px 5px; border-radius: 3px; white-space: nowrap;
  text-align: center;
}
.ppe-x-mark {
  position: absolute; top: 4px; right: -16px;
  font-size: 16px; color: #EF4444; font-weight: 900;
  animation: textBlink 1.2s infinite;
}
.ppe-ok-box {
  position: absolute; inset: -6px -8px;
  border: 2px solid rgba(13,148,136,.7); border-radius: 3px;
  background: rgba(13,148,136,.04);
}
.ppe-ok-label {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 7.5px; font-weight: 700; line-height: 1.3;
  background: #0D9488; color: white; padding: 2px 5px; border-radius: 3px; white-space: nowrap;
  text-align: center;
}
.ppe-check-mark {
  position: absolute; top: 4px; right: -16px;
  font-size: 16px; color: #0D9488; font-weight: 900;
}
.ppe-donut-wrap {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
}
.ppe-ring { width: 80px; height: 80px; }
.ppe-ring-arc { transition: stroke-dasharray 1s .5s ease-out; }

/* Panel info */
.sc-panel-info { padding-left: 1rem; }
.spi-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
}
.sc-panel-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em;
  color: var(--text); margin-bottom: .85rem;
}
.sc-panel-info p { font-size: .9rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.spi-feats { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; }
.spi-feats li {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .875rem; color: var(--muted); line-height: 1.5;
}
.spif-dot {
  width: 6px; height: 6px; border-radius: 50%; margin-top: .45rem; flex-shrink: 0;
}
.fire-dot2 { background: #EF4444; }
.nm-dot    { background: #8B5CF6; }
.veh-dot   { background: #3B82F6; }
.sm-dot    { background: #EF4444; }
.ppe-dot   { background: #0D9488; }
.spi-metrics {
  display: flex; gap: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.spm { }
.spm-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem; font-weight: 900; color: var(--text); display: block;
}
.spm-x { font-size: 1.4rem; }
.spm-u { font-size: .85rem; font-weight: 700; color: var(--amber); }
.spm-l { font-size: .72rem; color: var(--muted); font-weight: 500; display: block; margin-top: .15rem; }

/* ── Hero Home Image ──────────────────────────────────────────── */
.hero-home-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.10);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s;
}
.hero-home-wrap:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 32px 80px rgba(22,163,74,.18), 0 8px 24px rgba(0,0,0,.14);
}
.hero-home-img {
  width: 100%;
  display: block;
  transform: scale(1.04);
  transform-origin: center center;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.hero-home-wrap:hover .hero-home-img {
  transform: scale(1.09);
}
.hero-home-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,28,.55) 0%, transparent 55%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.hero-home-wrap:hover .hero-home-overlay { opacity: 1; }
.hero-home-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(22,163,74,.9); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: .3rem .75rem; border-radius: 99px;
  align-self: flex-start;
}
.hhb-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulseDot 1.4s infinite;
}
.hero-home-stats {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(6,13,28,.65); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: .65rem 1rem;
}
.hhs-item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.hhs-val { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 800; color: #fff; }
.hhs-lbl { font-size: .65rem; color: rgba(255,255,255,.5); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.hhs-sep { width: 1px; height: 28px; background: rgba(255,255,255,.15); }

/* ── Image Showcase Section (replaces Radar) ─────────────────── */
.radar-section {
  background: #FFFFFF;
  padding: 5rem 3rem;
  display: flex; flex-direction: column; align-items: center;
  max-width: 100%;
  gap: 3rem;
}
/* Header */
.imgshow-header {
  text-align: center;
  max-width: 680px;
}
.imgshow-title { font-size: 2.5rem; margin-bottom: .5rem; }
.imgshow-sub { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1.25rem; }
.imgshow-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
}
.imgshow-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border);
  padding: .3rem .8rem; border-radius: 99px;
}
.ib-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); display: inline-block;
}
.ib-dot-blue  { background: #2563EB; }
.ib-dot-amber { background: #D97706; }
.ib-dot-red   { background: #DC2626; }

/* Grid */
.imgshow-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1240px;
}
.imgshow-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  background: #f8fafc;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.imgshow-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 48px rgba(22,163,74,.14), 0 4px 12px rgba(0,0,0,.08);
}
.imgshow-zoom {
  width: 100%;
  overflow: hidden;
  max-height: 420px;
}
.imgshow-zoom img {
  width: 100%;
  display: block;
  transform: scale(1.06);
  transform-origin: center center;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.imgshow-card:hover .imgshow-zoom img { transform: scale(1.12); }
/* Caption bar */
.imgshow-caption {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem 1rem;
  background: #fff; border-top: 1px solid var(--border);
  font-size: .8rem; font-weight: 600; color: var(--text);
}
.ic-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
  animation: pulseDot 2s infinite;
}
.ic-dot-blue { background: #2563EB; }

/* ── Metrics Section ─────────────────────────────────────────── */
.metrics-section {
  background: var(--dark);
  padding: 7rem 2rem;
  position: relative; overflow: hidden;
}
.metrics-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.metrics-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; opacity: .4;
}
.m-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,.2) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: orbDrift 10s ease-in-out infinite;
}
.m-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation: orbDrift 13s ease-in-out infinite reverse;
}
@keyframes orbDrift {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}
.met-header { text-align: center; margin-bottom: 4rem; }
.met-rings {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; position: relative; z-index: 1;
}
.met-ring-item { text-align: center; }
.mri-ring-wrap {
  position: relative; width: 120px; height: 120px; margin: 0 auto 1.25rem;
}
.mri-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mri-center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.mri-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem; font-weight: 900; color: white;
}
.mri-unit { font-size: .85rem; font-weight: 700; color: var(--amber); }
.mri-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem; font-weight: 700; color: white; margin-bottom: .35rem;
}
.mri-desc { font-size: .78rem; color: rgba(255,255,255,.35); line-height: 1.5; }
.ring-arc {
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dasharray 1.5s .3s ease-out;
}
.s-tag-dark { border-color: rgba(245,158,11,.2); color: var(--amber); background: rgba(245,158,11,.08); }

/* ── Stack Section ───────────────────────────────────────────── */
.stack-section { padding: 7rem 2rem; background: var(--bg); }
.stack-header { text-align: center; margin-bottom: 3.5rem; }
.stack-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 3rem; flex-wrap: wrap;
}
.sf-node {
  background: rgba(13,26,46,.9); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  transition: transform .25s, box-shadow .25s;
}
.sf-node:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,200,255,.1); }
.sfn-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.sfn-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .25rem;
}
.sfn-sub { font-size: .7rem; color: var(--muted); }
.sf-arrow {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 0 .5rem;
}
.sfa-label { font-size: .62rem; color: var(--muted); }
.model-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.mc {
  background: rgba(13,26,46,.9); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.5rem; transition: transform .25s, box-shadow .25s;
  box-shadow: 0 1px 16px rgba(0,0,0,.3);
}
.mc:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,200,255,.1); }
.mc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mc-badge {
  font-size: .68rem; font-weight: 700; padding: .2rem .6rem;
  border-radius: 5px; border: 1px solid;
}
.mc-acc { font-size: .68rem; font-weight: 700; }
.mc-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; font-weight: 600; color: var(--text);
  line-height: 1.5; margin-bottom: .5rem;
}
.mc-source { font-size: .68rem; color: var(--muted); margin-bottom: .75rem; }
.mc-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.mct {
  font-size: .64rem; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  padding: .2rem .5rem; border-radius: 4px;
  background: var(--bg2); color: var(--muted); border: 1px solid var(--border);
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  background: var(--dark);
  padding: 8rem 2rem;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#cta-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .15;
}
.cta-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 560px;
}
.cta-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -0.03em;
  color: white; margin-bottom: 1rem; margin-top: 1rem;
}
.cta-p { font-size: .975rem; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 2.25rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-secondary-cta {
  display: inline-flex; align-items: center;
  padding: .8rem 1.75rem; font-weight: 600; font-size: .925rem;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); border-radius: 10px;
  text-decoration: none; border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, transform .15s;
}
.btn-secondary-cta:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: #090D13; padding: 4.5rem 2rem 2rem; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 3fr;
  gap: 4rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.35); line-height: 1.65; max-width: 280px; }
.footer-links-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.flg { display: flex; flex-direction: column; gap: .55rem; }
.flg-title {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.25); margin-bottom: .35rem;
}
.flg a { font-size: .82rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.flg a:hover { color: rgba(255,255,255,.8); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; font-size: .75rem; color: rgba(255,255,255,.2); flex-wrap: wrap; gap: .5rem;
}
.footer-version { font-size: .68rem; }

/* ── Scroll reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-left { padding-right: 0; max-width: 580px; }
  .product-win { max-width: 600px; margin: 0 auto; }
  .float-chip { display: none; }
  .sc-panel { grid-template-columns: 1fr; }
  .sc-panel.active { grid-template-columns: 1fr; }
  .sc-panel-info { padding-left: 0; }
  .imgshow-wrap { grid-template-columns: 1fr; }
  .imgshow-title { font-size: 1.8rem; }
  .radar-section { padding: 3rem 1.5rem; gap: 2rem; }
  .met-rings { grid-template-columns: repeat(2, 1fr); }
  .model-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-h1 { font-size: 2.4rem; }
  .pw-body { height: 220px; }
  .pw-sidebar { width: 100px; }
  .pw-events { width: 85px; }
  .sc-panel { padding: 2rem 1.25rem 3rem; }
  .met-rings { grid-template-columns: 1fr 1fr; }
  .model-cards { grid-template-columns: 1fr 1fr; }
  .stack-flow { flex-direction: column; gap: .75rem; }
  .sf-arrow { flex-direction: row; transform: rotate(90deg); }
}
@media (max-width: 520px) {
  .met-rings { grid-template-columns: 1fr; }
  .model-cards { grid-template-columns: 1fr; }
  .footer-links-group { grid-template-columns: 1fr 1fr; }
  .hero-kpi-row { gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   DETECTION SHOWCASE — Clean sliding tabs
   Dark navy shell · Electric cyan active tab · Full-width video
═══════════════════════════════════════════════════════════════ */

/* Suppress legacy sc-panel fallback */
.sc-panel { display: none !important; }
#sc-tabs   { display: none !important; }

/* Legacy tab panels — hidden, replaced by sv-outer/bc-pane */
.sc-panel { display: none !important; }

/* ── Outer wrapper ─────────────────────────────────────────────── */
.sv-outer {
  max-width: 1240px; margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ── Tab strip ─────────────────────────────────────────────────── */
.sv-tabs {
  display: flex; align-items: flex-end;
  border-bottom: 2px solid var(--border);
  padding: .5rem .5rem 0; gap: .2rem;
  overflow-x: auto; scrollbar-width: none;
  background: var(--bg2);
  border-radius: 14px 14px 0 0;
}
.sv-tabs::-webkit-scrollbar { display: none; }

/* ── Each tab button ───────────────────────────────────────────── */
.sv-tab {
  position: relative;
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1.2rem;
  border: none; border-bottom: 3px solid transparent;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  cursor: pointer; border-radius: 10px 10px 0 0;
  margin-bottom: -2px;
  white-space: nowrap; flex-shrink: 0;
  transition: color .22s cubic-bezier(.4,0,.2,1),
              background .22s cubic-bezier(.4,0,.2,1),
              transform .22s cubic-bezier(.4,0,.2,1),
              box-shadow .22s cubic-bezier(.4,0,.2,1),
              border-color .22s cubic-bezier(.4,0,.2,1);
}

/* Icon pill inside each tab */
.sv-tab-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  font-size: .95rem; line-height: 1;
  background: transparent;
  transition: background .22s cubic-bezier(.4,0,.2,1),
              transform .22s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}

/* Text label */
.sv-tab-label {
  transition: color .22s;
}

/* Live pulsing dot — only visible on active tab */
.sv-tab-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  opacity: 0; transform: scale(0);
  transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.sv-tab.active .sv-tab-live {
  opacity: 1; transform: scale(1);
  animation: pulseDot 1.8s ease-in-out infinite;
}

/* ── Per-tab color palette (CSS custom properties) ──────────────── */
.sv-tab[data-tab="fire"]     { --tc: #EA580C; --tbg: rgba(234,88,12,.08);  --tbg2: rgba(234,88,12,.14); }
.sv-tab[data-tab="nearmiss"] { --tc: #7C3AED; --tbg: rgba(124,58,237,.08); --tbg2: rgba(124,58,237,.14); }
.sv-tab[data-tab="vehicle"]  { --tc: #B45309; --tbg: rgba(180,83,9,.08);   --tbg2: rgba(180,83,9,.14); }
.sv-tab[data-tab="smoking"]  { --tc: #B91C1C; --tbg: rgba(185,28,28,.08);  --tbg2: rgba(185,28,28,.14); }
.sv-tab[data-tab="ppe"]      { --tc: #0F766E; --tbg: rgba(15,118,110,.08); --tbg2: rgba(15,118,110,.14); }
.sv-tab[data-tab="unauth"]   { --tc: #9F1239; --tbg: rgba(159,18,57,.08);  --tbg2: rgba(159,18,57,.14); }

/* ── Hover state ────────────────────────────────────────────────── */
.sv-tab:hover {
  color: var(--tc, var(--teal));
  background: var(--tbg, rgba(22,163,74,.06));
  transform: translateY(-2px);
}
.sv-tab:hover .sv-tab-icon {
  background: var(--tbg2, rgba(22,163,74,.12));
  transform: scale(1.05);
}

/* ── Active state — the "pop out" ───────────────────────────────── */
.sv-tab.active {
  color: var(--tc, var(--teal));
  background: #ffffff;
  border-bottom-color: var(--tc, var(--teal));
  transform: translateY(-5px);
  box-shadow:
    0 -2px 0 1px var(--border),
    -1px 0 0 0 var(--border),
    1px 0 0 0 var(--border),
    0 6px 0 #ffffff,
    0 -4px 18px rgba(0,0,0,.07);
  font-weight: 700;
  z-index: 2;
}
.sv-tab.active .sv-tab-icon {
  background: var(--tbg2, rgba(22,163,74,.14));
  transform: scale(1.1);
}

/* ── Active module label strip ─────────────────────────────────── */
.sv-active-strip {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem 1.1rem;
  background: white;
  border: 1px solid var(--border);
  border-top: none; border-bottom: none;
  font-size: .78rem; font-weight: 600;
  color: var(--strip-color, var(--teal));
  transition: color .22s;
}
.sv-as-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
.sv-as-label {
  flex: 1; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .01em;
}
.sv-as-badge {
  font-size: .6rem; font-weight: 800; letter-spacing: .1em;
  color: white; background: currentColor;
  padding: .18rem .55rem; border-radius: 100px;
  background: var(--strip-color, var(--teal));
  animation: pulseDot 2s ease-in-out infinite;
}

/* ── Panel container ───────────────────────────────────────────── */
.sv-panels {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}

/* Legacy browser wrapper — hidden (replaced by sv-outer) */
.browser-outer {
  max-width: 1240px; margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ── Browser window shell ──────────────────────────────────────── */
.browser-win {
  background: #202124;
  border-radius: 14px 14px 8px 8px;
  box-shadow:
    0 50px 120px rgba(0,0,0,.5),
    0 16px 40px rgba(0,0,0,.3),
    0 0 0 1px rgba(255,255,255,.07);
  overflow: hidden;
}

/* ── OS title bar ──────────────────────────────────────────────── */
.browser-titlebar {
  display: flex; align-items: center; gap: .8rem;
  height: 40px; padding: 0 1rem;
  background: #3C4043;
  border-bottom: 1px solid rgba(0,0,0,.35);
  user-select: none;
}
.browser-traffic { display: flex; gap: 7px; align-items: center; }
.bt { width: 13px; height: 13px; border-radius: 50%; display: inline-block; cursor: pointer; }
.bt.r { background: #FF5F57; }
.bt.y { background: #FFBD2E; }
.bt.g { background: #28CA41; }
.browser-win-title {
  flex: 1; text-align: center;
  font-size: .68rem; color: rgba(255,255,255,.38); letter-spacing: .02em;
}
.browser-win-actions { display: flex; gap: .4rem; }
.browser-win-actions span {
  cursor: pointer; width: 22px; height: 22px; font-size: .7rem;
  color: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; transition: background .15s, color .15s;
}
.browser-win-actions span:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }

/* ── Chrome tab bar ────────────────────────────────────────────── */
.browser-tab-bar {
  display: flex; align-items: flex-end;
  background: #3C4043;
  padding: 6px .5rem 0; gap: 1px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; min-height: 44px;
}
.browser-tab-bar::-webkit-scrollbar { display: none; }

.btab {
  display: flex; align-items: center; gap: .4rem;
  padding: 0 .85rem; min-width: 105px; max-width: 185px;
  height: 32px; background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.44);
  font-size: .77rem; font-weight: 500;
  border-radius: 8px 8px 0 0; cursor: pointer;
  position: relative; white-space: nowrap; overflow: hidden;
  transition: background .15s, color .15s;
  flex-shrink: 0; user-select: none;
}
.btab:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.btab.active {
  background: #202124; color: rgba(255,255,255,.92);
  z-index: 2; height: 36px;
}
/* Chrome curved bottom connectors */
.btab.active::before {
  content: ''; position: absolute; bottom: 0; left: -10px;
  width: 10px; height: 10px; border-radius: 0 0 10px 0;
  box-shadow: 4px 0 0 0 #202124; background: transparent; pointer-events: none;
}
.btab.active::after {
  content: ''; position: absolute; bottom: 0; right: -10px;
  width: 10px; height: 10px; border-radius: 0 0 0 10px;
  box-shadow: -4px 0 0 0 #202124; background: transparent; pointer-events: none;
}
.btab-icon  { font-size: .82rem; flex-shrink: 0; }
.btab-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.btab-x {
  font-size: .62rem; opacity: 0; margin-left: .15rem;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity .15s, background .15s;
}
.btab:hover .btab-x, .btab.active .btab-x { opacity: .4; }
.btab-x:hover { background: rgba(255,255,255,.12) !important; opacity: 1 !important; }
.btab-newtab {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  color: rgba(255,255,255,.4); font-size: 1.1rem;
  cursor: pointer; margin-left: .25rem; margin-bottom: 2px;
  transition: background .15s, color .15s; flex-shrink: 0;
}
.btab-newtab:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

/* ── Address bar / toolbar ─────────────────────────────────────── */
.browser-toolbar {
  display: flex; align-items: center; gap: .5rem;
  background: #202124; padding: .4rem .7rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.btb-navbtns { display: flex; gap: .15rem; }
.btb-nbtn {
  width: 26px; height: 26px; background: none; border: none; outline: none;
  color: rgba(255,255,255,.32); font-size: .9rem; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.btb-nbtn:hover { background: rgba(255,255,255,.09); color: rgba(255,255,255,.8); }
.btb-fwd { opacity: .22; pointer-events: none; }
.btb-addressbar {
  flex: 1; display: flex; align-items: center; gap: .4rem;
  background: #303134; border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px; padding: .3rem .8rem; cursor: text;
  transition: background .15s, border-color .15s;
}
.btb-addressbar:hover { background: #3A3B3F; border-color: rgba(255,255,255,.15); }
.btb-lock-icon { flex-shrink: 0; }
.btb-url {
  font-size: .74rem; color: rgba(255,255,255,.62); letter-spacing: .01em;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btb-actions { display: flex; gap: .1rem; }
.btb-abtn {
  width: 26px; height: 26px; background: none; border: none; outline: none;
  color: rgba(255,255,255,.32); font-size: .82rem; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.btb-abtn:hover { background: rgba(255,255,255,.09); color: rgba(255,255,255,.8); }

/* ── Browser content panes ─────────────────────────────────────── */
.browser-content { background: #202124; }
.bc-pane { display: none; position: relative; }
.bc-pane.active {
  display: flex; flex-direction: column;
  animation: paneEnter .32s cubic-bezier(.4,0,.2,1) both;
}

/* Coloured top accent sweep — slides in from left on activation */
.bc-pane::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--pa, var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s cubic-bezier(.4,0,.2,1) .1s;
  z-index: 10; pointer-events: none;
}
.bc-pane.active::before { transform: scaleX(1); }

/* Per-pane accent colours */
#bc-fire::before     { --pa: #EA580C; }
#bc-nearmiss::before { --pa: #7C3AED; }
#bc-vehicle::before  { --pa: #B45309; }
#bc-smoking::before  { --pa: #B91C1C; }
#bc-ppe::before      { --pa: #0F766E; }
#bc-unauth::before   { --pa: #9F1239; }

@keyframes paneEnter {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Inner app nav bar ─────────────────────────────────────────── */
.bc-appnav {
  display: flex; align-items: center; gap: .75rem;
  background: #292A2D; padding: .5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0; flex-wrap: wrap;
}
.bc-appnav-left {
  display: flex; align-items: center; gap: .45rem;
  font-size: .77rem; color: rgba(255,255,255,.48);
}
.bc-app-icon  { font-size: .82rem; }
.bc-app-name  { font-weight: 600; color: rgba(255,255,255,.82); }
.bc-appnav-sep { color: rgba(255,255,255,.2); font-size: .72rem; }
.bc-appnav-page { color: rgba(255,255,255,.4); }
.bc-appnav-tabs { display: flex; gap: 0; margin-left: .2rem; }
.bc-ant {
  font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.3);
  padding: .28rem .65rem; border-bottom: 2px solid transparent;
  cursor: pointer; transition: color .15s, border-color .15s; white-space: nowrap;
}
.bc-ant.active { color: rgba(255,255,255,.9); border-bottom-color: #0D9488; }
.bc-ant:hover:not(.active) { color: rgba(255,255,255,.62); }
.bc-appnav-right { margin-left: auto; display: flex; align-items: center; gap: .65rem; }
.bc-status-live {
  display: flex; align-items: center; gap: .3rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: #22c55e;
  background: rgba(34,197,94,.09); border: 1px solid rgba(34,197,94,.18);
  padding: .15rem .5rem; border-radius: 4px;
}
.bc-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; animation: pulseDot 1.5s infinite; }
.bc-cam-badge { font-size: .67rem; color: rgba(255,255,255,.3); }

/* ── Inner app nav — hidden (clean browser look) ────────────────── */
.bc-appnav { display: none !important; }

/* ── Real CCTV video player ──────────────────────────────────────── */
.bc-video {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}
/* Portrait video (near_miss 720×1280) — contain to show full frame */
#bc-nearmiss .bc-video {
  object-fit: contain;
}
/* Hide CSS animation placeholders when a real video is present */
.bc-scene:has(.bc-video) .bcs-rebar,
.bc-scene:has(.bc-video) .bcs-worker,
.bc-scene:has(.bc-video) .bcs-fire-zone,
.bc-scene:has(.bc-video) .bcs-smoke-zone,
.bc-scene:has(.bc-video) .bcs-flash,
.bc-scene:has(.bc-video) .bcs-skeleton-wrap,
.bc-scene:has(.bc-video) .bcs-flow-glow,
.bc-scene:has(.bc-video) .bcs-prox-zone,
.bc-scene:has(.bc-video) .bcs-excavator,
.bc-scene:has(.bc-video) .bcs-veh-worker,
.bc-scene:has(.bc-video) .bcs-veh-lines,
.bc-scene:has(.bc-video) .bcs-sm-scene-inner,
.bc-scene:has(.bc-video) .bcs-ppe-worker,
.bc-scene:has(.bc-video) .bcs-ppe-donut,
.bc-scene:has(.bc-video) .bcs-unauth-zone,
.bc-scene:has(.bc-video) .bcs-unauth-intruder,
.bc-scene:has(.bc-video) .bcs-unauth-breach,
.bc-scene:has(.bc-video) .bcs-unauth-await {
  display: none;
}

/* ── CCTV scene (main video area) ──────────────────────────────── */
.bc-scene {
  position: relative !important; inset: auto !important; display: block !important;
  width: 100%; aspect-ratio: 16/9; max-height: 620px;
  overflow: hidden; background: #0C0C0C; flex-shrink: 0;
}
.bcs-rebar {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(80,70,50,.08) 14px, rgba(80,70,50,.08) 15px),
    repeating-linear-gradient(90deg, transparent, transparent 14px, rgba(80,70,50,.08) 14px, rgba(80,70,50,.08) 15px),
    linear-gradient(135deg, #141210 0%, #1C1A13 50%, #111008 100%);
}
.bcs-rebar-lighter {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(100,90,70,.055) 20px, rgba(100,90,70,.055) 21px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(100,90,70,.055) 20px, rgba(100,90,70,.055) 21px),
    linear-gradient(135deg, #1C1A16 0%, #232018 50%, #181614 100%);
}

/* ── Overhead worker in browser scenes ──────────────────────── */
.bcs-worker {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
}
.bcs-wbox {
  position: relative; border: 1.5px solid var(--amber); border-radius: 2px;
  padding: 12px 9px; background: rgba(245,158,11,.04);
}
.bcs-wid {
  position: absolute; top: -9px; left: 2px;
  background: var(--amber); color: #000;
  font-family: 'JetBrains Mono', monospace; font-size: 7.5px; font-weight: 700;
  padding: 1px 3px; border-radius: 2px;
}
.bcs-wtimer {
  position: absolute; bottom: -9px; right: 2px;
  background: rgba(0,0,0,.75); color: var(--amber);
  font-size: 7.5px; font-weight: 700; padding: 1px 3px; border-radius: 2px;
}
.bcs-wbody {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 11px; height: 16px; background: rgba(180,160,110,.6);
  border-radius: 50% 50% 35% 35%;
}

/* ══ FIRE & SMOKE SCENE ════════════════════════════════════════ */
.bc-scene.fire-scene .bcs-rebar {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(100,50,20,.12) 14px, rgba(100,50,20,.12) 15px),
    repeating-linear-gradient(90deg, transparent, transparent 14px, rgba(100,50,20,.12) 14px, rgba(100,50,20,.12) 15px),
    linear-gradient(135deg, #1A0E06 0%, #240F06 50%, #1A0805 100%);
  animation: fireFlicker 3s ease-in-out infinite;
}
.bcs-fire-zone {
  position: absolute; top: 16%; left: 26%; width: 44%; height: 58%;
  border: 2px solid rgba(239,68,68,.88); border-radius: 5px;
  background: rgba(239,68,68,.03);
  box-shadow: 0 0 60px rgba(239,68,68,.22), inset 0 0 40px rgba(239,68,68,.05);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 3; animation: fireBoxPulse 1.5s ease-in-out infinite;
}
.bcs-fire-label {
  position: absolute; top: -1px; left: 5px;
  font-size: 11px; font-weight: 700; line-height: 1.4;
  color: white; background: #EF4444; padding: 2px 7px; border-radius: 3px;
}
.bcs-fire-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 85%, rgba(239,68,68,.18) 0%, transparent 65%);
  animation: smokePuffAnim 2.5s ease-in-out infinite; z-index: 1;
}
.bcs-flames {
  display: flex; align-items: flex-end; gap: 6px; padding-bottom: 10px; z-index: 2;
}
.bcsf {
  border-radius: 50% 50% 25% 25% / 60% 60% 40% 40%;
  animation: flameDance 1.2s ease-in-out infinite;
}
.bcsf.f1 { width: 30px; height: 58px; background: linear-gradient(to top,#F59E0B,#EF4444); animation-delay:.08s; }
.bcsf.f2 { width: 40px; height: 75px; background: linear-gradient(to top,#FBBF24,#F97316); }
.bcsf.f3 { width: 26px; height: 52px; background: linear-gradient(to top,#FDE68A,#F59E0B); animation-delay:.22s; }
.bcsf.f4 { width: 34px; height: 66px; background: linear-gradient(to top,#F97316,#DC2626); animation-delay:.15s; }
.bcsf.f5 { width: 22px; height: 46px; background: linear-gradient(to top,#EF4444,#7f1d1d); animation-delay:.35s; }
.bcs-smoke-zone {
  position: absolute; top: 6%; right: 8%; width: 30%; height: 44%;
  border: 1.5px dashed rgba(150,120,60,.55); border-radius: 5px;
  background: rgba(100,80,40,.04); z-index: 3;
}
.bcs-smoke-label {
  position: absolute; top: -1px; left: 5px;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.8);
  background: rgba(130,100,60,.85); padding: 2px 7px; border-radius: 3px;
}
.bcs-smoke-cloud {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse, rgba(100,80,60,.3) 0%, transparent 70%);
  animation: smokePuffAnim 3s ease-in-out infinite;
}
.bcs-flash {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  animation: screenFlash 2.5s ease-in-out infinite;
}

/* ══ NEAR-MISS SCENE ═══════════════════════════════════════════ */
.bcs-skeleton-wrap {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  display: flex; align-items: center; gap: 3rem; z-index: 4;
}
.bcs-skeleton {
  width: 170px; height: auto;
  filter: drop-shadow(0 0 24px rgba(245,158,11,.45));
  animation: skeletonSway 3s ease-in-out infinite;
}
.bcs-drop-indicator { display: flex; flex-direction: column; align-items: center; gap: .65rem; }
.bcs-drop-bar {
  width: 16px; height: 130px;
  background: rgba(255,255,255,.07); border-radius: 8px;
  position: relative; overflow: hidden;
}
.bcs-drop-fill {
  position: absolute; bottom: 0; left: 0; right: 0; height: 42%;
  background: linear-gradient(to top, #EF4444, #F97316); border-radius: 7px;
  animation: fillPulse 2s ease-in-out infinite;
}
.bcs-drop-val {
  font-size: .72rem; color: #EF4444; font-weight: 700; text-align: center;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2);
  padding: .2rem .45rem; border-radius: 4px; white-space: nowrap;
}
.bcs-flow-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 50% at 50% 55%, rgba(139,92,246,.09) 0%, transparent 70%);
}

/* ══ VEHICLE PROXIMITY SCENE ══════════════════════════════════ */
.bc-scene.veh-scene { position: relative !important; display: block !important; }

.bcs-prox-zone {
  position: absolute; border-radius: 50%;
  top: 44%; left: 52%; transform: translate(-50%,-50%);
  animation: zonePulse 2.5s ease-in-out infinite;
}
.bpz-3 { width: 400px; height: 270px; border: 2px dashed rgba(239,68,68,.18); background: rgba(239,68,68,.015); }
.bpz-2 { width: 276px; height: 188px; border: 2px dashed rgba(245,158,11,.32); background: rgba(245,158,11,.02); animation-delay:.3s; }
.bpz-1 { width: 158px; height: 108px; border: 2px solid rgba(245,158,11,.52); background: rgba(245,158,11,.04); animation-delay:.6s; }
.bcs-excavator {
  position: absolute; top: 40%; left: 52%; transform: translate(-50%,-50%); z-index: 3;
}
.bcs-veh-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  background: #F59E0B; color: #000; padding: 2px 6px; border-radius: 3px;
  text-align: center; margin-top: 3px;
}
.bcs-veh-worker { position: absolute; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bcs-vw-danger { top: 46%; left: 18%; }
.bcs-vw-warn   { top: 22%; right: 16%; }
.bcs-vw-safe   { bottom: 14%; right: 8%; }
.bcs-vw-id { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; font-weight: 700; color: var(--amber); }
.bcs-vw-danger-id { color: #EF4444 !important; }
.bcs-vw-dist {
  font-family: 'JetBrains Mono', monospace; font-size: 7.5px; font-weight: 700; color: #EF4444;
  background: rgba(239,68,68,.1); padding: 1px 4px; border-radius: 2px;
}
.bcs-vw-badge { font-size: 7.5px; font-weight: 700; font-family: 'JetBrains Mono', monospace; padding: 2px 5px; border-radius: 3px; }
.bcs-vwb-danger { background: rgba(239,68,68,.18); color: #EF4444; animation: textBlink 1.2s infinite; }
.bcs-vwb-warn   { background: rgba(245,158,11,.14); color: #F59E0B; }
.bcs-vwb-safe   { background: rgba(13,148,136,.14); color: #0D9488; }

/* ══ SMOKING SCENE ════════════════════════════════════════════ */
.bc-scene.sm-scene { position: relative !important; display: block !important; }
.bcs-sm-scene-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 3rem;
}
.bcs-sm-person { position: relative; z-index: 3; }
.bcs-person-bbox {
  position: absolute; inset: -10px -12px;
  border: 1.5px solid rgba(255,165,0,.5); border-radius: 4px; pointer-events: none;
}
.bcs-person-label {
  position: absolute; top: -12px; left: 2px;
  font-size: 8px; font-weight: 700;
  background: rgba(255,165,0,.8); color: #000; padding: 1px 5px; border-radius: 2px;
}
.bcs-sm-detect {
  position: relative; z-index: 3;
  border: 2px solid rgba(239,68,68,.82); border-radius: 5px;
  width: 95px; height: 120px; background: rgba(239,68,68,.04);
  box-shadow: 0 0 30px rgba(239,68,68,.16);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 8px;
  animation: fireBoxPulse 2s infinite;
}
.bcs-sm-label { font-size: 11px; font-weight: 700; line-height: 1.4; text-align: center; color: #f87171; }
.bcs-sm-particles { position: absolute; inset: 0; overflow: hidden; }
.bcs-smp { position: absolute; border-radius: 50%; background: rgba(200,180,120,.2); animation: smokePuffUp 3.5s ease-out infinite; }
.bcs-smp1 { width: 26px; height: 26px; bottom: 32px; left: 50%; margin-left: -13px; }
.bcs-smp2 { width: 20px; height: 20px; bottom: 44px; left: 34%; animation-delay:.9s; }
.bcs-smp3 { width: 22px; height: 22px; bottom: 38px; left: 60%; animation-delay: 1.8s; }
.bcs-smp4 { width: 14px; height: 14px; bottom: 56px; left: 44%; animation-delay: 2.6s; }
.bcs-sm-conf {
  position: relative; z-index: 4;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px; padding: .65rem .8rem; min-width: 165px;
}
.bcs-sm-conf-title {
  font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.28); margin-bottom: .5rem;
}
.bcs-sm-crow { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: 7.5px; color: rgba(255,255,255,.38); }
.bcs-sm-cbar-t { flex: 1; height: 5px; background: rgba(255,255,255,.07); border-radius: 100px; overflow: hidden; }
.bcs-sm-cbar { height: 100%; background: linear-gradient(90deg,#EF4444,#F97316); border-radius: 100px; }
.bcs-sm-cpct { color: #fca5a5; min-width: 28px; text-align: right; }

/* ══ PPE SCENE ════════════════════════════════════════════════ */
.bc-scene.ppe-scene { position: relative !important; display: block !important; }
.bcs-ppe-worker { position: absolute; z-index: 3; }
.bcs-ppe-violate { top: 50%; left: 28%; transform: translate(-50%,-50%); }
.bcs-ppe-ok      { top: 50%; left: 56%; transform: translate(-50%,-50%); }
.bcs-ppe-bbox { position: absolute; inset: -10px -12px; border-radius: 4px; pointer-events: none; }
.bcs-ppe-vbox { border: 2px solid rgba(239,68,68,.78); background: rgba(239,68,68,.04); animation: fireBoxPulse 1.5s infinite; }
.bcs-ppe-obox { border: 2px solid rgba(13,148,136,.72); background: rgba(13,148,136,.04); }
.bcs-ppe-blabel {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 8.5px; font-weight: 700; white-space: nowrap;
  background: #EF4444; color: white; padding: 2px 6px; border-radius: 3px;
}
.bcs-ppe-wid {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: 8px; font-weight: 700; color: var(--amber); white-space: nowrap;
}
.bcs-ppe-vid { color: #EF4444 !important; }
.bcs-x-badge {
  position: absolute; top: -36px; right: -24px;
  font-size: 7.5px; font-weight: 700; color: #EF4444;
  background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.28);
  padding: 2px 6px; border-radius: 4px; animation: textBlink 1.2s infinite; white-space: nowrap;
}
.bcs-check-badge {
  position: absolute; top: -36px; right: -28px;
  font-size: 7.5px; font-weight: 700; color: #0D9488;
  background: rgba(13,148,136,.1); border: 1px solid rgba(13,148,136,.28);
  padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.bcs-ppe-donut {
  position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: .85rem 1rem; z-index: 4; text-align: center;
}
.bcs-ppe-donut-title { font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: .5rem; }
.bcs-ppe-ring { width: 90px; height: 90px; display: block; margin: 0 auto; }
.bcs-ppe-ring-arc { transition: stroke-dasharray 1.5s ease-out; }
.bcs-ppe-legend { display: flex; justify-content: center; gap: .7rem; margin-top: .5rem; }
.bcs-ppe-leg-item { display: flex; align-items: center; gap: .3rem; font-size: 7.5px; color: rgba(255,255,255,.38); }
.bcs-ppe-leg-item span { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ── HUD overlays (all scenes) ──────────────────────────────── */
.bcs-hud-tl, .bcs-hud-tr, .bcs-hud-bl {
  position: absolute; z-index: 8; display: flex; align-items: center; gap: .4rem; pointer-events: none;
}
.bcs-hud-tl { top: .75rem; left: .85rem; }
.bcs-hud-tr { top: .75rem; right: .85rem; }
.bcs-hud-bl { bottom: 2.4rem; left: .85rem; }
.bcs-camid { font-size: .67rem; color: rgba(255,255,255,.4); background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 3px; }
.bcs-ts { font-size: .63rem; color: rgba(255,255,255,.26); }
.bcs-alert-chip {
  font-size: .71rem; font-weight: 700; letter-spacing: .04em;
  padding: .28rem .65rem; border-radius: 5px;
  animation: textBlink 1.6s infinite; pointer-events: all;
}
.bcs-ac-fire   { background: rgba(239,68,68,.18); color: #f87171; border: 1px solid rgba(239,68,68,.28); }
.bcs-ac-purple { background: rgba(139,92,246,.18); color: #c4b5fd; border: 1px solid rgba(139,92,246,.28); }
.bcs-ac-amber  { background: rgba(245,158,11,.18); color: #fcd34d; border: 1px solid rgba(245,158,11,.25); }
.bcs-ac-red    { background: rgba(239,68,68,.16); color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.bcs-model-tag { font-size: .63rem; color: rgba(255,255,255,.26); background: rgba(0,0,0,.52); padding: 2px 6px; border-radius: 3px; }

/* Severity bar (bottom of scene) */
.bcs-sev-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 26px;
  background: rgba(0,0,0,.65); display: flex; align-items: center; z-index: 7; overflow: hidden;
}
.bcs-sev-fill { position: absolute; left: 0; top: 0; bottom: 0; opacity: .28; border-radius: 0; }
.bcs-sev-label {
  position: relative; z-index: 1;
  font-size: .62rem; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.62); padding: 0 .85rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Bottom info strip ──────────────────────────────────────── */
.bc-infostrip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #272829; padding: .65rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,.055);
  flex-shrink: 0; flex-wrap: wrap;
}
.bc-is-left { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.bc-is-item { display: flex; flex-direction: column; gap: .12rem; }
.bc-is-label { font-size: .6rem; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: .07em; }
.bc-is-val { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.8); }
.bc-is-right { flex-shrink: 0; }
.bc-is-badge { font-family: 'JetBrains Mono', monospace; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .28rem .72rem; border-radius: 5px; }
.bc-is-b-red    { background: rgba(239,68,68,.14); color: #f87171; border: 1px solid rgba(239,68,68,.22); animation: textBlink 2s infinite; }
.bc-is-b-purple { background: rgba(139,92,246,.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,.22); }
.bc-is-b-amber  { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.18); }

/* ══ UNAUTHORISED ZONE SCENE ══════════════════════════════════ */
.bc-scene.unauth-scene { position: relative !important; display: block !important; }

.bcs-unauth-zone {
  position: absolute; top: 20%; left: 30%; width: 48%; height: 55%;
  border: 2.5px dashed rgba(239,68,68,.75); border-radius: 6px;
  background: rgba(239,68,68,.04); z-index: 3;
  animation: fireBoxPulse 2s ease-in-out infinite;
}
.bcs-unauth-label {
  position: absolute; top: -1px; left: 6px;
  font-size: 11px; font-weight: 700; color: white;
  background: #EF4444; padding: 2px 8px; border-radius: 3px;
}
.bcs-unauth-stripes {
  position: absolute; inset: 0; border-radius: 4px; overflow: hidden; opacity: .06;
  background: repeating-linear-gradient(
    45deg, #EF4444, #EF4444 10px, transparent 10px, transparent 20px
  );
}
.bcs-unauth-intruder {
  position: absolute; top: 38%; left: 46%; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  animation: skeletonSway 2s ease-in-out infinite;
}
.bcs-unauth-id {
  font-size: 8.5px; font-weight: 700; color: #EF4444;
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
  padding: 1px 5px; border-radius: 3px; white-space: nowrap;
}
.bcs-unauth-badge {
  font-size: 7.5px; font-weight: 700; color: white;
  background: #EF4444; padding: 2px 5px; border-radius: 3px;
  animation: textBlink 1.2s infinite; white-space: nowrap;
}
.bcs-unauth-breach {
  position: absolute; top: 55%; left: 30%; right: 22%;
  height: 2px; background: linear-gradient(90deg, #EF4444, rgba(239,68,68,0));
  animation: lineFlash 1.5s infinite; z-index: 4;
}

/* "Video pending" overlay — centred, dim, non-intrusive */
.bcs-unauth-await {
  position: absolute; inset: 0; z-index: 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(3px);
}
.bcs-await-icon { font-size: 2.8rem; opacity: .55; }
.bcs-await-text {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,158,11,.85);
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2);
  padding: .4rem 1.1rem; border-radius: 6px;
}
.bcs-await-sub { font-size: .72rem; color: rgba(255,255,255,.3); letter-spacing: .04em; }

/* ── Showcase responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .sv-outer { padding: 0 1rem 4rem; }
  .bc-scene { max-height: 420px; }
  .bcs-fire-zone { top: 14%; left: 22%; width: 50%; height: 55%; }
  .bcsf.f1 { height: 42px; } .bcsf.f2 { height: 55px; } .bcsf.f3 { height: 38px; }
  .bcsf.f4 { height: 48px; } .bcsf.f5 { height: 34px; }
  .bcs-skeleton { width: 130px; }
  .bpz-3 { width: 300px; height: 205px; }
  .bpz-2 { width: 210px; height: 144px; }
  .bpz-1 { width: 120px; height: 82px; }
  .bcs-ppe-donut { right: 1%; padding: .6rem .75rem; }
}
@media (max-width: 680px) {
  .sv-tabs { padding: .35rem .35rem 0; gap: .1rem; border-radius: 10px 10px 0 0; }
  .sv-tab { padding: .6rem .75rem; font-size: .72rem; }
  .sv-tab-label { display: none; }
  .sv-tab.active .sv-tab-label { display: inline; }
  .sv-tab-icon { width: 24px; height: 24px; font-size: .85rem; }
  .sv-tab.active { padding: .65rem .9rem; }
  .sv-as-label { font-size: .72rem; }
  .bc-appnav-tabs, .bc-appnav-right { display: none; }
  .bc-appnav-left .bc-appnav-sep, .bc-appnav-left .bc-appnav-page { display: none; }
  .bc-scene { max-height: 300px; }
  .bc-is-left { gap: 1rem; }
  .bcs-ppe-donut, .bcs-sm-conf { display: none; }
  .bcs-skeleton-wrap { gap: 1.5rem; }
  .bcs-skeleton { width: 100px; }
}

/* ═══════════════════════════════════════════════════════════════
   EXPAND BUTTON (on each video scene)
═══════════════════════════════════════════════════════════════ */
.bcs-expand-btn {
  position: absolute; top: .7rem; right: .7rem; z-index: 12;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: rgba(255,255,255,.8);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .18s, color .18s, transform .18s, border-color .18s;
}
.bcs-expand-btn:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.4);
  transform: scale(1.04);
}
.bcs-expand-btn svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   VIDEO MODAL
═══════════════════════════════════════════════════════════════ */
.vmodal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s cubic-bezier(.4,0,.2,1);
}
.vmodal.open {
  opacity: 1; pointer-events: all;
}
.vmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,12,20,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.vmodal-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 940px;
  background: #0D1117;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
  transform: scale(.94) translateY(16px);
  transition: transform .32s cubic-bezier(.34,1.26,.64,1);
}
.vmodal.open .vmodal-card {
  transform: scale(1) translateY(0);
}

/* Modal header */
.vmodal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--vm-color, #16A34A);
  position: relative;
}
.vmodal-header::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.35); pointer-events: none;
}
.vmodal-title-row {
  display: flex; align-items: center; gap: .9rem; position: relative; z-index: 1;
}
.vmodal-icon {
  font-size: 2rem; line-height: 1;
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vmodal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: -.02em;
  margin: 0;
}
.vmodal-subtitle {
  font-size: .8rem; color: rgba(255,255,255,.65); margin: .2rem 0 0; line-height: 1.4;
}
.vmodal-close {
  position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none;
  color: rgba(255,255,255,.8); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, transform .15s;
  flex-shrink: 0;
}
.vmodal-close:hover { background: rgba(255,255,255,.25); color: #fff; transform: scale(1.08); }

/* Modal video */
.vmodal-video-wrap {
  position: relative; width: 100%; background: #000;
  aspect-ratio: 16/9; overflow: hidden;
}
.vmodal-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Portrait override */
.vmodal-video.portrait { object-fit: contain; background: #000; }

.vmodal-live-badge {
  position: absolute; top: .75rem; left: .85rem;
  display: flex; align-items: center; gap: .35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  color: #EF4444; background: rgba(0,0,0,.6);
  padding: .25rem .65rem; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.vmodal-rec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EF4444; animation: pulseDot 1.2s infinite;
}

/* Modal footer chips */
.vmodal-footer {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .9rem 1.5rem;
  background: #111318;
  border-top: 1px solid rgba(255,255,255,.06);
}
.vmodal-chip {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .28rem .75rem; border-radius: 100px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.08);
}

/* ═══════════════════════════════════════════════════════════════
   USE CASE DETAIL SECTION
═══════════════════════════════════════════════════════════════ */
.ucdetail-section {
  padding: 6rem 0;
  background: var(--bg2);
}
.ucd-header { text-align: center; margin-bottom: 3.5rem; }
.ucd-header .s-h2 { margin-bottom: 1rem; }
.ucd-header .s-sub { max-width: 680px; margin: 0 auto; }

.ucd-stats {
  display: flex; justify-content: center; gap: 0;
  margin-bottom: 4rem;
  background: white; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  overflow: hidden;
}
.ucd-stat {
  flex: 1; text-align: center; padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}
.ucd-stat:last-child { border-right: none; }
.ucd-stat-num {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--teal); margin-bottom: .3rem;
}
.ucd-stat-lbl {
  font-size: .85rem; font-weight: 500; color: var(--muted); line-height: 1.4;
}

.ucd-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.ucd-card {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: transform .2s, box-shadow .2s;
}
.ucd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(22,163,74,.12);
  border-color: rgba(22,163,74,.3);
}
.ucd-card-icon {
  font-size: 2rem; margin-bottom: 1rem; display: block;
}
.ucd-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  margin-bottom: .75rem; letter-spacing: -0.02em;
}
.ucd-card p {
  font-size: .9rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 1rem;
}
.ucd-card ul {
  list-style: none; display: flex; flex-direction: column; gap: .45rem;
}
.ucd-card ul li {
  font-size: .85rem; color: var(--text); font-weight: 500;
  padding-left: 1.3rem; position: relative;
}
.ucd-card ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--teal); font-weight: 700;
}

.ucd-deploy {
  margin-top: 1rem;
}
.ucd-deploy-inner {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem 2.5rem;
  display: flex; align-items: center; gap: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.ucd-deploy-icon { font-size: 2.5rem; flex-shrink: 0; }
.ucd-deploy-text { flex: 1; }
.ucd-deploy-text h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  margin-bottom: .4rem;
}
.ucd-deploy-text p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.ucd-deploy-tags {
  display: flex; flex-wrap: wrap; gap: .6rem; flex-shrink: 0;
}
.ucd-deploy-tags span {
  font-size: .78rem; font-weight: 700;
  background: rgba(22,163,74,.08); color: var(--teal);
  border: 1px solid rgba(22,163,74,.2);
  padding: .35rem .85rem; border-radius: 100px;
}

@media (max-width: 900px) {
  .ucd-grid { grid-template-columns: repeat(2, 1fr); }
  .ucd-stats { flex-direction: column; }
  .ucd-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .ucd-stat:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .ucd-grid { grid-template-columns: 1fr; }
  .ucd-deploy-inner { flex-direction: column; text-align: center; }
}
