:root {
  --bg: #020617;
  --surface: #020F2F;
  --text: #E0F2FE;
  --muted: #7DD3FC;
  --primary: #1D4ED8;
  --secondary: #38BDF8;
  --accent: #22C55E;
  --border: rgba(224, 242, 254, 0.12);
  --max-w: 1200px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

main {
  flex: 1;
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

.disclosure-banner {
  width: 100%;
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link img {
  height: 32px;
  width: auto;
  max-width: 160px;
}

.header-row-nav {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}

.header-row-nav a {
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border-radius: 3px;
}

.header-row-nav a:hover {
  background: rgba(224, 242, 254, 0.08);
  color: var(--text);
}

.nav-divider {
  color: var(--muted);
  font-size: 11px;
  padding: 0 2px;
  user-select: none;
  font-family: var(--mono);
}

.burger-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
}

.burger-label span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(2, 6, 23, 0.92);
  cursor: pointer;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 85vw);
  z-index: 200;
  padding: 64px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.nav-drawer a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 3px;
}

.nav-drawer a:hover {
  background: rgba(224, 242, 254, 0.08);
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  font-family: var(--mono);
}

.nav-toggle:checked ~ .nav-overlay {
  display: block;
}

.nav-toggle:checked ~ .nav-drawer {
  transform: translateX(0);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-badges a {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-badges a:hover {
  opacity: 1;
}

.footer-badges img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-copy {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.page-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 24px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.page-header p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  max-width: 640px;
}

.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.page-content h2 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin: 28px 0 10px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
}

.page-content ul {
  margin: 0 0 12px 20px;
  font-size: 13px;
  line-height: 1.65;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subpage-header .header-row-nav {
  display: none;
}

.subpage-header .burger-label {
  display: none;
}

@media (min-width: 900px) {
  .header-row-nav {
    display: flex;
  }

  .burger-label {
    display: none;
  }

  .nav-drawer,
  .nav-overlay {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .header-row-nav {
    display: none;
  }

  .burger-label {
    display: flex;
  }
}
