/* ========================================================================== */
/* Theme tokens: Light (default)                                              */
/* ========================================================================== */
:root {
  color-scheme: light;
  --font-heading: "Manrope", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition-fast: 180ms ease;
  --transition-slow: 460ms ease;
  --container-width: 1180px;

  --ink: #0A0A0C;
  --coal: #13171A;
  --stone: #1E2429;
  --slate: #26262A;
  --deep: #38383E;
  --coral-1: #FF5E1F;
  --coral-2: #E04A0E;
  --coral-3: #FF7A45;
  --coral-4: #FFD4BC;
  --teal: #1FA299;
  --teal-soft: #2BC0B6;
  --red: #EF4444;
  --red-soft: #F87171;
  --mist: #F4F4F5;
  --paper: #FAFAFA;
  --cool: #D6D6D9;
  --muted: #6B6B72;
  --steel: #4A4A50;
  --shadow: 0 30px 60px rgba(10, 10, 12, 0.18);
  --shadow-soft: 0 16px 40px rgba(10, 10, 12, 0.10);
  --shadow-strong: 0 26px 60px rgba(10, 10, 12, 0.16);

  --bg-start: var(--mist);
  --bg-end: var(--paper);
  --text-primary: var(--coal);
  --text-secondary: var(--steel);
  --text-muted: var(--muted);
  --surface: var(--mist);
  --surface-glass: rgba(248, 248, 249, 0.92);
  --surface-card: var(--paper);
  --surface-strong: var(--cool);
  --border-soft: rgba(212, 212, 217, 0.7);
  --logo-surface: var(--surface-glass);
  --logo-border: var(--border-soft);
  --kicker-bg: rgba(20, 20, 22, 0.06);
  --button-outline: rgba(74, 74, 80, 0.4);
  --badge-text: var(--paper);
  --accent: var(--coral-1);
  --accent-strong: var(--coral-2);
  --accent-soft: var(--coral-4);
  --accent-glow: rgba(255, 94, 31, 0.55);
  --gradient-1: rgba(255, 94, 31, 0.10);
  --gradient-2: rgba(255, 122, 69, 0.12);
  --card-highlight: rgba(255, 94, 31, 0.18);
  --approach-grad-1: var(--slate);
  --approach-grad-2: var(--coral-1);
  --lang-active-text: var(--paper);

  --bg: var(--bg-end);
  --bg-alt: var(--bg-start);
  --text: var(--text-primary);
  --border: var(--border-soft);
  --accent-dark: var(--accent-strong);
}

/* ========================================================================== */
/* Theme tokens: Dark (overrides)                                             */
/* ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-start: var(--stone);
  --bg-end: var(--coal);
  --text-primary: var(--paper);
  --text-secondary: var(--cool);
  --text-muted: var(--muted);
  --surface: rgba(28, 28, 31, 0.92);
  --surface-glass: rgba(38, 38, 42, 0.92);
  --surface-card: rgba(38, 38, 42, 0.96);
  --surface-strong: var(--stone);
  --border-soft: rgba(120, 120, 128, 0.35);
  --logo-surface: rgba(250, 250, 250, 0.92);
  --logo-border: rgba(212, 212, 217, 0.5);
  --kicker-bg: rgba(250, 250, 250, 0.08);
  --button-outline: rgba(250, 250, 250, 0.3);
  --badge-text: var(--paper);
  --accent: var(--coral-3);
  --accent-strong: var(--coral-1);
  --gradient-1: rgba(255, 94, 31, 0.22);
  --gradient-2: rgba(255, 122, 69, 0.18);
  --card-highlight: rgba(255, 122, 69, 0.24);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 26px 60px rgba(0, 0, 0, 0.65);
  --approach-grad-1: var(--deep);
  --approach-grad-2: var(--coral-1);
  --lang-active-text: var(--coal);
}

/* ========================================================================== */
/* Base                                                                       */
/* ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  line-height: 1.6;
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, .logo-text {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-swap {
  display: grid;
  place-items: center;
}

.logo-swap img {
  grid-area: 1 / 1;
  display: block;
}

.logo--dark {
  display: none;
}

:root[data-theme="dark"] .logo--dark {
  display: block;
}

:root[data-theme="dark"] .logo--light {
  display: none;
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(var(--container-width), 92%);
  margin: 0 auto;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 12% -12%, var(--gradient-1), transparent 60%),
    radial-gradient(1000px 700px at 88% 8%, var(--gradient-2), transparent 55%);
  z-index: -2;
}

.bg-noise {
  position: fixed;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* ========================================================================== */
/* Top utility bar                                                            */
/* ========================================================================== */
.topbar {
  background: var(--coal);
  color: rgba(250, 250, 250, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(250, 250, 250, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 9px 0;
  min-height: 36px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-label {
  color: rgba(250, 250, 250, 0.5);
}

.topbar-flag {
  display: inline-block;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(250, 250, 250, 0.15);
}

.lang-switch {
  position: relative;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(250, 250, 250, 0.78);
  padding: 4px 8px 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lang-switch__toggle:hover {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.25);
}

.lang-switch__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-switch__toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
}

.lang-switch__chevron {
  transition: transform 0.15s ease;
  opacity: 0.7;
}

.lang-switch__toggle[aria-expanded="true"] .lang-switch__chevron {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: rgba(20, 22, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 50;
  backdrop-filter: blur(12px);
}

.lang-switch__menu[hidden] {
  display: none;
}

.lang-switch__option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 4px;
  color: rgba(250, 250, 250, 0.78);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-switch__option:hover,
.lang-switch__option:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  outline: none;
}

.lang-switch__option[aria-selected="true"] {
  color: var(--accent);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(250, 250, 250, 0.85);
  transition: color 0.15s ease;
  font-weight: 500;
}

.topbar-link:hover {
  color: var(--accent);
}

.topbar-link svg {
  opacity: 0.75;
}

@media (max-width: 720px) {
  .topbar-inner {
    gap: 12px;
    padding: 7px 0;
  }
  .topbar-left .topbar-label {
    display: none;
  }
  .topbar-link span:not(.topbar-flag) {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar-left .topbar-item span:last-child {
    display: none;
  }
}

/* ========================================================================== */
/* Header                                                                     */
/* ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.site-header.is-scrolled {
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: auto;
  margin-right: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav a {
  color: var(--text-primary);
  transition: color 0.15s ease;
  padding: 6px 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .header-inner {
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--coal);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 32px 32px;
    gap: 16px;
    margin: 0;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    font-weight: 700;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a {
    padding: 8px 0;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-cta {
    padding: 9px 16px;
    font-size: 0.82rem;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 7px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-text-accent {
  color: var(--accent);
  margin: 0 1px;
}

.footer-brand {
  margin-bottom: 4px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================================================== */
/* Hero                                                                       */
/* ========================================================================== */
.hero {
  padding: 10px 0 7px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 38% 1fr;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  margin: 20px 0 20px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
}

/* Polish/Czech translations contain longer words ("bezpieczeństwo",
   "bezpečnost") than Ukrainian/English. Reduce the hero title size
   for those languages so the word fits on its own line without
   breaking mid-word or overflowing into the mockup. */
:lang(pl) .hero-title,
:lang(cs) .hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 800;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}


.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-signals {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-signal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-signal .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text-primary);
}

.hero-signal .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 18ch;
  line-height: 1.3;
}

.hero-subtext {
  color: var(--muted);
  max-width: 540px;
  font-size: 1.05rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(255, 94, 31, 0.45);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(255, 94, 31, 0.55);
  background: var(--accent-strong);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition: transform 90ms ease;
}

.btn.ghost {
  border-color: rgba(250, 250, 250, 0.18);
  color: var(--text-primary);
  background: transparent;
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Hero visual — mini BST OS mockup (replaces orbit) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 480px;
  perspective: 1600px;
  perspective-origin: 25% 50%;
  margin-right: calc((100vw - min(var(--container-width), 92vw)) / -2 - 16px);
  padding-left: 24px;
}

.hero-mockup {
  background: rgba(22, 24, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 20px 40px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 760px;
  transform: rotateY(-14deg) rotateX(4deg) rotate(0.5deg);
  transform-style: preserve-3d;
  transform-origin: center left;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-mockup:hover {
  transform: rotateY(-10deg) rotateX(2deg) rotate(0deg);
}

.hero-mockup--secondary {
  position: absolute;
  bottom: -20px;
  /* Anchor relative to the visual viewport edge, not the bled-out
     hero-visual right edge, so the rotated panel never spills past
     the page in any language. */
  right: max(8%, calc((100vw - min(var(--container-width, 1400px), 92vw)) / 2 + 16px));
  width: 300px;
  max-width: 300px;
  z-index: 2;
  transform: rotateY(-14deg) rotateX(4deg) rotate(3deg) translateZ(80px);
}

/* PL and CS event titles ("Auto przy wjeździe", "Auto u vjezdu") are
   wider than UA/EN. Scale the secondary mockup down a touch so they
   don't push the rotated panel off-screen. */
:lang(pl) .hero-mockup--secondary,
:lang(cs) .hero-mockup--secondary {
  width: 280px;
  max-width: 280px;
  transform: rotateY(-12deg) rotateX(3deg) rotate(3deg) translateZ(70px);
}

.hero-mockup--secondary:hover {
  transform: rotateY(-10deg) rotateX(2deg) rotate(0deg) translateZ(80px);
}

.hero-mockup__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.hero-mockup__chrome {
  justify-content: space-between;
}

.hero-mockup__controls {
  display: flex;
  margin-left: auto;
  margin-right: -6px;
}

.hero-mockup__ctrl {
  width: 24px;
  height: 20px;
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.hero-mockup__ctrl:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.hero-mockup__ctrl--close:hover {
  background: var(--red);
  color: #fff;
}

.hero-mockup__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-mockup__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.hero-mockup__live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: bstPulse 1.6s ease-in-out infinite;
}

.hero-mockup__body {
  background: #0A0B0E;
  min-height: 280px;
}

.hero-mockup__body--list {
  background: rgba(255, 255, 255, 0.015);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: auto;
}

.hero-mockup .vms-grid {
  height: 100%;
  min-height: 280px;
}

@media (max-width: 900px) {
  .hero-visual {
    min-height: 320px;
    margin-top: 24px;
    margin-right: 0;
    padding-left: 0;
    perspective: none;
  }
  .hero-mockup {
    transform: none;
    max-width: 100%;
  }
  .hero-mockup--secondary {
    display: none;
  }
}

/* ========================================================================== */
/* Sections                                                                   */
/* ========================================================================== */
.section {
  padding: 96px 0;
}

#products { padding: 80px 0 64px; }
#preview { padding: 56px 0 120px; }
#caps { padding: 64px 0 80px; }
#scenarios { padding: 120px 0 100px; }
#why { padding: 100px 0 80px; }
#cases { padding: 80px 0 100px; }
#pricing { padding: 80px 0 100px; }
#faq { padding: 100px 0 80px; }
#contacts { padding: 96px 0 80px; }

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  #products,
  #preview,
  #caps,
  #scenarios,
  #why,
  #cases,
  #pricing,
  #faq,
  #contacts {
    padding: 56px 0;
  }
}

.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

/* ========================================================================== */
/* Orbit                                                                      */
/* ========================================================================== */
/* ========================================================================== */
/* BST One Showcase                                                           */
/* ========================================================================== */
.bst-showcase {
  background: linear-gradient(135deg, var(--mist), var(--paper));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.bst-showcase--wide {
  max-width: none;
  padding: 64px 56px;
  text-align: left;
}

.bst-showcase-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.bst-showcase--wide .bst-showcase-title {
  margin-bottom: 14px;
}

.bst-showcase--wide .bst-showcase-desc {
  font-size: 1.05rem;
  line-height: 1.55;
}

/* 3-up benefit cards (marketing) */
.bst-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto 40px;
}

.bst-benefit {
  text-align: left;
  padding: 28px 24px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.20);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 220ms ease, transform 220ms ease;
}

.bst-benefit:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.bst-benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.bst-benefit__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}

.bst-benefit__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.bst-showcase--wide .bst-platforms {
  margin-left: auto;
  margin-right: auto;
}

.bst-showcase-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .bst-showcase--wide {
    padding: 48px 28px;
  }
  .bst-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bst-showcase-head {
    margin-bottom: 32px;
  }
}

.bst-showcase::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(300px 250px at 20% 0%, var(--card-highlight), transparent 60%),
    radial-gradient(250px 200px at 80% 100%, rgba(63, 195, 214, 0.14), transparent 65%);
  z-index: 0;
}

.bst-showcase > * {
  position: relative;
  z-index: 1;
}

.bst-showcase-content {
  position: relative;
  z-index: 1;
}

.bst-showcase .pill {
  margin-bottom: 20px;
}

.bst-showcase-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.bst-showcase-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 auto 32px;
  max-width: 540px;
}

.bst-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.bst-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

.bst-feature svg {
  flex-shrink: 0;
}

/* Platforms strip — server appliance vs client OSes */
.bst-platforms {
  margin: 28px auto 32px;
  max-width: 580px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.bst-platforms__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bst-platforms__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.bst-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.04);
  border: 1px solid rgba(250, 250, 250, 0.10);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1;
  transition: border-color 200ms ease, background 200ms ease;
}

.bst-platform:hover {
  border-color: rgba(255, 94, 31, 0.4);
  background: rgba(255, 94, 31, 0.05);
}

.bst-platform svg {
  color: rgba(250, 250, 250, 0.8);
  flex-shrink: 0;
}

.bst-platform > span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.bst-platform strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--paper);
  line-height: 1;
}

.bst-platform em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1;
}

.bst-platform--soon {
  opacity: 0.65;
  border-style: dashed;
}

.bst-platform--soon em {
  color: var(--accent);
}

:root[data-theme="dark"] .bst-showcase {
  background: linear-gradient(135deg, var(--surface), var(--surface-card));
  border-color: var(--border-soft);
}

:root[data-theme="dark"] .bst-showcase-title {
  color: var(--paper);
}

:root[data-theme="dark"] .bst-showcase-desc {
  color: var(--cool);
}

/* ========================================================================== */
/* Approach                                                                   */
/* ========================================================================== */
.approach-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#whatbst .approach-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  #whatbst .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  #whatbst .approach-grid {
    grid-template-columns: 1fr;
  }
}

.approach-card {
  background: linear-gradient(135deg, var(--approach-grad-1), var(--approach-grad-2));
  color: var(--paper);
  padding: 24px 26px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.approach-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.25;
}

.approach-card p {
  color: var(--cool);
  margin: 0;
}

/* ========================================================================== */
/* Contacts                                                                   */
/* ========================================================================== */
/* Contact — Ajax-style split card */
.contact {
  background: linear-gradient(160deg, #1A1C20 0%, #0E0F12 100%);
  color: var(--paper);
  border-radius: 18px;
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  border: 1px solid rgba(250, 250, 250, 0.08);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 100% at 100% 0%, rgba(255, 94, 31, 0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.contact > * { position: relative; z-index: 1; }

.contact__intro {
  display: flex;
  flex-direction: column;
}

.contact__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 18px;
  color: var(--paper);
}

.contact__title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 800;
}

.contact__desc {
  color: rgba(250, 250, 250, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 50ch;
  margin: 0 0 36px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__list a,
.contact__list > span {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  font-size: 0.98rem;
  color: rgba(250, 250, 250, 0.88);
  text-decoration: none;
  align-items: baseline;
  transition: color 0.15s ease;
}

.contact__list a:hover {
  color: var(--accent);
}

.contact__list .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.42);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lbl-text {
  font-size: 0.78rem;
  color: rgba(250, 250, 250, 0.55);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(250, 250, 250, 0.04);
  border: 1px solid rgba(250, 250, 250, 0.10);
  border-radius: 8px;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(250, 250, 250, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(250, 250, 250, 0.06);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23FAFAFA' stroke-opacity='0.5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.contact-form select option {
  background: #1A1C20;
  color: var(--paper);
}

.form__submit {
  align-self: flex-start;
  margin-top: 8px;
}

.form__consent {
  font-size: 0.74rem;
  color: rgba(250, 250, 250, 0.42);
  margin-top: 4px;
  display: block;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 24px;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .contact__list a,
  .contact__list > span {
    grid-template-columns: 56px 1fr;
  }
}

/* ========================================================================== */
/* Trust strip                                                                */
/* ========================================================================== */
.trust-strip {
  padding: 48px 0 32px;
}

.trust-strip-header {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 700px;
}

.trust-strip-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 12px;
  text-transform: none;
}

.trust-strip-header p {
  margin: 0 auto;
  font-size: 0.98rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.55;
  max-width: 64ch;
}

.trust-tier {
  padding: 28px 0 8px;
  border-top: 1px solid var(--border);
}

.trust-tier:last-child {
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.trust-tier__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 32px 56px;
}

.trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.trust-logo:hover,
a.trust-logo:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

a.trust-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.trust-logo img {
  width: auto;
  display: block;
}

/* ----- Tier 1: featured (technology partners) ----- */
.trust-tier--featured .trust-logo {
  height: 56px;
}

.trust-tier--featured .trust-logo img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.trust-tier--featured .trust-logo img[src*="general-security"] { height: 36px; }
.trust-tier--featured .trust-logo img[src*="sunell"]           { height: 50px; }
.trust-tier--featured .trust-logo img[src*="dnake"]            { height: 32px; }

@media (max-width: 720px) {
  .trust-tier {
    padding: 22px 0 4px;
  }
  .trust-tier__logos {
    gap: 22px 32px;
  }
  .trust-tier--featured .trust-logo {
    height: 44px;
  }
  .trust-tier--featured .trust-logo img {
    height: 30px;
    max-width: 130px;
  }
  .trust-tier--featured .trust-logo img[src*="general-security"] { height: 26px; }
  .trust-tier--featured .trust-logo img[src*="sunell"]           { height: 38px; }
  .trust-tier--featured .trust-logo img[src*="dnake"]            { height: 22px; }
}

/* ========================================================================== */
/* Custom CTA (footer-CTA before site footer)                                  */
/* ========================================================================== */
.custom-cta {
  padding: 64px 0 32px;
}

.custom-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--coal), var(--stone));
  color: var(--paper);
  padding: 40px 48px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.custom-cta-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--paper);
}

.custom-cta-content p {
  margin: 0;
  color: var(--cool);
  font-size: 1rem;
  max-width: 540px;
}

/* ========================================================================== */
/* Performance metrics — 4-up showcase of latency/accuracy numbers            */
/* ========================================================================== */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.perf-metric {
  padding: 32px 24px 28px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 220ms ease, transform 220ms ease;
}

.perf-metric:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.perf-metric.is-accent:hover {
  border-color: rgba(255, 94, 31, 0.35);
}

.perf-metric__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.perf-metric__num {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.perf-metric__unit {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.5);
}

.perf-metric.is-accent .perf-metric__value {
  color: var(--accent);
}

.perf-metric.is-accent .perf-metric__unit {
  color: rgba(255, 94, 31, 0.65);
}

.perf-metric__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.perf-metric__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .perf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .perf-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== */
/* Mobile preview — phone mockup with notifications + roadmap badge           */
/* ========================================================================== */
.mobile-preview {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}

.mobile-preview__text .section-title {
  margin: 14px 0 18px;
}

.mobile-preview__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mobile-preview__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mobile-preview__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.mobile-preview__phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-frame {
  width: 280px;
  height: 580px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1f2227, #0c0d0f);
  border: 1px solid rgba(250, 250, 250, 0.10);
  box-shadow:
    inset 0 0 0 4px #0a0b0d,
    0 30px 60px -15px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 94, 31, 0.10);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #0a0b0d;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0d0e10;
  border-radius: 30px;
  padding: 38px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(250, 250, 250, 0.85);
  font-family: var(--font-mono);
  padding: 0 4px 4px;
}

.phone-icons {
  display: inline-flex;
  gap: 5px;
  color: rgba(250, 250, 250, 0.7);
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px 10px;
  border-bottom: 1px solid rgba(250, 250, 250, 0.06);
}

.phone-app-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.phone-app-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(40, 200, 64, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-app-status .dot {
  width: 5px;
  height: 5px;
  background: #28C840;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.6);
  animation: bstPulse 1.6s ease-in-out infinite;
}

.phone-notification {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(250, 250, 250, 0.04);
  border: 1px solid rgba(250, 250, 250, 0.08);
  border-radius: 10px;
  align-items: center;
}

.phone-notification--alert {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.phone-notification__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(250, 250, 250, 0.08);
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(250, 250, 250, 0.7);
}

.phone-notification--alert .phone-notification__icon {
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.phone-notification__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
}

.phone-notification__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(250, 250, 250, 0.5);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.phone-notification__time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(250, 250, 250, 0.45);
  letter-spacing: 0.04em;
}

.phone-cta {
  margin-top: auto;
  padding-top: 12px;
}

.phone-cta button {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  cursor: default;
}

.mobile-preview__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 94, 31, 0.05);
}

@media (max-width: 900px) {
  .mobile-preview {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .mobile-preview__phone {
    margin: 0 auto;
  }
  .mobile-preview__list {
    text-align: left;
    max-width: 360px;
    margin: 24px auto 0;
  }
}

/* ========================================================================== */
/* Architecture page — engineering depth blocks                                */
/* ========================================================================== */
.arch-section {
  padding: 48px 0;
}

.arch-block {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.20);
  padding: 48px 40px;
}

.arch-block__head {
  margin-bottom: 32px;
  max-width: 760px;
}

.arch-block__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.arch-block__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.arch-block__lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* Hardware specs */
.arch-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.arch-spec {
  padding: 24px 22px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.arch-spec__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.arch-spec__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.arch-spec__note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Scaling stages */
.arch-scale {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.arch-scale__stage {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.arch-scale__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.arch-scale__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 8px 0 12px;
}

.arch-scale__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.arch-scale__arrow {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  text-align: center;
  opacity: 0.5;
}

/* AI / Security / API features grid */
.arch-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.arch-features:has(article:nth-child(4)) {
  grid-template-columns: repeat(4, 1fr);
}

.arch-feature {
  padding: 22px 20px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.arch-feature__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.arch-feature__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* CTA */
.arch-cta {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(255, 94, 31, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 94, 31, 0.10), transparent 70%),
    rgba(0, 0, 0, 0.22);
}

.arch-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.arch-cta p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .arch-block {
    padding: 32px 22px;
  }
  .arch-specs,
  .arch-features,
  .arch-features:has(article:nth-child(4)) {
    grid-template-columns: 1fr;
  }
  .arch-scale {
    grid-template-columns: 1fr;
  }
  .arch-scale__arrow {
    transform: rotate(90deg);
  }
}

/* ========================================================================== */
/* Footer (multi-column)                                                      */
/* ========================================================================== */
.site-footer {
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-col a {
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: color 0.2s ease;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col--brand {
  gap: 18px;
}

.footer-logo {
  height: 32px;
  width: auto;
  align-self: flex-start;
}

.footer-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.5;
}

.footer-bottom {
  padding: 18px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(250, 250, 250, 0.4);
}

/* ========================================================================== */
/* Boot screen (terminal init)                                                */
/* ========================================================================== */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0B0E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: rgba(250, 250, 250, 0.85);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 32px);
  pointer-events: none;
}

.boot-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.boot-screen__inner {
  width: min(640px, 92%);
  position: relative;
  z-index: 1;
  font-size: 13px;
  line-height: 1.7;
}

.boot-screen__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.boot-screen__logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.boot-screen__lines {
  min-height: 200px;
}

.boot-line {
  opacity: 0;
  animation: bootLineIn 0.18s ease-out forwards;
}

.boot-line .ok {
  color: var(--teal-soft);
}

.boot-line .arrow {
  color: var(--accent);
}

.boot-line .ready {
  color: var(--teal-soft);
  font-weight: 700;
}

.boot-line .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 4px;
  animation: bootCursor 0.9s steps(1) infinite;
}

@keyframes bootLineIn {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

@keyframes bootCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.boot-screen__hint {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen { display: none; }
}

/* ========================================================================== */
/* Eyebrow + Section intro                                                    */
/* ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
  font-weight: 500;
}

.eyebrow--invert {
  color: rgba(250, 250, 250, 0.6);
}

.section-intro {
  max-width: 780px;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
  line-height: 1.55;
}

/* ========================================================================== */
/* Preview (UI mockup card)                                                   */
/* ========================================================================== */
.preview {
  background: var(--coal);
  color: var(--paper);
  border-radius: 18px;
  padding: clamp(36px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.preview__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}

.preview__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 12px 0 12px;
  color: var(--paper);
  font-weight: 700;
}

.preview__sub {
  color: rgba(250, 250, 250, 0.7);
  margin: 0;
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.preview__tabs {
  display: flex;
  gap: 2px;
  background: rgba(250, 250, 250, 0.04);
  border: 1px solid rgba(250, 250, 250, 0.08);
  border-radius: 6px;
  padding: 3px;
}

.preview-tab {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: rgba(250, 250, 250, 0.7);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}

.preview-tab:hover {
  color: var(--paper);
}

.preview-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.preview__screens {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0A0B0E;
  border: 1px solid rgba(250, 250, 250, 0.08);
}

/* ========================================================================== */
/* BST OS — desktop mockup with multiple floating windows                     */
/* ========================================================================== */
@keyframes bstPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

@keyframes terminalFlicker {
  0%, 100% { opacity: 1; }
  4% { opacity: 0.45; }
  6% { opacity: 0.95; }
  8% { opacity: 0.6; }
  10% { opacity: 1; }
  53% { opacity: 0.7; }
  55% { opacity: 1; }
  78% { opacity: 0.85; }
  80% { opacity: 1; }
}

.bst-window__title,
.hero-mockup__title,
.bst-os-bar__time {
  animation: terminalFlicker 6s infinite;
}

.bst-desktop {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255, 94, 31, 0.10), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(255, 94, 31, 0.05), transparent 55%),
    linear-gradient(160deg, #0F1014 0%, #1A1B20 60%, #14151A 100%);
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.bst-desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 28px);
  pointer-events: none;
  z-index: 0;
}

.bst-os-bar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 16px;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.bst-os-bar__left,
.bst-os-bar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bst-os-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bst-os-bar__logo {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 5px;
}

.bst-os-bar__name {
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.bst-os-bar__indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0;
  text-transform: none;
}

.bst-os-bar__indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.65);
  animation: bstPulse 2s ease-in-out infinite;
}

.bst-os-bar__search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.45);
  min-width: 180px;
  cursor: text;
}

.bst-os-bar__search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 11px;
  width: 100%;
  padding: 0;
  cursor: text;
}

.bst-os-bar__search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.bst-os-bar__time {
  color: var(--paper);
  font-weight: 600;
}

.bst-os-bar__user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.bst-os-bar__avatar {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.bst-os-canvas {
  position: relative;
  z-index: 1;
  height: 580px;
  padding: 0;
}

/* ----- BST Window ----- */
.bst-window {
  position: absolute;
  left: var(--x, auto);
  right: var(--right, auto);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  z-index: var(--z, 1);
  background: rgba(22, 24, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 50px -10px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease;
}

.bst-window:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -10px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 94, 31, 0.18);
}

.bst-window.is-focused {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 32px 64px -10px rgba(0, 0, 0, 0.70),
    0 0 0 1px rgba(255, 94, 31, 0.45);
}

/* "Spotlight" — engaged when a preview-tab selects a specific app.
   Other windows dim and shrink slightly; the spotlit one pops forward. */
.bst-window {
  transition: opacity 240ms ease, transform 240ms ease, box-shadow 0.25s ease, filter 240ms ease;
}

.bst-window.is-dimmed {
  opacity: 0.32;
  filter: saturate(0.6);
  transform: scale(0.98);
  pointer-events: none;
}

.bst-window.is-spotlight {
  transform: scale(1.015);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 36px 72px -10px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 94, 31, 0.55),
    0 0 60px -10px rgba(255, 94, 31, 0.35);
}

.bst-window.is-hidden {
  display: none;
}

.bst-window.is-maximized {
  left: 12px !important;
  right: 12px !important;
  top: 12px !important;
  width: auto !important;
  height: calc(100% - 24px) !important;
}

.bst-window.is-dragging {
  transition: none;
  cursor: grabbing;
}

.bst-window__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.bst-window__chrome:active {
  cursor: grabbing;
}

.bst-window__controls {
  display: flex;
  margin-right: -8px;
}

.bst-window__ctrl {
  width: 28px;
  height: 22px;
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  border-radius: 0;
}

.bst-window__ctrl:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.bst-window__ctrl--close:hover {
  background: var(--red);
  color: #fff;
}

.bst-window__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bst-window__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.bst-window__live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: bstPulse 1.6s ease-in-out infinite;
}

.bst-window__body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.bst-window__body--list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.bst-window__body--map {
  background: #0A0B0E;
  padding: 8px;
}

.bst-window__body--map svg {
  width: 100%;
  height: 100%;
}

.bst-window__body--stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 12px;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.015);
}

.bst-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bst-stat .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--paper);
  line-height: 1;
}

.bst-stat__alert {
  color: var(--red);
}

.bst-stat .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Status strip above Map / Access window bodies */
.map-statusbar,
.access-statusbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 6px 14px 8px;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.map-statusbar__item,
.access-statusbar__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-statusbar__item--off { color: rgba(239, 68, 68, 0.85); }
.map-statusbar__item--alert,
.access-statusbar__item--alert { color: rgba(239, 68, 68, 0.95); }

.access-statusbar__item strong {
  color: var(--paper);
  font-weight: 700;
  margin-right: 2px;
}

.access-statusbar__item--alert strong { color: var(--red); }

.map-statusbar__sep,
.access-statusbar__sep {
  color: rgba(255, 255, 255, 0.18);
}

.map-statusbar .dot,
.access-statusbar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.map-statusbar .dot--ok { background: #28C840; box-shadow: 0 0 6px rgba(40,200,64,0.55); }
.map-statusbar .dot--off { background: #EF4444; }
.map-statusbar .dot--alert {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239,68,68,0.7);
  animation: bst-pulse 1.4s ease-in-out infinite;
}

@keyframes bst-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ----- Camera grid inside Videoportal window ----- */
.bst-window--cameras .bst-window__body {
  background: #0A0B0E;
  flex: 1;
  min-height: 0;
  display: flex;
}

.bst-window--cameras .vms-grid {
  flex: 1;
  height: 100%;
  grid-template-rows: 1fr 1fr;
  min-height: 0;
}

.bst-window--cameras .vms-tile {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
}

.vms-statusbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.vms-statusbar__online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10B981;
}

.vms-statusbar__online .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.7);
}

.vms-statusbar__sep {
  color: rgba(255, 255, 255, 0.25);
}

.vms-statusbar__count {
  color: rgba(255, 255, 255, 0.7);
}

.vms-statusbar__obj {
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
}

.vms-timeline {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px 10px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.vms-timeline__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.vms-timeline__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-weight: 700;
}

.vms-timeline__live .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: bstPulse 1.4s ease-in-out infinite;
}

.vms-timeline__speed {
  color: rgba(255, 255, 255, 0.4);
}

.vms-timeline__clock {
  margin-left: auto;
  color: var(--paper);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.vms-timeline__track {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.vms-timeline__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #2563EB, #3B82F6);
  border-radius: 2px;
  opacity: 0.9;
}

.vms-timeline__playhead {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

.vms-timeline__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
}

.vms-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 100%;
}

.vms-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1C20, #0E0F12);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.vms-tile__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.55) contrast(1.18) saturate(0.7);
  z-index: 0;
}

.vms-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(250, 250, 250, 0.04) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
}

.vms-tile__lpr,
.vms-tile__face,
.vms-tile__motion,
.vms-tile__meta {
  z-index: 2;
}

.vms-tile__meta {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(250, 250, 250, 0.85);
}

.vms-tile__meta .live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.vms-tile__meta .live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: bstPulse 1.6s ease-in-out infinite;
}

.vms-tile__meta .ts {
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
}

.vms-tile__lpr {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(31, 162, 153, 0.55);
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 3px;
}

.vms-tile__face {
  position: absolute;
  top: 32%;
  left: 28%;
  width: 24%;
  aspect-ratio: 3 / 4;
  border: 1.5px solid var(--teal);
  border-radius: 4px;
}

.vms-tile__face::after {
  content: "MATCH 98%";
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.vms-tile__motion {
  position: absolute;
  top: 50%;
  left: 12%;
  width: 30%;
  height: 35%;
  border: 1.5px dashed #FFE066;
  border-radius: 4px;
}

/* Offline tile (warning state — coral gradient) */
.vms-tile--offline {
  background:
    linear-gradient(160deg, rgba(255, 122, 69, 0.30) 0%, rgba(126, 63, 42, 0.55) 60%, rgba(20, 22, 28, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 10px;
}

.vms-tile--offline::before {
  background: none;
}

.vms-tile__offline-icon {
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
}

.vms-tile__offline-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--paper);
  font-weight: 700;
}

.vms-tile__offline-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

.vms-event {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.04);
  border: 1px solid rgba(250, 250, 250, 0.05);
}

.vms-event.alert {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.30);
}

.vms-event__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(250, 250, 250, 0.06);
  display: grid;
  place-items: center;
  color: rgba(250, 250, 250, 0.7);
  font-weight: 600;
}

.vms-event.alert .vms-event__icon {
  background: var(--red);
  color: #fff;
}

.vms-event__title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(250, 250, 250, 0.9);
  margin-bottom: 2px;
}

.vms-event__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(250, 250, 250, 0.45);
  letter-spacing: 0.04em;
}

.vms-event__time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(250, 250, 250, 0.5);
}

/* ----- BST OS Dock ----- */
.bst-dock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(20, 22, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.bst-dock__app {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.bst-dock__app:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  transform: translateY(-2px);
}

.bst-dock__app.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 94, 31, 0.45);
}

.bst-dock__app--critical {
  background: rgba(255, 94, 31, 0.16);
  border-color: rgba(255, 94, 31, 0.30);
  color: rgba(255, 178, 145, 0.95);
}

.bst-dock__app--critical:hover {
  background: rgba(255, 94, 31, 0.28);
  color: #fff;
}

.bst-dock__app.is-active::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 1024px) {
  .bst-window--cameras { --w: 60% !important; }
  .bst-window--events { --w: 36% !important; }
  .bst-window--access { --w: 36% !important; }
}

@media (max-width: 720px) {
  .preview__head {
    grid-template-columns: 1fr;
  }
  .preview__tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .bst-os-bar {
    padding: 6px 10px;
    font-size: 10px;
  }
  .bst-os-bar__menu,
  .bst-os-bar__user {
    display: none;
  }
  .bst-os-bar__left,
  .bst-os-bar__right {
    gap: 10px;
  }
  .bst-os-canvas {
    height: auto;
    padding: 12px 10px 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .bst-window {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
  }
  .bst-window--cameras { min-height: 240px; }
  .bst-window--map { min-height: 160px; }
  .bst-window--access { min-height: 80px; }
  .bst-dock {
    bottom: 12px;
    gap: 4px;
    padding: 5px;
  }
  .bst-dock__app {
    width: 32px;
    height: 32px;
  }
}

/* ========================================================================== */
/* Scenarios                                                                  */
/* ========================================================================== */
.scenarios {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: flex-start;
}

.scenarios__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 96px;
}

.scenarios__nav button {
  text-align: left;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}

.scenarios__nav button:not(.is-active):hover {
  background: rgba(20, 20, 22, 0.04);
  color: var(--text-primary);
}

html[data-theme="dark"] .scenarios__nav button:not(.is-active):hover {
  background: rgba(250, 250, 250, 0.04);
}

.scenarios__nav button.is-active {
  background: var(--text-primary);
  color: var(--bg);
}

.scenarios__nav button.is-active .num { color: var(--accent); }

.scenarios__nav .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.scenarios__content {
  position: relative;
}

.scenario-card {
  background: var(--text-primary);
  color: var(--bg);
  border-radius: 18px;
  padding: 40px;
  min-height: 480px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.scenario-card.is-active { display: grid; }

.scenario-card__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--bg);
}

.scenario-card__desc {
  color: rgba(20, 20, 22, 0.78);
  font-size: 1rem;
  line-height: 1.55;
  margin-top: 16px;
}

.scenario-card__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-card__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: rgba(20, 20, 22, 0.88);
}

.scenario-card__list li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}

.scenario-card__visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #1A1C20, #0E0F12);
  min-height: 320px;
  border: 1px solid rgba(250, 250, 250, 0.08);
}

.scenario-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(0.45) brightness(0.55) contrast(1.15);
}

.scenario-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 16, 19, 0.25) 0%, rgba(13, 16, 19, 0.0) 30%, rgba(13, 16, 19, 0.85) 100%),
    linear-gradient(95deg, rgba(13, 16, 19, 0.55) 0%, rgba(13, 16, 19, 0.0) 45%);
}

.scenario-card__chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: var(--paper);
  padding: 4px 8px;
  border-radius: 4px;
}

.scenario-card__stat {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.scenario-card__stat > div {
  background: rgba(13, 16, 19, 0.78);
  border: 1px solid rgba(250, 250, 250, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}

.scenario-card__stat .v {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1;
}

.scenario-card__stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.55);
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .scenarios {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .scenarios__nav {
    position: relative;
    top: auto;
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .scenarios__nav button {
    flex-shrink: 0;
  }
}

@media (max-width: 720px) {
  .scenario-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    min-height: auto;
  }
  .scenario-card__visual {
    min-height: 240px;
  }
}

/* ========================================================================== */
/* Manifesto (Why BST)                                                        */
/* ========================================================================== */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.manifesto__intro {
  position: sticky;
  top: 96px;
}

.manifesto__list {
  display: flex;
  flex-direction: column;
}

.manifesto__item {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: flex-start;
  transition: padding-left 0.25s ease;
}

.manifesto__item:last-child { border-bottom: 1px solid var(--border); }

.manifesto__item:hover { padding-left: 12px; }

.manifesto__item .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.manifesto__item .title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
  color: var(--text-primary);
}

.manifesto__item .desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  max-width: 50ch;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .manifesto {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .manifesto__intro {
    position: relative;
    top: auto;
  }
}

/* ========================================================================== */
/* Cases (mosaic 4 cards)                                                     */
/* ========================================================================== */
.cases {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.case {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #1A1C20, #0E0F12);
  color: var(--paper);
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
  border: 1px solid rgba(250, 250, 250, 0.08);
}

.case__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) brightness(0.55) contrast(1.1) saturate(0.75);
  z-index: 0;
  transition: transform 700ms ease, filter 500ms ease;
}

.case:hover .case__bg {
  transform: scale(1.04);
  filter: grayscale(0.20) brightness(0.65) contrast(1.10) saturate(0.95);
}

.case::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 70%),
    repeating-linear-gradient(135deg, rgba(250, 250, 250, 0.04) 0 1px, transparent 1px 12px),
    radial-gradient(120% 80% at 70% 30%, rgba(255, 94, 31, 0.20), transparent 55%);
  z-index: 1;
}

.case > *:not(.case__bg) {
  position: relative;
  z-index: 2;
}

.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.case--lg { grid-column: span 8; }
.case--sm { grid-column: span 4; }

.case__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.case__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: var(--paper);
  line-height: 1.15;
}

.case__meta {
  display: flex;
  gap: 28px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.case__meta div .v {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1;
}

.case__meta div .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.6);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .case--lg,
  .case--sm { grid-column: span 12; }
  .case { min-height: 280px; }
}

/* ========================================================================== */
/* Pricing (3 plans)                                                          */
/* ========================================================================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.plan {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  background: rgba(250, 250, 250, 0.015);
  transition: background 0.2s ease;
}

.plan:last-child { border-right: 0; }

.plan:hover {
  background: rgba(250, 250, 250, 0.03);
}

.plan--accent {
  background: var(--paper);
  color: var(--coal);
}

.plan--accent:hover { background: var(--paper); }

.plan__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plan--accent .plan__cat { color: var(--accent); }

.plan__star {
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

.plan__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text-primary);
}

.plan--accent .plan__title { color: var(--coal); }

.plan__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.plan__price small {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan--accent .plan__price small {
  color: rgba(20, 20, 22, 0.6);
}

.plan__desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

.plan--accent .plan__desc { color: rgba(20, 20, 22, 0.78); }

.plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  flex: 1;
}

.plan__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
}

.plan--accent .plan__list li { color: rgba(20, 20, 22, 0.85); }

.plan__list li::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.plan .btn {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }
  .plan {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .plan:last-child {
    border-bottom: 0;
  }
}

/* ========================================================================== */
/* FAQ (split layout + accordion)                                             */
/* ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: flex-start;
}

.faq__intro {
  position: sticky;
  top: 96px;
}

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
}

.faq__q:hover .icon {
  border-color: var(--accent);
  color: var(--accent);
}

.faq__q .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq__item.is-open .faq__q .icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__a p {
  margin: 0;
  max-width: 62ch;
}

.faq__item.is-open .faq__a {
  max-height: 320px;
  padding: 0 0 22px;
}

@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq__intro {
    position: relative;
    top: auto;
  }
}

/* ========================================================================== */
/* Capabilities (6-card grid)                                                 */
/* ========================================================================== */
.caps {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 0;
}

.cap {
  grid-column: span 4;
  padding: 36px 32px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  transition: background 0.2s ease;
  background: transparent;
}

.cap:hover {
  background: rgba(20, 20, 22, 0.03);
}

html[data-theme="dark"] .cap:hover {
  background: rgba(250, 250, 250, 0.03);
}

.cap__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--text-primary);
  color: var(--bg);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.cap.feat--accent .cap__icon {
  background: var(--accent);
  color: #fff;
}

.cap__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.cap__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

.cap__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.cap__chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cap__chip span {
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .cap {
    grid-column: span 6;
    padding: 28px 24px;
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .cap {
    grid-column: span 12;
  }
}

/* ========================================================================== */
/* Product pages                                                              */
/* ========================================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--accent);
}

.product-hero {
  padding: 40px 0 60px;
}

.product-hero-inner {
  max-width: 720px;
}

.product-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 16px 0;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-icon-lg {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-icon-lg img {
  width: 100%;
  height: 100%;
  display: block;
}

.product-hero-desc {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  max-width: 600px;
  margin-bottom: 8px;
}

.steps-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-strong);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step-card p {
  color: var(--text-secondary);
  margin: 0;
}

.features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent-strong);
}

.feature-card p {
  color: var(--text-secondary);
  margin: 0;
}

.cta-block {
  background: linear-gradient(135deg, var(--approach-grad-1), var(--approach-grad-2));
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-block h2 {
  margin: 0 0 12px;
}

.cta-block p {
  color: var(--cool);
  margin: 0 auto 24px;
  max-width: 480px;
}

.cta-block .btn.primary {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}


/* ========================================================================== */
/* Animations                                                                 */
/* ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================== */
/* Responsive                                                                 */
/* ========================================================================== */

/* ---------- Tablet (≤900px) ---------- */
@media (max-width: 900px) {
  .section {
    padding: 56px 0;
  }
}

/* ---------- Mobile (≤720px) ---------- */
@media (max-width: 720px) {
  /* — Header — */
  .header-inner {
    padding: 12px 0;
  }

  /* — Buttons — */
  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  /* — Hero — */
  .hero {
    padding-top: 24px;
  }

  .hero-inner {
    text-align: center;
    grid-template-columns: 1fr;
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-signals {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  /* — Sections — */
  .section {
    padding: 40px 0;
  }

  .section-header {
    text-align: center;
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* — BST One Showcase — */
  .bst-showcase {
    padding: 36px 24px;
  }

  .bst-showcase-title {
    font-size: 2rem;
  }

  .bst-features {
    gap: 20px;
  }

  /* — Partners — */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .partner-chip {
    padding: 12px 10px;
    font-size: 0.85rem;
    min-height: 48px;
  }

  .partner-logo img {
    height: 22px;
  }

  /* — Approach — */
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-card {
    padding: 20px 22px;
  }

  /* — CTA Block (shared) — */
  .cta-block {
    padding: 32px 24px;
  }

  /* — Trust strip — */
  /* — Custom CTA — */
  .custom-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }

  .custom-cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  /* — Footer — */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 0 24px;
  }
}

/* ---------- Small phones (≤480px) ---------- */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn {
    padding: 13px 20px;
    font-size: 0.88rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========================================================================== */
/* Plate Vision Bot — Product page                                           */
/* ========================================================================== */

/* --- Hero --- */
.pvb-hero {
  position: relative;
  padding: 10px 0 80px;
  overflow: hidden;
}

.pvb-hero-glow {
  position: absolute;
  top: -120px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--gradient-1) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  animation: pvb-glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes pvb-glow-pulse {
  0%   { transform: scale(1) translate(0, 0); opacity: 0.5; }
  100% { transform: scale(1.15) translate(-40px, 30px); opacity: 0.8; }
}

.pvb-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .pvb-hero-grid {
    grid-template-columns: 1fr;
  }
}

.pvb-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.pvb-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 20px 0 16px;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pvb-hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--accent-strong);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* Visual flow: car → camera → bot → open */
.pvb-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  flex-wrap: nowrap;
}

.pvb-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  width: 72px;
  height: 66px;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pvb-flow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.pvb-flow-step--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent-strong);
  color: #fff;
}

.pvb-flow-step--accent .pvb-flow-label {
  color: #fff;
}

.pvb-flow-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.pvb-flow-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.pvb-flow-arrow {
  font-size: 1rem;
  color: var(--accent-strong);
  font-weight: 700;
  padding: 0 2px;
}

.pvb-hero-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.pvb-hero-btn {
  font-size: 1.05rem;
  padding: 16px 36px;
}

/* --- Telegram screenshots carousel --- */
.pvb-carousel {
  --card-w: 240px;
  --card-h: 420px;
  --gap: 130px;
  --peek: 40px;
  --carousel-ms: 700ms;
  --radius: 20px;
  margin-top: 50px;
}

.pvb-carousel-stage {
  width: 100%;
  max-width: 480px;
  height: var(--card-h);
  position: relative;
  margin: 0 auto;
}

.pvb-carousel-rail {
  width: 100%;
  height: 100%;
  position: relative;
}

.pvb-carousel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--carousel-ms) ease,
    opacity var(--carousel-ms) ease,
    filter var(--carousel-ms) ease;
  background: transparent;
}

.pvb-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pvb-carousel-card.pvb-pos-center {
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 3;
  filter: brightness(1.05);
  box-shadow: none;
}

.pvb-carousel-card.pvb-pos-left {
  transform: translate(-50%, -50%) translateX(calc(-1 * var(--gap))) scale(0.75);
  z-index: 1;
  opacity: 0.25;
  filter: brightness(0.7) saturate(0.4);
}

.pvb-carousel-card.pvb-pos-right {
  transform: translate(-50%, -50%) translateX(var(--gap)) scale(0.75);
  z-index: 1;
  opacity: 0.25;
  filter: brightness(0.7) saturate(0.4);
}

.pvb-carousel-card.pvb-pos-hidden-left {
  transform: translate(-50%, -50%) translateX(calc(-1 * (var(--gap) + 140px))) scale(0.85);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.pvb-carousel-card.pvb-pos-hidden-right {
  transform: translate(-50%, -50%) translateX(calc(var(--gap) + 140px)) scale(0.85);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.pvb-carousel-card.pvb-peek-left {
  clip-path: inset(0 calc(50% - var(--peek)) 0 0 round var(--radius));
}

.pvb-carousel-card.pvb-peek-right {
  clip-path: inset(0 0 0 calc(50% - var(--peek)) round var(--radius));
}

@media (max-width: 900px) {
  .pvb-carousel {
    --card-w: 200px;
    --card-h: 360px;
    --gap: 110px;
  }
  .pvb-carousel-stage {
    max-width: 400px;
  }
}

/* --- Section header centered --- */
.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header--light h2 {
  color: var(--paper);
}

.section-header--light p {
  color: var(--cool);
}

/* --- How it works: Timeline --- */
.pvb-section-how {
  padding-bottom: 100px;
}

.pvb-how-sub {
  font-size: 1.1rem;
}

.pvb-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.pvb-timeline-line {
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong), var(--accent));
  border-radius: 2px;
  opacity: 0.4;
}

.pvb-timeline-step {
  position: relative;
  text-align: center;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 18px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.pvb-timeline-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.pvb-timeline-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(42, 165, 187, 0.35);
}

.pvb-timeline-step h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.pvb-timeline-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pvb-timeline {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .pvb-timeline-line {
    display: none;
  }
}

/* --- Features grid with hero card --- */
.pvb-features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.pvb-feat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  position: relative;
  overflow: hidden;
}

.pvb-feat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: 0;
  transition: opacity 240ms ease;
}

.pvb-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(63, 195, 214, 0.4);
}

.pvb-feat-card:hover::before {
  opacity: 1;
}


.pvb-feat-emoji {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 10px;
  display: inline-flex;
  color: var(--accent);
}

.pvb-feat-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--accent-strong);
}

.pvb-feat-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.pvb-feat-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
}


@media (max-width: 720px) {
  .pvb-features {
    grid-template-columns: 1fr;
  }
  .pvb-feat-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 100%;
    justify-self: auto;
  }
}

/* --- Dark band (use cases) --- */
.pvb-dark-band {
  background: linear-gradient(135deg, var(--approach-grad-1), var(--approach-grad-2));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.pvb-dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 80% 20%, rgba(63, 195, 214, 0.2), transparent 70%);
  pointer-events: none;
}

.pvb-cases-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 700px;
  margin: 0 auto;
}

.pvb-case-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform 240ms ease, background 240ms ease;
}

.pvb-case-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
}

.pvb-case-icon {
  font-size: 2.4rem;
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
}

.pvb-case-card h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.pvb-case-card p {
  color: var(--cool);
  margin: 0;
  line-height: 1.55;
}

/* --- Equipment --- */
.pvb-equip-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pvb-equip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  min-width: 180px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 240ms ease, box-shadow 240ms ease;
  position: relative;
}

.pvb-equip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.pvb-equip-num {
  position: absolute;
  top: -14px;
  right: -10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(42, 165, 187, 0.3);
}

.pvb-equip-icon {
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  color: var(--accent);
}

.pvb-equip-plus {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1;
}

/* --- Examples — quote style --- */
.pvb-section-examples {
  background: rgba(63, 195, 214, 0.04);
}

:root[data-theme="dark"] .pvb-section-examples {
  background: rgba(63, 195, 214, 0.06);
}

.pvb-examples-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 800px;
  margin: 0 auto;
}

.pvb-example {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 240ms ease;
}

.pvb-example:hover {
  transform: translateY(-4px);
}

.pvb-example-quote {
  position: absolute;
  top: -8px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-strong);
  line-height: 1;
  opacity: 0.5;
}

.pvb-example p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
}

/* --- More features --- */
.pvb-more-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pvb-more-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.pvb-more-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.pvb-more-icon {
  font-size: 2rem;
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
}

.pvb-more-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent-strong);
}

.pvb-more-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* --- CTA block with glow --- */
.pvb-cta-section {
  padding-bottom: 100px;
}

.pvb-cta-block {
  position: relative;
  background: linear-gradient(135deg, var(--approach-grad-1), var(--approach-grad-2));
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pvb-cta-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(63, 195, 214, 0.35), transparent 70%);
  pointer-events: none;
  animation: pvb-glow-pulse 5s ease-in-out infinite alternate;
}

.pvb-cta-block h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.pvb-cta-block p {
  position: relative;
  color: var(--cool);
  margin: 0 auto 28px;
  max-width: 480px;
  font-size: 1.05rem;
}

.pvb-cta-block .btn {
  position: relative;
  font-size: 1.05rem;
  padding: 16px 36px;
}

.pvb-cta-block .btn.primary {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* --- PVB responsive (mobile) --- */
@media (max-width: 720px) {
  .pvb-hero {
    padding: 10px 0 40px;
  }

  .pvb-hero-grid {
    gap: 24px;
  }

  .pvb-hero-content {
    text-align: center;
  }

  .pvb-hero-title {
    justify-content: center;
  }

  .pvb-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .pvb-flow {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .pvb-flow-step {
    width: 60px;
    height: 56px;
    padding: 8px 10px;
  }

  .pvb-flow-label {
    font-size: 0.5rem;
  }

  .pvb-flow-arrow {
    font-size: 0.85rem;
  }

  .pvb-hero-btn {
    font-size: 0.95rem;
    padding: 14px 28px;
  }

  .pvb-carousel {
    margin-top: 24px;
  }

  .pvb-section-how {
    padding-bottom: 40px;
  }

  .pvb-timeline-step {
    padding: 40px 16px 20px;
  }

  .pvb-dark-band {
    padding: 48px 0;
  }

  .pvb-case-card {
    padding: 24px 20px;
  }

  .pvb-equip-card {
    padding: 20px 24px;
    min-width: 140px;
  }

  .pvb-more-grid {
    grid-template-columns: 1fr;
  }

  .pvb-cta-section {
    padding-bottom: 48px;
  }

  .pvb-cta-block {
    padding: 36px 24px;
  }

  .pvb-cta-block .btn {
    font-size: 0.95rem;
    padding: 14px 28px;
  }
}

@media (max-width: 480px) {
  .pvb-carousel {
    --card-w: 180px;
    --card-h: 320px;
    --gap: 90px;
  }

  .pvb-carousel-stage {
    max-width: 340px;
  }

  .pvb-flow-step {
    width: 52px;
    height: 48px;
    padding: 6px 8px;
  }

  .pvb-flow-icon {
    font-size: 1rem;
  }

  .pvb-flow-label {
    font-size: 0.45rem;
  }

  .pvb-cases-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== */
/* Safe Signal — Product page                                                */
/* ========================================================================== */

/* --- Hero (split: text left, map right) --- */
.ss-hero {
  position: relative;
  padding: 10px 0 100px;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}
.ss-hero-glow {
  position: absolute;
  top: -120px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--gradient-1) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  animation: ss-glow-pulse 6s ease-in-out infinite alternate;
}
@keyframes ss-glow-pulse {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.15) translate(-40px, 30px); }
}
.ss-hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.ss-hero-text {
  max-width: 540px;
}
.ss-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 20px 0 16px;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ss-hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--accent-strong);
  margin: 0 0 16px;
  line-height: 1.3;
}
.ss-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
  line-height: 1.65;
}
.ss-hero-map {
  position: relative;
}
.ss-map-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 0;
}
@media (max-width: 900px) {
  .ss-hero-split {
    grid-template-columns: 1fr;
  }
  .ss-hero-text {
    max-width: 100%;
    text-align: center;
  }
  .ss-hero-title {
    justify-content: center;
  }
}

/* --- Why it matters (two columns) --- */
.ss-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.ss-why-block {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.ss-why-block h2 {
  font-size: 1.4rem;
  margin: 0 0 14px;
}
.ss-why-block p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}
.ss-why-block--accent {
  background: linear-gradient(135deg, var(--gradient-1), transparent);
  border-color: var(--accent);
}
@media (max-width: 720px) {
  .ss-why-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Live alert map (SVG) --- */
.ss-alert-map {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--surface-card);
  padding: 16px;
}
.ss-alert-map svg {
  width: 100%;
  height: auto;
  display: block;
}
.ss-alert-map .raion,
.ss-alert-map .raion path {
  fill: var(--surface-strong);
  stroke: var(--border);
  stroke-width: 0.5;
  transition: fill 0.4s ease;
  cursor: pointer;
}
.ss-alert-map .raion:hover,
.ss-alert-map .raion:hover path {
  fill: var(--accent-soft);
}
.ss-alert-map .raion.ss-region--alert,
.ss-alert-map .raion.ss-region--alert path {
  fill: #E05555;
}
.ss-alert-map .raion.ss-region--alert:hover,
.ss-alert-map .raion.ss-region--alert:hover path {
  fill: #C94444;
}
:root[data-theme="dark"] .ss-alert-map .raion,
:root[data-theme="dark"] .ss-alert-map .raion path {
  fill: var(--deep);
  stroke: rgba(255,255,255,0.12);
}
:root[data-theme="dark"] .ss-alert-map .raion:hover,
:root[data-theme="dark"] .ss-alert-map .raion:hover path {
  fill: var(--slate);
}
:root[data-theme="dark"] .ss-alert-map .raion.ss-region--alert,
:root[data-theme="dark"] .ss-alert-map .raion.ss-region--alert path {
  fill: #D04040;
}
.ss-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ss-map-legend {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ss-map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.ss-map-legend-dot--alert {
  background: #E05555;
}
.ss-map-legend-dot--safe {
  background: var(--surface-strong);
  border: 1px solid var(--border);
}
.ss-map-time {
  font-size: 0.72rem;
  opacity: 0.7;
}
.ss-map-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ink, #1a1a2e);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* --- Features (left-border cards, 2-col) --- */
.ss-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.ss-feat-card {
  position: relative;
  padding: 28px 28px 28px 36px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}
.ss-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}
.ss-feat-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-radius: 4px 0 0 4px;
}
.ss-feat-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.ss-feat-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .ss-features-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Equipment dark band --- */
.ss-equip-band {
  background: linear-gradient(135deg, var(--stone) 0%, var(--slate) 50%, var(--deep) 100%);
  color: #f0f0f0;
  padding: 72px 0;
  margin: 56px 0;
}
:root[data-theme="dark"] .ss-equip-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--coal) 50%, var(--stone) 100%);
}
.ss-equip-band .section-header--light h2 {
  color: #fff;
}
.ss-equip-band .section-header--light p {
  color: rgba(255,255,255,0.7);
}
.ss-equip-features {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.ss-equip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 320px;
  padding: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: background 200ms ease;
}
.ss-equip-item:hover {
  background: rgba(255,255,255,0.1);
}
.ss-equip-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  color: var(--accent);
}
.ss-equip-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #fff;
}
.ss-equip-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}

/* --- Audience (2x2 grid) --- */
.ss-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.ss-audience-card {
  padding: 32px 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.ss-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.ss-audience-icon {
  font-size: 2rem;
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
}
.ss-audience-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.ss-audience-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .ss-audience-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Advantages (checklist) --- */
.ss-adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin-top: 36px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.ss-adv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: transform 200ms ease;
}
.ss-adv-item:hover {
  transform: translateX(4px);
}
@media (min-width: 721px) {
  .ss-adv-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}
.ss-adv-check {
  color: var(--accent-strong);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .ss-adv-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Scenarios (vertical list with left line) --- */
.ss-scenarios-list {
  position: relative;
  max-width: 700px;
  margin: 40px auto 0;
  padding-left: 40px;
}
.ss-scenarios-list::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong), transparent);
  border-radius: 2px;
}
.ss-scenario {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}
.ss-scenario + .ss-scenario {
  border-top: 1px solid var(--border);
}
.ss-scenario-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-strong);
  flex-shrink: 0;
  min-width: 36px;
  position: relative;
}
.ss-scenario-num::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  background: var(--accent-strong);
  border-radius: 50%;
  border: 2px solid var(--surface-card);
  box-shadow: 0 0 0 2px var(--accent-strong);
}
.ss-scenario-body h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.ss-scenario-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* --- CTA band --- */
.ss-cta-band {
  background: linear-gradient(135deg, var(--stone) 0%, var(--slate) 50%, var(--deep) 100%);
  color: #f0f0f0;
  padding: 72px 0;
  margin-top: 56px;
}
:root[data-theme="dark"] .ss-cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--coal) 50%, var(--stone) 100%);
}
.ss-cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.ss-cta-content h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 14px;
}
.ss-cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin: 0 0 28px;
  line-height: 1.6;
}

/* --- Safe Signal responsive (mobile) --- */
@media (max-width: 720px) {
  .ss-hero {
    padding: 10px 0 48px;
    min-height: auto;
  }

  .ss-hero-split {
    gap: 24px;
  }

  .ss-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .ss-hero-title {
    flex-wrap: wrap;
  }

  .ss-why-block {
    padding: 24px 20px;
  }

  .ss-equip-band {
    padding: 48px 0;
    margin: 32px 0;
  }

  .ss-equip-features {
    gap: 16px;
  }

  .ss-equip-item {
    max-width: 100%;
    padding: 18px;
    gap: 12px;
  }

  .ss-audience-card {
    padding: 24px 20px;
  }

  .ss-scenarios-list {
    padding-left: 32px;
  }

  .ss-scenarios-list::before {
    left: 12px;
  }

  .ss-scenario {
    gap: 14px;
    padding: 18px 0;
  }

  .ss-scenario-num {
    font-size: 1.3rem;
    min-width: 28px;
  }

  .ss-scenario-num::before {
    left: -25px;
    width: 9px;
    height: 9px;
  }

  .ss-cta-band {
    padding: 48px 0;
    margin-top: 32px;
  }

  .ss-feat-card {
    padding: 22px 22px 22px 30px;
  }
}

@media (max-width: 480px) {
  .ss-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .ss-audience-grid {
    gap: 12px;
  }

  .ss-adv-item {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .ss-scenario-body h3 {
    font-size: 1rem;
  }

  .ss-scenario-body p {
    font-size: 0.85rem;
  }
}

/* ========================================================================== */
/* Modules page                                                              */
/* ========================================================================== */
.modules-hero {
  padding: 40px 0 32px;
}

.modules-hero-inner {
  max-width: 680px;
}

.modules-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 16px 0 14px;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.modules-hero-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  background: linear-gradient(135deg, var(--coral-1), var(--coral-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modules-hero-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0;
}

/* Layout: sidebar + grid */
.modules-section {
  padding: 0 0 80px;
}

.modules-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.modules-sidebar {
  position: sticky;
  top: 80px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .modules-sidebar {
  background: var(--surface-card);
  border-color: var(--border-soft);
}

.modules-sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
  padding: 0 8px;
}

.modules-sidebar-title--status {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modules-filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modules-filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-align: left;
}

.modules-filter-btn:hover {
  background: var(--surface);
}

.modules-filter-btn.active {
  background: linear-gradient(135deg, var(--coral-1), var(--coral-2));
  color: var(--paper);
  box-shadow: 0 4px 14px rgba(31, 111, 125, 0.3);
}

.modules-filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--text-muted);
}

.modules-filter-btn.active .modules-filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--paper);
}

/* Status filter buttons */
.modules-status-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modules-status-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modules-status-btn:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.modules-status-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* Module grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Module card */
.module-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  position: relative;
  overflow: visible;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px 140px at 20% 0%, var(--card-highlight), transparent 60%);
  opacity: 0;
  transition: opacity 260ms ease;
  z-index: 0;
  pointer-events: none;
}

.module-card > * {
  position: relative;
  z-index: 1;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(63, 195, 214, 0.5);
}

.module-card:hover::before {
  opacity: 1;
}

.module-card.is-hidden {
  display: none;
}

:root[data-theme="dark"] .module-card {
  background: var(--surface-card);
  border-color: var(--border-soft);
}

/* Module icon */
.module-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.module-icon-wrap--active {
  background: linear-gradient(135deg, rgba(31, 111, 125, 0.12), rgba(63, 195, 214, 0.18));
  border-color: rgba(63, 195, 214, 0.4);
}

.module-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-strong);
}

.module-card:hover .module-icon-wrap {
  background: linear-gradient(135deg, rgba(31, 111, 125, 0.1), rgba(63, 195, 214, 0.15));
  border-color: rgba(63, 195, 214, 0.4);
}

/* Module category label */
.module-category {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
}

/* Module name */
.module-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  color: var(--text-primary);
}

/* Module description — always visible inside the card */
.module-tooltip {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 4px 0 0;
  opacity: 0.85;
  flex-grow: 1;
}

.module-card:hover .module-tooltip {
  opacity: 1;
}

/* Tags row — compatibility / integration partners */
.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.module-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(250, 250, 250, 0.05);
  border: 1px solid rgba(250, 250, 250, 0.10);
  color: var(--text-secondary);
  text-transform: uppercase;
}

:root[data-theme="dark"] .module-tag {
  background: rgba(250, 250, 250, 0.04);
  border-color: rgba(250, 250, 250, 0.08);
}

/* Card as link */
a.module-card {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

/* Module status badge */
.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 6px;
}

.module-badge--available {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.module-badge--dev {
  background: rgba(234, 179, 8, 0.1);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

:root[data-theme="dark"] .module-badge--available {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}

:root[data-theme="dark"] .module-badge--dev {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.3);
}

/* Mobile sidebar as horizontal scroll */
.modules-mobile-toggle {
  display: none;
}

@media (max-width: 900px) {
  .modules-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modules-sidebar {
    position: static;
    border-radius: var(--radius-md);
    padding: 16px;
  }

  .modules-filter-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .modules-filter-list::-webkit-scrollbar {
    display: none;
  }

  .modules-filter-btn {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.85rem;
    flex: 0 0 auto;
  }

  .modules-status-list {
    margin-top: 10px;
  }

  .modules-sidebar-title--status {
    margin-top: 12px;
    padding-top: 12px;
  }

  .modules-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .modules-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    gap: 8px;
  }

  .modules-hero-desc {
    font-size: 0.95rem;
  }

  .modules-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .module-card {
    padding: 18px 16px 16px;
  }
}

/* ========================================================================== */
/* Module detail page                                                        */
/* ========================================================================== */
.module-detail {
  max-width: 720px;
}

.module-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.module-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent-strong);
}

.module-detail-icon svg {
  width: 30px;
  height: 30px;
}

.module-detail-category {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
}

.module-detail-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.module-detail-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 4px 0 0;
  line-height: 1.15;
}

.module-detail .module-badge {
  margin-bottom: 20px;
}

.module-detail-short-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 12px;
  opacity: 0.75;
}

.module-detail-long-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

/* Legacy selector kept for backwards-compat */
.module-detail-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.module-detail-section {
  margin-bottom: 32px;
}

.module-detail-section h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
}

.module-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.module-detail-list li {
  padding: 12px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
}

:root[data-theme="dark"] .module-detail-list li {
  background: var(--surface-card);
  border-color: var(--border-soft);
}

.module-detail-cta {
  margin-top: 40px;
}

.module-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.module-detail-grid.has-carousel {
  grid-template-columns: 2fr 1fr;
}

.module-detail-carousel,
.module-detail-map {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  padding-bottom: 88px;
}

.module-detail-carousel .pvb-carousel {
  margin-top: 0;
}

.module-detail-map .ss-hero-map {
  width: 100%;
}

@media (max-width: 900px) {
  .module-detail-grid.has-carousel {
    grid-template-columns: 1fr;
  }

  .module-detail-carousel {
    order: -1;
  }
}

@media (max-width: 480px) {
  .module-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .module-detail-icon {
    width: 52px;
    height: 52px;
  }
}

/* ========================================================================== */
/* Topbar beta countdown (center slot)                                          */
/* ========================================================================== */
.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-beta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.topbar-beta__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
  animation: bstPulse 2.4s ease-in-out infinite;
}

.topbar-beta__label {
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.topbar-sep {
  color: rgba(255, 255, 255, 0.25);
}

.topbar-beta__date,
.topbar-beta__countdown {
  color: rgba(255, 255, 255, 0.7);
}

.topbar-beta__countdown {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .topbar-center {
    display: none;
  }
}

/* ========================================================================== */
/* Reliability section                                                          */
/* ========================================================================== */
.reliability-focal {
  margin-top: 56px;
  padding: 64px 24px;
  text-align: center;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.reliability-focal__time {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.reliability-focal__caption {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .reliability-focal__time {
    font-size: 2.6rem;
  }
}

/* ========================================================================== */
/* Air-raid section                                                             */
/* ========================================================================== */
.airraid-focal {
  margin-top: 56px;
  padding: 64px 24px;
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 18px;
  background: rgba(239, 68, 68, 0.04);
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.airraid-banner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 4px;
}

.airraid-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  animation: airraid-pulse 1.5s ease-in-out infinite;
}

@keyframes airraid-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.airraid-focal__caption {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.5;
  margin: 0;
}

/* ========================================================================== */
/* Silence section                                                              */
/* ========================================================================== */
.silence-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 0;
}

.silence-block__title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  color: var(--text-primary);
}

.silence-block__desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 640px) {
  .silence-block__title {
    font-size: 2.6rem;
  }
  .silence-block__desc {
    font-size: 1rem;
  }
}

/* ========================================================================== */
/* Day-of-operator section                                                      */
/* ========================================================================== */
.day-grid {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.day-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.day-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.day-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.day-time {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.day-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.day-coda {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin: 16px 0 0;
}

@media (max-width: 640px) {
  .day-item {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }
  .day-coda {
    font-size: 1.15rem;
  }
}

/* ========================================================================== */
/* Footer brand line                                                            */
/* ========================================================================== */
.footer-brand-line {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.28);
  padding: 8px 0 24px;
  text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
