:root {
  color-scheme: dark;
  --bg: #071018;
  --surface: #0d1923;
  --surface-strong: #122332;
  --line: #203746;
  --text: #e8f6f5;
  --muted: #9eb3b8;
  --teal: #31e6c2;
  --cyan: #38bdf8;
  --blue: #1687e8;
  --shadow: 0 22px 60px rgb(0 0 0 / 28%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% -10%, rgb(22 135 232 / 18%), transparent 36rem),
    radial-gradient(circle at 10% 20%, rgb(49 230 194 / 10%), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--cyan); }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(32 55 70 / 75%);
  background: rgb(7 16 24 / 88%);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand-logo { width: 2.35rem; height: 2.35rem; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.nav-links a:hover { color: var(--text); }

.hero { padding: clamp(4.5rem, 10vw, 8rem) 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.65rem, 7vw, 5.2rem); max-width: 12ch; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { margin: 0 0 .65rem; font-size: 1.18rem; }

.hero-copy {
  max-width: 63ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .7rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}
.button.primary { border-color: transparent; background: linear-gradient(135deg, #0e9e8c, var(--blue)); }
.button:hover { color: white; transform: translateY(-1px); }

.hero-panel, .card, .callout, .article-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgb(18 35 50 / 96%), rgb(9 23 32 / 96%));
  box-shadow: var(--shadow);
}
.hero-panel { padding: 1.2rem; }
.hero-panel img { display: block; width: 100%; height: auto; border-radius: .65rem; }
.panel-label { margin: 0 0 .8rem; color: var(--muted); font-size: .82rem; }

.section { padding: 4.5rem 0; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading p, .article-lead, .muted { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card { padding: 1.4rem; box-shadow: none; }
.card p { margin-bottom: 0; color: var(--muted); }
.number { color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .12em; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: .65rem; counter-reset: step; }
.flow div { position: relative; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.flow div::before { counter-increment: step; content: counter(step); display: block; margin-bottom: .5rem; color: var(--teal); font-weight: 850; }

.callout { padding: clamp(1.5rem, 4vw, 2.5rem); }
.callout p { max-width: 70ch; color: var(--muted); }

.pilot-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.5rem 0;
}
.pilot-metrics div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: rgb(7 19 29 / 72%);
}
.pilot-metrics strong { display: block; color: var(--teal); font-size: 1.55rem; }
.pilot-metrics span { display: block; color: var(--muted); font-size: .82rem; }
.measurement-warning { font-size: .9rem; }

.evidence-table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; }
.evidence-table th, .evidence-table td {
  padding: .75rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.evidence-table th:first-child, .evidence-table td:first-child { text-align: left; }
.evidence-table th { color: var(--muted); font-size: .8rem; }
.evidence-table .contrary { color: #ffb4a8; }

.article-hero { padding: 4.5rem 0 2.5rem; }
.article-hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 6vw, 4.3rem); }
.article-lead { max-width: 68ch; font-size: 1.18rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2rem; padding-bottom: 5rem; }
.article-card { padding: clamp(1.3rem, 4vw, 2.3rem); box-shadow: none; }
.article-card h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.article-card h2:first-child { margin-top: 0; }
.article-card li { margin: .45rem 0; }
.side-nav { align-self: start; position: sticky; top: 6rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.side-nav strong { display: block; margin-bottom: .7rem; }
.side-nav a { display: block; padding: .3rem 0; color: var(--muted); text-decoration: none; }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

code { padding: .12rem .35rem; border: 1px solid var(--line); border-radius: .35rem; background: #07131d; color: #b8fff0; }

@media (max-width: 820px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .grid-3, .flow { grid-template-columns: 1fr 1fr; }
  .side-nav { position: static; }
  .nav-links a:not(.button) { display: none; }
  .pilot-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .flow { grid-template-columns: 1fr; }
  h1 { max-width: none; }
  .pilot-metrics { grid-template-columns: 1fr; }
}
