:root {
  color-scheme: dark;
  --bg: #030609;
  --surface: #080e13;
  --surface-2: #0d151b;
  --text: #edf3f5;
  --soft: #c8d1d5;
  --muted: #85949b;
  --line: rgba(203, 218, 223, 0.13);
  --cyan: #67b6d0;
  --green: #66bc92;
  --gold: #d4b466;
  --red: #bd6565;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 4%, rgba(103, 182, 208, 0.07), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 6, 9, 0.88);
  backdrop-filter: blur(14px);
}
.brand, .nav-links a { text-decoration: none; }
.brand { font-size: 14px; font-weight: 650; }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 13px; }
.nav-links a:hover { color: var(--text); }
main { max-width: var(--content); margin: 0 auto; padding: 72px clamp(18px, 4vw, 48px) 96px; }
.breadcrumb { margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.breadcrumb a { text-decoration: none; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 18px 0; font-size: clamp(38px, 6vw, 68px); font-weight: 520; line-height: 1.06; }
h2 { margin: 0 0 16px; font-size: clamp(25px, 3.2vw, 38px); font-weight: 520; line-height: 1.2; }
h3 { margin: 0 0 8px; font-size: 18px; font-weight: 560; }
.lead { max-width: 760px; margin: 0; color: var(--soft); font-size: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.boundary {
  margin-top: 28px;
  padding: 17px 20px;
  border: 1px solid rgba(212, 180, 102, .28);
  border-left: 3px solid var(--gold);
  background: rgba(212, 180, 102, .05);
  color: var(--soft);
}
.section { margin-top: 76px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
a.panel { text-decoration: none; transition: border-color 160ms ease, transform 160ms ease; }
a.panel:hover { border-color: rgba(103, 182, 208, .48); transform: translateY(-2px); }
.panel p, .muted { margin: 0; color: var(--muted); }
.panel .label { margin-bottom: 24px; color: var(--green); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.panel .action { display: inline-block; margin-top: 18px; color: var(--cyan); font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.metric small { color: var(--muted); }
.metric strong { display: block; margin: 5px 0; font-size: 31px; font-weight: 520; }
.metric p { margin: 0; color: var(--muted); font-size: 13px; }
.role { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.role .tag { display: inline-block; margin-bottom: 15px; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.role dl, .definition dl { margin: 18px 0 0; }
.role dt, .definition dt { float: left; clear: left; color: var(--muted); font-size: 12px; }
.role dd, .definition dd { margin: 0 0 7px 52%; text-align: right; font-size: 12px; }
table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
th, td { padding: 13px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--soft); font-size: 13px; }
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { position: relative; padding: 22px 22px 22px 72px; background: var(--surface); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 22px; color: var(--green); font: 12px ui-monospace, monospace; }
.step p { margin: 0; color: var(--muted); }
.download { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-block; padding: 12px 16px; border: 1px solid rgba(103, 182, 208, .4); border-radius: 4px; color: var(--text); text-decoration: none; font-size: 13px; }
.button.secondary { border-color: var(--line); color: var(--soft); }
.definition { padding: 23px 0; border-top: 1px solid var(--line); }
.definition:last-child { border-bottom: 1px solid var(--line); }
.definition p { max-width: 800px; color: var(--soft); }
.source-note { margin-top: 12px; color: var(--muted); font-size: 11px; }
.status-ok { color: var(--green); }
.status-warn { color: var(--gold); }
.site-footer { max-width: var(--content); margin: 0 auto; }
code { color: var(--cyan); }
@media (max-width: 780px) {
  .nav-links { display: none; }
  main { padding-top: 48px; }
  .grid, .grid.three, .metrics { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .role dt, .definition dt { float: none; }
  .role dd, .definition dd { margin-left: 0; text-align: left; }
  table { display: block; overflow-x: auto; }
}
