:root {
  --ink: #e8eadf;
  --muted: #9ba095;
  --coal: #080a0a;
  --panel: #101413;
  --panel-2: #161b19;
  --line: rgba(223, 232, 217, 0.16);
  --acid: #c9e76a;
  --amber: #e8a84d;
  --red: #dc675c;
  --max: 1180px;
  --display: "DIN Condensed", "Avenir Next Condensed", "Bahnschrift Condensed", sans-serif;
  --body: "Avenir Next", "Gill Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 8%, rgba(201, 231, 106, 0.08), transparent 25rem),
    radial-gradient(circle at 10% 60%, rgba(232, 168, 77, 0.06), transparent 30rem),
    var(--coal);
  font-family: var(--body);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.22;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,.025) 4px);
  mix-blend-mode: screen;
}

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 99;
  background: var(--acid);
  color: var(--coal);
  padding: .6rem 1rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 10, 0.92);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--acid);
  color: var(--acid);
  background: linear-gradient(135deg, rgba(201,231,106,.12), transparent);
  font-weight: 800;
  transform: skew(-7deg);
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }

.site-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--acid); }

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.7rem;
  height: 2px;
  background: var(--acid);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: .6rem .8rem;
  font: 700 .75rem var(--mono);
  text-transform: uppercase;
}

main { overflow: hidden; }

.hero {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 690px;
  margin: 0 auto;
  padding: 5.5rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}

.eyebrow, .kicker, .meta-label {
  color: var(--acid);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before { content: "// "; }

h1, h2, h3 {
  margin-top: 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .025em;
  line-height: .94;
}

h1 {
  max-width: 880px;
  margin: 1.4rem 0 1.6rem;
  font-size: clamp(4.2rem, 10vw, 8.9rem);
  font-weight: 900;
}

h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h3 { font-size: 1.65rem; }

.lede {
  max-width: 680px;
  color: #c5c9bf;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.2rem;
  border: 1px solid var(--acid);
  color: var(--coal);
  background: var(--acid);
  text-decoration: none;
  font: 800 .78rem var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.tactical-orbit {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(transparent 49.5%, rgba(201,231,106,.22) 50%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, rgba(201,231,106,.22) 50%, transparent 50.5%);
  box-shadow: 0 0 80px rgba(201, 231, 106, .05) inset;
}

.tactical-orbit::before, .tactical-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(201,231,106,.33);
}

.tactical-orbit::before { inset: 13%; }
.tactical-orbit::after { inset: 33%; border-style: solid; }

.orbit-label {
  position: absolute;
  font: .67rem var(--mono);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.orbit-label.one { top: 9%; left: 15%; }
.orbit-label.two { right: 4%; top: 52%; }
.orbit-label.three { left: 15%; bottom: 8%; }

.target {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid var(--amber);
  transform: rotate(45deg);
}

.target.a { top: 24%; right: 21%; }
.target.b { left: 27%; bottom: 25%; border-color: var(--acid); }

.stat-strip {
  border-block: 1px solid var(--line);
  background: rgba(16, 20, 19, .72);
}

.stats {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat { padding: 1.7rem; border-right: 1px solid var(--line); }
.stat:first-child { border-left: 1px solid var(--line); }
.stat strong { display: block; font: 800 2rem/1 var(--display); color: var(--amber); }
.stat span { font: .72rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 7rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: .45fr 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-head h2 { margin: 0; }
.section-head p { max-width: 620px; margin: 0 0 .35rem; color: var(--muted); }

.tabs { border: 1px solid var(--line); background: var(--panel); }
.tab-list { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tab-button {
  padding: 1rem;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font: 700 .76rem var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.tab-button:last-child { border-right: 0; }
.tab-button[aria-selected="true"] { color: var(--coal); background: var(--acid); }
.tab-panel { padding: clamp(1.4rem, 4vw, 3rem); }
.tab-panel[hidden] { display: none; }
.tab-panel-grid { display: grid; grid-template-columns: .7fr 1fr; gap: 3rem; }
.tab-panel p { color: #bdc2b7; }

.signal-list { list-style: none; padding: 0; margin: 0; }
.signal-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.signal-list li::before { content: "◆"; margin-right: .8rem; color: var(--amber); font-size: .65rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.guide-card {
  min-height: 300px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.guide-card:hover { border-color: var(--acid); transform: translateY(-3px); }
.guide-card .index { color: var(--acid); font: .72rem var(--mono); letter-spacing: .12em; }
.guide-card h3 { margin: auto 0 1rem; }
.guide-card p { margin: 0; color: var(--muted); }

.content-shell {
  width: min(calc(100% - 2rem), 1040px);
  margin: 0 auto;
  padding: 5rem 0 8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(2rem, 7vw, 6rem);
}

.article-header { padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(3.8rem, 8vw, 7.4rem); }
.article-header .lede { max-width: 760px; }
.article-body { padding-top: 3rem; }
.article-body h2 { margin: 4.5rem 0 1.25rem; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 2.4rem 0 .7rem; line-height: 1.1; }
.article-body p, .article-body li { color: #c4c8be; }
.article-body a { color: var(--acid); text-underline-offset: .2rem; }

.toc { position: sticky; top: 100px; align-self: start; border-top: 1px solid var(--acid); padding-top: 1rem; }
.toc strong { display: block; margin-bottom: .8rem; font: .72rem var(--mono); color: var(--acid); text-transform: uppercase; letter-spacing: .1em; }
.toc a { display: block; padding: .45rem 0; color: var(--muted); text-decoration: none; font-size: .9rem; }
.toc a:hover { color: var(--ink); }

.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--acid); background: #121715; font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
td { color: #c4c8be; }

.callout {
  margin: 2.5rem 0;
  padding: 1.3rem 1.5rem;
  border-left: 3px solid var(--amber);
  background: rgba(232, 168, 77, .08);
}
.callout strong { display: block; color: var(--amber); font: .76rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.callout p { margin-bottom: 0; }

.source-list { padding-left: 1.2rem; }
.source-list li { margin-bottom: .8rem; }

.site-footer { border-top: 1px solid var(--line); background: #070909; }
.footer-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font: .72rem var(--mono);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    background: #0b0e0d;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .6rem; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .hero { min-height: auto; padding: 4rem 0; grid-template-columns: 1fr; }
  .tactical-orbit { width: min(75vw, 360px); margin: 1rem auto 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 1px solid var(--line); }
  .section { padding: 5rem 0; }
  .section-head, .tab-panel-grid, .content-shell { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .toc { display: none; }
}

@media (min-width: 821px) and (max-width: 1000px) {
  .content-shell { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 560px) {
  .brand-copy { display: none; }
  h1 { font-size: clamp(3.65rem, 19vw, 5.4rem); }
  .stats, .card-grid { grid-template-columns: 1fr; }
  .stat, .stat:first-child, .stat:nth-child(3) { border-left: 0; border-right: 0; }
  .tab-list { grid-template-columns: 1fr; }
  .tab-button { border-right: 0; border-bottom: 1px solid var(--line); }
  .tab-button:last-child { border-bottom: 0; }
  .footer-shell { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
