/* ===== NPA Global — Dark Blueprint System ===== */
:root {
  --bg-0: #05080F;
  --bg-1: #0B1220;
  --bg-2: #111A2E;
  --line: rgba(212, 175, 55, 0.22);
  --line-strong: rgba(212, 175, 55, 0.50);
  --ink: rgba(245, 240, 225, 0.94);
  --ink-dim: rgba(210, 200, 175, 0.75);
  --ink-mute: rgba(180, 165, 130, 0.60);
  --accent: #E8B84A;
  --accent-soft: rgba(232, 184, 74, 0.14);
  --warn: #F59E0B;
  --good: #34D399;
  --bad: #F87171;
  --brand-navy: #1B2A49;
  --brand-red: #D7263D;
  --brand-silver: #C0C6CE;
  --radius: 2px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

/* Light theme override */
html[data-theme="light"] {
  --bg-0: #F6F7F4;
  --bg-1: #ECEEE8;
  --bg-2: #E2E5DC;
  --line: rgba(8, 60, 90, 0.20);
  --line-strong: rgba(8, 60, 90, 0.45);
  --ink: rgba(8, 18, 32, 0.92);
  --ink-dim: rgba(40, 60, 84, 0.70);
  --ink-mute: rgba(60, 80, 100, 0.50);
  --accent-soft: rgba(34, 150, 175, 0.12);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* Blueprint grid underlay */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(rgba(232, 184, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 184, 74, 0.06) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  opacity: 0.55;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 85%);
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--bg-0) 80%);
  z-index: 1;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

/* Typography */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.label-accent { color: var(--accent); }

.h-display {
  font-family: var(--sans);
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h-section {
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.mono-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(5, 8, 15, 0.65);
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] .topbar { background: rgba(246, 247, 244, 0.8); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  max-width: 1440px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo img {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(232, 184, 74, 0.25));
}
.logo-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}
.logo-mark {
  width: 24px;
  height: 24px;
  position: relative;
  display: grid;
  place-items: center;
}
.logo-mark::before, .logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
}
.logo-mark::after {
  transform: rotate(45deg);
  border-color: var(--accent);
  opacity: 0.55;
}
.logo-mark span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  border-radius: 50%;
  z-index: 1;
}
.nav {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.nav a { color: inherit; text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* Corner brackets — blueprint detail */
.brackets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.brackets::before,
.brackets::after,
.brackets > span::before,
.brackets > span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
}
.brackets::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.brackets::after  { top: 0; right: 0; border-left: none; border-bottom: none; }
.brackets > span::before { bottom: 0; left: 0; border-right: none; border-top: none; position: absolute; }
.brackets > span::after  { bottom: 0; right: 0; border-left: none; border-top: none; position: absolute; }

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 120px;
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  width: 100%;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .container { padding: 0 24px; }
  .topbar-inner { padding: 14px 24px; }
}

.hero-copy .chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--accent-soft);
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.35; }
}

.hero-copy h1 { margin: 24px 0 20px; }
.hero-copy .underline-accent {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero-copy .underline-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
  box-shadow: 0 0 12px var(--accent);
}
.hero-copy p.lede {
  color: var(--ink-dim);
  font-size: 18px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 40px;
}

/* CTA — pulsing massive scan button with real 3D shadow */
.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  perspective: 800px;
}
.cta-audit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 22px 32px 22px 28px;
  background: linear-gradient(180deg, #0E1A2E 0%, #08101F 100%);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border-radius: 2px;
  transform-style: preserve-3d;
  transform: rotateX(6deg) translateZ(0);
  box-shadow:
    0 0 0 1px rgba(232, 184, 74, 0.2),
    0 4px 0 rgba(8, 16, 31, 1),
    0 8px 0 rgba(5, 10, 20, 1),
    0 12px 24px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(232, 184, 74, 0.28),
    0 20px 60px rgba(232, 184, 74, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  isolation: isolate;
}
.cta-audit::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid var(--accent);
  opacity: 0.3;
  animation: cta-pulse var(--cta-pulse, 2.4s) infinite;
  z-index: -1;
}
.cta-audit::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: cta-pulse-big var(--cta-pulse, 2.4s) infinite;
  z-index: -1;
}
@keyframes cta-pulse {
  0% { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(1.04); opacity: 0; }
}
@keyframes cta-pulse-big {
  0% { transform: scale(1); opacity: 0.25; }
  100% { transform: scale(1.12); opacity: 0; }
}
.cta-audit:hover {
  transform: rotateX(3deg) translateY(-3px);
  box-shadow:
    0 0 0 1px var(--accent),
    0 6px 0 rgba(8, 16, 31, 1),
    0 12px 0 rgba(5, 10, 20, 1),
    0 18px 30px rgba(0, 0, 0, 0.7),
    0 0 48px rgba(232, 184, 74, 0.42),
    0 24px 70px rgba(232, 184, 74, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cta-audit .scan-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  box-shadow: 0 0 16px var(--accent);
}
.cta-audit .scan-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: scan-ring-inner 1.6s infinite ease-out;
}
@keyframes scan-ring-inner {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.cta-audit .arrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 20px;
  margin-left: 4px;
}
.cta-audit .hot {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
  opacity: 0.8;
}

.cta-secondary {
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Trust line */
.trust {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 32px;
  border-right: 1px solid var(--line);
}
.trust-stat:last-child { border-right: none; }
.trust-stat .num {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.trust-stat .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Hero Scanner visual */
.scanner {
  position: relative;
  width: 520px;
  height: 520px;
  max-width: 100%;
  margin-left: auto;
  perspective: 1200px;
  perspective-origin: 50% 40%;
}
.scanner-stage {
  position: absolute;
  inset: 24px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse at center, rgba(232, 184, 74, 0.08) 0%, transparent 60%);
  overflow: hidden;
  transform-style: preserve-3d;
}
.scanner-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
}
.scanner-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.scanner-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.scanner-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.scanner-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.scanner-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(232, 184, 74, 0.35) 50%, transparent 100%);
  animation: scan-move var(--scan-speed, 3.2s) infinite ease-in-out;
  pointer-events: none;
}
@keyframes scan-move {
  0%, 100% { top: -60px; }
  50% { top: 100%; }
}
.scanner-coord {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.scanner-axis {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* Isometric office blocks inside scanner — real 3D */
.iso-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.iso-grid {
  width: 72%;
  aspect-ratio: 1 / 1;
  transform: rotateX(58deg) rotateZ(-45deg);
  transform-style: preserve-3d;
  position: relative;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  border: 1px solid var(--line-strong);
  animation: iso-drift 10s ease-in-out infinite;
}
@keyframes iso-drift {
  0%, 100% { transform: rotateX(58deg) rotateZ(-45deg); }
  50%      { transform: rotateX(56deg) rotateZ(-42deg); }
}
.iso-node {
  position: absolute;
  width: 18%;
  height: 18%;
  transform-style: preserve-3d;
}
.iso-node .top, .iso-node .side-n, .iso-node .side-e, .iso-node .side-s, .iso-node .side-w {
  position: absolute;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(232, 184, 74, 0.3), rgba(232, 184, 74, 0.08));
  box-shadow: 0 0 18px rgba(232, 184, 74, 0.5);
}
.iso-node .top   { inset: 0; transform: translateZ(28px); }
.iso-node .side-n{ left: 0; right: 0; height: 28px; top: 0; transform: rotateX(90deg) translateZ(0); transform-origin: center top; background: linear-gradient(180deg, rgba(232, 184, 74, 0.15), rgba(232, 184, 74, 0.03)); }
.iso-node .side-s{ left: 0; right: 0; height: 28px; bottom: 0; transform: rotateX(-90deg) translateZ(0); transform-origin: center bottom; background: linear-gradient(180deg, rgba(232, 184, 74, 0.05), rgba(232, 184, 74, 0.15)); }
.iso-node .side-w{ top: 0; bottom: 0; width: 28px; left: 0; transform: rotateY(-90deg) translateZ(0); transform-origin: left center; background: linear-gradient(90deg, rgba(232, 184, 74, 0.18), rgba(232, 184, 74, 0.05)); }
.iso-node .side-e{ top: 0; bottom: 0; width: 28px; right: 0; transform: rotateY(90deg) translateZ(0); transform-origin: right center; background: linear-gradient(90deg, rgba(232, 184, 74, 0.05), rgba(232, 184, 74, 0.18)); }
.iso-node.net { top: 8%; left: 12%; animation: hover-node 4s infinite ease-in-out; }
.iso-node.com { top: 40%; left: 62%; animation: hover-node 4s infinite ease-in-out 1.3s; }
.iso-node.fin { top: 68%; left: 28%; animation: hover-node 4s infinite ease-in-out 2.6s; }
@keyframes hover-node {
  0%, 100% { transform: translateZ(0px); }
  50% { transform: translateZ(14px); }
}
.iso-link {
  position: absolute;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  transform-origin: left center;
  box-shadow: 0 0 6px var(--accent);
}

.scanner-readout {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
}
.scanner-readout .pulse {
  color: var(--accent);
  animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

/* Section — Ecosystem */
.section {
  padding: 120px 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px;
  gap: 48px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 16px 0 0; max-width: 760px; }
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head p {
  color: var(--ink-dim);
  max-width: 420px;
  font-size: 16px;
  line-height: 1.55;
}

/* Snap ecosystem stage */
.snap-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(232, 184, 74, 0.08) 0%, transparent 70%),
    var(--bg-1);
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 42%;
}
.snap-stage-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-8deg);
  animation: stage-drift 18s ease-in-out infinite;
}
@keyframes stage-drift {
  0%, 100% { transform: rotateX(14deg) rotateY(-8deg); }
  50%      { transform: rotateX(16deg) rotateY(6deg); }
}
.stage-floor {
  position: absolute;
  left: -20%; right: -20%;
  top: 70%;
  height: 60%;
  transform: rotateX(74deg);
  transform-origin: 50% 0%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 72%);
  opacity: 0.6;
  pointer-events: none;
}
.snap-axis-h, .snap-axis-v {
  position: absolute;
  background: var(--line);
}
.snap-axis-h { left: 0; right: 0; height: 1px; top: 50%; }
.snap-axis-v { top: 0; bottom: 0; width: 1px; left: 50%; }

.snap-piece {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
  transition: all calc(var(--snap-speed, 1.8s) * 0.6) cubic-bezier(0.22, 1, 0.36, 1);
}
.snap-piece .hw { animation: hw-float 5s ease-in-out infinite; transform-style: preserve-3d; }
.snap-piece:nth-child(odd) .hw { animation-delay: -1.5s; }
@keyframes hw-float {
  0%, 100% { transform: translateY(0) rotateX(6deg) rotateY(-14deg); }
  50%      { transform: translateY(-8px) rotateX(6deg) rotateY(-8deg); }
}
.snap-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.snap-label .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Hardware blocks — abstract geometric with real 3D */
.hw {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
/* Generic 3D extrusion helper: faces inside .hw3d stack in Z */
.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

/* Networking: 3D perforated puck — stacked disc faces */
.hw-net {
  width: 150px; height: 150px;
  transform-style: preserve-3d;
  position: relative;
}
.hw-net .disc {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2A3A58 0%, #0E1626 70%, #070C18 100%);
  border: 1px solid var(--accent);
  box-shadow:
    0 0 0 1px rgba(232, 184, 74, 0.2),
    0 0 32px rgba(232, 184, 74, 0.35);
}
.hw-net .disc.top {
  transform: translateZ(22px);
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0%, var(--accent) 7%, transparent 9%),
    repeating-conic-gradient(from 0deg, transparent 0deg 14deg, rgba(232, 184, 74, 0.22) 14deg 15deg),
    radial-gradient(circle at 35% 30%, #2A3A58 0%, #0E1626 70%, #070C18 100%);
  box-shadow:
    0 0 0 1px rgba(232, 184, 74, 0.25),
    0 0 30px rgba(232, 184, 74, 0.4),
    inset 0 0 24px rgba(232, 184, 74, 0.15);
}
.hw-net .disc.top::after {
  content: "";
  position: absolute; inset: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 184, 74, 0.45);
  animation: slow-spin 12s linear infinite;
}
.hw-net .disc.bot {
  transform: translateZ(-22px);
  background: radial-gradient(circle at 35% 30%, #1A2438 0%, #050A14 80%);
  opacity: 0.9;
}
.hw-net .rim {
  position: absolute;
  left: 50%; top: 50%;
  width: 150px; height: 4px;
  background: linear-gradient(180deg, rgba(232, 184, 74, 0.4), rgba(232, 184, 74, 0.1));
  transform-origin: left center;
  border-radius: 2px;
}
/* Build cylinder side via 18 thin slabs */
.hw-net .rim-slab {
  position: absolute;
  left: 50%; top: 50%;
  width: 75px; height: 44px;
  margin-top: -22px;
  background: linear-gradient(90deg, #1A2438, #0A1222);
  border-top: 1px solid rgba(232, 184, 74, 0.35);
  border-bottom: 1px solid rgba(232, 184, 74, 0.15);
  transform-origin: left center;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }

/* Communication: 3D slab — extruded rectangular prism */
.hw-com {
  width: 190px; height: 130px;
  position: relative;
  transform-style: preserve-3d;
}
.hw-com .face {
  position: absolute; inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}
.hw-com .face.top {
  background: linear-gradient(180deg, #141E30 0%, #0A1222 100%);
  transform: translateZ(18px);
  padding: 14px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  box-shadow:
    0 0 0 1px rgba(232, 184, 74, 0.15),
    0 0 28px rgba(232, 184, 74, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hw-com .face.bot {
  background: linear-gradient(180deg, #0A1222 0%, #05080F 100%);
  transform: translateZ(-18px);
}
.hw-com .side {
  position: absolute;
  background: linear-gradient(180deg, #1A2438, #0A1222);
  border: 1px solid rgba(232, 184, 74, 0.25);
}
.hw-com .side.left   { left: 0; top: 0; bottom: 0; width: 36px; transform: rotateY(-90deg) translateZ(18px); transform-origin: left center; }
.hw-com .side.right  { right: 0; top: 0; bottom: 0; width: 36px; transform: rotateY(90deg)  translateZ(18px); transform-origin: right center; }
.hw-com .side.bottom { left: 0; right: 0; bottom: 0; height: 36px; transform: rotateX(-90deg) translateZ(18px); transform-origin: center bottom; }
.hw-com .side.topedge{ left: 0; right: 0; top: 0;    height: 36px; transform: rotateX(90deg)  translateZ(18px); transform-origin: center top; }
.hw-com .screen {
  background: linear-gradient(180deg, rgba(232, 184, 74, 0.14), rgba(232, 184, 74, 0.04));
  border: 1px solid var(--accent);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 14px rgba(232, 184, 74, 0.25);
}
.hw-com .screen::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-left: 1px solid var(--accent);
  opacity: 0.5;
}
.hw-com .screen::after {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 40%; height: 4px;
  background: var(--accent);
  box-shadow:
    0 10px 0 rgba(232, 184, 74, 0.5),
    0 20px 0 rgba(232, 184, 74, 0.25);
}
.hw-com .keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.hw-com .keys span {
  height: 6px;
  background: rgba(232, 184, 74, 0.2);
  border-radius: 1px;
}
.hw-com .keys span:nth-child(3n) { background: rgba(232, 184, 74, 0.45); }

/* Fintech: 3D tablet slab */
.hw-fin {
  width: 140px; height: 180px;
  position: relative;
  transform-style: preserve-3d;
}
.hw-fin .face {
  position: absolute; inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.hw-fin .face.top {
  background: linear-gradient(180deg, #1A2438 0%, #0C1422 100%);
  transform: translateZ(14px);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow:
    0 0 0 1px rgba(232, 184, 74, 0.15),
    0 0 24px rgba(232, 184, 74, 0.25);
}
.hw-fin .face.bot {
  background: linear-gradient(180deg, #0C1422 0%, #05080F 100%);
  transform: translateZ(-14px);
}
.hw-fin .side {
  position: absolute;
  background: linear-gradient(180deg, #1A2438, #0A1222);
  border: 1px solid rgba(232, 184, 74, 0.25);
}
.hw-fin .side.left   { left: 0; top: 0; bottom: 0; width: 28px; transform: rotateY(-90deg) translateZ(14px); transform-origin: left center; }
.hw-fin .side.right  { right: 0; top: 0; bottom: 0; width: 28px; transform: rotateY(90deg)  translateZ(14px); transform-origin: right center; }
.hw-fin .side.bottom { left: 0; right: 0; bottom: 0; height: 28px; transform: rotateX(-90deg) translateZ(14px); transform-origin: center bottom; }
.hw-fin .side.topedge{ left: 0; right: 0; top: 0;    height: 28px; transform: rotateX(90deg)  translateZ(14px); transform-origin: center top; }
.hw-fin .fin-screen {
  flex: 1;
  background: linear-gradient(180deg, rgba(232, 184, 74, 0.16), rgba(232, 184, 74, 0.02));
  border: 1px solid var(--accent);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 14px rgba(232, 184, 74, 0.25);
}
.hw-fin .fin-amount {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px var(--accent);
}
.hw-fin .fin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.hw-fin .fin-pad span {
  aspect-ratio: 1;
  border: 1px solid rgba(232, 184, 74, 0.3);
  background: rgba(232, 184, 74, 0.06);
}
.hw-fin .fin-chip {
  height: 10px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.4;
  width: 40%;
  align-self: center;
}

/* Assembled core */
.snap-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateZ(10px);
  width: 220px; height: 220px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
  pointer-events: none;
  transform-style: preserve-3d;
}
.snap-core.on { opacity: 1; }
.snap-core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: 0 0 60px rgba(232, 184, 74, 0.5);
  animation: ring-out var(--snap-speed, 1.8s) infinite ease-out;
}
.snap-core::after {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.3;
  animation: ring-out var(--snap-speed, 1.8s) infinite ease-out 0.6s;
}
@keyframes ring-out {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}
.snap-core-label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* Snap connectors (lines between pieces and center) */
.snap-connector {
  position: absolute;
  left: 50%; top: 50%;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent);
  transform-origin: center top;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.snap-connector.on { opacity: 1; }

/* Ecosystem side rail */
.eco-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.eco-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  position: relative;
}
.eco-card .eco-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.eco-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.eco-card p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.eco-card .corner {
  position: absolute;
  top: 12px; right: 12px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

/* Audit */
.audit-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .audit-wrap { grid-template-columns: 1fr; }
}

.audit-panel {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  padding: 40px;
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.audit-panel::before, .audit-panel::after,
.audit-panel > .cornerset::before, .audit-panel > .cornerset::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
}
.audit-panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.audit-panel::after  { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.audit-panel .cornerset::before { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.audit-panel .cornerset::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.audit-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.audit-steps .step {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
}
.audit-steps .step.done { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.audit-steps .step.active { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.audit-q-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.audit-q {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 32px;
  text-wrap: balance;
}

.audit-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: auto;
}
.audit-opt {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 18px 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border-radius: 2px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.18s;
}
.audit-opt .opt-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.audit-opt:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.audit-opt:hover .opt-sub { color: var(--accent); }
.audit-opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(232, 184, 74, 0.2);
}
.audit-opt.selected .opt-sub { color: var(--accent); }

.audit-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.audit-nav .nav-info {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.audit-btn {
  background: var(--accent);
  color: #041018;
  border: none;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 20px rgba(232, 184, 74, 0.35);
}
.audit-btn:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(232, 184, 74, 0.55); }
.audit-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.audit-back {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}
.audit-back:hover { border-color: var(--accent); color: var(--accent); }

/* Savings meter */
.meter {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border: 1px solid var(--line-strong);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meter-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.meter-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--good);
}
.meter-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  animation: pulse-dot 1.4s infinite;
  box-shadow: 0 0 8px var(--good);
}
.meter-big {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.meter-big .unit {
  font-size: 24px;
  color: var(--ink-dim);
  margin-left: 4px;
}
.meter-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--good);
}
.meter-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 70px;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bar-row .bar-lbl { color: var(--ink-dim); }
.bar-row .bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.bar-row .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-row.current .fill { background: var(--bad); box-shadow: 0 0 8px rgba(248, 113, 113, 0.5); }
.bar-row.future .fill { background: var(--good); box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.bar-row .val { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

.meter-breakdown {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mb-item .mb-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.mb-item .mb-val {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.mb-item.good .mb-val { color: var(--good); }

.meter-footnote {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* Result screen */
.audit-result {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: auto 0;
}
.result-big {
  font-family: var(--sans);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.result-big .money { color: var(--good); text-shadow: 0 0 20px rgba(52, 211, 153, 0.4); }
.result-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.result-sub {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 520px;
}
.result-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.result-row .mb-item {
  border: 1px solid var(--line);
  padding: 16px;
}

/* Proof strip */
.proof {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  margin-bottom: 48px;
}
.proof-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.proof-cell {
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}
.proof-cell:last-child { border-right: none; }
.proof-cell .sector { color: var(--accent); font-size: 10px; }
@media (max-width: 720px) { .proof-row { grid-template-columns: repeat(3, 1fr); } .proof-cell:nth-child(3n) { border-right: none; } }

/* Footer CTA band */
.footer-cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
}
.footer-cta h2 { margin: 0 0 16px; }
.footer-cta p {
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.55;
}
.footer-cta .cta-audit { margin: 0 auto; display: inline-flex; }

.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Brand flag bar — navy / silver / red hairline strip */
.flag-bar {
  display: inline-flex;
  height: 3px;
  width: 64px;
  border: 1px solid var(--line);
}
.flag-bar span { flex: 1; }
.flag-bar span:nth-child(1) { background: var(--brand-navy); }
.flag-bar span:nth-child(2) { background: var(--brand-silver); }
.flag-bar span:nth-child(3) { background: var(--brand-red); }

/* Networking motion grid */
.motion-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 620px;
}
.motion-tile { position: relative; }
.motion-tile.big { grid-row: span 2; }
.motion-tile:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.motion-tile:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
.motion-tile:nth-child(4) { grid-column: 2 / 4; grid-row: 2 / 3; }
@media (max-width: 860px) {
  .motion-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 260px); height: auto; }
  .motion-tile.big, .motion-tile:nth-child(2), .motion-tile:nth-child(3), .motion-tile:nth-child(4) { grid-column: 1 / -1; grid-row: auto; }
}
.motion-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  overflow: hidden;
}
.motion-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}
.motion-frame .mcorner {
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
  z-index: 2;
}
.motion-frame .mcorner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.motion-frame .mcorner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.motion-frame .mcorner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.motion-frame .mcorner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.motion-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 15, 0.85) 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.motion-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.motion-label {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* AI Ops */
.infra-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  margin-bottom: 32px;
  background: var(--bg-1);
}
@media (max-width: 860px) { .infra-strip { grid-template-columns: repeat(3, 1fr); } }
.infra-cell {
  padding: 20px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.infra-cell:last-child { border-right: none; }
.infra-lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--accent);
}
.infra-val {
  font-family: var(--sans); font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em; color: var(--ink);
}
.infra-sub {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.ai-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 960px) { .ai-split { grid-template-columns: 1fr; } }
.noc-card, .agents-card {
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.noc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.noc-title {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.noc-live {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--good);
}
.noc-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 6px var(--good); animation: pulse-dot 1.4s infinite; }
.noc-stream { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; }
.noc-line { display: grid; grid-template-columns: 70px 34px 1fr; gap: 10px; align-items: baseline; }
.noc-time { color: var(--ink-mute); }
.noc-sev { letter-spacing: 0.1em; font-weight: 600; }
.noc-msg { color: var(--ink-dim); }
.noc-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-top: 16px; border-top: 1px solid var(--line);
}
.noc-kpi { display: flex; flex-direction: column; gap: 4px; }
.noc-kpi .k-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.noc-kpi .k-val { font-family: var(--sans); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }

.agents-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.agent-chip {
  position: relative;
  padding: 14px 14px 14px 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.agent-chip.is-live { cursor: pointer; border-color: var(--line-strong); }
.agent-chip.is-live:hover { border-color: var(--accent); background: var(--accent-soft); }
.agent-live {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--good);
  margin-left: 8px;
  text-transform: uppercase;
}
.agent-dot { position: absolute; left: 10px; top: 18px; width: 6px; height: 6px; border-radius: 50%; }
.agent-name { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); }
.agent-silo { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--ink-mute); justify-self: end; }
.agent-role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); grid-column: 1 / -1; }
.agents-foot {
  display: flex; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
}

/* Anatomy / process */
.anatomy-list {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: step;
}
.anatomy-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  position: relative;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.anatomy-step:last-child { border-bottom: none; }
.anatomy-rail {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  position: relative;
}
.anatomy-n {
  font-family: var(--mono);
  font-size: 64px;
  line-height: 1;
  color: var(--ink-mute);
  letter-spacing: -0.02em;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  font-weight: 400;
}
.anatomy-step.is-highlight .anatomy-n {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 24px rgba(232, 184, 74, 0.25);
}
.anatomy-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
  margin-left: 32px;
}
.anatomy-step:last-child .anatomy-line { display: none; }
.anatomy-body {
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.anatomy-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; color: var(--accent);
}
.anatomy-kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim);
}
.anatomy-title {
  font-family: var(--sans);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 4px 0 6px;
  text-wrap: balance;
  max-width: 680px;
}
.anatomy-step.is-highlight .anatomy-title { color: var(--accent); }
.anatomy-copy {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}
.anatomy-check {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
  max-width: 680px;
}
@media (max-width: 720px) { .anatomy-check { grid-template-columns: 1fr 1fr; } }
.anatomy-check li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.anatomy-box {
  width: 12px; height: 12px;
  border: 1px solid var(--accent);
  position: relative;
  flex: none;
}
.anatomy-box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.anatomy-stamp {
  margin-top: 8px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  position: relative;
  box-shadow: 0 0 32px rgba(232, 184, 74, 0.2);
}
.stamp-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  flex: none;
  box-shadow: 0 0 12px var(--accent);
}
.stamp-ring::before {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%;
  border: 1px dashed var(--accent);
  animation: slow-spin 10s linear infinite;
}
.stamp-text {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}
.stamp-text span { color: var(--ink-dim); letter-spacing: 0.28em; font-size: 9px; }

@media (max-width: 720px) {
  .anatomy-step { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .anatomy-rail { flex-direction: row; align-items: center; }
  .anatomy-line { display: none; }
}
.visually-hidden { position: absolute; opacity: 0; pointer-events: none; }

/* ============================================ */
/* Meet the Agents carousel                     */
/* ============================================ */
.carousel {
  position: relative;
  margin-top: 36px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 16px;
  align-items: stretch;
}
.car-arrow {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-family: var(--mono); font-size: 32px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.car-arrow:hover { border-color: var(--accent); background: var(--accent-soft); }
.car-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  min-height: 360px;
}
.car-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 28px;
  animation: car-in 0.45s ease-out;
}
@keyframes car-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.car-portrait {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 30%, color-mix(in oklab, var(--agent-color, var(--accent)) 18%, transparent) 0%, transparent 65%),
    var(--bg-0);
  display: grid; place-items: center;
  overflow: hidden;
}
.car-portrait::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
}
.car-portrait-ring {
  position: absolute; inset: 30%;
  border-radius: 50%;
  border: 1px solid var(--agent-color, var(--accent));
  box-shadow: 0 0 30px var(--agent-color, var(--accent));
  animation: slow-spin 20s linear infinite;
}
.car-portrait-ring--2 {
  inset: 18%;
  border-style: dashed;
  animation-duration: 40s;
  animation-direction: reverse;
  box-shadow: none;
  opacity: 0.45;
}
.car-portrait-mono {
  position: relative; z-index: 2;
  font-family: var(--mono);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 500;
  color: var(--agent-color, var(--accent));
  line-height: 1;
  text-shadow: 0 0 24px var(--agent-color, var(--accent));
  letter-spacing: -0.04em;
}
.car-portrait-pulse {
  position: absolute; inset: 38%;
  border-radius: 50%;
  background: var(--agent-color, var(--accent));
  opacity: 0.06;
  animation: soft-blink 2.4s ease-in-out infinite;
}
.car-portrait-coord {
  position: absolute; bottom: 10px; right: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--ink-mute);
  text-transform: uppercase;
}

.car-body { display: flex; flex-direction: column; gap: 10px; }
.car-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.car-name {
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 2px 0 0;
  color: var(--ink);
}
.car-role {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim);
}
.car-blurb {
  color: var(--ink-dim); font-size: 15px; line-height: 1.55;
  margin: 8px 0 0; max-width: 52ch;
  text-wrap: pretty;
}
.car-skills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.car-skill {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  background: var(--bg-0);
}
.car-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.car-status { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.car-dot { width: 8px; height: 8px; border-radius: 50%; }
.car-live-link {
  color: var(--accent); text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}
.car-live-link:hover { background: var(--accent); color: var(--bg-0); }
.car-silo-tag { color: var(--ink-mute); }

.car-roster {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.car-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.car-pill:hover { border-color: var(--line-strong); color: var(--ink); }
.car-pill.is-on {
  border-color: var(--pill-color, var(--accent));
  color: var(--ink);
  background: color-mix(in oklab, var(--pill-color, var(--accent)) 14%, var(--bg-1));
}
.car-pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.car-pill-name { color: var(--ink); }
.car-pill-silo { color: var(--ink-mute); font-size: 9px; }

.car-progress {
  margin-top: 14px;
  position: relative;
  height: 20px;
  border: 1px solid var(--line);
  background: var(--bg-0);
}
.car-progress-bar {
  position: absolute; inset: 0; right: auto;
  background: var(--accent);
  opacity: 0.25;
  transition: width 0.4s ease;
}
.car-progress-txt {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 10px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
}

@media (max-width: 900px) {
  .carousel { grid-template-columns: 44px 1fr 44px; }
  .car-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .car-portrait { max-width: 240px; margin: 0 auto; }
}

/* ============================================ */
/* Local SEO section                            */
/* ============================================ */
.seo-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 960px) { .seo-split { grid-template-columns: 1fr; } }

.seo-map {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.seo-cities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .seo-cities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .seo-cities { grid-template-columns: repeat(2, 1fr); } }
.seo-city {
  background: var(--bg-1);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  overflow: hidden;
}
.seo-city.is-top { background: linear-gradient(180deg, var(--accent-soft), var(--bg-1)); }
.seo-city-pin {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-mute);
  box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 3px var(--line);
}
.seo-city.is-top .seo-city-pin { background: var(--accent); box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 3px var(--accent), 0 0 12px var(--accent); }
.seo-city-name {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em;
}
.seo-city-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.seo-city-rank { color: var(--accent); font-weight: 600; }
.seo-city-vert { color: var(--ink-mute); }

.seo-playbook { display: flex; }
.seo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.seo-list li {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.seo-list li:last-child { border-bottom: none; }
.seo-num {
  font-family: var(--mono); font-size: 22px; color: var(--accent);
  font-weight: 400;
}
.seo-lbl {
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: var(--ink); margin-bottom: 4px;
}
.seo-sub { font-size: 13px; color: var(--ink-dim); line-height: 1.5; }

/* ============================================ */
/* AI Chat Popup                                */
/* ============================================ */
.ai-launch {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 900;
  background: var(--bg-1);
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 12px 16px 12px 40px;
  font-family: var(--mono);
  cursor: pointer;
  display: flex; align-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 24px rgba(232, 184, 74,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ai-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(0,0,0,0.55), 0 0 32px rgba(232, 184, 74,0.4); }
.ai-launch.is-bump { animation: ai-bump 1.2s ease-out 2; }
@keyframes ai-bump {
  0%,100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(0); }
}
.ai-launch-ring {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ai-pulse 2.2s ease-out infinite;
}
.ai-launch-ring--2 { animation-delay: 1.1s; }
@keyframes ai-pulse {
  0% { transform: translateY(-50%) scale(1); opacity: 0.9; }
  100% { transform: translateY(-50%) scale(2.2); opacity: 0; }
}
.ai-launch-body { display: flex; align-items: center; gap: 10px; }
.ai-launch-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 8px var(--good);
  animation: soft-blink 1.8s ease-in-out infinite;
}
@keyframes soft-blink { 50% { opacity: 0.5; } }
.ai-launch-label { text-align: left; }
.ai-launch-name { font-size: 12px; letter-spacing: 0.08em; color: var(--ink); }
.ai-launch-sub { font-size: 9px; letter-spacing: 0.18em; color: var(--ink-mute); text-transform: uppercase; }

.ai-panel {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 901;
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 40px));
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(232, 184, 74,0.2);
  display: flex; flex-direction: column;
  animation: panel-in 0.25s ease-out;
}
@keyframes panel-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ai-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}
.ai-panel-ident { display: flex; align-items: center; gap: 12px; }
.ai-panel-name { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); }
.ai-panel-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--ink-mute); text-transform: uppercase; }
.ai-panel-close {
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-dim); width: 28px; height: 28px; font-size: 18px;
  line-height: 1; cursor: pointer; font-family: var(--mono);
}
.ai-panel-close:hover { border-color: var(--accent); color: var(--accent); }
.ai-panel-stream { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.ai-msg { display: flex; flex-direction: column; gap: 4px; max-width: 90%; }
.ai-msg--user { align-self: flex-end; align-items: flex-end; }
.ai-msg--assistant { align-self: flex-start; }
.ai-msg-who { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--accent); }
.ai-msg-body {
  font-size: 13.5px; line-height: 1.55;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg-0);
  color: var(--ink);
}
.ai-msg--user .ai-msg-body { background: var(--accent-soft); border-color: var(--line-strong); }
.ai-typing { display: inline-flex; gap: 4px; }
.ai-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: typing 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%,60%,100% { opacity: 0.3; } 30% { opacity: 1; } }
.ai-panel-input {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line);
}
.ai-panel-input input {
  flex: 1; padding: 10px 12px; background: var(--bg-0);
  border: 1px solid var(--line); color: var(--ink);
  font-family: var(--sans); font-size: 13px;
}
.ai-panel-input input:focus { outline: none; border-color: var(--accent); }
.ai-panel-input button {
  background: var(--accent); border: none; color: var(--bg-0);
  font-family: var(--mono); font-weight: 600; padding: 0 16px;
  cursor: pointer; font-size: 16px;
}
.ai-panel-input button:disabled { opacity: 0.4; cursor: not-allowed; }
.ai-panel-foot {
  display: flex; justify-content: space-between;
  padding: 8px 12px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute);
}
.ai-panel-foot a { color: var(--accent); text-decoration: none; }
.ai-panel-foot a:hover { text-decoration: underline; }

/* ============================================ */
/* Accessibility toolkit                        */
/* ============================================ */
.a11y-launch {
  position: fixed; left: 20px; bottom: 20px;
  z-index: 900;
  width: 44px; height: 44px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: border-color 0.2s, transform 0.2s;
}
.a11y-launch:hover { border-color: var(--accent); transform: translateY(-2px); }
.a11y-panel {
  position: fixed; left: 20px; bottom: 20px;
  z-index: 901;
  width: min(320px, calc(100vw - 40px));
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  padding: 18px;
  display: flex; flex-direction: column; gap: 16px;
  animation: panel-in 0.25s ease-out;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.a11y-head { display: flex; justify-content: space-between; align-items: flex-start; }
.a11y-title { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink); }
.a11y-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--ink-mute); text-transform: uppercase; margin-top: 2px; }
.a11y-group { display: flex; flex-direction: column; gap: 8px; }
.a11y-row-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.a11y-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.a11y-steps button {
  flex: 1; min-width: 44px;
  padding: 8px 6px; background: var(--bg-0);
  border: 1px solid var(--line); color: var(--ink-dim);
  font-family: var(--mono); font-size: 11px; cursor: pointer;
}
.a11y-steps button.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.a11y-steps button:disabled { opacity: 0.4; cursor: not-allowed; }
.a11y-toggles { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.a11y-toggle {
  display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 0; cursor: pointer; text-align: left; color: inherit;
  font-family: inherit;
}
.a11y-toggle:last-child { border-bottom: none; }
.a11y-lbl { font-family: var(--sans); font-size: 13px; color: var(--ink); }
.a11y-toggle .a11y-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; margin-top: 2px; }
.a11y-switch {
  width: 32px; height: 18px; border: 1px solid var(--line-strong);
  position: relative; flex: none; background: var(--bg-0);
}
.a11y-knob {
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; background: var(--ink-dim);
  transition: left 0.2s, background 0.2s;
}
.a11y-toggle.is-on .a11y-switch { border-color: var(--accent); }
.a11y-toggle.is-on .a11y-knob { left: 16px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.a11y-reset {
  background: var(--bg-0); border: 1px solid var(--line);
  color: var(--ink-dim); padding: 10px; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; cursor: pointer;
}
.a11y-reset:hover { border-color: var(--brand-red); color: var(--brand-red); }
.a11y-foot { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase; text-align: center; }

/* ============================================ */
/* A11y global effects                          */
/* ============================================ */
html { font-size: calc(16px * var(--a11y-text-scale, 1)); }
html.a11y-contrast {
  --ink: #FFFFFF;
  --ink-dim: #E0E8F0;
  --ink-mute: #B8C8D8;
  --line: rgba(232, 184, 74, 0.5);
  --line-strong: rgba(232, 184, 74, 0.8);
  --accent: #FFD15C;
}
html.a11y-contrast body { background: #000; }
html.a11y-dyslexia, html.a11y-dyslexia body {
  font-family: 'Atkinson Hyperlegible', 'Comic Sans MS', Verdana, sans-serif !important;
  letter-spacing: 0.02em;
  word-spacing: 0.08em;
}
html.a11y-dyslexia * { font-family: inherit !important; line-height: 1.7 !important; }
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-big-cursor, html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'><polygon points='4,2 4,38 14,28 20,40 26,36 20,24 34,24' fill='%23FFFFFF' stroke='%23000' stroke-width='2'/></svg>") 2 2, auto !important;
}

/* ============================================ */
/* Responsive hardening                         */
/* ============================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .ecosystem-stage { height: auto !important; min-height: 520px; }
  .ai-split { grid-template-columns: 1fr !important; }
  .audit-grid { grid-template-columns: 1fr !important; }
  .motion-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 720px) {
  .container { padding-left: 20px !important; padding-right: 20px !important; }
  .section { padding: 56px 0 !important; }
  .section-head { grid-template-columns: 1fr !important; gap: 20px !important; }
  .h-section { font-size: clamp(28px, 7vw, 42px) !important; }
  .hero h1 { font-size: clamp(36px, 10vw, 64px) !important; }
  .topbar { flex-wrap: wrap; gap: 12px !important; }
  .topbar-nav { display: none !important; }
  .proof-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .motion-grid { grid-template-columns: 1fr !important; }
  .ai-launch { right: 12px; bottom: 12px; padding: 10px 14px 10px 36px; }
  .ai-launch-label { display: none; }
  .ai-launch { padding: 12px 14px 12px 34px; }
  .a11y-launch { left: 12px; bottom: 12px; }
  .ai-panel, .a11y-panel { right: 10px; left: 10px; bottom: 10px; width: auto; }
  .a11y-panel { right: auto; }
  .noc-stream { font-size: 10px; }
  .agents-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(32px, 9vw, 48px) !important; }
  .proof-grid { grid-template-columns: 1fr !important; }
  .seo-cities { grid-template-columns: 1fr 1fr !important; }
  .ai-panel { height: calc(100vh - 20px); }
}

/* ============================================================
 * RP-341 — Shelly Outbound Callback Popup
 * Triggered from the Shelly card in the agents carousel OR
 * imperatively via window.openShellyCallback({ context })
 * ============================================================ */

.car-shelly-callback {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--good, #4ade80) 0%, color-mix(in srgb, var(--good, #4ade80) 70%, #000) 100%);
  color: #0a0a0a;
  border: 1px solid color-mix(in srgb, var(--good, #4ade80) 60%, #fff);
  border-radius: 6px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--good, #4ade80) 30%, transparent);
}
.car-shelly-callback:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--good, #4ade80) 45%, transparent);
}
.car-shelly-callback:active {
  transform: translateY(0);
}

.shelly-callback-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: shelly-callback-fade 0.18s ease-out;
}
@keyframes shelly-callback-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shelly-callback-panel {
  background: var(--bg, #0a0a0a);
  border: 1px solid var(--line-strong, rgba(232, 184, 74, 0.45));
  border-radius: 8px;
  padding: 28px 26px 22px;
  width: 100%;
  max-width: 460px;
  font-family: var(--font-mono, ui-monospace, monospace);
  color: var(--fg, #f5f5f5);
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--line, rgba(232, 184, 74, 0.18)),
              0 0 60px color-mix(in srgb, var(--good, #4ade80) 12%, transparent);
  animation: shelly-callback-slide 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes shelly-callback-slide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.shelly-callback-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--fg, #f5f5f5);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.shelly-callback-close:hover { opacity: 1; }

.shelly-callback-tag {
  font-size: 11px;
  color: var(--good, #4ade80);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.shelly-callback-title {
  font-size: 22px;
  margin: 0 0 10px;
  line-height: 1.2;
  font-weight: 700;
}

.shelly-callback-sub {
  font-size: 13px;
  color: color-mix(in srgb, var(--fg, #f5f5f5) 70%, transparent);
  line-height: 1.5;
  margin: 0 0 22px;
}

.shelly-callback-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.shelly-callback-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shelly-callback-label em {
  font-style: normal;
  opacity: 0.5;
  font-weight: normal;
}
.shelly-callback-label input {
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line, rgba(232, 184, 74, 0.18));
  border-radius: 4px;
  color: var(--fg, #f5f5f5);
  text-transform: none;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.shelly-callback-label input:focus {
  border-color: var(--good, #4ade80);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--good, #4ade80) 20%, transparent);
}
.shelly-callback-label input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shelly-callback-status {
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.shelly-callback-status--ok {
  background: color-mix(in srgb, var(--good, #4ade80) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--good, #4ade80) 50%, transparent);
  color: var(--good, #4ade80);
}
.shelly-callback-status--err {
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.5);
  color: #ff8080;
}

.shelly-callback-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--good, #4ade80);
  color: #0a0a0a;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.shelly-callback-submit:hover:not(:disabled) {
  background: color-mix(in srgb, var(--good, #4ade80) 85%, #fff);
}
.shelly-callback-submit:active:not(:disabled) {
  transform: scale(0.99);
}
.shelly-callback-submit:disabled {
  background: color-mix(in srgb, var(--good, #4ade80) 35%, transparent);
  cursor: not-allowed;
}

.shelly-callback-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line, rgba(232, 184, 74, 0.18));
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: color-mix(in srgb, var(--fg, #f5f5f5) 55%, transparent);
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  .shelly-callback-panel { padding: 22px 18px; }
  .shelly-callback-title { font-size: 19px; }
}
