/* ============================================================
   FARO — Commercial product website
   Plain CSS · no dependencies · no external requests
   ============================================================ */

/* ------------------------------------------------------------
   TOKENS
------------------------------------------------------------ */
:root {
  /* Ground */
  --bg:          #090b0f;
  --surface:     #0f1219;
  --elevated:    #161b24;
  --card:        #1c2130;

  --border:      rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.04);
  --border-lit:  rgba(255, 255, 255, 0.14);

  /* Text */
  --text-primary:   rgba(255, 255, 255, 0.93);
  --text-secondary: rgba(255, 255, 255, 0.56);
  --text-muted:     rgba(255, 255, 255, 0.30);

  /* Accents */
  --accent:     #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.14);
  --cyan:       #22d3ee;
  --cyan-dim:   rgba(34, 211, 238, 0.10);
  --cyan-glow:  rgba(34, 211, 238, 0.30);
  --green:      #34d399;
  --amber:      #fbbf24;
  --red:        #f87171;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --section-pad: 140px;
  --container:   1240px;
  --gutter:      56px;
  --two-col-gap: 88px;
  --radius:      10px;
  --radius-lg:   16px;

  /* Demo scale */
  --demo-frame-max-w: 660px;
  --plate-zone-w:     272px;
  --plate-zone-h:      76px;
  --plate-font:      2.35rem;
  --bracket-size:     22px;
  --scan-thickness:    3px;

  /* Shadows */
  --shadow-soft:  0 18px 48px rgba(0, 0, 0, 0.34);
  --shadow-frame: 0 42px 96px rgba(0, 0, 0, 0.60), 0 6px 20px rgba(0, 0, 0, 0.36);

  /* Sticky detection sequence — keep in sync with DEMO_SCROLL_VH in script.js */
  --demo-scroll-height: 460vh;

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--elevated);
  border: 1px solid var(--border-lit);
  border-radius: 0 0 var(--radius) 0;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------
   NAV
------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 11, 15, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-soft);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-mark { width: 20px; height: 20px; color: var(--cyan); opacity: 0.9; }
.nav-mark svg { width: 100%; height: 100%; }
.nav-logo {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 0.875rem;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color 0.25s var(--ease);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 26px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   SHARED LAYOUT
------------------------------------------------------------ */
.section {
  position: relative;
  padding: var(--section-pad) 0;
}
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--two-col-gap);
  align-items: center;
}
.two-col.reverse .col-text   { order: 2; }
.two-col.reverse .col-visual { order: 1; }

.section-head {
  max-width: 660px;
  margin-bottom: 72px;
}
.section-head .section-body { max-width: 620px; }

.showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.showcase-head .section-body { max-width: 560px; margin-bottom: 0; }
.showcase-head .section-title { margin-bottom: 0; }

/* ---- Typography ---- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
  margin-bottom: 24px;
  text-wrap: balance;
}

.section-body {
  font-size: 1.075rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 30px;
}
.section-body + .section-body { margin-top: -8px; }

.fine-note {
  margin-top: 34px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Bullet list ---- */
.bullet-list { display: flex; flex-direction: column; gap: 13px; }
.bullet-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.75;
}
.reveal-section.visible .bullet-list li { opacity: 1; transform: none; }
.reveal-section.visible .bullet-list li:nth-child(1) { transition-delay: 0.16s; }
.reveal-section.visible .bullet-list li:nth-child(2) { transition-delay: 0.24s; }
.reveal-section.visible .bullet-list li:nth-child(3) { transition-delay: 0.32s; }
.reveal-section.visible .bullet-list li:nth-child(4) { transition-delay: 0.40s; }
.reveal-section.visible .bullet-list li:nth-child(5) { transition-delay: 0.48s; }

/* ---- Inline points row ---- */
.inline-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 52px;
}
.inline-points li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal-section.visible .inline-points li { opacity: 1; transform: none; }
.reveal-section.visible .inline-points li:nth-child(1) { transition-delay: 0.10s; }
.reveal-section.visible .inline-points li:nth-child(2) { transition-delay: 0.16s; }
.reveal-section.visible .inline-points li:nth-child(3) { transition-delay: 0.22s; }
.reveal-section.visible .inline-points li:nth-child(4) { transition-delay: 0.28s; }
.reveal-section.visible .inline-points li:nth-child(5) { transition-delay: 0.34s; }

/* ---- Section reveal ---- */
.reveal-section .col-text > *:not(.bullet-list),
.reveal-section .section-head > *,
.reveal-section .showcase-head > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal-section.visible .col-text > *:not(.bullet-list),
.reveal-section.visible .section-head > *,
.reveal-section.visible .showcase-head > * {
  opacity: 1;
  transform: none;
}
.reveal-section.visible .col-text > *:nth-child(2),
.reveal-section.visible .section-head > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-section.visible .col-text > *:nth-child(3),
.reveal-section.visible .section-head > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-section.visible .col-text > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-section.visible .showcase-head > *:nth-child(2) { transition-delay: 0.10s; }

.reveal-section .col-visual {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: 0.12s;
}
.reveal-section.visible .col-visual { opacity: 1; transform: none; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 120px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: -6% -4%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 2px;
  opacity: 0.5;
}
.hero-bg.dim .hero-grid { opacity: 0.26; grid-template-columns: repeat(3, 1fr); }

.bg-tile {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(59, 130, 246, 0.10), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.045);
  animation: tileBreath 13s ease-in-out infinite;
}
.bg-tile:nth-child(2) { animation-delay: -2.4s; }
.bg-tile:nth-child(3) { animation-delay: -5.1s; }
.bg-tile:nth-child(4) { animation-delay: -7.3s; }
.bg-tile:nth-child(5) { animation-delay: -9.8s; }
.bg-tile:nth-child(6) { animation-delay: -11.6s; }
.bg-tile:nth-child(7) { animation-delay: -3.7s; }
.bg-tile:nth-child(8) { animation-delay: -6.9s; }
.bg-tile:nth-child(9) { animation-delay: -1.2s; }

@keyframes tileBreath {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.hero-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 32%,
    rgba(34, 211, 238, 0.055) 47%,
    rgba(59, 130, 246, 0.04) 53%,
    transparent 68%);
  background-size: 260% 100%;
  animation: heroSweep 17s ease-in-out infinite;
}
@keyframes heroSweep {
  0%, 100% { background-position: 130% 0; }
  50%      { background-position: -30% 0; }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    /* keeps the copy column legible without flattening the grid on the right */
    linear-gradient(90deg, rgba(9, 11, 15, 0.92) 0%, rgba(9, 11, 15, 0.72) 38%, rgba(9, 11, 15, 0.18) 74%, rgba(9, 11, 15, 0.34) 100%),
    radial-gradient(88% 70% at 42% 46%, transparent 26%, rgba(9, 11, 15, 0.62) 100%),
    linear-gradient(180deg, rgba(9, 11, 15, 0.88) 0%, transparent 24%, transparent 64%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.82;
  margin-bottom: 26px;
  animation: heroIn 0.9s var(--ease) both;
}

.hero-title {
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.88;
  margin-bottom: 26px;
  background: linear-gradient(178deg, #ffffff 8%, rgba(255, 255, 255, 0.62) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroIn 1s var(--ease) 0.08s both;
}

.hero-lead {
  font-size: clamp(1.5rem, 3.1vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 24ch;
  text-wrap: balance;
  animation: heroIn 1s var(--ease) 0.18s both;
}

.hero-support {
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  animation: heroIn 1s var(--ease) 0.28s both;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: heroIn 1s var(--ease) 0.38s both;
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 9px 17px 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(22, 27, 36, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.pill-dot.live  { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14); animation: dotPulse 2.6s ease-in-out infinite; }
.pill-dot.alert { background: var(--amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.13); }
.pill-dot.scan  { background: var(--cyan);  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13); }

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-scroll-cue {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue-line {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, transparent, var(--border-lit));
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 18px;
  background: var(--cyan);
  animation: cueDrop 2.6s var(--ease) infinite;
}
@keyframes cueDrop {
  0%       { transform: translateY(-20px); opacity: 0; }
  35%, 60% { opacity: 1; }
  100%     { transform: translateY(56px); opacity: 0; }
}

/* ============================================================
   CAMERA GRID MOCK  (problema)
============================================================ */
.cam-grid-mock {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cam-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 62%),
    #0c0f15;
  overflow: hidden;
}
.cam-tile--active {
  border-color: rgba(52, 211, 153, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent 60%),
    #0c0f15;
}
.cam-tile--dim { opacity: 0.42; }

.cam-tile-scan-fx {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.11), transparent);
  height: 34%;
  animation: tileScan 4.2s linear infinite;
}
.cam-tile-scan-fx.passive { opacity: 0.4; animation-duration: 8s; }
.cam-tile-scan-fx.slow    { opacity: 0.3; animation-duration: 11s; animation-delay: -3s; }
@keyframes tileScan {
  from { transform: translateY(-120%); }
  to   { transform: translateY(400%); }
}

.cam-label {
  position: absolute;
  left: 10px; top: 9px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-family: var(--mono);
}
.cam-tile-status {
  position: absolute;
  right: 10px; top: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cam-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}
.cam-tile > .cam-dot { position: absolute; right: 10px; top: 12px; }
.cam-dot.live { background: var(--green); animation: dotPulse 2.4s ease-in-out infinite; }
.cam-dot.inactive { background: rgba(255, 255, 255, 0.16); }
.cam-live-text {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 600;
}
.cam-offline-tag {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* ============================================================
   FLOW DIAGRAM
============================================================ */
.flow-diagram {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: 130px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-section.visible .flow-step { opacity: 1; transform: none; }
.reveal-section.visible .flow-step[data-index="0"] { transition-delay: 0.05s; }
.reveal-section.visible .flow-step[data-index="1"] { transition-delay: 0.22s; }
.reveal-section.visible .flow-step[data-index="2"] { transition-delay: 0.39s; }
.reveal-section.visible .flow-step[data-index="3"] { transition-delay: 0.56s; }
.reveal-section.visible .flow-step[data-index="4"] { transition-delay: 0.73s; }

.flow-icon-wrap {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  color: var(--cyan);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.flow-icon-wrap svg { width: 28px; height: 28px; }
.reveal-section.visible .flow-step .flow-icon-wrap {
  border-color: rgba(34, 211, 238, 0.24);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.04);
}

.flow-label {
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--text-primary);
}
.flow-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-connector {
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  margin-top: 31px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.flow-pulse {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-140%);
  opacity: 0;
}
.reveal-section.visible .flow-pulse { animation: flowPulse 2.6s var(--ease) infinite; }
.reveal-section.visible .flow-connector:nth-of-type(2) .flow-pulse { animation-delay: 0.15s; }
.reveal-section.visible .flow-connector:nth-of-type(4) .flow-pulse { animation-delay: 0.35s; }
.reveal-section.visible .flow-connector:nth-of-type(6) .flow-pulse { animation-delay: 0.55s; }
.reveal-section.visible .flow-connector:nth-of-type(8) .flow-pulse { animation-delay: 0.75s; }
@keyframes flowPulse {
  0%        { transform: translateX(-140%); opacity: 0; }
  12%       { opacity: 0.9; }
  55%, 100% { transform: translateX(300%); opacity: 0; }
}

/* ============================================================
   SCROLLYTELLING DEMO
============================================================ */
.demo-section { position: relative; }

/* The height is restated in JS as a pixel value so the state
   thresholds match the exact viewport, but it is declared here
   first so the document height — and therefore any #anchor
   landing below this section — is correct on the first paint. */
.demo-scroll-container {
  position: relative;
  height: var(--demo-scroll-height);
}

.demo-sticky-panel {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.demo-panel {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}

/* ---- Camera frame ---- */
.demo-camera-frame {
  width: 100%;
  max-width: var(--demo-frame-max-w);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--elevated);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}

.cam-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.014);
}
.cam-name-row { display: inline-flex; align-items: center; gap: 8px; }
.cam-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.cam-name { font-size: 0.86rem; color: var(--text-primary); }
.cam-live-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 4px;
  padding: 3px 7px;
}
.cam-ts {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ---- Scene ---- */
.cam-scene {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #06080c;
  overflow: hidden;
}
.scene-top-fill {
  position: absolute;
  inset: 0 0 46% 0;
  background: linear-gradient(180deg, #0a0d13 0%, #0d1119 100%);
}
.scene-horizon-line {
  position: absolute;
  left: 0; right: 0;
  top: 54%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
}
.scene-ground-fill {
  position: absolute;
  inset: 54% 0 0 0;
  background:
    radial-gradient(58% 120% at 50% 6%, rgba(251, 191, 36, 0.10), transparent 64%),
    radial-gradient(120% 90% at 50% 100%, rgba(255, 255, 255, 0.035), transparent 68%),
    linear-gradient(180deg, #141a24 0%, #0b0e14 100%);
}

/* Shared vehicle artwork ---------------------------------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.veh-art {
  width: 100%;
  height: auto;
  display: block;
}

/* The camera sits close to the lane, so the vehicle fills most of
   the frame and the plate reads as part of it rather than floating. */
.scene-vehicle {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 88%;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6));
}

.scene-lane {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 22%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg,
    rgba(255, 255, 255, 0.16) 0 12px, transparent 12px 30px);
  opacity: 0.5;
}

.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* ---- Plate zone ---- */
/* Anchored to the vehicle, not the frame, so the plate always
   lands in the same recess whatever the scene is scaled to. */
.plate-zone {
  position: absolute;
  left: 50%;
  top: 70%;
  width: var(--plate-zone-w);
  height: var(--plate-zone-h);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.simple-plate {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(180deg, #f4f4f0 0%, #dcdcd6 100%);
  border: 2px solid #23262c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.plate-number {
  font-family: var(--mono);
  font-size: var(--plate-font);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #14161a;
  line-height: 1;
}

.scan-line {
  position: absolute;
  left: -6%;
  right: -6%;
  height: var(--scan-thickness);
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px 3px var(--cyan-glow);
  opacity: 0;
  z-index: 3;
}

.dbracket {
  position: absolute;
  width: var(--bracket-size);
  height: var(--bracket-size);
  border: 2px solid var(--cyan);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  z-index: 3;
}
.dbracket.tl { top: -10px; left: -10px;  border-right: 0; border-bottom: 0; transform: translate(6px, 6px); }
.dbracket.tr { top: -10px; right: -10px; border-left: 0;  border-bottom: 0; transform: translate(-6px, 6px); }
.dbracket.bl { bottom: -10px; left: -10px;  border-right: 0; border-top: 0; transform: translate(6px, -6px); }
.dbracket.br { bottom: -10px; right: -10px; border-left: 0;  border-top: 0; transform: translate(-6px, -6px); }
.dbracket.small { --bracket-size: 14px; border-width: 1.5px; }

.conf-tag {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translate(-50%, 6px);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 4px;
  padding: 4px 9px;
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  z-index: 4;
  white-space: nowrap;
}

/* ---- Meta chips ---- */
.cam-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-soft);
  /* Sized for the two-row chip set so the frame never resizes
     between the third and fourth demo state. */
  min-height: 108px;
}
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.022);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.chip-key {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.chip-val { font-size: 0.8rem; color: var(--text-primary); }
.chip-val.cyan { color: var(--cyan); }

/* ---- Demo states ---- */
.demo-panel.state-1 .scan-line { opacity: 1; animation: scanSweep 1.5s var(--ease) infinite; }
@keyframes scanSweep {
  0%   { transform: translateY(calc(var(--plate-zone-h) / -2 - 6px)); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(calc(var(--plate-zone-h) / 2 + 6px)); opacity: 0; }
}

.demo-panel.state-2 .dbracket,
.demo-panel.state-3 .dbracket,
.demo-panel.state-4 .dbracket { opacity: 1; transform: translate(0, 0); }

.demo-panel.state-2 .conf-tag,
.demo-panel.state-3 .conf-tag,
.demo-panel.state-4 .conf-tag { opacity: 1; transform: translate(-50%, 0); }

.demo-panel.state-3 .meta-chip,
.demo-panel.state-4 .meta-chip { opacity: 1; transform: none; }
.demo-panel.state-3 .meta-chip[data-chip="1"],
.demo-panel.state-4 .meta-chip[data-chip="1"] { transition-delay: 0.08s; }
.demo-panel.state-3 .meta-chip[data-chip="2"],
.demo-panel.state-4 .meta-chip[data-chip="2"] { transition-delay: 0.16s; }
.demo-panel.state-4 .meta-chip[data-chip="3"] { transition-delay: 0.24s; }
.demo-panel.state-3 .meta-chip[data-chip="3"] { opacity: 0; transform: translateY(7px); }

/* ---- Narration ---- */
.demo-right { position: relative; }
.demo-eyebrow { margin-bottom: 22px; }

.demo-narration {
  position: relative;
  min-height: 172px;
  margin-bottom: 28px;
}
.demo-state-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.demo-state-item.active { opacity: 1; transform: none; pointer-events: auto; }
.demo-state-heading {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.16;
  margin-bottom: 14px;
}
.demo-state-body {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
}

/* ---- Event preview card ---- */
.event-card-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 33, 48, 0.9), rgba(22, 27, 36, 0.9));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.demo-panel.state-4 .event-card-preview { opacity: 1; transform: none; }

.ecp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border-soft);
}
.ecp-type {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ecp-status {
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--green);
}
.ecp-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px;
}
.ecp-plate-mini {
  width: 128px;
  height: 38px;
  flex: 0 0 auto;
}
.ecp-plate-mini .plate-number { font-size: 0.98rem; }
.ecp-details { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ecp-row { display: flex; gap: 10px; font-size: 0.79rem; }
.ecp-key { color: var(--text-muted); min-width: 54px; }
.ecp-val { color: var(--text-secondary); }

/* ---- Dots ---- */
.demo-dots {
  position: absolute;
  left: var(--gutter);
  bottom: -46px;
  display: flex;
  gap: 8px;
}
.ddot {
  width: 20px; height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.13);
  transition: background 0.4s var(--ease), width 0.4s var(--ease);
}
.ddot.active { background: var(--cyan); width: 34px; }

/* ============================================================
   PRODUCT SCREENSHOT FRAMES
============================================================ */
.shot { margin: 0; }
.shot--offset { margin-top: 84px; }

.shot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--elevated);
  padding: 8px;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  opacity: 0;
  transform: translateY(34px) scale(0.988);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-section.visible .shot-frame { opacity: 1; transform: none; transition-delay: 0.14s; }

.shot-frame::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  z-index: 2;
}
.shot-frame picture { display: block; }
.shot-frame img {
  width: 100%;
  height: auto;
  border-radius: 9px;
  display: block;
}

.shot figcaption {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Report gets more presence */
.shot--report .shot-frame { max-width: 1000px; margin: 0 auto; }
.shot--report figcaption { max-width: 1000px; margin-left: auto; margin-right: auto; }

/* ============================================================
   EVENT CARD (full)
============================================================ */
.event-card-full {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), var(--elevated));
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  max-width: 460px;
}
.ecf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid var(--border-soft);
}
.ecf-type {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ecf-status {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.26);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 999px;
  padding: 3px 10px;
}

.ecf-snapshot { padding: 14px; }
.snapshot-scene {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(70% 110% at 50% 96%, rgba(251, 191, 36, 0.09), transparent 66%),
    linear-gradient(180deg, #0d1118 0%, #0a0d13 54%, #10151d 100%);
  border: 1px solid var(--border-soft);
}
.evidence-vehicle {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 88%;
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
}

.snap-plate-zone {
  position: absolute;
  left: 50%;
  top: 70%;
  width: 36%;
  height: 10.5%;
  transform: translate(-50%, -50%);
}
.snap-plate-zone .dbracket { opacity: 1; transform: none; }
.plate-mockup.small { border-width: 1.5px; }
.plate-mockup.small .plate-number {
  font-size: clamp(0.62rem, 1.6vw, 0.92rem);
  letter-spacing: 0.02em;
}

.ecf-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 17px 16px;
}
.ecf-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.84rem;
}
.ecf-row:last-child { border-bottom: 0; }
.ecf-key { color: var(--text-muted); }
.ecf-val { color: var(--text-secondary); text-align: right; }
.ecf-val.highlight { color: var(--text-primary); font-family: var(--mono); letter-spacing: 0.05em; }
.ecf-val.status-ok { color: var(--green); }

/* ============================================================
   LIST PANEL
============================================================ */
.list-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), var(--elevated));
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  max-width: 470px;
}
.list-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px;
  border-bottom: 1px solid var(--border-soft);
}
.list-panel-title { font-size: 0.88rem; color: var(--text-primary); }
.list-count-badge {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.list-rows { padding: 6px 0 10px; }
.list-row {
  display: grid;
  grid-template-columns: auto 92px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.4s var(--ease);
}
.list-row:last-child { border-bottom: 0; }

.list-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.list-dot.sev-high { background: var(--amber); }
.list-dot.sev-med  { background: var(--accent); }
.list-dot.sev-low  { background: rgba(255, 255, 255, 0.24); }

.list-plate {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.list-cat { font-size: 0.8rem; color: var(--text-secondary); }
.list-sev { font-size: 0.7rem; color: var(--text-muted); }

.list-row.match {
  background: rgba(34, 211, 238, 0.045);
  box-shadow: inset 2px 0 0 var(--cyan);
}
.list-match-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.reveal-section.visible .list-row.match { animation: matchIn 0.7s var(--ease) 0.5s both; }
@keyframes matchIn {
  0%   { background: transparent; box-shadow: inset 0 0 0 var(--cyan); }
  40%  { background: rgba(34, 211, 238, 0.13); }
  100% { background: rgba(34, 211, 238, 0.045); box-shadow: inset 2px 0 0 var(--cyan); }
}

/* ============================================================
   FORENSIC PANEL
============================================================ */
.forensic { overflow: hidden; }
.forensic-glow {
  position: absolute;
  top: -10%;
  right: -14%;
  width: 62%;
  height: 88%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.055), transparent 66%);
  pointer-events: none;
}
.forensic-tagline {
  font-size: 1.28rem;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}

.forensic-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), var(--elevated));
  box-shadow: var(--shadow-frame);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.fp-header-left { display: inline-flex; align-items: center; gap: 11px; }
.fp-wordmark { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; }
.fp-section-tag {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-left: 11px;
  border-left: 1px solid var(--border);
}
.fp-done-badge {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.26);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 999px;
  padding: 4px 11px;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.reveal-section.visible .fp-done-badge { opacity: 1; transition-delay: 2.3s; }

.fp-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.fp-file-icon { width: 18px; height: 18px; color: var(--text-muted); flex: 0 0 auto; }
.fp-filename {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-file-tag {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
}

.fp-progress-block { display: flex; flex-direction: column; gap: 8px; }
.fp-progress-wrap {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.fp-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.reveal-section.visible .fp-progress-fill { animation: fpFill 2.4s var(--ease) 0.25s forwards; }
@keyframes fpFill { to { width: 100%; } }

.fp-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.fp-progress-val { font-family: var(--mono); color: var(--text-secondary); }

.fp-timeline-row { padding: 2px 0 4px; }
.fp-tl-track {
  position: relative;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 26px);
  overflow: hidden;
}
.fp-tl-head {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  left: 0;
  background: var(--cyan);
  box-shadow: 0 0 14px 2px var(--cyan-glow);
  opacity: 0;
}
.reveal-section.visible .fp-tl-head { animation: fpHead 2.4s var(--ease) 0.25s forwards; }
@keyframes fpHead {
  0%        { left: 0;    opacity: 1; }
  92%       { opacity: 1; }
  100%      { left: 100%; opacity: 0; }
}

.fp-tl-pip {
  position: absolute;
  top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.fp-tl-pip--b   { background: var(--accent); box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
.fp-tl-pip--dim { background: rgba(255, 255, 255, 0.3); box-shadow: none; }
.reveal-section.visible .fp-tl-pip { opacity: 1; transform: scale(1); }
.reveal-section.visible .fp-tl-pip:nth-of-type(2) { transition-delay: 0.80s; }
.reveal-section.visible .fp-tl-pip:nth-of-type(3) { transition-delay: 1.42s; }
.reveal-section.visible .fp-tl-pip:nth-of-type(4) { transition-delay: 1.78s; }
.reveal-section.visible .fp-tl-pip:nth-of-type(5) { transition-delay: 2.20s; }

.fp-interest-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.fp-interest-label {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}
.fp-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 9px;
}
.fp-chip--match {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.07);
}

.fp-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.fp-stat { display: flex; flex-direction: column; gap: 3px; flex: 1 1 0; min-width: 0; }
.fp-stat-n {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.fp-stat-l {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fp-stat-sep { width: 1px; height: 30px; background: var(--border-soft); flex: 0 0 auto; }

.fp-match-card {
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(28, 33, 48, 0.96), rgba(22, 27, 36, 0.94));
  padding: 15px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-section.visible .fp-match-card { opacity: 1; transform: none; transition-delay: 2.4s; }

.fp-mc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.fp-mc-plate {
  font-family: var(--mono);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fp-mc-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.fp-mc-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.fp-mc-meta dt {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.fp-mc-meta dd {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--text-secondary);
}
.fp-mc-ev {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 11px;
  border-top: 1px solid var(--border-soft);
}

/* ============================================================
   CAPABILITIES GRID
============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap-card {
  background: var(--bg);
  padding: 30px 26px 34px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.4s var(--ease);
}
.cap-card.visible { opacity: 1; transform: none; }
.cap-card:hover { background: var(--surface); }

.cap-title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  padding-top: 14px;
  position: relative;
}
.cap-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  opacity: 0.7;
}
.cap-body {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   SCENARIOS
============================================================ */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.scenario-card {
  padding: 30px 26px 32px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.004));
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease),
              border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.scenario-card.visible { opacity: 1; transform: none; }
.scenario-card:hover {
  border-color: var(--border-lit);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.006));
}
.sc-icon {
  display: block;
  width: 30px; height: 30px;
  color: var(--cyan);
  opacity: 0.85;
  margin-bottom: 20px;
}
.sc-icon svg { width: 100%; height: 100%; }
.sc-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 7px;
}
.sc-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   DEPLOYMENT DIAGRAM
============================================================ */
.deploy-diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), var(--elevated));
  box-shadow: var(--shadow-frame);
  padding: 24px 22px 26px;
}

.dd-central {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 16px;
  border: 1px dashed rgba(59, 130, 246, 0.28);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.045);
  text-align: center;
}
.dd-central-icon { width: 26px; height: 26px; color: var(--accent); }
.dd-central-icon svg { width: 100%; height: 100%; }
.dd-central-label { font-size: 0.88rem; color: var(--text-primary); }
.dd-central-note { font-size: 0.7rem; color: var(--text-muted); }

.dd-links {
  display: flex;
  justify-content: center;
  height: 26px;
}
.dd-link {
  width: 1px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.08));
  position: relative;
  overflow: hidden;
}
.dd-link::after {
  content: '';
  position: absolute;
  left: 0; top: -30%;
  width: 1px; height: 30%;
  background: var(--cyan);
}
.reveal-section.visible .dd-link::after { animation: ddFlow 3.2s linear infinite; }
.reveal-section.visible .dd-link:nth-child(2)::after { animation-delay: 1.1s; }
@keyframes ddFlow {
  0%   { top: -30%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.dd-sites { display: flex; flex-direction: column; gap: 14px; }
.dd-site {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  padding: 14px 15px 16px;
}
.dd-site--ghost { opacity: 0.55; }
.dd-site-name {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dd-chain {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dd-node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.016);
  color: var(--text-muted);
}
.dd-node svg { width: 22px; height: 22px; }
.dd-node-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.35;
}
.dd-node--primary {
  border-color: rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.05);
  color: var(--cyan);
}
.dd-faro {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}
.dd-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 1px;
  background: var(--border-lit);
  position: relative;
}
.dd-arrow::after {
  content: '';
  position: absolute;
  right: -1px; top: -2.5px;
  width: 5px; height: 5px;
  border-top: 1px solid var(--border-lit);
  border-right: 1px solid var(--border-lit);
  transform: rotate(45deg);
}

/* ============================================================
   CLOSING
============================================================ */
.closing {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  padding: 130px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
}
.closing .hero-bg { position: absolute; inset: 0; }
.closing-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 900px; height: 520px;
  max-width: 130vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.075), transparent 62%);
}

.closing-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 var(--gutter);
}
.closing-rule {
  display: block;
  width: 52px;
  height: 1px;
  margin: 0 auto 34px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.closing-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 26px;
  text-wrap: balance;
}
.closing-support {
  font-size: 1.06rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
}
.closing-actions:empty { display: none; }
.closing-actions { margin-top: 40px; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-mark {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.footer-line {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
  :root {
    --section-pad: 120px;
    --gutter: 44px;
    --two-col-gap: 60px;
    --demo-frame-max-w: 560px;
    --plate-zone-w: 258px;
    --plate-zone-h: 74px;
    --plate-font: 2.2rem;
  }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root {
    --section-pad: 104px;
    --gutter: 36px;
    --two-col-gap: 44px;
  }
  .nav-tag { display: none; }
  .nav-links { gap: 24px; }

  .showcase-head {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }
  .showcase-head .section-body { max-width: 640px; }

  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }

  .demo-panel { gap: 40px; }
  .demo-narration { min-height: 200px; }
  .flow-diagram { max-width: 100%; }
  .flow-step { width: 108px; }
  .flow-note { display: none; }
}

/* --- Below 900px: unwind the sticky sequence --- */
@media (max-width: 900px) {
  .demo-sticky-panel {
    position: static;
    height: auto;
    padding: var(--section-pad) 0;
  }
  .demo-scroll-container { height: auto !important; }

  .demo-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .demo-left { order: 1; }
  .demo-right { order: 2; }
  .demo-camera-frame { max-width: 100%; margin: 0 auto; }

  /* Every state resolved, narration stacked as a readable sequence */
  .demo-narration {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 32px;
  }
  .demo-state-item {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding-left: 20px;
    border-left: 1px solid var(--border);
  }
  .demo-state-item.active { border-left-color: var(--cyan); }
  .demo-state-heading { font-size: 1.16rem; margin-bottom: 7px; }
  .demo-state-body { font-size: 0.94rem; max-width: none; }

  .demo-dots { display: none; }

  .event-card-preview { opacity: 1; transform: none; }
  .demo-panel .dbracket { opacity: 1; transform: translate(0, 0); }
  .demo-panel .conf-tag { opacity: 1; transform: translate(-50%, 0); }
  .demo-panel .meta-chip { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  :root {
    --section-pad: 84px;
    --gutter: 26px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .two-col.reverse .col-text   { order: 1; }
  .two-col.reverse .col-visual { order: 2; }

  .section-head { margin-bottom: 46px; }
  .section-body { max-width: 100%; }

  .event-card-full,
  .list-panel { max-width: 100%; }

  .cap-grid { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr; gap: 12px; }

  .shot--offset { margin-top: 52px; }

  /* Small screens get a focused crop of each product screen instead of
     the full desktop window, so the interface stays legible. The crops
     are portrait: give the frame a fixed height so the slot is reserved
     before the image loads — otherwise swapping in the taller mobile
     source shifts everything below it down the page. */
  .shot-frame img {
    width: 100%;
    /* the crops are small by design — never blow them up on a tablet */
    max-width: 460px;
    margin-inline: auto;
    height: 62svh;
    max-height: none;
    object-fit: cover;
    object-position: top center;
  }
  .shot--report .shot-frame img { max-width: 520px; height: 72svh; }

  .nav-links {
    gap: 18px;
    font-size: 0.8rem;
    margin-left: auto;
  }
  .nav-inner { gap: 16px; padding: 14px var(--gutter); }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 72px;
    --gutter: 20px;
    --plate-zone-w: 216px;
    --plate-zone-h: 62px;
    --plate-font: 1.72rem;
    --bracket-size: 16px;
    --radius-lg: 13px;
  }

  html { scroll-padding-top: 70px; }

  .hero { padding: 116px 0 96px; min-height: 92svh; }
  .hero-title { letter-spacing: -0.04em; }
  .hero-lead { max-width: 100%; }
  .hero-pills { gap: 8px; }
  .hero-pills li { font-size: 0.78rem; padding: 8px 13px 8px 11px; }
  .hero-scroll-cue { bottom: 26px; }

  /* Nav: keep only the two most useful anchors on the smallest screens */
  .nav-links li:nth-child(2),
  .nav-links li:nth-child(4) { display: none; }

  .flow-diagram {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0;
  }
  .flow-step {
    flex: 0 0 50%;
    width: auto;
    padding: 0 6px 26px;
  }
  .flow-connector { display: none; }
  .flow-note { display: block; }

  .cam-grid-mock { padding: 10px; gap: 8px; }

  .ecp-body { flex-wrap: wrap; gap: 14px; }
  .ecp-plate-mini { width: 108px; height: 33px; }

  .fp-stats-row { gap: 10px; }
  .fp-stat-n { font-size: 1.24rem; }
  .fp-stat-l { font-size: 0.6rem; letter-spacing: 0.05em; }
  .fp-mc-plate { font-size: 1.2rem; }
  .fp-mc-meta { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .fp-mc-meta dd { font-size: 0.76rem; }

  .list-row {
    grid-template-columns: auto 84px 1fr;
    gap: 10px;
    padding: 11px 14px;
  }
  .list-sev { display: none; }
  /* The match tag drops to its own line rather than squeezing the row */
  .list-match-tag {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 6px;
  }

  .shot-frame { padding: 5px; }
  .shot figcaption { font-size: 0.74rem; }

  .dd-links { gap: 30%; }
  .dd-chain { flex-direction: column; align-items: stretch; gap: 8px; }
  .dd-node { flex-direction: row; justify-content: center; gap: 10px; padding: 10px; }
  .dd-arrow { width: 1px; height: 12px; margin: 0 auto; }
  .dd-arrow::after {
    right: -2.5px; top: auto; bottom: -1px;
    border-top: 0; border-right: 1px solid var(--border-lit);
    border-bottom: 1px solid var(--border-lit);
  }

  .footer-line { padding-left: 0; border-left: 0; }
}

@media (max-width: 400px) {
  :root {
    --gutter: 16px;
    --plate-zone-w: 186px;
    --plate-zone-h: 54px;
    --plate-font: 1.46rem;
  }
  .nav-links { font-size: 0.76rem; gap: 14px; }
  .hero-support { font-size: 0.98rem; }
  .section-body { font-size: 1rem; }
  .fp-mc-meta { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   REDUCED MOTION
   Every animated element resolves to its final, complete state.
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .hero-eyebrow, .hero-title, .hero-lead, .hero-support, .hero-pills { opacity: 1; transform: none; }
  .hero-sweep, .hero-scroll-cue { display: none; }

  .reveal-section .col-text > *,
  .reveal-section .section-head > *,
  .reveal-section .showcase-head > *,
  .reveal-section .col-visual,
  .bullet-list li,
  .inline-points li,
  .flow-step,
  .shot-frame,
  .cap-card,
  .scenario-card,
  .fp-match-card,
  .fp-done-badge,
  .fp-tl-pip,
  .event-card-preview,
  .demo-state-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .fp-progress-fill { width: 100%; }
  .fp-tl-head { display: none; }
  .cam-tile-scan-fx { display: none; }
  .scan-line { display: none; }
  .dbracket { opacity: 1 !important; transform: translate(0, 0) !important; }
  .conf-tag { opacity: 1 !important; transform: translate(-50%, 0) !important; }
  .meta-chip { opacity: 1 !important; transform: none !important; }

  /* Sticky sequence becomes a static, fully-resolved panel */
  .demo-sticky-panel { position: static; height: auto; padding: var(--section-pad) 0; }
  .demo-scroll-container { height: auto !important; }
  .demo-panel { grid-template-columns: 1fr; gap: 40px; }
  .demo-narration {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .demo-state-item { position: static; padding-left: 20px; border-left: 1px solid var(--border); }
  .demo-state-heading { font-size: 1.16rem; }
  .demo-dots { display: none; }
}
