/* ============================================================
   AI-Based Video Analytics — page-specific styles
   Extends the IN4 design system (no new framework).
   ============================================================ */

.va-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- shared eyebrows / section heads ---------- */
.va-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple-600, #0991b1); margin: 0 0 14px;
}
.va-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; margin: 0 0 16px; color: var(--ink-900); }
.va-sub { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; color: #55516E; max-width: 640px; margin: 0; }
.va-sec { padding: clamp(56px, 7vw, 104px) 0; }
.va-sec-alt { background: linear-gradient(180deg, #fafdfe 0%, #f0fafc 100%); }

/* ---------- 1. HERO ---------- */
.va-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 6vw, 96px); background:
  radial-gradient(900px 420px at 85% -10%, rgba(9, 145, 177,.10), transparent 60%),
  linear-gradient(180deg, #FFFFFF 0%, #f4fbfd 100%); }
.va-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.va-hero h1 { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; margin: 0 0 14px; color: #032c39; }
.va-hero h1 .grad { background: linear-gradient(90deg, #0991b1, #0991b1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.va-hero-tag { font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; color: #0991b1; margin: 0 0 18px; }
.va-hero p.body { font-size: 15.5px; line-height: 1.75; color: #55516E; margin: 0 0 26px; max-width: 560px; }
.va-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* surveillance interface mock */
.va-feed {
  background: #032f3d; border-radius: 18px; padding: 18px; color: #def4f8;
  box-shadow: 0 30px 60px -20px rgba(4, 52, 67,.45), 0 0 0 1px rgba(255,255,255,.06);
  border: 1px solid #043f51;
}
.va-feed-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.va-feed-top .live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; font-weight: 700; color: #1ea8c8; text-transform: uppercase; }
.va-dot { width: 8px; height: 8px; border-radius: 50%; background: #F4536E; box-shadow: 0 0 0 4px rgba(244,83,110,.18); }
.va-feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.va-cam { position: relative; border-radius: 12px; overflow: hidden; background: #043848; aspect-ratio: 16/10; }
.va-cam svg { width: 100%; height: 100%; display: block; }
.va-cam .cam-tag { position: absolute; top: 8px; left: 8px; font-size: 10px; letter-spacing: .12em; font-weight: 700; color: #bae8f2; background: rgba(3, 47, 61,.6); padding: 3px 8px; border-radius: 20px; }
.va-cam .alert-tag { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; color: #fff; background: #F4536E; padding: 3px 8px; border-radius: 20px; }
.va-detections { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.va-chip { font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 20px; background: rgba(62, 185, 213,.14); color: #b5e6f1; border: 1px solid rgba(62, 185, 213,.3); }
.va-eva { margin-top: 12px; font-size: 12px; color: #1ea8c8; display: flex; justify-content: space-between; }

/* ---------- 2. EVOLUTION comparison ---------- */
.va-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: stretch; margin-top: 44px; }
.va-flow-panel { border: 1px solid #d4f0f7; border-radius: 20px; padding: 30px 28px; background: #fff; }
.va-flow-panel.bad { background: #f9fdfe; }
.va-flow-panel.good { border-color: #cceef5; background: linear-gradient(180deg, #fafdfe, #f1fafc); box-shadow: 0 20px 44px -24px rgba(9, 145, 177,.35); }
.va-flow-panel h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 19px; margin: 0 0 4px; }
.va-flow-panel .kind { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin: 0 0 20px; }
.va-flow-panel.bad .kind { color: #6E6890; }
.va-flow-panel.good .kind { color: #0991b1; }
.va-step-row { display: flex; flex-direction: column; gap: 0; }
.va-step-node { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #e1f5f9; font-size: 14px; font-weight: 600; color: #055063; }
.va-step-node i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #eaf8fb; color: #0991b1; font-size: 13px; flex: none; }
.va-step-arrow { padding: 4px 0 4px 27px; color: #98dbeb; font-size: 12px; }
.va-flow-arrow { align-self: center; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0991b1, #0991b1); color: #fff; box-shadow: 0 14px 28px -10px rgba(9, 145, 177,.5); font-size: 18px; }

/* ---------- 3. CAPABILITY INDEX ---------- */
.va-index { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 40px; }
.va-nav { list-style: none; margin: 0; padding: 0; border-left: 2px solid #dff4f9; }
.va-nav li { padding: 13px 0 13px 22px; position: relative; }
.va-nav li::before { content: ""; position: absolute; left: -2px; top: 50%; width: 2px; height: 0; background: #0991b1; transition: height .25s; transform: translateY(-50%); }
.va-nav li.active::before { height: 70%; }
.va-nav button { all: unset; cursor: pointer; display: flex; gap: 14px; align-items: baseline; font-family: "Plus Jakarta Sans", sans-serif; }
.va-nav .num { font-size: 12px; font-weight: 700; color: #6E6799; letter-spacing: .08em; }
.va-nav .lbl { font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; color: #55516E; transition: color .2s; }
.va-nav li.active .lbl { color: #032c39; }
.va-nav li.active .num { color: #0991b1; }
.va-stage-visual { border-radius: 22px; overflow: hidden; background: #032f3d; border: 1px solid #043f51; box-shadow: 0 24px 50px -22px rgba(4, 52, 67,.5); }
.va-stage-visual svg { display: block; width: 100%; height: auto; }
.va-stage-meta { padding: 20px 22px; background: #fff; border: 1px solid #ddf3f8; border-top: none; border-radius: 0 0 22px 22px; }
.va-stage-meta h3 { margin: 0 0 6px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; }
.va-stage-meta p { margin: 0; color: #6B6590; font-size: 14px; line-height: 1.6; }

/* ---------- generic split feature rows ---------- */
.va-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.va-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.va-list li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.6; color: #065366; }
.va-list i { color: #0991b1; margin-top: 4px; flex: none; }
.va-frame { border-radius: 22px; overflow: hidden; border: 1px solid #d8f2f7; box-shadow: 0 26px 52px -24px rgba(4, 52, 67,.28); background: #032f3d; }
.va-frame svg { display: block; width: 100%; height: auto; }
.va-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.va-tag { font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 20px; background: #ecf8fb; color: #0991b1; border: 1px solid #d6f1f7; }

/* PPE full-width visual */
.va-wide-visual { border-radius: 24px; overflow: hidden; border: 1px solid #043f51; background: #032f3d; margin-top: 36px; }
.va-wide-visual svg { display: block; width: 100%; height: auto; }
.va-wide-caption { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.va-mini { background: #fff; border: 1px solid #dff4f9; border-radius: 14px; padding: 14px 16px; }
.va-mini strong { display: block; font-size: 14px; margin-bottom: 3px; }
.va-mini span { font-size: 12.5px; color: #55516E; }

/* traffic flow */
.va-pipeline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.va-pipe-node { background: #fff; border: 1px solid #d8f2f7; border-radius: 14px; padding: 13px 20px; font-weight: 700; font-size: 14px; color: #054b5e; }
.va-pipe-arrow { color: #7ed2e5; }
.va-stat-callout { margin-top: 26px; display: inline-flex; align-items: baseline; gap: 12px; background: linear-gradient(90deg, #edf9fb, #FFFFFF); border: 1px solid #cfeff6; padding: 16px 24px; border-radius: 16px; }
.va-stat-callout b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 34px; background: linear-gradient(90deg,#0991b1,#0991b1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.va-stat-callout span { color: #55516E; font-size: 14px; }

/* safety workflow */
.va-chain { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.va-chain-node { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #F3D3DA; border-left: 4px solid #F4536E; border-radius: 12px; padding: 13px 18px; font-weight: 700; font-size: 14px; color: #055063; }

/* people counting analytics panel */
.va-analytics { background: #fff; border: 1px solid #ddf3f8; border-radius: 22px; padding: 26px; box-shadow: 0 22px 46px -26px rgba(4, 52, 67,.25); margin-top: 28px; }
.va-analytics h4 { margin: 0 0 16px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; color: #054b5e; }
.va-zone { margin-bottom: 14px; }
.va-zone .z-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #55516E; margin-bottom: 6px; }
.va-bar { height: 9px; border-radius: 6px; background: #e8f7fa; overflow: hidden; }
.va-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg,#0991b1,#0991b1); }

/* object detection zones */
.va-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.va-zone-card { border: 1px solid #ddf3f8; border-radius: 18px; padding: 22px; background: #fff; }
.va-zone-card h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; letter-spacing: .12em; color: #0991b1; margin: 0 0 12px; }
.va-zone-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.va-zone-card li { font-size: 14px; color: #065366; }
.va-zone-card li::before { content: "—"; color: #7ed2e5; margin-right: 8px; }

/* animal */
.va-usecase-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.va-usecase { flex: 1 1 180px; border-left: 3px solid #0991b1; background: #fafdfe; padding: 14px 18px; border-radius: 0 14px 14px 0; }
.va-usecase strong { display: block; font-size: 14px; margin-bottom: 3px; }
.va-usecase span { font-size: 13px; color: #55516E; }

/* unauthorized access timeline */
.va-timeline { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.va-tl-item { display: flex; gap: 18px; position: relative; padding-bottom: 26px; }
.va-tl-item::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: #d8f2f7; }
.va-tl-item:last-child::before { display: none; }
.va-tl-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#0991b1,#0991b1); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 10px 20px -8px rgba(9, 145, 177,.55); }
.va-tl-item h3 { margin: 4px 0 4px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 16px; }
.va-tl-item p { margin: 0; font-size: 14px; color: #6B6590; line-height: 1.6; }

/* architecture diagram */
.va-arch { text-align: center; border: 1px solid #d8f2f7; border-radius: 24px; background: linear-gradient(180deg,#FFFFFF,#f5fbfd); padding: clamp(28px, 4vw, 52px); margin-top: 40px; }
.va-arch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.va-arch-node { background: #fff; border: 1px solid #d6f1f7; border-radius: 14px; padding: 13px 22px; font-weight: 700; font-size: 14px; color: #054b5e; box-shadow: 0 10px 22px -14px rgba(4, 52, 67,.3); }
.va-arch-node.center { background: linear-gradient(135deg,#0991b1,#0991b1); color: #fff; border: none; padding: 16px 30px; font-size: 15px; box-shadow: 0 18px 34px -12px rgba(9, 145, 177,.55); }
.va-arch-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0; }
.va-pill { font-size: 12.5px; font-weight: 600; color: #0991b1; background: #ebf8fb; border: 1px solid #d0eff6; padding: 6px 13px; border-radius: 20px; }
.va-arch-arrow { color: #7ed2e5; font-size: 18px; }

/* big statement */
.va-statement { text-align: center; position: relative; overflow: hidden; }
.va-statement::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(9, 145, 177,.10), transparent 70%);
}
.va-statement h2 { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(34px, 5vw, 62px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 auto 26px; max-width: 900px; color: #032c39; position: relative; }
.va-statement h2 .grad { background: linear-gradient(90deg, #0991b1, #4abfd9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.va-statement p { font-size: 16.5px; color: #55516E; line-height: 1.85; max-width: 780px; margin: 0 auto 14px; }
.va-quad { display: flex; justify-content: center; gap: clamp(24px, 6vw, 80px); margin-top: 48px; flex-wrap: wrap; position: relative; }
.va-quad span { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.01em; background: linear-gradient(90deg,#0991b1,#4abfd9); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; padding-top: 14px; }
.va-quad span::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(90deg,#0991b1,#4abfd9); }

/* next steps journey */
.va-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.va-jstep { position: relative; padding-top: 8px; }
.va-jstep::before { content: ""; position: absolute; top: 22px; left: 0; right: -20px; height: 2px; background: linear-gradient(90deg,#cfeff6,#e8f7fa); }
.va-jstep:last-child::before { display: none; }
.va-jnum { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid #0991b1; color: #0991b1; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; position: relative; z-index: 1; }
.va-jstep h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 15.5px; margin: 0 0 6px; }
.va-jstep p { font-size: 13.5px; color: #6B6590; line-height: 1.6; margin: 0; }

/* final CTA */

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .va-journey { grid-template-columns: repeat(2, 1fr); }
  .va-jstep::before { display: none; }
}
@media (max-width: 900px) {
  .va-hero-grid, .va-split, .va-index { grid-template-columns: 1fr; }
  .va-compare { grid-template-columns: 1fr; }
  .va-flow-arrow { transform: rotate(90deg); margin: 0 auto; }
  .va-zones { grid-template-columns: 1fr; }
  .va-wide-caption { grid-template-columns: repeat(2, 1fr); }
  .va-wide-caption { grid-template-columns: repeat(2,1fr); }
  .va-nav { border-left: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
  .va-nav li::before { display: none; }
  .va-nav li.active .lbl { color: #0991b1; }
}
@media (max-width: 560px) {
  .va-journey { grid-template-columns: 1fr; }
  .va-wide-caption { grid-template-columns: 1fr 1fr; }
  .va-feed-grid { grid-template-columns: 1fr; }
  .va-nav { grid-template-columns: 1fr; }
  .va-stat-callout { flex-direction: column; gap: 4px; }
}

/* ==========================================================================
   AI Video Analytics — brand colour system
   Same devices as the HRMS / Attendance / Leave / Canteen pages: dual-colour
   headings, a tapered gradient rule under every section title, blue icon and
   step plates, glyph centring, and a two-column lead form. The colour code is
   this module's home page menu tab accent (--acc #0890b0 / soft #f1fafc),
   deepened at the start of the ramp.
   ========================================================================== */

.va-title em.va-dual,
.va-hero h1 .grad,
.va-statement h2 .grad,
.va-stage-meta h3 {
  background: linear-gradient(96deg, #06728c 0%, #0890b0 55%, #8ad6e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* ---- Tapered accent rule under every section title ---------------------- */
.va-title { position: relative; }

.va-title::after {
  content: "";
  display: block;
  width: 148px;
  max-width: 42%;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: #119bbb;
}

.va-wrap.center .va-title::after,
.va-sec[data-center] .va-title::after { margin-inline: auto; }

/* ---- Icon plates: gradient tile, white glyph ---------------------------- */
.va-step-node i,
.va-pipe-node .ico,
.page-ai-video .icon-badge {
  background-image: linear-gradient(135deg, #06728c 0%, #0890b0 55%, #8ad6e8 100%);
  background-color: transparent;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(8, 144, 176, 0.26);
}

.va-flow-arrow {
  background: linear-gradient(135deg, #06728c 0%, #0890b0 55%, #8ad6e8 100%);
  box-shadow: 0 14px 28px -10px rgba(8, 144, 176, 0.45);
}

.va-list i,
.va-nav li.active .num { color: #0890b0; }

.va-tag,
.va-chip {
  background: #f1fafc;
  color: #06728c;
  border-color: #dbe8fe;
}

.va-nav li::before { background: #0890b0; }

/* ---- Glyph sizing and centring ------------------------------------------
   FA glyphs scale with font-size, so fixed width/height values smaller than
   the inherited size clipped them. Inside a plate the glyph is a flex box so
   it centres on the tile. */
.page-ai-video .ico,
.va-wrap .ico {
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: middle;
}

.va-step-node i .ico,
.va-list li .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---- Lead band checklist ------------------------------------------------ */
.page-ai-video .lead-band .lead-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-ai-video .lead-band .lead-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.page-ai-video .lead-band .lead-list .ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  font-size: 16px;
  color: #b5e6f1;
}

/* section title accent phrase: one solid colour (no gradient) */
.va-title em.va-dual {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #06728c;
  -webkit-text-fill-color: #06728c;
}

/* ==== Camera shots: real photos + animated detection overlays ==============
   Replaces the demo vector scenes. Boxes are placed in % of the frame
   (--x, --y, --w, --h) so they stay on target at every width. */
@keyframes vaBoxIn { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes vaScan { 0% { top: -4%; } 100% { top: 104%; } }
@keyframes vaBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes vaPopIn { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes vaBreath { 0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 10px -2px var(--c); } 50% { box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 18px 1px var(--c); } }
@keyframes vaDash { to { background-position: 40px 0; } }

.va-shot { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #032f3d; container-type: inline-size; }
.va-wide-visual .va-shot { aspect-ratio: 1600 / 611; }
.va-shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.04); }
.va-shot::after { /* CCTV feel: soft vignette + faint scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(3, 40, 52,.45)), repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.va-scanline {
  position: absolute; left: 0; right: 0; height: 18%; top: -4%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(62, 185, 213,.16) 85%, rgba(132, 212, 231,.5) 100%);
  animation: vaScan 5.5s linear infinite;
}

.va-bx {
  --c: #3DD68C;
  position: absolute; z-index: 2;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  border: 2px solid var(--c); border-radius: 4px;
  animation: vaBoxIn .5s cubic-bezier(.2,.8,.2,1) both, vaBreath 2.8s ease-in-out infinite;
  animation-delay: calc(.35s + var(--i) * .25s), calc(1s + var(--i) * .3s);
}
.va-bx.warn { --c: #F5A623; }
.va-bx.bad { --c: #F4536E; }
.va-bx.info { --c: #7ed2e5; }
.va-bx.bad::before { content: ""; position: absolute; inset: -6px; border: 1px dashed var(--c); border-radius: 6px; animation: vaBlink 1.2s ease-in-out infinite; }
.va-bx em {
  position: absolute; left: -2px; bottom: 100%; margin-bottom: 3px;
  padding: 2px 6px; border-radius: 4px; white-space: nowrap;
  background: var(--c); color: #032b37;
  font: 700 clamp(8px, 1.7cqi, 11px)/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-style: normal; letter-spacing: .03em;
}
.va-shot .va-bx[style*="--y:5;"] em, .va-shot .va-bx[style*="--y:6;"] em, .va-shot .va-bx[style*="--y:7;"] em { bottom: auto; top: 3px; left: 3px; }

/* HUD labels */
.va-hud {
  position: absolute; z-index: 3; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 20px; background: rgba(3, 44, 56,.7); color: #e3f5f9;
  font: 700 clamp(8px, 1.6cqi, 11px)/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em;
}
.va-hud i { width: 7px; height: 7px; border-radius: 50%; background: #F4536E; animation: vaBlink 1.4s ease-in-out infinite; }
.va-hud.tl { right: auto; left: 10px; }
.va-hud.tm { right: auto; left: calc(50% + 10px); }
.va-hud.bl { top: auto; right: auto; bottom: 10px; left: 10px; letter-spacing: .02em; font-weight: 600; }

/* counting line */
.va-countline {
  position: absolute; z-index: 2; left: 4%; right: 4%; top: calc(var(--y) * 1%); height: 2px;
  background: repeating-linear-gradient(90deg, #3eb9d5 0 10px, transparent 10px 16px); background-size: 40px 2px;
  animation: vaDash 1s linear infinite;
}
.va-countline b {
  position: absolute; right: 0; top: -10px; padding: 2px 8px; border-radius: 6px; background: #3eb9d5; color: #fff;
  font: 700 clamp(8px, 1.6cqi, 11px)/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.va-counter {
  position: absolute; z-index: 3; left: 3%; top: 4%; padding: 10px 14px; border-radius: 10px;
  background: rgba(3, 47, 61,.82); border: 1px solid #065c70; color: #fff; display: grid; gap: 2px;
}
.va-counter small { font: 600 clamp(8px, 1.6cqi, 11px) ui-monospace, Menlo, Consolas, monospace; color: #7ed2e5; letter-spacing: .06em; }
.va-counter b { font: 800 clamp(18px, 4.6cqi, 30px)/1.1 "Plus Jakarta Sans", sans-serif; }
.va-counter em { font: 600 clamp(8px, 1.6cqi, 11px) ui-monospace, Menlo, Consolas, monospace; font-style: normal; color: #3DD68C; }

/* restricted zone tint */
.va-zonefill {
  position: absolute; z-index: 1; left: 0; right: 0; top: 52%; bottom: 0;
  background: linear-gradient(180deg, rgba(244,83,110,.22), rgba(244,83,110,.06));
  border-top: 2px dashed #F4536E; animation: vaBlink 2.4s ease-in-out infinite;
}

/* alert pop cards */
.va-pop {
  --c: #3DD68C;
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 24px);
  padding: 8px 12px 8px 8px; border-radius: 12px;
  background: rgba(3, 47, 61,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 30px -12px rgba(0,0,0,.6);
  color: #fff; line-height: 1.25;
  animation: vaPopIn .6s cubic-bezier(.2,.8,.2,1) 1.4s both;
}
.va-pop.bad { --c: #F4536E; } .va-pop.warn { --c: #F5A623; } .va-pop.info { --c: #7ed2e5; }
.va-pop b { display: block; font-size: 12.5px; font-weight: 700; }
.va-pop small { display: block; font-size: 11px; color: #7ed2e5; }
.va-pop-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--c); color: #032b37; font-size: 13px; }
.va-pop.bad .va-pop-ic i { animation: vaBlink 1.2s ease-in-out infinite; }
.va-pop.br { right: 12px; bottom: 12px; }
.va-pop.bl { left: 12px; bottom: 12px; }
.va-pop.tl { left: 12px; top: 12px; }
.va-pop.tr2 { right: 12px; top: 44px; }

/* hero camera wall */
.va-cam .va-shot { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.va-cam .cam-tag, .va-cam .alert-tag { z-index: 5; }
.va-cam .va-bx em { font-size: 8px; padding: 1px 4px; }
.va-cam .va-bx { border-width: 1.5px; }
.va-cam .alert-tag { animation: vaBlink 1.4s ease-in-out infinite; }

/* capability stage: one photo per tab, cross-fade */
.va-stage-stack { position: relative; aspect-ratio: 16 / 10; }
.va-stage-shot { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.va-stage-shot.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.va-stage-shot .va-shot { height: 100%; }
.va-stage-shot:not(.on) .va-bx { animation: none; opacity: 0; }
.va-stage-stack > .va-hud { z-index: 6; }

/* boxes wait until the frame scrolls into view */
.reveal:not(.is-visible) .va-bx, .reveal:not(.is-visible) .va-pop { animation-play-state: paused; }

@media (max-width: 560px) {
  .va-pop { padding: 6px 9px 6px 6px; gap: 7px; }
  .va-pop-ic { width: 24px; height: 24px; font-size: 11px; border-radius: 7px; }
  .va-pop b { font-size: 11px; } .va-pop small { font-size: 9.5px; }
  .va-pop.br, .va-pop.bl { bottom: 8px; } .va-pop.br { right: 8px; } .va-pop.bl, .va-pop.tl { left: 8px; } .va-pop.tl { top: 8px; }
  .va-pop.tr2 { right: 8px; top: 34px; }
  .va-hud { top: 7px; right: 7px; padding: 2px 7px; }
  .va-hud.tl { left: 7px; } .va-hud.bl { bottom: 7px; left: 7px; display: none; }
  .va-counter { padding: 6px 9px; }
  .va-wide-visual .va-pop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .va-scanline { display: none; }
  .va-bx, .va-bx::before, .va-pop, .va-pop i, .va-hud i, .va-countline, .va-zonefill, .va-cam .alert-tag { animation: none !important; opacity: 1; }
  .va-stage-shot { transition: none; }
}
.va-cam .va-bx[style*="--y:5;"] em { display: none; }

/* ---- In4 CloudAI colours: site purple tokens replaced by the CloudAI logo teal (#0890b0) ---- */
body.page-ai-video {
  --purple-800: #065a6e;
  --purple-700: #06728c;
  --purple-600: #0890b0;
  --purple-500: #1aa6c6;
  --purple-400: #4cc0da;
  --purple-300: #8ad6e8;
  --purple-200: #b5e6f1;
  --purple-100: #dcf3f8;
  --purple-50: #f1fafc;
  --grad-purple: linear-gradient(135deg, #0890b0 0%, #1aa6c6 55%, #4cc0da 100%);
  --in4-purple: #0890b0;
  --in4-purple-dark: #06728c;
  --in4-purple-soft: #eef9fb;
  --shadow-purple: 0 12px 30px rgba(8, 144, 176, 0.28);
}
.page-ai-video .page-hero::before { background: radial-gradient(closest-side, rgba(8, 144, 176, 0.12), transparent 70%); }
