@font-face {
  font-family: "InFlux Display";
  src: url("assets/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #090909;
  --surface: #141414;
  --line: rgba(255,255,255,.12);
  --text: #fff;
  --muted: #bdbdbd;
  --red: #e1192c;
  --max: 1180px;
  --header-h: 74px;
  --doc-display: clamp(54px, 9vw, 118px);
  --doc-section-space: clamp(30px, 4vw, 46px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  background: #090909;
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(135deg, rgba(225,25,44,.08), transparent 44%);
  background-size: 72px 72px, 72px 72px, auto;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--red);
}

.scroll-meter {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--red);
  box-shadow: 0 0 24px rgba(225,25,44,.85);
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9,9,9,.72);
  backdrop-filter: blur(18px);
  transition: background 200ms ease, border-color 200ms ease;
}
.site-header.is-scrolled { background: rgba(9,9,9,.94); border-color: rgba(225,25,44,.28); }
.brand, .brand-mark, .nav-links, .header-action, .doc-actions { display: flex; align-items: center; }
.brand { gap: 12px; min-width: 0; }
.brand-mark {
  width: 38px;
  height: 38px;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.brand-mark img { width: 30px; height: 30px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 14px; text-transform: uppercase; }
.brand-copy span { color: var(--muted); font-size: 12px; }
.nav-links { gap: clamp(14px, 3vw, 34px); color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.header-action {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--red);
  font-size: 13px;
  font-weight: 800;
}

main { position: relative; isolation: isolate; }
main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(225,25,44,.16), transparent 42%),
    linear-gradient(242deg, transparent, rgba(225,25,44,.075) 34%, transparent 66%);
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.doc-hero {
  width: min(var(--max), calc(100% - 40px));
  min-height: min(760px, calc(88svh - var(--header-h)));
  margin-inline: auto;
  padding: calc(var(--header-h) + 72px) 0 64px;
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(280px, .55fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.doc-hero-copy h1 {
  max-width: 850px;
  margin: 0;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: var(--doc-display);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .86;
  text-transform: uppercase;
}
.doc-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}
.doc-actions { flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-button, .secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease;
}
.primary-button { background: var(--red); }
.secondary-button { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.035); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.doc-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.08);
}
.doc-summary div { padding: 20px; background: rgba(20,20,20,.9); }
.doc-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.doc-summary strong { line-height: 1.4; }

.doc-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 88px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100svh - var(--header-h) - 48px);
  display: grid;
  gap: 6px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(20,20,20,.86);
}
.doc-toc-toggle {
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  pointer-events: none;
}
.doc-toc-toggle span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.doc-toc-toggle strong { display: none; font-size: 14px; line-height: 1.35; }
.doc-toc-list { display: grid; gap: 6px; }
.doc-toc a {
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}
.doc-toc a:hover, .doc-toc a.is-active { color: var(--text); }
.doc-toc a.is-active { padding-left: 10px; border-left: 2px solid var(--red); }
.doc-body {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.08);
}
.doc-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: var(--doc-section-space);
  background: rgba(15,15,15,.94);
}
.doc-section h2, .doc-section h3, .doc-section p, .doc-section ul, .doc-section dl { max-width: 860px; }
.doc-section h2 {
  margin: 0 0 22px;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: .98;
  text-transform: uppercase;
}
.doc-section h3 { margin: 34px 0 12px; color: var(--red); font-size: clamp(19px, 2vw, 26px); }
.doc-section p, .doc-section li { color: var(--muted); font-size: 17px; line-height: 1.7; }
.doc-section ul { margin: 16px 0 0; padding-left: 22px; }
.source-note { padding-left: 14px; border-left: 2px solid var(--red); font-size: 14px !important; }
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.08);
}
.spec-grid div { padding: 18px; background: rgba(20,20,20,.9); }
.spec-grid dt { margin-bottom: 7px; color: var(--red); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.spec-grid dd { margin: 0; color: var(--text); line-height: 1.45; }
.doc-team ul { display: grid; gap: 12px; padding: 0; list-style: none; }
.doc-team li { display: grid; gap: 4px; padding-left: 16px; border-left: 3px solid var(--red); }
.doc-team strong { color: var(--text); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 76px);
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 13px;
}
footer span:first-child { color: var(--text); font-weight: 900; }
.reveal { transform: translateY(24px); transition: transform 640ms ease; }
.reveal.is-visible { transform: none; }

@media (max-width: 980px) {
  .doc-hero-copy h1, .doc-section h2 {
    font-family: "InFlux Display", "Arial Narrow", "Roboto Condensed", "sans-serif-condensed", sans-serif;
  }
  .nav-links { display: none; }
  .doc-hero, .doc-shell { grid-template-columns: 1fr; }
  .doc-toc { position: static; max-height: none; overflow: visible; }
  .doc-toc-toggle { pointer-events: auto; cursor: pointer; }
  .doc-toc-toggle strong { display: block; }
  .doc-toc-list { display: none; padding-top: 12px; }
  .doc-toc.is-open .doc-toc-list { display: grid; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .site-header { padding-inline: 14px; }
  .brand-copy span { display: none; }
  .header-action { padding-inline: 12px; }
  .doc-hero, .doc-shell { width: calc(100% - 28px); }
  .doc-hero { min-height: auto; padding-top: calc(var(--header-h) + 44px); }
  .doc-section { padding: 24px 20px; }
  .spec-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .reveal { transform: none; }
}
