/* ============================================================
   Supervision · Marketing site
   Palette derives from the product's design tokens and brand
   mark: cyan #0891B2 / #06B6D4, amber #F0B429. Type: Inter.
   Product screenshots are dark; the site stays light so they
   read as the hero objects on every section.
   ============================================================ */

:root {
  --canvas: #fafafa;
  --canvas-raised: #ffffff;
  --canvas-deep: #f4f4f5;
  --surface: #f4f4f5;
  --border: #e4e4e7;
  --border-subtle: #f1f1f4;
  --border-strong: #d4d4d8;
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-tertiary: #71717a;
  --accent: #0891b2;
  --accent-bright: #06b6d4;
  --accent-hover: #0e7490;
  --accent-subtle: #ecfeff;
  --accent-glow: rgba(8, 145, 178, 0.2);
  --amber: #f0b429;
  --ok: #16a34a;
  --ok-subtle: #f0fdf4;
  --warn: #ca8a04;
  --warn-subtle: #fefce8;
  --crit: #dc2626;
  --crit-subtle: #fef2f2;
  /* the app itself is dark; frames echo its chrome */
  --app-bg: #0a0e13;
  --app-chrome: #10151d;
  --app-border: #1d2531;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.09);
  --shadow-xl: 0 28px 60px rgba(0, 0, 0, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.shell { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-size: 0.82em; color: var(--text-tertiary); }

h1, h2, h3, h4 { letter-spacing: -0.022em; line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
a { color: inherit; text-decoration: none; }

.grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-bright) 55%, var(--amber) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker.light { color: var(--accent-bright); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.ok { background: var(--ok); animation: ripple 2.4s ease-out infinite; }
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35); }
  70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.chip.ok { color: var(--ok); background: var(--ok-subtle); }
.chip.warn { color: var(--warn); background: var(--warn-subtle); }
.chip.crit { color: var(--crit); background: var(--crit-subtle); }

.spinner {
  width: 11px; height: 11px;
  display: inline-block;
  border: 2px solid rgba(8, 145, 178, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--amber));
  transition: width 0.1s linear;
}

/* ---------- gradient text shimmer ---------- */
.grad { background-size: 220% 100%; animation: shimmer 7s ease-in-out infinite; }
@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 60% 0; }
}

/* ---------- kicker line grows in ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease) 0.15s;
}
.reveal.in .kicker::before, .in .kicker::before, .kicker.in::before, .hero .kicker::before { transform: scaleX(1); }

/* ---------- check items cascade in ---------- */
.checks li { opacity: 1; }
.reveal .checks li { opacity: 0; transform: translateX(-12px); }
.reveal.in .checks li {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.in .checks li:nth-child(1) { transition-delay: 0.15s; }
.reveal.in .checks li:nth-child(2) { transition-delay: 0.27s; }
.reveal.in .checks li:nth-child(3) { transition-delay: 0.39s; }
.reveal.in .checks li:nth-child(4) { transition-delay: 0.51s; }
.reveal.in .checks li:nth-child(5) { transition-delay: 0.63s; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; gap: 34px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.brand-v { color: var(--accent); font-weight: 700; }
.brand img { transition: transform 0.55s var(--ease); }
.brand:hover img { transform: rotate(180deg); }

.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 0.92rem; font-weight: 500; color: var(--text-secondary); }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.2s ease;
  box-shadow: 0 1px 2px rgba(8, 145, 178, 0.3);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 26px var(--accent-glow); }
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: var(--canvas-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--canvas-raised); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-md); }
.btn-ghost::before { display: none; }

.btn-small { padding: 9px 18px; font-size: 0.88rem; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ============================================================
   Screenshot frames
   ============================================================ */
.shot-frame {
  position: relative;
  background: var(--app-bg);
  border: 1px solid var(--app-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 2600 / 1690;
  isolation: isolate;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.shot-frame::after {
  /* subtle top highlight, like glass */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  pointer-events: none;
  z-index: 3;
}
/* graceful placeholder until real screenshots are dropped in */
.shot-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #5c6a80;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.015) 14px 28px),
    var(--app-bg);
}
.shot-frame.missing img { visibility: hidden; }
.shot-frame.missing .shot-fallback { display: grid; }
.shot-fallback::before { content: "drop screenshot here · "; color: #3d4a5c; }

.shot-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(6, 182, 212, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 78% 12%, rgba(240, 180, 41, 0.07), transparent 70%);
}
.hero-copy { max-width: 46rem; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(8, 145, 178, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ripple-c 2.2s ease-out infinite; }
@keyframes ripple-c {
  0% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(8, 145, 178, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0); }
}

.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
.lede { font-size: 1.13rem; color: var(--text-secondary); margin: 0 auto 32px; max-width: 38rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.88rem; color: var(--text-tertiary); }

.hero-shot {
  position: relative;
  max-width: 1020px;
  margin: 64px auto 0;
  perspective: 1600px;
}
.hero-glow {
  position: absolute;
  inset: 10% -3% -5% -3%;
  background: linear-gradient(120deg, rgba(6, 182, 212, 0.16), rgba(240, 180, 41, 0.12));
  filter: blur(48px);
  border-radius: 40px;
  z-index: 0;
}
.hero-frame {
  z-index: 1;
  transform: rotateX(4deg) scale(0.99);
  transform-origin: 50% 0%;
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
  will-change: transform;
}
.hero-shot.settled .hero-frame,
.hero-shot:hover .hero-frame { transform: rotateX(0deg) scale(1); }

/* shine sweep across screenshots on hover */
.shot-frame::before {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  z-index: 4;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-18deg);
  transition: left 0.9s var(--ease);
  pointer-events: none;
}
.shot-frame:hover::before { left: 135%; }

/* floating feature callouts on the hero shot */
.callout {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 1px;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.25s ease;
  animation: bob 6s ease-in-out infinite;
}
.callout b { font-size: 0.85rem; font-weight: 700; letter-spacing: -0.01em; }
.callout span { font-size: 0.72rem; color: var(--text-tertiary); }
.callout:hover { transform: translateY(-4px) scale(1.03); border-color: var(--accent); box-shadow: var(--shadow-xl); }
.callout::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.22);
}
.callout.c1 { top: 16%; left: -3.5%; animation-delay: 0s; }
.callout.c1::after { right: -4px; top: -4px; }
.callout.c2 { top: 46%; right: -4%; animation-delay: -2s; }
.callout.c2::after { left: -4px; top: -4px; }
.callout.c3 { bottom: 24%; left: -4.5%; animation-delay: -4s; }
.callout.c3::after { right: -4px; top: -4px; }
.callout.c4 { bottom: -3%; right: 10%; animation-delay: -3s; }
.callout.c4::after { left: -4px; top: -4px; }
@keyframes bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -9px; }
}
@media (max-width: 980px) {
  .callout { display: none; }
}

/* ============================================================
   Brands marquee
   ============================================================ */
.brands {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--canvas-raised);
  padding: 38px 0;
  text-align: center;
}
.brands-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.marquee-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 1.05rem; font-weight: 600; color: var(--text-tertiary); transition: color 0.2s ease; }
.marquee-track span:hover { color: var(--text-primary); }
@keyframes marquee { to { transform: translateX(-50%); } }
.brands-onvif { margin-top: 20px; color: var(--text-secondary); font-size: 0.95rem; }
.brands-onvif strong { color: var(--accent); }

/* ============================================================
   Feature sections
   ============================================================ */
.feature-section { padding: 100px 0; }
.feature-section.alt { background: var(--canvas-raised); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.feature-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}
.feature-split.flip .feature-text { order: 2; }
.feature-split.flip .feature-shot { order: 1; }

.feature-text h2 { margin-bottom: 16px; }
.feature-text > p { color: var(--text-secondary); margin-bottom: 22px; }

.feature-head { max-width: 50rem; margin-bottom: 48px; }
.feature-head h2 { margin-bottom: 16px; }
.feature-lede { color: var(--text-secondary); font-size: 1.04rem; line-height: 1.7; }
.feature-text > p { font-size: 1.01rem; line-height: 1.7; }

.feature-shot.wide { max-width: 1060px; margin: 0 auto; }
.feature-shot { min-width: 0; }

.checks { list-style: none; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 30px; font-size: 0.95rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 3.5px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid rgba(8, 145, 178, 0.35);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8.5px;
  width: 7px; height: 4px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

/* four column facts under a wide screenshot */
.feature-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 52px;
}
.fcol {
  padding-left: 20px;
  border-left: 2px solid var(--border);
  transition: border-color 0.3s ease;
}
.fcol:hover { border-left-color: var(--accent); }
.fcol h4 { font-size: 1rem; margin-bottom: 8px; }
.fcol p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* mini stats under the live screenshot */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.mini-stat {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  display: grid;
  gap: 6px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.feature-section.alt .mini-stat { background: var(--canvas-raised); }
.mini-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; }

/* ============================================================
   Per feature animations
   ============================================================ */

/* Discovery: a scan beam sweeps the screenshot while in view */
.scan-beam {
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.16), rgba(6, 182, 212, 0.32), transparent);
  border-right: 1.5px solid rgba(6, 182, 212, 0.55);
  opacity: 0;
  pointer-events: none;
}
.scan-anim.run .scan-beam { animation: sweep 3.4s ease-in-out infinite; }
@keyframes sweep {
  0% { left: -12%; opacity: 0; }
  8% { opacity: 1; }
  46% { left: 104%; opacity: 1; }
  54% { opacity: 0; }
  100% { left: 104%; opacity: 0; }
}

/* Live: layout pills cycle like someone flipping layouts */
.layout-cycler {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 26px;
}
.lc-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  background: var(--canvas-raised);
  border-radius: 8px;
  padding: 6px 14px;
  transition: all 0.3s var(--ease);
}
@keyframes pill-on {
  0%, 100% { color: var(--text-tertiary); border-color: var(--border); background: var(--canvas-raised); box-shadow: none; transform: none; }
  8%, 18% { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 4px 14px var(--accent-glow); transform: translateY(-2px); }
}
.layout-cycler.run .lc-pill { animation: pill-on 7.5s ease-in-out infinite; }
.layout-cycler.run .lc-pill:nth-child(2) { animation-delay: 1.5s; }
.layout-cycler.run .lc-pill:nth-child(3) { animation-delay: 3s; }
.layout-cycler.run .lc-pill:nth-child(4) { animation-delay: 4.5s; }
.layout-cycler.run .lc-pill:nth-child(5) { animation-delay: 6s; }

/* Playback: a playhead travels across the frame */
.playhead {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  z-index: 2;
  background: rgba(6, 182, 212, 0.85);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.55);
  opacity: 0;
  pointer-events: none;
}
.playhead::after {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--accent-bright);
  border-radius: 2px;
}
.playhead-anim.run .playhead { animation: playhead 9s ease-in-out infinite alternate; }
@keyframes playhead {
  0% { left: 8%; opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { left: 92%; opacity: 0; }
}

/* Surveillance: tour dots + toggle chips + page flip */
.wall-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.wall-item {
  background: rgba(244, 244, 245, 0.04);
  border: 1px solid rgba(244, 244, 245, 0.1);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, background 0.3s ease;
}
.wall-item:hover { transform: translateY(-4px); border-color: rgba(6, 182, 212, 0.4); background: rgba(6, 182, 212, 0.05); }
.wall-item h4 { color: #fff; font-size: 1.02rem; margin: 16px 0 8px; }
.wall-item p { color: rgba(244, 244, 245, 0.62); font-size: 0.9rem; }

.tour-dots { display: inline-flex; gap: 7px; height: 22px; align-items: center; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 244, 245, 0.25); }
.tour-dots i:nth-child(1) { animation: tourdot 4.5s ease-in-out infinite; }
.tour-dots i:nth-child(2) { animation: tourdot 4.5s ease-in-out infinite 1.5s; }
.tour-dots i:nth-child(3) { animation: tourdot 4.5s ease-in-out infinite 3s; }
@keyframes tourdot {
  0%, 100% { background: rgba(244, 244, 245, 0.25); transform: none; }
  11%, 30% { background: var(--accent-bright); transform: scale(1.35); }
}

.toggle-chips { display: inline-flex; gap: 7px; height: 22px; align-items: center; }
.toggle-chips b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: var(--accent-bright);
}
.toggle-chips b:nth-child(1) { animation: chipflick 5s steps(1) infinite; }
.toggle-chips b:nth-child(2) { animation: chipflick 5s steps(1) infinite 1.6s; }
.toggle-chips b:nth-child(3) { animation: chipflick 5s steps(1) infinite 3.2s; }
@keyframes chipflick {
  0%, 100% { border-color: rgba(6, 182, 212, 0.45); color: var(--accent-bright); }
  30%, 60% { border-color: rgba(244, 244, 245, 0.2); color: rgba(244, 244, 245, 0.35); }
}

.page-flip { display: inline-flex; gap: 10px; height: 22px; align-items: center; color: rgba(244, 244, 245, 0.55); }
.page-flip em { font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; }
.page-flip i {
  width: 7px; height: 7px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}
.page-flip i.r { transform: rotate(225deg); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 4px 0; } }

/* Surveillance: slow drift on the wall screenshot, like a live feed */
.shot-frame.dark { border-color: rgba(244, 244, 245, 0.14); }
.tour-anim img { transition: transform 0.6s ease; }
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.035) translate(-0.6%, -0.5%); }
  100% { transform: scale(1) translate(0, 0); }
}
.tour-anim img { animation: kenburns 22s ease-in-out infinite; }

/* Incidents: the frame's border breathes with the priority color */
.pulse-anim { animation: none; }
.pulse-anim.run { animation: framepulse 3.2s ease-in-out infinite; }
@keyframes framepulse {
  0%, 100% { box-shadow: var(--shadow-xl); }
  50% { box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14), 0 0 0 4px rgba(220, 38, 38, 0.12); }
}

/* ============================================================
   Surveillance wall band
   ============================================================ */
.wall {
  background: var(--app-bg);
  color: #f4f4f5;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(6, 182, 212, 0.08), transparent 70%);
  pointer-events: none;
}
.wall .shell { position: relative; }
.wall-head { max-width: 44rem; margin-bottom: 44px; }
.wall-head h2 { color: #fff; margin-bottom: 14px; }
.wall-head p { color: rgba(244, 244, 245, 0.65); }
.wall .shot-frame { border-color: rgba(244, 244, 245, 0.14); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }

/* ============================================================
   Tech
   ============================================================ */
.tech { padding: 130px 0 80px; }
.section-head { max-width: 46rem; margin-bottom: 8px; }
.section-head h2 { margin-bottom: 14px; }
.section-lede { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.7; max-width: 44rem; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.tech-item {
  position: relative;
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.3s ease, border-color 0.25s ease;
}
.tech-item::before {
  /* accent line sweeps in across the top on hover */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.tech-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(8, 145, 178, 0.35); }
.tech-item:hover::before { transform: scaleX(1); }

.tech-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: 18px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}
.tech-icon svg { width: 22px; height: 22px; }
.tech-item:hover .tech-icon { background: var(--accent); color: #fff; transform: scale(1.08) rotate(-4deg); }

.tech-item h4 { font-size: 1.06rem; margin-bottom: 9px; }
.tech-item p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

.tech-shot { margin-top: 84px; }

/* ============================================================
   Platforms
   ============================================================ */
.platforms { padding: 60px 0 100px; }
.plat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
.plat-card {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.plat-card h3 { font-size: 1.12rem; }
.plat-list { list-style: none; display: grid; margin-top: 16px; }
.plat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
  transition: padding-left 0.25s var(--ease);
}
.plat-list li:hover { padding-left: 10px; }
.plat-list li:last-child { border-bottom: none; }

/* ============================================================
   Access
   ============================================================ */
.access {
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 55% 75% at 82% 20%, rgba(6, 182, 212, 0.07), transparent 65%),
    radial-gradient(ellipse 40% 60% at 12% 80%, rgba(240, 180, 41, 0.06), transparent 65%),
    var(--canvas-raised);
  padding: 100px 0;
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.access-copy h2 { margin-bottom: 16px; }
.access-copy > p { color: var(--text-secondary); margin-bottom: 24px; }

.access-form {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 34px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-xl);
}
.access-form label { display: grid; gap: 7px; font-size: 0.88rem; font-weight: 600; }
.access-form label em { color: var(--text-tertiary); font-style: normal; font-weight: 400; }
.access-form input {
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.access-form input::placeholder { color: var(--text-tertiary); font-weight: 400; }
.access-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(8, 145, 178, 0.14);
}
.access-form input.shake { animation: shake 0.4s ease; border-color: var(--crit); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.form-msg { min-height: 1.2em; font-size: 0.86rem; color: var(--warn); }
.form-msg.ok { color: var(--ok); }
.form-fine { font-size: 0.78rem; color: var(--text-tertiary); }
.form-fine a { color: var(--accent); font-weight: 600; }
.form-fine a.disabled { color: var(--text-tertiary); pointer-events: none; font-weight: 400; }

.form-step { display: grid; gap: 18px; }
.form-step.hidden { display: none; }
.verify-note { font-size: 0.92rem; color: var(--text-secondary); }
.verify-note strong { color: var(--text-primary); }
.code-input {
  font-family: var(--font-mono) !important;
  font-size: 1.5rem !important;
  letter-spacing: 0.55em;
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 46px 0; background: var(--canvas); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-tag { color: var(--text-tertiary); font-size: 0.86rem; margin-top: 10px; }
.footer-meta { text-align: right; color: var(--text-secondary); font-size: 0.86rem; display: grid; gap: 4px; }
.footer-meta a:hover { color: var(--accent); }
.footer-link { font-weight: 600; transition: color 0.2s ease; }
.footer-link:hover { color: var(--accent); }

/* ============================================================
   Downloads page
   ============================================================ */
.dl-main { padding: 150px 0 90px; min-height: 70vh; }
.dl-head { margin-bottom: 46px; }
.dl-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.dl-head p { color: var(--text-secondary); max-width: 38rem; }

.dl-group { margin-bottom: 42px; }
.dl-group h2 { font-size: 1.1rem; margin-bottom: 16px; color: var(--text-secondary); font-weight: 600; }
.dl-list { display: grid; gap: 12px; }
.dl-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s ease;
}
.dl-item:hover { transform: translateX(6px); border-color: rgba(8, 145, 178, 0.4); box-shadow: var(--shadow-md); }
.dl-item .dl-info { flex: 1; min-width: 0; }
.dl-item .dl-name { font-weight: 600; font-size: 0.98rem; }
.dl-item .dl-file { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-tertiary); margin-top: 3px; word-break: break-all; }
.dl-item .btn-small { flex-shrink: 0; }
.dl-item.soon { opacity: 0.6; }

.dl-note {
  background: var(--accent-subtle);
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.dl-note code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
}
.dl-note a { color: var(--accent); font-weight: 600; }
.dl-loading { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 0.85rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero { padding: 120px 0 70px; }
  .feature-split, .access-grid, .plat-grid { grid-template-columns: 1fr; }
  .feature-split { gap: 36px; }
  .feature-split.flip .feature-text { order: 1; }
  .feature-split.flip .feature-shot { order: 2; }
  .feature-section { padding: 64px 0; }
  .feature-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .wall-features { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  .feature-cols, .mini-stats { grid-template-columns: 1fr; }
  .layout-cycler { flex-wrap: wrap; }
}
