/* ==========================================================================
   DIRVA AI — Design System
   Detection · Intelligence · Response · Vulnerability · Automation
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --ink:        #080A0D;
  --ink-2:      #0D1117;
  --ink-3:      #11161D;
  --graphite:   #181D24;
  --graphite-2: #1F252E;

  /* Accent */
  --amber:      #FFB000;
  --amber-deep: #FF8A00;
  --amber-glow: #FFC44D;

  /* Text */
  --white:      #F4F6F8;
  --silver:     #D9DDE3;
  --muted:      #8D96A3;

  /* Status */
  --critical:   #FF4D4F;
  --high:       #FF8A00;
  --medium:     #FFD166;
  --resolved:   #3DDC97;
  --info:       #5AA9FF;

  /* Lines */
  --line:       rgba(217, 221, 227, 0.10);
  --line-strong:rgba(217, 221, 227, 0.18);
  --line-amber: rgba(255, 176, 0, 0.38);

  /* Type */
  --font-display: "Space Grotesk", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;

  /* Layout */
  --wrap:       1200px;
  --gutter:     24px;
  --radius:     10px;
  --radius-lg:  16px;

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --dur:        .45s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
::selection { background: var(--amber); color: var(--ink); }

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

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 999;
  background: var(--amber); color: var(--ink); padding: 10px 18px;
  border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 14px; }

.amber { color: var(--amber); }
.mono {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.section--alt   { background: var(--ink-2); }
.section--alt-2 { background: var(--ink-3); }
.section--hairline { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

h1, .h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); }
h2, .h2 { font-size: clamp(1.9rem, 3.5vw, 2.85rem); }
h3, .h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.01em; }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--muted); margin-top: 20px; max-width: 64ch; }
.section-head--center .lede { margin-inline: auto; }
.body-text { color: var(--muted); }
.body-text + .body-text { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--amber); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(255, 176, 0, 0);
}
.btn--primary:hover {
  background: var(--amber-glow);
  box-shadow: 0 10px 34px -10px rgba(255, 176, 0, .55);
  transform: translateY(-1px);
}
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-amber); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); background: rgba(255,176,0,.06); }
.btn--quiet { background: transparent; color: var(--silver); border-color: var(--line-strong); }
.btn--quiet:hover { border-color: var(--silver); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: .86rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.section-head--center .btn-row { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--amber); font-weight: 600; font-size: .92rem;
  font-family: var(--font-display);
}
.textlink svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.is-stuck {
  background: rgba(8, 10, 13, .78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.nav__logo { flex: none; display: flex; align-items: center; }
.nav__logo svg { height: 30px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
  position: relative; padding: 10px 14px; border-radius: 8px;
  font-size: .92rem; font-weight: 500; color: var(--silver);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__link:hover { color: var(--white); background: rgba(217,221,227,.05); }
.nav__link.is-active { color: var(--amber); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1.5px; background: var(--amber); border-radius: 2px;
}
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* dropdown */
.nav__item { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: -8px;
  min-width: 290px; padding: 10px;
  background: var(--ink-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel a {
  display: block; padding: 10px 12px; border-radius: 8px;
  transition: background .2s var(--ease);
}
.nav__panel a:hover { background: rgba(255,176,0,.07); }
.nav__panel strong {
  display: block; font-family: var(--font-display); font-size: .92rem;
  font-weight: 600; color: var(--white);
}
.nav__panel span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.nav__panel a:hover strong { color: var(--amber); }

/* mobile */
.nav__toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 9px;
  background: transparent; border: 1px solid var(--line-strong);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav__toggle span {
  display: block; width: 17px; height: 1.5px; background: var(--silver);
  position: relative; transition: background .2s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--silver);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 72px 0 0; z-index: 99;
  background: var(--ink); padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); }
.mobile-menu__group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.mobile-menu__group > p {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 12px;
}
.mobile-menu__group a {
  display: block; padding: 9px 0; font-size: 1.02rem; color: var(--silver);
  font-family: var(--font-display); font-weight: 500;
}
.mobile-menu .btn-row { margin-top: 26px; }
.mobile-menu .btn { flex: 1; }
body.menu-open { overflow: hidden; }

@media (max-width: 1240px) {
  .nav__inner { gap: 16px; }
  .nav__link { padding: 10px 10px; font-size: .88rem; }
  .nav__actions .btn--quiet { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding: clamp(60px, 8vw, 90px) 0 clamp(60px, 7vw, 100px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -10% -10% 0;
  background-image:
    linear-gradient(to right, rgba(217,221,227,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217,221,227,.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(120% 85% at 70% 35%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 85% at 70% 35%, #000 0%, transparent 72%);
}
.hero__glow {
  position: absolute; width: 780px; height: 780px; border-radius: 50%;
  right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(255,176,0,.13) 0%, rgba(255,138,0,.05) 38%, transparent 68%);
  filter: blur(14px);
}
.hero__glow--2 {
  left: -280px; bottom: -420px; top: auto; right: auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(90,169,255,.07) 0%, transparent 66%);
}
.hero__inner {
  position: relative; display: grid; gap: clamp(44px, 5vw, 68px);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
}
.hero h1 { margin-bottom: 0; }
.hero h1 .amber-dot { color: var(--amber); }
.hero__sub {
  font-family: var(--font-display); font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 600; color: var(--white); margin-top: 22px; letter-spacing: -0.01em;
}
.hero__sub span { color: var(--muted); }
.hero__desc { margin-top: 20px; color: var(--muted); max-width: 54ch; font-size: 1.03rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero__trust li {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--muted);
}
.hero__trust li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 8px rgba(255,176,0,.8);
}

/* centered, typographic hero (no side visual) */
.hero--center { min-height: 82vh; text-align: center; }
.hero--center .hero__inner { grid-template-columns: 1fr; justify-items: center; }
.hero--center .hero__content { max-width: 880px; display: flex; flex-direction: column; align-items: center; }
.hero--center .hero__logo { width: min(320px, 70%); height: auto; margin-bottom: 36px; filter: drop-shadow(0 8px 30px rgba(255,176,0,.18)); }
.hero--center h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); }
.hero--center .hero__desc { max-width: 60ch; }
.hero--center .btn-row { justify-content: center; }
.hero--center .hero__trust { justify-content: center; width: 100%; max-width: 760px; }
.hero--center .hero__grid { mask-image: radial-gradient(90% 80% at 50% 30%, #000 0%, transparent 72%); -webkit-mask-image: radial-gradient(90% 80% at 50% 30%, #000 0%, transparent 72%); }
.hero--center .hero__glow { right: auto; left: 50%; top: -420px; transform: translateX(-50%); width: 900px; height: 900px; }
.hero--center .hero__glow--2 { left: 50%; transform: translateX(-50%); top: auto; bottom: -520px; width: 700px; height: 700px; }
@media (max-width: 720px) { .hero--center .hero__trust { gap: 8px 16px; } .hero--center .hero__trust li { font-size: .78rem; } }

/* Hero visual */
.hero-viz {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(24,29,36,.9), rgba(13,17,23,.6));
  padding: 18px; box-shadow: 0 40px 100px -50px rgba(0,0,0,1);
}
.hero-viz__chrome {
  display: flex; align-items: center; gap: 10px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.hero-viz__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--graphite-2); }
.hero-viz__dot--live { background: var(--resolved); box-shadow: 0 0 8px rgba(61,220,151,.9); animation: blink 2.4s infinite; }
.hero-viz__title { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.hero-viz__status { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; color: var(--amber); letter-spacing: .1em; }
.hero-viz svg { width: 100%; height: auto; }
.hero-viz .hv__topo svg { max-width: 340px; margin-inline: auto; }
.hero-viz__legend {
  display: flex; justify-content: space-between; gap: 8px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.hero-viz__stage {
  flex: 1; text-align: center; font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 7px 4px; border-radius: 6px;
  border: 1px solid transparent; transition: all .5s var(--ease);
}
.hero-viz__stage.is-active {
  color: var(--amber); border-color: var(--line-amber);
  background: rgba(255,176,0,.07);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* animated svg bits */
.viz-node { opacity: 0; animation: nodeIn .6s var(--ease) forwards; }
.viz-scan { animation: scanSweep 7s linear infinite; }
.viz-pulse { transform-origin: center; animation: pulseRing 2.6s var(--ease) infinite; }
.viz-dash { stroke-dasharray: 4 6; animation: dashFlow 2.2s linear infinite; }
@keyframes nodeIn { to { opacity: 1; } }
@keyframes scanSweep { 0% { transform: translateX(-12%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(112%); opacity: 0; } }
@keyframes pulseRing { 0% { r: 7; opacity: .85; } 70% { r: 26; opacity: 0; } 100% { r: 26; opacity: 0; } }
@keyframes dashFlow { to { stroke-dashoffset: -20; } }

/* hero: topology + live finding card */
.hv { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; }
.hv__topo { padding: 4px; }
.hv__card {
  border: 1px solid var(--line); border-radius: 12px; background: rgba(8,10,13,.55); padding: 16px;
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.hero-viz[data-stage="0"] .hv__card { border-color: rgba(255,77,79,.35); box-shadow: 0 0 0 1px rgba(255,77,79,.06), 0 18px 40px -30px rgba(255,77,79,.5); }
.hero-viz[data-stage="1"] .hv__card { border-color: rgba(90,169,255,.4); box-shadow: 0 0 0 1px rgba(90,169,255,.06), 0 18px 40px -30px rgba(90,169,255,.5); }
.hero-viz[data-stage="2"] .hv__card { border-color: rgba(61,220,151,.4); box-shadow: 0 0 0 1px rgba(61,220,151,.06), 0 18px 40px -30px rgba(61,220,151,.5); }
.hv__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hv__head .finding__cve { margin-left: auto; font-size: .74rem; color: var(--muted); }
.hv__title { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--white); margin: 12px 0 12px; line-height: 1.35; }
.hv__log { display: grid; gap: 7px; align-content: start; min-height: 232px; }
.hv__log li {
  display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; color: var(--muted); line-height: 1.45;
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); max-height: 0; overflow: hidden;
}
.hv__tag { flex: none; min-width: 58px; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); padding-top: 3px; }
.hv__tag--blue { color: var(--info); } .hv__tag--green { color: var(--resolved); }
.hv__risk { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.hv__risk .mono { color: var(--muted); font-size: .62rem; }
.hv__meter { flex: 1; height: 5px; border-radius: 3px; background: rgba(217,221,227,.08); overflow: hidden; }
.hv__meter span { display: block; height: 100%; width: 96%; border-radius: 3px; background: var(--critical); transition: width .9s var(--ease), background .9s var(--ease); }
.hero-viz[data-stage="1"] .hv__meter span { width: 62%; background: var(--high); }
.hero-viz[data-stage="2"] .hv__meter span { width: 8%; background: var(--resolved); }
.hv__risklabel { font-size: .74rem; font-weight: 600; min-width: 84px; text-align: right; }
.hv__risklabel b { display: none; }

/* stage gating: hv-sN accumulates (>= N); hv-sNonly shows only at stage N */
.hero-viz[data-stage="0"] .hv-s0, .hero-viz[data-stage="1"] .hv-s0, .hero-viz[data-stage="1"] .hv-s1,
.hero-viz[data-stage="2"] .hv-s0, .hero-viz[data-stage="2"] .hv-s1, .hero-viz[data-stage="2"] .hv-s2 { opacity: 1; transform: none; max-height: 60px; }
.hv-s0only, .hv-s1only, .hv-s2only, .hv-s01 { opacity: 0; transition: opacity .45s var(--ease); }
.hero-viz[data-stage="0"] .hv-s0only, .hero-viz[data-stage="1"] .hv-s1only, .hero-viz[data-stage="2"] .hv-s2only,
.hero-viz[data-stage="0"] .hv-s01, .hero-viz[data-stage="1"] .hv-s01 { opacity: 1; }
.hv__head .sev, .hv__risklabel b { display: none; }
.hero-viz[data-stage="0"] .hv__head .hv-s0only, .hero-viz[data-stage="1"] .hv__head .hv-s1only, .hero-viz[data-stage="2"] .hv__head .hv-s2only,
.hero-viz[data-stage="0"] .hv__risklabel .hv-s0only, .hero-viz[data-stage="1"] .hv__risklabel .hv-s1only, .hero-viz[data-stage="2"] .hv__risklabel .hv-s2only { display: inline-flex; }
.hv-target__box { stroke: var(--amber); stroke-width: 1.2; transition: stroke .5s var(--ease); }
.hv-target__glyph { stroke: var(--amber); transition: stroke .5s var(--ease); }
.hero-viz[data-stage="1"] .hv-target__box, .hero-viz[data-stage="1"] .hv-target__glyph { stroke: var(--info); }
.hero-viz[data-stage="2"] .hv-target__box, .hero-viz[data-stage="2"] .hv-target__glyph { stroke: var(--resolved); }
@media (max-width: 560px) { .hv { grid-template-columns: 1fr; } .hv__head .finding__cve { margin-left: 0; } }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; overflow: hidden;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,176,0,.08), transparent 60%);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--line-amber);
  box-shadow: 0 0 0 1px rgba(255,176,0,.08), 0 24px 60px -34px rgba(255,176,0,.35);
  transform: translateY(-3px);
}
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255,176,0,.09); border: 1px solid var(--line-amber);
  color: var(--amber);
}
.card__icon svg { width: 20px; height: 20px; }
.card .textlink { margin-top: 18px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- DIRVA acronym ---------- */
.acronym { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.acronym__item {
  position: relative; text-align: left; cursor: pointer; background: transparent;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 34px 26px 38px; display: block; width: 100%;
  transition: background var(--dur) var(--ease);
}
.acronym__item:last-child { border-right: 0; }
.acronym__item::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.acronym__letter {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 6vw, 5.2rem); line-height: 1;
  color: var(--graphite-2); letter-spacing: -0.04em;
  transition: color .45s var(--ease), text-shadow .45s var(--ease);
}
.acronym__name {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; color: var(--white); margin-top: 14px;
}
.acronym__desc {
  display: block; color: var(--muted); font-size: .88rem; line-height: 1.55;
  margin-top: 10px; max-width: 30ch;
  opacity: .42; transition: opacity .45s var(--ease);
}
.acronym__item:hover, .acronym__item:focus-visible, .acronym__item.is-active { background: rgba(255,176,0,.035); }
.acronym__item:hover::before, .acronym__item:focus-visible::before, .acronym__item.is-active::before { transform: scaleX(1); }
.acronym__item:hover .acronym__letter,
.acronym__item:focus-visible .acronym__letter,
.acronym__item.is-active .acronym__letter {
  color: var(--amber); text-shadow: 0 0 40px rgba(255,176,0,.45);
}
.acronym__item:hover .acronym__desc,
.acronym__item:focus-visible .acronym__desc,
.acronym__item.is-active .acronym__desc { opacity: 1; }

/* ---------- Flow / pipeline ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.flow__step {
  position: relative; padding: 26px 22px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.flow__step:hover { border-color: var(--line-amber); transform: translateY(-3px); }
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 50%; width: 14px; height: 1px;
  background: var(--line-strong); z-index: 1;
}
.flow__num {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  color: var(--amber); display: block; margin-bottom: 14px;
}
.flow__step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.flow__step p { font-size: .87rem; color: var(--muted); line-height: 1.55; }

/* ---------- Node constellation (What is DIRVA) ---------- */
.constellation { position: relative; }
.constellation svg { width: 100%; height: auto; }

/* ---------- Platform rail ---------- */
.rail { position: relative; padding-top: 18px; }
.rail__track {
  position: absolute; left: 6%; right: 6%; top: 18px; height: 2px; overflow: hidden; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,176,0,.35) 12%, rgba(255,176,0,.35) 88%, transparent);
}
.rail__pulse {
  position: absolute; top: 0; left: 0; width: 120px; height: 100%;
  background: linear-gradient(90deg, transparent, var(--amber-glow), transparent);
  box-shadow: 0 0 14px rgba(255,196,77,.7);
  animation: railPulse 5.5s linear infinite;
}
.rail__pulse--2 { animation-delay: 2.75s; }
@keyframes railPulse { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw)); } }
.rail__stages { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.rail__stage { position: relative; padding-top: 26px; }
.rail__node {
  position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--amber);
  box-shadow: 0 0 0 4px rgba(255,176,0,.10), 0 0 16px rgba(255,176,0,.45);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.rail__stage:hover .rail__node { background: var(--amber); box-shadow: 0 0 0 6px rgba(255,176,0,.14), 0 0 24px rgba(255,176,0,.8); }
.rail__card {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 8px;
  padding: 20px 18px 18px; border-radius: 14px;
  background: linear-gradient(170deg, rgba(24,29,36,.85), rgba(13,17,23,.75));
  border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.rail__card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255,176,0,.55), transparent);
  opacity: 0; transition: opacity .35s var(--ease);
}
.rail__stage:hover .rail__card { border-color: var(--line-amber); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(255,176,0,.45); }
.rail__stage:hover .rail__card::before { opacity: 1; }
.rail__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.rail__icon {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,176,0,.09); border: 1px solid var(--line-amber); color: var(--amber);
}
.rail__icon svg { width: 17px; height: 17px; }
.rail__letter {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1;
  color: var(--graphite-2); letter-spacing: -0.03em; transition: color .35s var(--ease);
}
.rail__stage:hover .rail__letter { color: var(--amber); }
.rail__card strong { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--white); }
.rail__desc { font-size: .84rem; color: var(--muted); line-height: 1.5; flex: 1; }
.rail__chip { align-self: flex-start; margin-top: 6px; }

@media (max-width: 1080px) {
  .rail__stages { gap: 10px; }
  .rail__card { padding: 16px 14px 14px; }
  .rail__desc { font-size: .8rem; }
  .rail__letter { font-size: 1.3rem; }
}
@media (max-width: 900px) {
  .rail { padding-top: 0; padding-left: 26px; }
  .rail__track { left: 6px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto;
    background: linear-gradient(180deg, transparent, rgba(255,176,0,.35) 8%, rgba(255,176,0,.35) 92%, transparent); }
  .rail__pulse { width: 100%; height: 120px; background: linear-gradient(180deg, transparent, var(--amber-glow), transparent); animation-name: railPulseV; }
  @keyframes railPulseV { from { transform: translateY(-140px); } to { transform: translateY(100vh); } }
  .rail__stages { grid-template-columns: 1fr; gap: 12px; }
  .rail__stage { padding-top: 0; }
  .rail__node { left: -26px; top: 22px; margin-left: 0; }
}

/* ---------- Split layout ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.split--reverse > *:first-child { order: 2; }
.split__list { margin-top: 30px; display: grid; gap: 18px; }
.split__list li { display: flex; gap: 14px; align-items: flex-start; }
.split__list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 6px; margin-top: 2px;
  display: grid; place-items: center;
  background: rgba(255,176,0,.1); border: 1px solid var(--line-amber); color: var(--amber);
}
.split__list .tick svg { width: 12px; height: 12px; }
.split__list strong { display: block; color: var(--white); font-family: var(--font-display); font-size: .98rem; font-weight: 600; }
.split__list span { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ---------- Panel (fake UI) ---------- */
.panel {
  background: linear-gradient(165deg, var(--graphite), var(--ink-2));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 90px -46px rgba(0,0,0,.95);
}
.panel__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: rgba(8,10,13,.45);
}
.panel__bar .mono { color: var(--muted); }
.panel__body { padding: 22px; }

.sev {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px; border: 1px solid;
}
.sev::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.sev--critical { color: var(--critical); border-color: rgba(255,77,79,.35); background: rgba(255,77,79,.09); }
.sev--high     { color: var(--high);     border-color: rgba(255,138,0,.35); background: rgba(255,138,0,.09); }
.sev--medium   { color: var(--medium);   border-color: rgba(255,209,102,.3); background: rgba(255,209,102,.08); }
.sev--resolved { color: var(--resolved); border-color: rgba(61,220,151,.3);  background: rgba(61,220,151,.08); }
.sev--info     { color: var(--info);     border-color: rgba(90,169,255,.3);  background: rgba(90,169,255,.08); }

.finding__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.finding__cve { font-family: var(--font-mono); font-size: .82rem; color: var(--white); letter-spacing: .04em; }
.finding h3 { font-size: 1.1rem; margin-bottom: 16px; }
.finding__meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.finding__meta div { background: var(--ink-2); padding: 13px 16px; }
.finding__meta dt { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.finding__meta dd { margin: 0; font-size: .89rem; color: var(--silver); }
.finding__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.agent-log { display: grid; gap: 10px; margin-top: 20px; }
.agent-log li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(8,10,13,.4);
  font-size: .86rem; color: var(--muted);
}
.agent-log .tag {
  flex: none; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber); padding-top: 2px; min-width: 88px;
}
.agent-log li strong { color: var(--silver); font-weight: 500; }

/* ---------- Integration map ---------- */
.intmap { position: relative; }
.intmap svg { width: 100%; height: auto; }
.intmap__chip {
  fill: var(--ink-2); stroke: var(--line-strong);
  transition: stroke .35s var(--ease), fill .35s var(--ease);
}
.intmap__g:hover .intmap__chip { stroke: var(--amber); fill: rgba(255,176,0,.07); }
.intmap__g:hover text { fill: var(--amber); }
.intmap text { transition: fill .35s var(--ease); }

.intmap__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.intmap__scroll::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .intmap--net .intmap__scroll { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .intmap--net svg { width: 720px; max-width: none; }
  .intmap--net .intmap__legend { justify-content: flex-start; }
}
.intmap__ep rect { transition: stroke .3s var(--ease); }
.intmap__ep:hover rect { stroke: var(--amber); }
.intmap__ep:hover g { stroke: var(--amber); }
.intmap__tag { pointer-events: none; }
.intmap__ring { transform-origin: center; transform-box: fill-box; animation: hubSpin 24s linear infinite; }
@keyframes hubSpin { to { transform: rotate(360deg); } }
.intmap__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 18px; }
.intmap__legend li { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.intmap__sw { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.intmap__sw--agent { background: #11161D; border: 1.5px solid var(--amber); box-shadow: 0 0 0 2px rgba(255,176,0,.18); }
.intmap__agent circle, .intmap__agent rect { transition: all .3s var(--ease); }
.intmap__agent:hover > rect:first-child { fill: rgba(255,176,0,.08); }
.method-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.method-row span {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted);
  transition: all .3s var(--ease);
}
.method-row span:hover { border-color: var(--line-amber); color: var(--amber); }

/* ---------- Deployment boundary ---------- */
.boundary {
  border: 1px dashed var(--line-amber); border-radius: var(--radius-lg);
  padding: 26px; position: relative; background: rgba(255,176,0,.018);
}
.boundary__label {
  position: absolute; top: -11px; left: 22px; background: var(--ink-2); padding: 0 10px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber);
}
.appliance {
  text-align: center; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line-amber); background: rgba(255,176,0,.06); margin-bottom: 22px;
}
.appliance strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.appliance span { font-size: .82rem; color: var(--muted); }
.boundary__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.boundary__grid li {
  padding: 13px 10px; text-align: center; border-radius: 8px;
  border: 1px solid var(--line); background: var(--ink); font-size: .82rem; color: var(--silver);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.boundary__grid li:hover { border-color: var(--line-amber); color: var(--amber); }

/* ---------- Finding → Understanding → Human approval → Acting ---------- */
.fua {
  position: relative; display: grid; gap: 12px; align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(0, .62fr) minmax(0, 1fr) minmax(0, .62fr) minmax(0, 1.05fr) minmax(0, .62fr) minmax(0, 1fr);
}
.fua__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fua__label {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--white);
}
.fua__label i { font-style: normal; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; color: var(--amber); }
.fua__col--gate .fua__label { color: var(--amber); }
.fua__card {
  flex: 1; padding: 14px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(24,29,36,.85), rgba(13,17,23,.75));
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fua__card:hover { transform: translateY(-3px); }
.fua__card--raw:hover { border-color: rgba(255,77,79,.4); }
.fua__card--ctx { border-color: var(--line-amber); }
.fua__card--act { border-color: rgba(61,220,151,.3); }
.fua__card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fua__card-head .mono { color: var(--muted); font-size: .6rem; }
.fua__cve { font-family: var(--font-mono); font-size: .98rem; color: var(--white); letter-spacing: .04em; margin-bottom: 8px; }
.fua__kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: .78rem; }
.fua__kv dt { color: var(--muted); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.fua__kv dd { margin: 0; color: var(--silver); }
.fua__muted { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); line-height: 1.45; }
.fua__facts { display: grid; gap: 7px; }
.fua__facts li { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: var(--silver); line-height: 1.35; }
.fua__facts svg { flex: none; width: 13px; height: 13px; margin-top: 2px; color: var(--amber); }
.fua__steps { display: grid; gap: 8px; }
.fua__steps li { display: flex; gap: 9px; align-items: flex-start; font-size: .78rem; color: var(--silver); line-height: 1.35; }
.fua__steps b { flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,220,151,.15); border: 1px solid rgba(61,220,151,.5); }
.fua__steps b::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--resolved); }

/* the human gate card */
.fua__card--gate {
  border: 1px solid var(--amber); background: linear-gradient(170deg, rgba(255,176,0,.10), rgba(13,17,23,.85));
  box-shadow: 0 0 0 4px rgba(255,176,0,.08), 0 30px 60px -34px rgba(255,176,0,.7);
}
.fua__card--gate:hover { transform: translateY(-3px); box-shadow: 0 0 0 5px rgba(255,176,0,.12), 0 34px 64px -34px rgba(255,176,0,.8); }
.fua__person { display: flex; gap: 10px; align-items: flex-start; }
.fua__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); box-shadow: 0 0 0 3px rgba(255,176,0,.22); }
.fua__avatar svg { width: 18px; height: 18px; }
.fua__person strong { display: block; font-family: var(--font-display); font-size: .84rem; font-weight: 600; color: var(--white); }
.fua__person span { font-size: .76rem; color: var(--silver); line-height: 1.4; }
.fua__decide { display: flex; gap: 8px; margin-top: 12px; }
.fua__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 8px; font-family: var(--font-display); font-weight: 600; font-size: .8rem; }
.fua__btn svg { width: 13px; height: 13px; }
.fua__btn--approve { background: var(--amber); color: var(--ink); position: relative; }
.fua__btn--approve::after { content: ""; position: absolute; inset: -3px; border-radius: 11px; border: 1.5px solid var(--amber); opacity: 0; animation: approvePulse 2.4s var(--ease) infinite; }
@keyframes approvePulse { 0% { opacity: .8; transform: scale(.96); } 70% { opacity: 0; transform: scale(1.12); } 100% { opacity: 0; } }
.fua__btn--reject { border: 1px solid var(--line-strong); color: var(--muted); }
.fua__muted--gate { display: flex; gap: 7px; align-items: flex-start; color: var(--amber); border-top-color: var(--line-amber); }
.fua__muted--gate svg { flex: none; width: 12px; height: 12px; margin-top: 2px; }
.fua__pending { display: none; }

/* agent connectors */
.fua__link { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; padding-top: 32px; min-width: 0; }
.fua__line {
  position: absolute; left: -8px; right: -8px; top: 50%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 12px); opacity: .6;
  animation: fuaFlow 1.4s linear infinite;
}
.fua__line::after { content: ""; position: absolute; right: -2px; top: -4px; border-left: 7px solid var(--amber); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
@keyframes fuaFlow { to { background-position: 12px 0; } }
.fua__agent {
  position: relative; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 11px; width: 100%;
  background: var(--ink-3); border: 1px solid var(--amber);
  box-shadow: 0 0 0 3px rgba(255,176,0,.08), 0 16px 34px -22px rgba(255,176,0,.6);
}
.fua__agent-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,176,0,.12); border: 1px solid var(--line-amber); color: var(--amber); }
.fua__agent-ico svg { width: 13px; height: 13px; }
.fua__agent strong { display: block; font-family: var(--font-display); font-size: .78rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.fua__aid { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .1em; color: var(--amber); margin-top: 2px; }
.fua__aid svg { width: 8px; height: 8px; }
.fua__cap { position: relative; font-size: .68rem; color: var(--muted); text-align: center; line-height: 1.3; }
.fua__tools { position: relative; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.fua__tool { font-size: .62rem; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--ink); color: var(--muted); white-space: nowrap; }
.fua__link--after .fua__line { background: repeating-linear-gradient(90deg, var(--resolved) 0 6px, transparent 6px 12px); }
.fua__link--after .fua__line::after { border-left-color: var(--resolved); }
.fua__link--after .fua__agent { border-color: var(--resolved); box-shadow: 0 0 0 3px rgba(61,220,151,.08), 0 16px 34px -22px rgba(61,220,151,.6); }
.fua__link--after .fua__agent-ico { background: rgba(61,220,151,.12); border-color: rgba(61,220,151,.45); color: var(--resolved); }
.fua__link--after .fua__aid { color: var(--resolved); }

@media (max-width: 1180px) {
  .fua { grid-template-columns: 1fr; gap: 12px; }
  .fua__link { flex-direction: row; align-items: center; justify-content: flex-start; padding: 6px 0 6px 22px; gap: 12px; }
  .fua__agent { width: auto; }
  .fua__line { left: 6px; right: auto; top: -12px; bottom: -12px; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--amber) 0 6px, transparent 6px 12px); animation-name: fuaFlowV; }
  .fua__line::after { right: auto; left: -4px; top: auto; bottom: -2px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 7px solid var(--amber); border-bottom: 0; }
  .fua__link--after .fua__line { background: repeating-linear-gradient(180deg, var(--resolved) 0 6px, transparent 6px 12px); }
  .fua__link--after .fua__line::after { border-top-color: var(--resolved); border-left-color: transparent; }
  @keyframes fuaFlowV { to { background-position: 0 12px; } }
  .fua__cap { text-align: left; }
  .fua__tools { justify-content: flex-start; }
}
@media (max-width: 560px) { .fua__link { flex-direction: column; align-items: flex-start; } }

/* ---------- Guardrail pillars (homepage) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { background: var(--ink-2); padding: 30px 26px; transition: background .4s var(--ease); }
.pillar:hover { background: var(--ink-3); }
.pillar .card__icon { margin-bottom: 20px; }
.pillar h3 { font-size: 1.08rem; margin-bottom: 10px; }
.pillar p { font-size: .88rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1080px) { .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Guardrails chain ---------- */
.guard {
  position: relative; border: 1px dashed var(--line-amber); border-radius: var(--radius-lg);
  padding: 30px 22px 22px; background: rgba(255,176,0,.018);
}
.guard .boundary__label { background: var(--ink); }
.section--alt .guard .boundary__label { background: var(--ink-2); }
.section--alt-2 .guard .boundary__label { background: var(--ink-3); }
.guard__chain { display: grid; gap: 10px; }
.guard__gate {
  position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.guard__gate:hover { border-color: var(--line-amber); }
.guard__gate:not(:last-child)::after {
  content: ""; position: absolute; left: 35px; bottom: -11px; width: 1px; height: 11px;
  background: var(--line-amber);
}
.guard__icon {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,176,0,.08); border: 1px solid var(--line-amber); color: var(--amber);
  grid-row: 1 / span 2;
}
.guard__icon svg { width: 18px; height: 18px; }
.guard__gate strong { font-family: var(--font-display); font-weight: 600; font-size: .96rem; color: var(--white); }
.guard__gate span { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.guard__gate--human {
  border-color: var(--amber); background: rgba(255,176,0,.07);
  box-shadow: 0 0 0 1px rgba(255,176,0,.15), 0 18px 40px -26px rgba(255,176,0,.5);
}
.guard__gate--human .guard__icon { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.guard__gate--human::before {
  content: "REQUIRED"; position: absolute; top: 12px; right: 14px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; color: var(--amber);
}
.guard__note { margin-top: 16px; font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* ---------- Architecture diagram ---------- */
.arch { display: grid; gap: 16px; }
.arch__layer {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--ink-2); padding: 22px;
}
.arch__layer--core { border-color: var(--line-amber); background: rgba(255,176,0,.045); }
.arch__layer > .mono { color: var(--muted); display: block; margin-bottom: 14px; }
.arch__layer--core > .mono { color: var(--amber); }
.arch__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.arch__chips li {
  padding: 8px 14px; border-radius: 7px; font-size: .84rem;
  border: 1px solid var(--line-strong); background: var(--ink); color: var(--silver);
}
.arch__layer--core .arch__chips li { border-color: var(--line-amber); color: var(--white); background: rgba(8,10,13,.55); }
.arch__arrow { display: grid; place-items: center; color: var(--amber); opacity: .55; }
.arch__arrow svg { width: 18px; height: 18px; }

/* ---------- Demo player ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 30px; align-items: start; }
.demo__steps { display: grid; gap: 6px; }
.demo__step {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: var(--radius); cursor: pointer;
  background: transparent; border: 1px solid transparent;
  transition: all .35s var(--ease);
}
.demo__step:hover { background: rgba(217,221,227,.035); }
.demo__step.is-active { background: rgba(255,176,0,.06); border-color: var(--line-amber); }
.demo__step .idx {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .68rem; color: var(--muted);
  border: 1px solid var(--line-strong); transition: all .35s var(--ease);
}
.demo__step.is-active .idx { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.demo__step strong { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--silver); font-weight: 600; }
.demo__step.is-active strong { color: var(--white); }
.demo__step span { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.demo__screen { min-height: 360px; }
.demo__pane { display: none; }
.demo__pane.is-active { display: block; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.metrics li { background: var(--ink-2); padding: 34px 26px; transition: background .4s var(--ease); }
.metrics li:hover { background: var(--ink-3); }
.metrics .mono { color: var(--amber); display: block; margin-bottom: 14px; }
.metrics h3 { font-size: 1.12rem; margin-bottom: 8px; }
.metrics p { font-size: .87rem; color: var(--muted); line-height: 1.55; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% 0%, rgba(255,176,0,.10), transparent 62%);
}
.cta .wrap { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding: 72px 0 34px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.footer__brand svg { height: 34px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); font-size: .88rem; max-width: 30ch; }
.footer__col h4 {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber); font-weight: 500; margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: .89rem; color: var(--muted); transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--amber); }
.footer__bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center;
}
.footer__bottom p { font-size: .82rem; color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer__legal a { font-size: .82rem; color: var(--muted); }
.footer__legal a:hover { color: var(--amber); }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative; padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 76px);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(75% 110% at 22% 0%, rgba(255,176,0,.08), transparent 60%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 18ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; font-size: .8rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { color: var(--graphite-2); }

.prose h2 { margin-top: 0; margin-bottom: 16px; }
.prose h3 { margin-bottom: 10px; }
.prose p { color: var(--muted); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 16px; }
.prose ul.bullets { display: grid; gap: 12px; margin-top: 18px; }
.prose ul.bullets li { display: flex; gap: 12px; color: var(--muted); font-size: .94rem; }
.prose ul.bullets li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 2px;
  background: var(--amber); transform: rotate(45deg);
}

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 18px; text-align: left;
  background: transparent; border: 0; cursor: pointer; padding: 22px 0;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--white);
}
.faq__q .plus { margin-left: auto; flex: none; color: var(--amber); transition: transform .35s var(--ease); }
.faq__item.is-open .plus { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding-bottom: 22px; color: var(--muted); max-width: 72ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .82rem; color: var(--silver); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 14px; color: var(--white); font-family: var(--font-body); font-size: .94rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,176,0,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .8rem; color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-delay="1"].is-in { transition-delay: .08s; }
.reveal[data-delay="2"].is-in { transition-delay: .16s; }
.reveal[data-delay="3"].is-in { transition-delay: .24s; }
.reveal[data-delay="4"].is-in { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow { gap: 10px; }
  .flow__step { padding: 20px 16px; }
  .flow__step:not(:last-child)::after { right: -10px; width: 10px; }
  .acronym__item { padding: 28px 18px 32px; }
  .acronym__letter { font-size: 3.4rem; }
  .footer__top { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .mobile-menu { display: block; }
}
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow__step:not(:last-child)::after { display: none; }
  .acronym { grid-template-columns: 1fr; }
  .acronym__item { border-right: 0; padding: 26px 20px 30px; display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: start; }
  .acronym__desc { opacity: 1; max-width: none; }
  .acronym__letter { font-size: 3rem; color: var(--amber); grid-row: 1 / span 2; }
  .acronym__name { margin-top: 4px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
  .demo { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .acronym { grid-template-columns: 1fr; }
  .acronym__item { border-right: 0; padding: 26px 20px 30px; }
  .acronym__desc { opacity: 1; max-width: none; }
  .acronym__item { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: start; }
  .acronym__letter { font-size: 3rem; color: var(--amber); grid-row: 1 / span 2; }
  .acronym__name { margin-top: 4px; }
  .metrics { grid-template-columns: 1fr; }
  .boundary__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .finding__meta { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__legal { margin-left: 0; width: 100%; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .viz-scan, .viz-pulse, .viz-dash, .viz-packets { display: none; }
  .intmap__ring { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .nav, .footer, .hero__bg, .cta::before { display: none; }
}

/* ---------- Hero viz stage labels (driven by data-stage on .hero-viz) ---------- */
.viz-label { opacity: 0; transition: opacity .2s var(--ease); }
.hero-viz[data-stage="0"] .viz-label--0,
.hero-viz[data-stage="1"] .viz-label--1,
.hero-viz[data-stage="2"] .viz-label--2 { opacity: 1; }
.hero-viz[data-stage="2"] .viz-pulse { animation-play-state: paused; opacity: 0; }
.viz-pulse-slow { transform-origin: center; animation: pulseSlow 3.2s var(--ease) infinite; }
@keyframes pulseSlow { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }
.hero__logo { filter: drop-shadow(0 8px 30px rgba(255,176,0,.18)); }
