/* ============================================================
   AEGIS DARK THEME — scoped to homepage + /aegis only
   Loaded AFTER style.css, so it overrides the light defaults.
============================================================ */
:root {
  --bg:        #07090d;
  --bg-2:      #0a0e15;
  --surface:   #10151f;
  --surface-2: #161d29;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text:      #e7ecf4;
  --text-dim:  #9aa7ba;
  --text-faint:#6a7790;
  --accent:    #2b6bff;
  --accent-2:  #5b8bff;
  --verify:    #36e0c0;   /* deterministic / verified */
  --sev-crit:  #ff5660;
  --sev-high:  #ff9f43;
  --sev-med:   #ffd24a;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* subtle page atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(43,107,255,0.16), transparent 60%),
    radial-gradient(800px 600px at 8% 12%, rgba(54,224,192,0.06), transparent 55%);
}

/* dark footer override */
footer,
.site-footer {
  background: var(--bg-2);
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

/* ============================================================
   LAYOUT PRIMITIVES
============================================================ */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section--tight { padding-top: 56px; padding-bottom: 56px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: #fff;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 760px;
}

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .lede { margin: 0 auto; }

/* ============================================================
   HERO (Aegis-first)
============================================================ */
.aegis-hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.aegis-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 168px 24px 96px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.hero-eyebrow b { color: #fff; letter-spacing: 0.04em; }
.hero-eyebrow .tick {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--verify);
  box-shadow: 0 0 12px var(--verify);
}

.aegis-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 22px;
}
.aegis-hero h1 .accent { color: var(--accent-2); }

.aegis-hero .hero-sub {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.86rem;
  color: var(--text-faint);
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--verify);
}

/* ============================================================
   PRODUCT DASHBOARD MOCK (CSS/SVG)
============================================================ */
.dash {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(43,107,255,0.06);
  overflow: hidden;
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dash-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dash-bar .dot.r { background: #ff5f57; }
.dash-bar .dot.y { background: #febc2e; }
.dash-bar .dot.g { background: #28c840; }
.dash-bar .title {
  margin-left: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.dash-bar .badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sev-crit);
  border: 1px solid rgba(255,86,96,0.4);
  background: rgba(255,86,96,0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.dash-body { padding: 18px; }

/* attack graph */
.graph-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.attack-graph { width: 100%; height: auto; display: block; }
.attack-graph .edge {
  stroke: rgba(255,255,255,0.22);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  fill: none;
}
.attack-graph .edge-live { stroke: var(--sev-crit); stroke-dasharray: none; }
.attack-graph .node-box {
  fill: #131a26;
  stroke: var(--border-strong);
  stroke-width: 1.2;
}
.attack-graph .node-box.crit { stroke: var(--sev-crit); }
.attack-graph .node-box.high { stroke: var(--sev-high); }
.attack-graph .node-t   { fill: #e7ecf4; font-size: 11px; font-weight: 600; }
.attack-graph .node-sub { fill: #8492a8; font-size: 9px; }
.attack-graph .pip { }
.attack-graph .pip.crit { fill: var(--sev-crit); }
.attack-graph .pip.high { fill: var(--sev-high); }
.attack-graph .flow { fill: var(--sev-crit); animation: flow 2.4s linear infinite; }
@keyframes flow { to { transform: translateX(0); } }

/* remediation strip */
.remediation {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.rem-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.85rem;
}
.rem-row + .rem-row { border-top: 1px solid rgba(255,255,255,0.04); }
.rem-row .rem-file { color: var(--text-dim); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; }
.rem-row .rem-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}
.rem-status.ready { color: var(--verify); background: rgba(54,224,192,0.1); }
.rem-status.review { color: var(--sev-med); background: rgba(255,210,74,0.1); }
.rem-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.rem-dot.crit { background: var(--sev-crit); }
.rem-dot.high { background: var(--sev-high); }
.rem-dot.med  { background: var(--sev-med); }

/* ============================================================
   SECTION B — WHY SCANNERS FAIL (3 steps)
============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  margin-top: 48px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 10px 0 8px; }
.step p { color: var(--text-dim); line-height: 1.55; font-size: 0.98rem; }

/* ============================================================
   SECTION C — FEATURE PILLARS
============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.pillar .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(43,107,255,0.12);
  border: 1px solid rgba(43,107,255,0.3);
  margin-bottom: 16px;
}
.pillar .icon svg { width: 20px; height: 20px; stroke: var(--accent-2); fill: none; stroke-width: 1.8; }
.pillar h3 { font-size: 1.12rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.pillar p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; }

/* ============================================================
   SECTION D — REGULATED ENVIRONMENTS
============================================================ */
.regulated {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(43,107,255,0.05), transparent 40%),
    var(--bg-2);
}
.regulated .section { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.industry-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.industry-chips span {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.posture-list { list-style: none; display: grid; gap: 16px; }
.posture-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.posture-list .k { color: #fff; font-weight: 700; display: block; margin-bottom: 3px; }
.posture-list .v { color: var(--text-dim); font-size: 0.93rem; line-height: 1.5; }
.posture-list .mk {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 6px; background: rgba(54,224,192,0.12);
  border: 1px solid rgba(54,224,192,0.35);
  display: grid; place-items: center; color: var(--verify); font-size: 13px; font-weight: 800;
}

/* ============================================================
   SECTION E — ARTIFICIA BEYOND AEGIS (demoted)
============================================================ */
.beyond .lede { margin-bottom: 8px; }
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.beyond-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 22px;
}
.beyond-card h3 { font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.beyond-card p { color: var(--text-faint); font-size: 0.9rem; line-height: 1.5; }
.beyond-foot { margin-top: 28px; }

/* ============================================================
   SECTION F — FINAL CTA
============================================================ */
.cta-final {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(43,107,255,0.18), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}
.cta-final h2 { max-width: 760px; margin: 0 auto 16px; }
.cta-final .lede { margin: 0 auto 34px; }
.cta-final .hero-actions { justify-content: center; }

/* ============================================================
   /AEGIS PAGE — extra components
============================================================ */
.aegis-pagehero .aegis-hero-inner { padding-top: 176px; }

.problem-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}
.problem-card {
  border-radius: 14px;
  padding: 26px;
  border: 1px solid var(--border);
}
.problem-card.bad { background: rgba(255,86,96,0.05); border-color: rgba(255,86,96,0.25); }
.problem-card.good { background: rgba(54,224,192,0.05); border-color: rgba(54,224,192,0.25); }
.problem-card .tag { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.problem-card.bad .tag { color: var(--sev-crit); }
.problem-card.good .tag { color: var(--verify); }
.problem-card h3 { color: #fff; font-size: 1.25rem; margin: 10px 0 14px; }
.problem-card ul { list-style: none; display: grid; gap: 10px; }
.problem-card li { color: var(--text-dim); padding-left: 22px; position: relative; line-height: 1.5; }
.problem-card.bad li::before { content: "✕"; position: absolute; left: 0; color: var(--sev-crit); font-weight: 700; }
.problem-card.good li::before { content: "✓"; position: absolute; left: 0; color: var(--verify); font-weight: 700; }

/* how it works — vertical stages */
.stages { display: grid; gap: 18px; margin-top: 48px; }
.stage {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
}
.stage .num {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 800; color: var(--accent-2);
  background: rgba(43,107,255,0.1); border: 1px solid rgba(43,107,255,0.3);
}
.stage h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.stage p { color: var(--text-dim); line-height: 1.6; }
.stage .meta { margin-top: 10px; font-size: 0.82rem; color: var(--verify); letter-spacing: 0.04em; }

/* trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.trust-card h3 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.trust-card p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.55; }

/* outcomes */
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.outcome {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}
.outcome .who { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.outcome ul { list-style: none; display: grid; gap: 12px; }
.outcome li { color: var(--text-dim); line-height: 1.5; padding-left: 24px; position: relative; }
.outcome li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }

/* breach-path figure (wider graph on /aegis) */
.breach-figure {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 26px;
  margin-top: 40px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.breach-figure .cap { margin-top: 16px; color: var(--text-faint); font-size: 0.9rem; text-align: center; }

/* ============================================================
   REVEAL ANIMATION
============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  .aegis-hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 140px; }
  .steps, .pillars, .beyond-grid, .trust-grid, .outcomes { grid-template-columns: 1fr; }
  .regulated .section, .problem-cols { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 22px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
