:root {
  color-scheme: dark;
  --background: #171717;
  --surface: #222222;
  --surface-raised: #2a2a2a;
  --border: #3a3a3a;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --subtle: #7d7d7d;
  --accent: #f5f5f5;
  --accent-text: #181818;
  --shell: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 8px 12px;
  background: white;
  color: black;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(23, 23, 23, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner { min-height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 120px;
  height: auto;
}

.brand:hover { opacity: 0.82; }

nav { display: flex; gap: 24px; }

nav a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover,
.text-link:hover { color: var(--text); }

.hero {
  min-height: 720px;
  padding-block: 150px 110px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 400;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 980px;
  margin-bottom: 30px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.95;
}

h2 {
  max-width: 880px;
  margin-bottom: 48px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}

h3 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.1;
}

.hero-copy {
  max-width: 720px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.button.secondary { background: var(--surface); }

.button:hover { transform: translateY(-1px); }

.availability {
  margin-top: 22px;
  color: var(--subtle);
  font-size: 13px;
}

.section {
  padding-block: 110px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature-grid p,
.data-copy,
.document p,
.document li { color: var(--muted); }

.data-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 80px;
}

.data-section h2 { margin-bottom: 0; }

.data-copy { font-size: 18px; }

.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.final-section { padding-bottom: 140px; }

.site-footer {
  padding-block: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--subtle);
  font-size: 13px;
}

.site-footer p { margin: 0; }

.document {
  max-width: 860px;
  padding-block: 80px 120px;
}

.document h1 {
  max-width: none;
  font-size: clamp(44px, 7vw, 72px);
}

.document h2 {
  max-width: none;
  margin-top: 60px;
  margin-bottom: 18px;
  font-size: 32px;
}

.document h3 {
  margin-top: 36px;
  font-size: 22px;
}

.document code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-raised);
}

.document pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.document pre code { padding: 0; background: transparent; }

.document table {
  width: 100%;
  border-collapse: collapse;
}

.document th,
.document td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .brand-logo { width: 108px; }
  nav a:first-child { display: none; }
  nav { gap: 14px; }
  .hero { min-height: auto; padding-block: 100px 80px; }
  h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-copy { font-size: 18px; }
  .section { padding-block: 78px; }
  .feature-grid,
  .data-section { grid-template-columns: 1fr; }
  .data-section { gap: 30px; }
  .feature-grid article { min-height: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}
