/* ──────────────────────────────────────────────────────────────
   AegisCompliance — shared stylesheet
   Visual DNA inherited from Fairclough Coding Corp landing.
   ────────────────────────────────────────────────────────────── */

:root {
  --bg:        #0f2040;
  --surface:   #1a2f55;
  --surface-2: #274075;
  --border:    #2a3f6a;
  --border-2:  #3a5180;
  --accent:    #1e7fff;
  --accent2:   #0fa3d4;
  --glow:      #0d5fff;
  --text:      #e8f1ff;
  --text-dim:  #c2d4ec;
  --muted:     #8aa3c5;
  --grid:      rgba(30,127,255,0.045);

  /* status — used only on score / control UI */
  --pass-bg:  #E8F5EE;  --pass-fg:  #1E6B42;
  --warn-bg:  #FEF3E2;  --warn-fg:  #924D0A;
  --fail-bg:  #FEE2E2;  --fail-fg:  #B91C1C;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ── Cinematic background layers (full set — landing/scan hero) ── */
#matrix {
  position: fixed; inset: 0; z-index: 1;
  opacity: 0.18;
  pointer-events: none;
}
.grid-bg {
  position: fixed; inset: 0; z-index: 2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: gridDrift 60s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 52px 52px; }
}
.blob {
  position: fixed; border-radius: 50%;
  filter: blur(130px); pointer-events: none; z-index: 3;
}
.blob-1 {
  width: 700px; height: 700px;
  background: #0a2fff;
  top: -280px; left: -280px;
  opacity: 0.12;
  animation: blobFloat 20s ease-in-out infinite alternate;
}
.blob-2 {
  width: 550px; height: 550px;
  background: #00d4ff;
  bottom: -200px; right: -200px;
  opacity: 0.08;
  animation: blobFloat 26s ease-in-out infinite alternate-reverse;
}
@keyframes blobFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(50px,35px) scale(1.1); }
}
.scanlines {
  position: fixed; inset: 0; z-index: 5;
  background: repeating-linear-gradient(
    to bottom,
    transparent, transparent 3px,
    rgba(0,0,0,0.07) 3px, rgba(0,0,0,0.07) 4px
  );
  pointer-events: none; opacity: 0.22;
}
.slant-bar {
  position: fixed; right: 0; top: 0;
  width: 4px; height: 100vh;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 70%);
  opacity: 0.7; z-index: 6;
}

/* "calm" pages keep grid + slant bar only, no matrix/blobs/scanlines */

/* ── Topbar ───────────────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 10;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 56px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-glyph {
  height: 144px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}
.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ""; display: block; height: 1px; margin-top: 6px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* status badge — "active" pulse from Fairclough */
.status-badge {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border);
  background: rgba(30,127,255,0.06);
  padding: 7px 13px;
  border-radius: 3px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.65); }
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
  border-radius: 2px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #04080f;
  box-shadow: 0 0 0 1px rgba(30,127,255,0.0), 0 8px 24px -6px rgba(30,127,255,0.55);
}
.btn-primary:hover {
  background: #3a91ff;
  box-shadow: 0 0 0 1px rgba(30,127,255,0.4), 0 12px 32px -6px rgba(30,127,255,0.7);
}
.btn-ghost:hover {
  border-color: rgba(30,127,255,0.5);
  color: var(--accent);
  background: rgba(30,127,255,0.05);
}
.btn .arrow { font-size: 14px; line-height: 1; }

/* ── Common typography helpers ──────────────────────────────── */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--text);
}
.h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(30,127,255,0.5);
}
.h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1;
  letter-spacing: 0.01em;
}
.h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.005em;
  color: var(--text);
}
.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 640px;
  font-weight: 300;
}
.section-label {
  display: flex; align-items: center; gap: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.section-label::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ── Citation chip — DM Mono inline tag ─────────────────────── */
.cite {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent2);
  border: 1px solid var(--border-2);
  background: rgba(15,163,212,0.05);
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 10;
  margin-top: 120px;
  border-top: 1px solid var(--border);
  background: rgba(26,47,85,0.5);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-meta {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 56px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-meta .credit { opacity: 0.55; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .shell { padding: 22px 22px 0; }
  .topbar { flex-wrap: wrap; gap: 16px; padding-bottom: 18px; }
  .nav { gap: 18px; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 32px 22px; gap: 28px; }
  .footer-meta { flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px 22px 22px; }
  .h1 { font-size: clamp(48px, 13vw, 80px); }
  .h2 { font-size: clamp(34px, 9vw, 54px); }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .topbar .status-badge { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
