:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-2: #0b1020;
  --panel: rgba(16, 19, 26, 0.72);
  --panel-strong: rgba(16, 19, 26, 0.92);
  --text: #eceff4;
  --muted: #aab2c0;
  --muted-2: #70798c;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.34);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --radius: 28px;
  --max: 1180px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(139, 92, 246, 0.24), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.16), transparent 35rem),
    linear-gradient(180deg, var(--bg), #080b12 38%, #06070a 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
  z-index: -3;
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.035), transparent);
  height: 34vh;
  animation: scan 10s linear infinite;
  z-index: -2;
}

@keyframes scan {
  0% { transform: translateY(-45vh); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 0.55; }
  100% { transform: translateY(125vh); opacity: 0; }
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(var(--max), calc(100% - 28px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(34, 211, 238, 0.86));
  color: #06070a;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.48);
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  color: var(--muted);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 999px;
  transition: 160ms ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
  background: rgba(148, 163, 184, 0.10);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  padding: 82px 0 76px;
}

.hero-copy { max-width: 620px; }
.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(52px, 7.4vw, 104px);
  max-width: 780px;
}

h2 { font-size: clamp(38px, 5vw, 70px); }
h3 { font-size: 26px; }

.lede {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  margin: 28px 0 0;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  transition: 180ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #05060a;
  border-color: transparent;
  box-shadow: 0 0 42px rgba(139, 92, 246, 0.34);
}
.button.secondary { color: var(--text); background: rgba(148, 163, 184, 0.08); }
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.trust-row span,
.boundary-box,
.claim-list li,
.loop-list li,
.engage-card,
.system-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022));
  backdrop-filter: blur(18px);
}
.trust-row span {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.24), transparent 40%), linear-gradient(to bottom, transparent 64%, rgba(7,8,11,0.62));
  pointer-events: none;
}
.image-frame img { aspect-ratio: 16 / 10; object-fit: cover; }
.hero-visual { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); }
figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: rgba(236, 239, 244, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(7, 8, 11, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  backdrop-filter: blur(12px);
}

.split-section,
.case-study,
.training-section,
.evidence-section,
.engage-section,
.final-cta {
  padding: 92px 0;
}

.section-title-block {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}
.section-title-block p,
.mission-inner p,
.case-copy p,
.evidence-copy p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}
.section-title-block.compact {
  display: block;
  max-width: 830px;
}
.section-title-block.compact p:last-child { margin-top: 20px; }

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.system-card {
  min-height: 280px;
  padding: 22px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 180ms ease;
}
.system-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.42); }
.card-index {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
}
.system-card p { color: var(--muted); margin: 18px 0 0; }

.mission-band {
  margin: 42px 0;
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.18), transparent 38%, rgba(34, 211, 238, 0.13)),
    rgba(16, 19, 26, 0.48);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mission-inner {
  padding: 84px 0;
  max-width: 980px;
}
.mission-inner p:last-child { margin-top: 24px; max-width: 760px; }

.case-study,
.evidence-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}
.case-copy p { margin-top: 22px; }
.boundary-box {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 18px;
  border-radius: 20px;
  color: var(--muted);
}
.boundary-box strong { color: var(--amber); }
.architecture-frame img { aspect-ratio: 16 / 10; }

.training-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
  margin-top: 34px;
}
.loop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.loop-list li {
  padding: 20px;
  border-radius: 20px;
}
.loop-list span {
  display: block;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 6px;
}
.loop-list p { color: var(--muted); margin: 0; }

.evidence-section { grid-template-columns: 0.9fr 1fr; }
.evidence-image img { aspect-ratio: 1 / 1; }
.claim-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}
.claim-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 17px 18px;
  border-radius: 18px;
}
.claim-list strong { color: var(--cyan); }
.claim-list span { color: var(--muted); }

.engage-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.engage-card {
  min-height: 240px;
  border-radius: 24px;
  padding: 24px;
}
.engage-card span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.engage-card h3 { margin-top: 42px; }
.engage-card p { color: var(--muted); margin: 16px 0 0; }

.final-cta {
  text-align: center;
  max-width: 920px;
}
.final-cta h2 { margin-bottom: 28px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 46px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .hero,
  .section-title-block,
  .case-study,
  .training-layout,
  .evidence-section {
    grid-template-columns: 1fr;
  }
  .system-grid,
  .engage-section { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 56px; }
  .hero-visual { transform: none; }
}

@media (max-width: 720px) {
  .section-shell { width: min(100% - 28px, var(--max)); }
  .site-header { align-items: flex-start; border-radius: 24px; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  h1 { font-size: clamp(46px, 15vw, 70px); }
  h2 { font-size: clamp(34px, 10vw, 48px); }
  .system-grid,
  .engage-section { grid-template-columns: 1fr; }
  .system-card { min-height: 220px; }
  .claim-list li { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { flex-direction: column; }
  figcaption { position: relative; left: auto; bottom: auto; margin: 12px; display: inline-block; }
}
