/* SecuAgent product site — page styles built on Bizlution tokens. */

@import url("../assets/tokens.css");

:root {
  /* ---- SecuAgent overlay theme: dark spine, orange accent (default). ---- */
  --sa-accent: var(--biz-orange);           /* default orange */
  --sa-accent-hot: var(--biz-orange-hot);
  --sa-accent-soft: var(--biz-orange-soft);
  --sa-accent-tint: rgba(243,146,0,.18);

  /* Hero / dark zones */
  --sa-night-0: #0B0D11;     /* near-black */
  --sa-night-1: #11141A;
  --sa-night-2: #161A22;
  --sa-night-3: #1E232D;
  --sa-night-fg-1: #F5F4F0;
  --sa-night-fg-2: #A8AAB2;
  --sa-night-fg-3: #6E727C;
  --sa-night-bd: rgba(255,255,255,.08);
  --sa-night-bd-strong: rgba(255,255,255,.16);

  /* Light zones */
  --sa-day-bg: var(--n-0);
  --sa-day-bg-2: var(--n-50);
  --sa-day-bg-3: var(--n-100);
  --sa-day-fg-1: var(--biz-ink);
  --sa-day-fg-2: var(--n-700);
  --sa-day-fg-3: var(--n-500);
  --sa-day-bd: var(--n-200);
  --sa-day-bd-strong: var(--n-300);

  --sa-mono: var(--ff-mono);
  --sa-sans: var(--ff-sans);

  --sa-page-max: 1280px;
  --sa-section-pad-y: 96px;
}

/* === Tweakable theme overrides applied via data-mode / data-accent / data-font === */
[data-accent="blue"] {
  --sa-accent: #3B82F6;
  --sa-accent-hot: #2563EB;
  --sa-accent-soft: #93C5FD;
  --sa-accent-tint: rgba(59,130,246,.18);
}
[data-accent="green"] {
  --sa-accent: #16A375;
  --sa-accent-hot: #0E7C57;
  --sa-accent-soft: #6EE7B7;
  --sa-accent-tint: rgba(22,163,117,.18);
}

[data-font="mono"] {
  --sa-sans: 'JetBrains Mono', 'Noto Sans TC', 'PingFang TC', monospace;
}

/* Day / Night top-level mode */
html[data-mode="light"] body { background: var(--sa-day-bg); color: var(--sa-day-fg-1); }
html[data-mode="dark"]  body { background: var(--sa-night-0); color: var(--sa-night-fg-1); }

/* In dark mode, light-canvas sections flip to night colors */
html[data-mode="dark"] .surface-day {
  background: var(--sa-night-1);
  color: var(--sa-night-fg-1);
}
html[data-mode="dark"] .surface-day .day-fg-2 { color: var(--sa-night-fg-2); }
html[data-mode="dark"] .surface-day .day-fg-3 { color: var(--sa-night-fg-3); }
html[data-mode="dark"] .surface-day .day-bd { border-color: var(--sa-night-bd); }
html[data-mode="dark"] .surface-day .day-card {
  background: var(--sa-night-2);
  border-color: var(--sa-night-bd);
}

/* === Reset & base === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sa-sans);
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* === Layout helpers === */
.wrap {
  max-width: var(--sa-page-max);
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: var(--sa-section-pad-y) 0;
  position: relative;
}
.section--tight { padding: 64px 0; }
.section--dark {
  background: var(--sa-night-0);
  color: var(--sa-night-fg-1);
}
.section--day {
  background: var(--sa-day-bg);
  color: var(--sa-day-fg-1);
}

.eyebrow {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--sa-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
}

.section-h {
  font-family: var(--sa-sans);
  font-weight: 800;
  font-size: 55px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
  max-width: 22ch;
  text-wrap: balance;
}
.section-lede {
  font-size: 23px;
  line-height: 1.55;
  color: var(--sa-day-fg-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.section--dark .section-lede { color: var(--sa-night-fg-2); }

/* === Top nav === */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(11,13,17,0.82);
  border-bottom: 1px solid var(--sa-night-bd);
  color: var(--sa-night-fg-1);
}
.nav__inner {
  display: flex; align-items: center; gap: 32px;
  height: 88px;
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
}
.nav__logo img {
  height: 48px;
  /* invert + hue-rotate flips lightness (black→white) while keeping the orange
     "i" dot orange. A naive invert(1) alone turns the dot blue. */
  filter: invert(1) hue-rotate(180deg) saturate(1.25) brightness(1.05);
}
.nav__sub {
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sa-accent);
  border-left: 1px solid var(--sa-night-bd-strong);
  padding-left: 12px;
}
.nav__links {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto;
  font-size: 18px;
  font-weight: 500;
}
.nav__links a {
  color: var(--sa-night-fg-2);
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--sa-night-fg-1); }
.nav__cta {
  background: var(--sa-accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 18px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav__cta:hover { background: var(--sa-accent-hot); }
.nav__lang {
  font-size: 16px; font-weight: 600;
  color: var(--sa-night-fg-2);
  border: 1px solid var(--sa-night-bd-strong);
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-flex; gap: 6px; align-items: center;
  cursor: pointer;
  font-family: var(--sa-mono);
  letter-spacing: 0.04em;
}
.nav__lang:hover { color: var(--sa-night-fg-1); border-color: var(--sa-night-fg-1); }
.nav__lang .on { color: var(--sa-accent); }
.nav__more { position: relative; }
.nav__more-btn {
  color: var(--sa-night-fg-2);
  font-size: 18px; font-weight: 500;
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  transition: color var(--dur) var(--ease);
}
.nav__more-btn:hover { color: var(--sa-night-fg-1); }
.nav__dropdown {
  position: absolute; top: calc(100% + 14px); right: 0;
  background: rgba(16,18,24,0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--sa-night-bd-strong);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 130px;
  display: flex; flex-direction: column;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.nav__dropdown a {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--sa-night-fg-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.nav__dropdown a:hover {
  color: var(--sa-night-fg-1);
  background: rgba(255,255,255,0.06);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 19px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--sa-accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 8px 24px rgba(243,146,0,.22);
}
.btn--primary:hover { background: var(--sa-accent-hot); transform: translateY(-1px); }
.btn--ghost-dark {
  background: transparent;
  color: var(--sa-night-fg-1);
  border-color: var(--sa-night-bd-strong);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.06); border-color: var(--sa-night-fg-2); }
.btn--ghost-day {
  background: transparent;
  color: var(--sa-day-fg-1);
  border-color: var(--sa-day-bd-strong);
}
.btn--ghost-day:hover { background: var(--sa-day-bg-3); }

/* === HERO === */
.hero {
  background: var(--sa-night-0);
  color: var(--sa-night-fg-1);
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 100px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 18% 30%, var(--sa-accent-tint) 0%, transparent 70%),
    radial-gradient(40% 40% at 92% 10%, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

/* Hero layout variants (Tweakable) */
[data-hero="centered"] .hero__inner {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 56px;
}
[data-hero="centered"] .hero__visual { display: none; }
[data-hero="centered"] .hero__h { max-width: none; }
[data-hero="centered"] .hero__sub { margin-inline: auto; }
[data-hero="centered"] .hero__ctas { justify-content: center; }
[data-hero="centered"] .hero__stats { justify-content: center; }

[data-hero="cinematic"] .hero {
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 120px;
}
[data-hero="cinematic"] .hero__inner {
  grid-template-columns: 1fr;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
  gap: 64px;
}
[data-hero="cinematic"] .hero__visual { display: none; }
[data-hero="cinematic"] .hero__h {
  font-size: clamp(70px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
[data-hero="cinematic"] .hero__visual--cinematic {
  display: block;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--sa-night-bd-strong);
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--sa-night-fg-2);
  background: rgba(255,255,255,.03);
  margin-bottom: 28px;
  font-family: var(--sa-mono);
}
.hero__pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61,169,90,.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61,169,90,.18); }
  50% { box-shadow: 0 0 0 8px rgba(61,169,90,.04); }
}
.hero__h {
  font-weight: 800;
  font-size: clamp(55px, 5.4vw, 90px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 14ch;
  text-wrap: balance;
  /* Override tokens.css's h1 color (which hard-codes --biz-ink black) so the
     heading reads against the dark hero. */
  color: var(--sa-night-fg-1);
}
.hero__h .accent {
  /* High-contrast solid accent — gradient text was washing out the back half
     of the line on the dark hero. Keep brand orange, but bright + readable. */
  color: var(--sa-accent-soft);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 24px rgba(255, 181, 71, 0.18);
}
.hero__h .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.12em;
  background: var(--sa-accent);
  opacity: 0.35;
  border-radius: 2px;
  z-index: -1;
}
.hero__sub {
  font-size: 24px;
  line-height: 1.55;
  color: var(--sa-night-fg-2);
  max-width: 56ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero__ctas {
  display: flex; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--sa-night-bd);
}
.hero__stat-n {
  font-family: var(--sa-mono);
  font-weight: 600;
  font-size: 35px;
  letter-spacing: -0.02em;
  color: var(--sa-night-fg-1);
}
.hero__stat-l {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sa-night-fg-3);
  margin-top: 4px;
}

/* === Hero visual (right side): an "on-prem firewall" device card === */
.hero__visual {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  align-items: stretch;
}
.hv-card {
  background: linear-gradient(180deg, var(--sa-night-2) 0%, var(--sa-night-1) 100%);
  border: 1px solid var(--sa-night-bd);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  position: relative;
}
.hv-card__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sa-night-fg-3);
  margin-bottom: 14px;
  font-family: var(--sa-mono);
}
.hv-card__head .live {
  color: var(--ok);
  display: inline-flex; gap: 6px; align-items: center;
}
.hv-card__head .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); animation: pulse 2s ease-in-out infinite;
}
.hv-card h4 {
  margin: 0 0 12px; font-size: 21px; font-weight: 600;
  letter-spacing: -0.01em;
}
.hv-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px; align-items: center;
  padding: 8px 0;
  border-top: 1px dashed var(--sa-night-bd);
  font-size: 16px;
}
.hv-row:first-of-type { border-top: 0; }
.hv-row__l { color: var(--sa-night-fg-2); }
.hv-row__r { color: var(--sa-night-fg-1); font-family: var(--sa-mono); font-size: 16px; }
.hv-row .tok {
  background: var(--sa-accent-tint);
  color: var(--sa-accent-soft);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255,181,71,.25);
}

/* Pipeline diagram in hero */
.hv-pipe {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-night-fg-3);
  letter-spacing: 0.06em;
}
.hv-pipe span {
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--sa-night-bd);
  border-radius: 3px;
  background: rgba(255,255,255,.02);
}
.hv-pipe .arrow {
  color: var(--sa-accent);
  border: 0; background: transparent;
  padding: 0 2px;
}
.hv-pipe .gw {
  color: var(--sa-accent);
  border-color: var(--sa-accent);
  background: var(--sa-accent-tint);
}

/* === PAIN SECTION === */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.pain__item {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--sa-night-bd);
  border-radius: 6px;
  padding: 28px 24px;
  transition: all var(--dur) var(--ease);
}
.pain__item:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--sa-night-bd-strong);
  transform: translateY(-3px);
}
.pain__n {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-accent);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.pain__t { font-size: 25px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em;}
.pain__d { color: var(--sa-night-fg-2); font-size: 18px; line-height: 1.55; }

/* === ARCHITECTURE === */
.arch {
  background: var(--sa-day-bg);
  color: var(--sa-day-fg-1);
}
.arch__diagram {
  margin-top: 64px;
  background: var(--sa-day-bg-2);
  border: 1px solid var(--sa-day-bd);
  border-radius: 10px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.arch__lanes {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.arch__lane {
  background: var(--sa-day-bg);
  border: 1px solid var(--sa-day-bd);
  border-radius: 6px;
  padding: 22px 20px;
  position: relative;
}
.arch__lane--gateway {
  background: var(--biz-ink);
  color: #fff;
  border-color: var(--biz-ink);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4);
}
.arch__lane-head {
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sa-day-fg-3);
  margin-bottom: 8px;
}
.arch__lane--gateway .arch__lane-head { color: var(--sa-accent); }
.arch__lane h4 {
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.arch__lane-sub {
  font-size: 16px;
  color: var(--sa-day-fg-3);
  font-family: var(--sa-mono);
  margin-bottom: 16px;
}
.arch__lane--gateway .arch__lane-sub { color: rgba(255,255,255,0.5); }

.arch__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.arch__step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 14px 12px;
  font-size: 16px;
  position: relative;
}
.arch__step .n {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-accent);
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 6px;
}
.arch__step .t {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: #fff;
}
.arch__step .d {
  color: rgba(255,255,255,0.62);
  font-size: 16px;
  line-height: 1.45;
}

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

.arch__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-accent);
}

/* === FEATURES === */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.feature {
  border: 1px solid var(--sa-day-bd);
  border-radius: 8px;
  padding: 32px 28px;
  background: var(--sa-day-bg);
  transition: all var(--dur) var(--ease);
  position: relative;
  display: flex; flex-direction: column;
}
.feature:hover {
  box-shadow: var(--shadow-3);
  border-color: var(--sa-day-bd-strong);
  transform: translateY(-2px);
}
.feature__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sa-accent-tint);
  color: var(--sa-accent-hot);
  border-radius: 6px;
  margin-bottom: 22px;
}
.feature h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--sa-day-fg-2);
  font-size: 19px;
  line-height: 1.55;
  margin: 0 0 22px;
  flex: 1;
}
.feature__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.feature__tag {
  font-family: var(--sa-mono);
  font-size: 16px;
  background: var(--sa-day-bg-3);
  color: var(--sa-day-fg-2);
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
html[data-mode="dark"] .feature__tag {
  background: var(--sa-night-3);
  color: var(--sa-night-fg-2);
}

/* === DEMO === */
.demo {
  background: var(--sa-night-0);
  color: var(--sa-night-fg-1);
}
.demo__topbar {
  display: flex; gap: 16px;
  align-items: center;
  margin-top: 40px; margin-bottom: 32px;
}
.demo__layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}
.demo-panel {
  background: var(--sa-night-1);
  border: 1px solid var(--sa-night-bd);
  border-radius: 8px;
  display: flex; flex-direction: column;
  min-height: 640px;
}
.demo-panel__head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--sa-night-bd);
}
.demo-panel__head h3 {
  font-size: 21px; font-weight: 700; margin: 0 0 4px;
  letter-spacing: -0.01em;
  display: flex; gap: 10px; align-items: center;
}
.demo-panel__head .role {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-accent);
  border: 1px solid var(--sa-accent);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}
.demo-panel__head p {
  font-size: 16px; color: var(--sa-night-fg-3); margin: 0;
}

/* Chat (left) */
.chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex; flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
.chat__msg {
  max-width: 86%;
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1.55;
  border-radius: 10px;
  animation: msgIn 320ms var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat__msg--user {
  align-self: flex-end;
  background: var(--sa-accent);
  color: #fff;
}
.chat__msg--ai {
  align-self: flex-start;
  background: var(--sa-night-2);
  border: 1px solid var(--sa-night-bd);
  color: var(--sa-night-fg-1);
}
.chat__msg--system {
  align-self: center;
  background: transparent;
  color: var(--sa-night-fg-3);
  font-size: 16px;
  font-family: var(--sa-mono);
  letter-spacing: 0.04em;
  padding: 6px 12px;
}
.chat__msg .label {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 6px;
  display: block;
}
.chat__msg .restored {
  background: rgba(61,169,90,.18);
  color: #6ee7b7;
  padding: 0 4px;
  border-bottom: 1px dashed rgba(110,231,183,.5);
  border-radius: 2px;
}
.chat__typing {
  align-self: flex-start;
  display: inline-flex; gap: 4px;
  padding: 12px 14px;
  background: var(--sa-night-2);
  border: 1px solid var(--sa-night-bd);
  border-radius: 10px;
}
.chat__typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sa-night-fg-3);
  animation: bounce 1.2s infinite;
}
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.chat__input {
  border-top: 1px solid var(--sa-night-bd);
  padding: 14px 16px;
  display: flex; gap: 10px;
  align-items: flex-end;
}
.chat__input textarea {
  flex: 1;
  background: var(--sa-night-2);
  color: var(--sa-night-fg-1);
  border: 1px solid var(--sa-night-bd);
  border-radius: 6px;
  font-family: inherit;
  font-size: 18px;
  padding: 10px 12px;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  outline: none;
  transition: border var(--dur) var(--ease);
}
.chat__input textarea:focus {
  border-color: var(--sa-accent);
  box-shadow: 0 0 0 3px var(--sa-accent-tint);
}
.chat__send {
  background: var(--sa-accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  width: 44px; height: 44px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat__send:hover { background: var(--sa-accent-hot); }
.chat__send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Audit panel (right) */
.audit__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sa-night-bd);
  border-bottom: 1px solid var(--sa-night-bd);
}
.audit__metric {
  background: var(--sa-night-1);
  padding: 16px 18px;
}
.audit__metric-l {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sa-night-fg-3);
  margin-bottom: 6px;
}
.audit__metric-n {
  font-family: var(--sa-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sa-night-fg-1);
}
.audit__metric-d {
  font-size: 16px;
  color: var(--ok);
  font-family: var(--sa-mono);
  margin-top: 2px;
}

.audit__tabs {
  display: flex;
  padding: 0 22px;
  gap: 24px;
  border-bottom: 1px solid var(--sa-night-bd);
}
.audit__tab {
  background: transparent;
  border: 0;
  color: var(--sa-night-fg-3);
  font-size: 16px;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  position: relative;
  letter-spacing: 0.02em;
  transition: color var(--dur) var(--ease);
}
.audit__tab.is-active {
  color: var(--sa-night-fg-1);
}
.audit__tab.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--sa-accent);
}

.audit__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.audit__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.audit__table th, .audit__table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--sa-night-bd);
  vertical-align: top;
}
.audit__table th {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sa-night-fg-3);
  font-weight: 600;
  position: sticky; top: 0;
  background: var(--sa-night-1);
}
.audit__table tbody tr {
  animation: rowIn 360ms var(--ease);
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(4px); background: var(--sa-accent-tint); }
  to { opacity: 1; transform: translateY(0); background: transparent; }
}
.audit__table .raw {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: #ffb4a8;
  background: rgba(213,56,56,.12);
  padding: 2px 4px;
  border-radius: 2px;
}
.audit__table .tok {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-accent-soft);
  background: var(--sa-accent-tint);
  padding: 2px 4px;
  border-radius: 2px;
}
.audit__table .type {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-night-fg-2);
}
.audit__table .time {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-night-fg-3);
  white-space: nowrap;
}
.audit__table .status {
  font-size: 16px;
  font-weight: 600;
  color: var(--ok);
  background: rgba(61,169,90,.14);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Stats tab — bar chart */
.audit__chart {
  padding: 22px;
}
.bar {
  margin-bottom: 14px;
}
.bar__label {
  display: flex; justify-content: space-between;
  font-size: 16px;
  color: var(--sa-night-fg-2);
  margin-bottom: 6px;
}
.bar__label .n {
  font-family: var(--sa-mono);
  color: var(--sa-accent-soft);
}
.bar__track {
  height: 8px;
  background: var(--sa-night-3);
  border-radius: 4px;
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sa-accent) 0%, var(--sa-accent-soft) 100%);
  border-radius: 4px;
  transition: width 1.2s var(--ease);
}

.demo__empty {
  text-align: center;
  color: var(--sa-night-fg-3);
  padding: 80px 32px;
  font-size: 16px;
}

/* === SPECS === */
.specs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.spec {
  border: 1px solid var(--sa-day-bd);
  border-radius: 8px;
  padding: 28px 26px;
}
.spec h4 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sa-day-fg-3);
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sa-day-bd);
}
html[data-mode="dark"] .spec h4 { color: var(--sa-night-fg-3); border-color: var(--sa-night-bd); }
.spec dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 18px;
}
.spec dt {
  font-size: 16px;
  color: var(--sa-day-fg-3);
}
html[data-mode="dark"] .spec dt { color: var(--sa-night-fg-3); }
.spec dd {
  margin: 0;
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-day-fg-1);
  text-align: right;
}
html[data-mode="dark"] .spec dd { color: var(--sa-night-fg-1); }

/* === USE CASES === */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.case {
  border: 1px solid var(--sa-day-bd);
  border-radius: 8px;
  padding: 32px;
  background: var(--sa-day-bg);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.case:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); border-color: var(--sa-day-bd-strong); }
.case::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--sa-accent);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.case:hover::before { opacity: 1; }
.case__tag {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sa-accent);
}
.case h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.case p {
  color: var(--sa-day-fg-2);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.case__k {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-day-fg-3);
  padding-top: 14px;
  border-top: 1px dashed var(--sa-day-bd);
}
html[data-mode="dark"] .case__k { color: var(--sa-night-fg-3); border-color: var(--sa-night-bd); }

/* === CUSTOMERS === */
.customers {
  background: var(--biz-ink);
  color: #fff;
}
.customers__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.customers__quote {
  font-size: 35px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 24px 0 18px;
  text-wrap: balance;
  color: #fff;
}
.customers__by {
  font-size: 18px;
  color: var(--sa-night-fg-3);
  font-family: var(--sa-mono);
}
.customers__logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sa-night-bd);
  border: 1px solid var(--sa-night-bd);
}
.customer-logo {
  background: var(--biz-ink);
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 16px;
  color: var(--sa-night-fg-3);
  letter-spacing: 0.04em;
  position: relative;
  padding: 0 12px;
}
.customer-logo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--sa-night-bd);
  border-radius: 4px;
}
.customers__note {
  font-size: 16px;
  text-align: center;
  margin-top: 18px;
  color: var(--sa-night-fg-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* === RESELLER === */
.reseller__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}
.reseller-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--sa-day-bg-2);
  border: 1px solid var(--sa-day-bd);
  border-radius: 8px;
  align-items: flex-start;
}
html[data-mode="dark"] .reseller-item { background: var(--sa-night-2); border-color: var(--sa-night-bd); }
.reseller-item__icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  background: var(--sa-accent);
  color: #fff;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--sa-mono);
}
.reseller-item h4 { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.reseller-item p { margin: 0; font-size: 18px; color: var(--sa-day-fg-2); line-height: 1.5; }
html[data-mode="dark"] .reseller-item p { color: var(--sa-night-fg-2); }

.reseller__cta {
  margin-top: 40px;
  text-align: center;
}

/* === FAQ === */
.faq__list {
  margin-top: 48px;
  max-width: 880px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--sa-day-bd);
  padding: 24px 0;
  cursor: pointer;
}
html[data-mode="dark"] .faq-item { border-color: var(--sa-night-bd); }
.faq-item__q {
  display: flex; justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq-item__toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--sa-day-bd);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 28px;
  color: var(--sa-day-fg-2);
  transition: all var(--dur) var(--ease);
}
html[data-mode="dark"] .faq-item__toggle { border-color: var(--sa-night-bd); color: var(--sa-night-fg-2); }
.faq-item.is-open .faq-item__toggle {
  background: var(--sa-accent);
  color: #fff;
  border-color: var(--sa-accent);
  transform: rotate(45deg);
}
.faq-item__a {
  font-size: 19px;
  line-height: 1.6;
  color: var(--sa-day-fg-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease), padding 320ms var(--ease);
  padding-right: 56px;
}
html[data-mode="dark"] .faq-item__a { color: var(--sa-night-fg-2); }
.faq-item.is-open .faq-item__a {
  max-height: 200px;
  padding-top: 12px;
}

/* === CONTACT === */
.contact {
  background: var(--biz-ink);
  color: #fff;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__meta {
  margin-top: 36px;
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-night-fg-2);
  line-height: 1.8;
}
.form {
  background: var(--sa-night-2);
  border: 1px solid var(--sa-night-bd);
  border-radius: 10px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row--full { grid-column: 1 / -1; }
.form__row label {
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sa-night-fg-3);
}
.form input, .form select, .form textarea {
  background: var(--sa-night-1);
  border: 1px solid var(--sa-night-bd);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 18px;
  color: #fff;
  outline: none;
  transition: border var(--dur) var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--sa-accent);
  box-shadow: 0 0 0 3px var(--sa-accent-tint);
}
.form textarea { min-height: 84px; resize: vertical; font-family: inherit; }
.form__submit {
  grid-column: 1 / -1;
  background: var(--sa-accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 14px 22px;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--dur) var(--ease);
}
.form__submit:hover { background: var(--sa-accent-hot); }
.form__success {
  grid-column: 1 / -1;
  background: rgba(61,169,90,.16);
  border: 1px solid rgba(61,169,90,.4);
  color: #6ee7b7;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 18px;
  text-align: center;
}

/* === FOOTER === */
.footer {
  background: #06080B;
  color: var(--sa-night-fg-2);
  padding: 72px 0 32px;
  font-size: 18px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--sa-night-bd);
}
.footer__brand img {
  height: 56px;
  filter: invert(1) hue-rotate(180deg) saturate(1.25) brightness(1.05);
  margin-bottom: 18px;
}
.footer__tag {
  font-size: 20px;
  color: var(--sa-night-fg-1);
  font-weight: 500;
  max-width: 26ch;
  text-wrap: balance;
}
.footer__col h5 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sa-night-fg-1);
  margin: 0 0 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: var(--sa-night-fg-2); font-size: 17px; }
.footer__col a:hover { color: #fff; }
.footer__legal {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px;
  color: var(--sa-night-fg-3);
  font-family: var(--sa-mono);
  letter-spacing: 0.04em;
}

/* === EDGE ENGINEERING ===================================================== */
.edge-tracks {
  margin-top: 56px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--sa-night-bd);
  border-radius: 10px;
  padding: 28px 28px 32px;
}
.edge-tracks__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.edge-tracks__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.edge-tracks__lede {
  font-size: 16px;
  color: var(--sa-night-fg-2);
  margin: 0;
}
.edge-tracks__signal {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-night-fg-2);
  background: rgba(213,56,56,.12);
  border: 1px solid rgba(213,56,56,.3);
  padding: 8px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.edge-tracks__signal .signal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--err);
  animation: pulse 1.4s ease-in-out infinite;
}

.edge-track {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px dashed var(--sa-night-bd);
}
.edge-track:first-of-type { border-top: 0; padding-top: 8px; }
.edge-track__lane h4 {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0 8px;
  letter-spacing: -0.01em;
}
.edge-track__lane p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--sa-night-fg-2);
  margin: 0;
}
.edge-track__tag {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-family: var(--sa-mono);
}
.edge-track--fast .edge-track__tag { color: var(--err); }
.edge-track--slow .edge-track__tag { color: var(--info); }

.edge-track__viz {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--sa-night-bd);
  border-radius: 8px;
  padding: 18px 18px 14px;
}
.edge-track__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}
.edge-pill {
  font-family: var(--sa-mono);
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  color: var(--sa-night-fg-1);
  border: 1px solid var(--sa-night-bd);
  letter-spacing: 0.04em;
}
.edge-pill--hot {
  background: rgba(213,56,56,.14);
  border-color: rgba(213,56,56,.35);
  color: #ffb4a8;
}
.edge-pill--cool {
  background: rgba(47,125,194,.14);
  border-color: rgba(47,125,194,.35);
  color: #9fc8eb;
}
.edge-arrow {
  font-family: var(--sa-mono);
  font-size: 18px;
  color: var(--sa-night-fg-3);
  padding: 0 2px;
}
.edge-track__time {
  font-family: var(--sa-mono);
  font-size: 19px;
  font-weight: 600;
  color: var(--err);
  letter-spacing: 0.04em;
}
.edge-track__time--cool { color: var(--info); }

.edge__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.edge-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--sa-night-bd);
  border-radius: 8px;
  padding: 26px 22px;
  transition: all var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.edge-card:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--sa-night-bd-strong);
  transform: translateY(-3px);
}
.edge-card__tag {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sa-accent);
  font-family: var(--sa-mono);
  margin-bottom: 18px;
}
.edge-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.edge-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--sa-night-fg-2);
  margin: 0 0 18px;
  flex: 1;
}
.edge-card__k {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--ok);
  padding-top: 14px;
  border-top: 1px dashed var(--sa-night-bd);
  letter-spacing: 0.02em;
}

/* === DEMO additions: VRAM bar, LEARN tab =================================== */
.audit__metrics {
  grid-template-columns: repeat(4, 1fr) !important;
}
.vram-bar {
  height: 6px;
  background: var(--sa-night-3);
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0 4px;
}
.vram-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ok) 0%, var(--warn) 80%, var(--err) 100%);
  transition: width 600ms var(--ease);
}

.learn {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.learn__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.learn__head {
  display: flex; justify-content: space-between;
  font-size: 16px;
  color: var(--sa-night-fg-1);
  font-weight: 500;
}
.learn__pct {
  font-family: var(--sa-mono);
  color: var(--sa-accent-soft);
}
.learn__meta {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-night-fg-3);
  letter-spacing: 0.02em;
}
.learn__chart {
  width: 100%;
  height: 130px;
  background: rgba(0,0,0,.2);
  border-radius: 6px;
  border: 1px solid var(--sa-night-bd);
}
.learn__reload {
  margin-top: 4px;
}
.learn__reload-btn {
  width: 100%;
  justify-content: center;
  transition: all 300ms var(--ease);
}
.learn__reload-btn.is-running {
  background: var(--info);
}
.learn__reload-btn:disabled {
  opacity: 0.9;
  cursor: progress;
}
.learn__progress {
  height: 4px;
  background: var(--sa-night-3);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.learn__progress-fill {
  height: 100%;
  width: 30%;
  background: var(--info);
  border-radius: 2px;
  animation: progressSlide 2.4s var(--ease) forwards;
}
@keyframes progressSlide {
  from { width: 0; }
  to { width: 100%; }
}

/* === INVESTOR LAB ========================================================= */
.lab .section-h { max-width: 24ch; }
.lab__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

/* --- Terminal --- */
.lab-term {
  background: #0B0D11;
  color: #E8E8E6;
  border-radius: 10px;
  border: 1px solid #2A2D34;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.lab-term__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #11141A;
  border-bottom: 1px solid #2A2D34;
}
.lab-term__dots {
  display: flex; gap: 6px;
}
.lab-term__dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: #4A4A48;
}
.lab-term__dots span:nth-child(1) { background: #FF5F57; }
.lab-term__dots span:nth-child(2) { background: #FEBC2E; }
.lab-term__dots span:nth-child(3) { background: #28C840; }
.lab-term__title {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: #A8AAB2;
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
}
.lab-term__status {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.1em;
}
.lab-term__status .signal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

.lab-term__body {
  padding: 24px 26px;
  font-family: var(--sa-mono);
  font-size: 18px;
  line-height: 1.7;
  flex: 1;
}
.lab-term__lane-label {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: #6E727C;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.lab-term__lane-label::before {
  content: "";
  flex: 0 0 24px;
  height: 1px;
  background: #2A2D34;
}
.lab-term__lane-label--out::before { background: var(--sa-accent); }
.lab-term__lane-label--out { color: var(--sa-accent); }

.lab-term__line {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.lab-term__prompt {
  color: var(--ok);
  font-weight: 600;
  font-family: var(--sa-mono);
  white-space: nowrap;
  flex-shrink: 0;
}
.lab-term__prompt--ai { color: var(--sa-accent); }
.lab-term__text { color: #F5F4F0; }
.lab-term__text--ai {
  color: #D6D6D3;
  animation: msgIn 320ms var(--ease);
}
.lab-term__idle {
  color: #6E727C;
  font-style: italic;
}
.lab-term__idle .caret {
  display: inline-block;
  animation: caretBlink 1s steps(1) infinite;
  color: var(--ok);
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.lab-term__brain-badge {
  display: inline-block;
  font-family: var(--sa-mono);
  font-size: 15px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: 0.05em;
}
.lab-term__brain-badge.brain--v1 {
  background: rgba(47, 125, 194, 0.18);
  color: #9fc8eb;
  border: 1px solid rgba(47,125,194,.4);
}
.lab-term__brain-badge.brain--v2 {
  background: rgba(61,169,90,.18);
  color: #6ee7b7;
  border: 1px solid rgba(61,169,90,.5);
  animation: badgeFlash 600ms var(--ease);
}
@keyframes badgeFlash {
  0%   { transform: scale(0.6); box-shadow: 0 0 0 8px rgba(61,169,90,.4); }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(61,169,90,0); }
}

.lab-term__divider {
  height: 1px;
  background: #2A2D34;
  margin: 8px 0 24px;
}
.lab-term__out {
  background: rgba(243,146,0,.06);
  border: 1px dashed rgba(243,146,0,.35);
  border-radius: 6px;
  padding: 14px 16px;
  color: #D6D6D3;
  font-size: 16px;
  line-height: 1.7;
  animation: msgIn 360ms var(--ease);
}
.term-token {
  display: inline-block;
  background: rgba(243,146,0,.15);
  border: 1px solid rgba(243,146,0,.4);
  color: var(--sa-accent-soft);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--sa-mono);
  font-size: 16px;
  margin: 0 1px;
  letter-spacing: 0.02em;
}

/* The black-bar mask itself — the marquee visual on this page. */
.term-mask {
  position: relative;
  display: inline-block;
  background: #000;
  border: 1px solid #2A2D34;
  border-radius: 3px;
  padding: 0 2px;
  margin: 0 1px;
  cursor: help;
  transition: all 240ms var(--ease);
  outline: none;
}
.term-mask::before {
  /* fill the bar with diagonal hatch lines so it reads as "redacted", not "loading" */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    #000 0 5px,
    #1a1a1a 5px 6px
  );
  border-radius: 3px;
  pointer-events: none;
}
.term-mask__reveal {
  position: relative;
  z-index: 1;
  color: transparent;
  user-select: none;
  transition: color 200ms var(--ease);
}
.term-mask:hover, .term-mask:focus {
  background: rgba(213, 56, 56, 0.18);
  border-color: rgba(213, 56, 56, 0.5);
}
.term-mask:hover::before, .term-mask:focus::before { opacity: 0; }
.term-mask:hover .term-mask__reveal,
.term-mask:focus .term-mask__reveal {
  color: #ffb4a8;
  user-select: text;
}

.lab-term__hint {
  background: #11141A;
  border-top: 1px solid #2A2D34;
  padding: 10px 18px;
  font-family: var(--sa-mono);
  font-size: 16px;
  color: #A8AAB2;
}

/* --- Spinner --- */
.lab-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 700ms linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}
.lab-spinner--lg { width: 28px; height: 28px; border-width: 3px; margin-right: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Control panel --- */
.lab-ctrl {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lab-ctrl__label {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sa-day-fg-3);
  margin-bottom: 8px;
}
html[data-mode="dark"] .lab-ctrl__label { color: var(--sa-night-fg-3); }

.lab-ctrl__version {
  padding: 24px 24px 20px;
  border-radius: 10px;
  border: 1px solid var(--sa-day-bd);
  transition: all 400ms var(--ease);
  position: relative;
  overflow: hidden;
}
.lab-ctrl__version.is-v1 {
  background: linear-gradient(135deg, rgba(47,125,194,.10) 0%, rgba(47,125,194,.02) 100%);
  border-color: rgba(47,125,194,.4);
  color: var(--info);
}
.lab-ctrl__version.is-loading {
  background: rgba(243,146,0,.08);
  border-color: rgba(243,146,0,.4);
  color: var(--sa-accent-hot);
}
.lab-ctrl__version.is-v2 {
  background: linear-gradient(135deg, rgba(61,169,90,.16) 0%, rgba(61,169,90,.04) 100%);
  border-color: rgba(61,169,90,.5);
  color: var(--ok);
  box-shadow: 0 20px 40px -20px rgba(61,169,90,.4);
  animation: cardPop 600ms var(--ease);
}
@keyframes cardPop {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.lab-ctrl__big {
  font-family: var(--sa-mono);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 4px 0 12px;
  display: flex;
  align-items: center;
}
.lab-ctrl__note {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-day-fg-2);
  letter-spacing: 0.02em;
}
html[data-mode="dark"] .lab-ctrl__note { color: var(--sa-night-fg-2); }
.lab-ctrl__version.is-v1 .lab-ctrl__note { color: var(--info); }
.lab-ctrl__version.is-loading .lab-ctrl__note { color: var(--sa-accent-hot); }
.lab-ctrl__version.is-v2 .lab-ctrl__note { color: var(--ok); }

.lab-ctrl__vram {
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid var(--sa-day-bd);
  background: var(--sa-day-bg);
}
html[data-mode="dark"] .lab-ctrl__vram {
  background: var(--sa-night-2);
  border-color: var(--sa-night-bd);
}
.lab-ctrl__vram-n {
  font-family: var(--sa-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--sa-day-fg-1);
  margin-bottom: 8px;
}
html[data-mode="dark"] .lab-ctrl__vram-n { color: var(--sa-night-fg-1); }
.lab-ctrl__vram .vram-bar { margin: 4px 0 6px; }
.lab-ctrl__meta {
  font-family: var(--sa-mono);
  font-size: 16px;
  color: var(--sa-day-fg-3);
  letter-spacing: 0.02em;
}
html[data-mode="dark"] .lab-ctrl__meta { color: var(--sa-night-fg-3); }

.lab-ctrl__btn {
  padding: 16px 20px;
  justify-content: center;
  font-size: 18px;
  width: 100%;
}
.lab-ctrl__btn.is-done {
  background: var(--ok);
}
.lab-ctrl__btn--reload.is-v1 {
  background: var(--info);
  box-shadow: 0 8px 24px rgba(47,125,194,.22);
}
.lab-ctrl__btn--reload.is-v1:hover { background: #2566a6; }
.lab-ctrl__btn--reload.is-loading {
  background: var(--sa-accent-hot);
  cursor: progress;
}
.lab-ctrl__btn--reload.is-v2 {
  background: var(--ok);
  box-shadow: 0 8px 24px rgba(61,169,90,.25);
}
.lab-ctrl__btn--reload.is-v2:hover { background: #2e8a47; }

/* === Hamburger button (hidden on desktop) === */
.nav__hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  color: var(--sa-night-fg-1);
  border-radius: 6px;
  transition: background var(--dur) var(--ease);
  flex-shrink: 0;
}
.nav__hamburger:hover { background: rgba(255,255,255,.07); }

/* Desktop CTA — hidden when hamburger is shown */
.nav__cta--desk { display: inline-flex; }

/* === Mobile full-screen menu === */
.nav__mobile {
  position: fixed;
  top: 88px; left: 0; right: 0; bottom: 0;
  background: rgba(11,13,17,0.97);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  z-index: 29;
  display: flex; flex-direction: column;
  animation: mobileMenuIn 0.22s var(--ease) both;
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav__mobile-links {
  display: flex; flex-direction: column;
  padding: 8px 0;
  flex: 1;
}
.nav__mobile-links a {
  padding: 18px 24px;
  font-size: 20px; font-weight: 500;
  color: var(--sa-night-fg-2);
  border-bottom: 1px solid var(--sa-night-bd);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__mobile-links a:hover {
  color: var(--sa-night-fg-1);
  background: rgba(255,255,255,.04);
}
.nav__mobile-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--sa-night-bd-strong);
}
.nav__mobile-cta {
  flex: 1;
  justify-content: center;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { order: 2; }
  .pain__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid, .specs__grid { grid-template-columns: 1fr; }
  .demo__layout { grid-template-columns: 1fr; }
  .arch__lanes { grid-template-columns: 1fr; }
  .arch__steps { grid-template-columns: repeat(2, 1fr); }
  .cases__grid, .reseller__grid { grid-template-columns: 1fr; }
  .customers__inner, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cta--desk { display: none; }
  .edge__grid { grid-template-columns: repeat(2, 1fr); }
  .edge-track { grid-template-columns: 1fr; }
  .edge-tracks__head { flex-direction: column; }
  .audit__metrics { grid-template-columns: repeat(2, 1fr) !important; }
  .lab__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav__inner { gap: 12px; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .hero__h { font-size: 42px; }
  .hero__sub { font-size: 18px; }
  .hero__stat-n { font-size: 26px; }
  .hero__stats { gap: 24px; padding-top: 20px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { justify-content: center; }
  .section { padding: 48px 0; }
  .section-h { font-size: 34px; }
  .section-lede { font-size: 18px; }
  .form { grid-template-columns: 1fr; }
  .pain__grid { grid-template-columns: 1fr; }
  .arch__steps { grid-template-columns: 1fr; }
  .edge__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .audit__metrics { grid-template-columns: 1fr !important; }
  .hv-card { padding: 14px 16px; }
  .nav__mobile { top: 88px; }
}
