:root {
  --ink: #102033;
  --muted: #66758a;
  --line: #e6ebf1;
  --soft: #f6f9fc;
  --soft-strong: #edf4fa;
  --brand: #033660;
  --brand-light: #0a5c92;
  --accent: #2d8acb;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(15, 35, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:hover {
  color: var(--brand-light);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand img {
  display: block;
  height: auto;
}

.toplinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.github-link {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 77px;
  align-self: start;
  height: calc(100vh - 77px);
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.search-box {
  display: flex;
  align-items: center;
  height: 42px;
  margin-bottom: 24px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav p {
  margin: 22px 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav a {
  display: block;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 8px;
}

.side-nav a:hover {
  color: var(--brand);
  background: var(--soft);
}

.content {
  width: 100%;
  max-width: 980px;
  padding: 52px 56px 88px;
}

.hero {
  padding: 36px 0 34px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 740px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--brand);
}

.button.secondary {
  color: var(--brand);
  border: 1px solid var(--line);
  background: var(--white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 54px;
}

.stats div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.stats strong {
  display: block;
  color: var(--brand);
  font-size: 34px;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section p {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
}

.section h3 {
  margin-top: 34px;
}

.section h3:first-of-type {
  margin-top: 26px;
}

pre {
  max-width: 760px;
  margin: 18px 0 24px;
  overflow-x: auto;
  padding: 18px 20px;
  color: #d8e8f5;
  background: #0d2438;
  border-radius: 8px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

p code,
li code {
  padding: 2px 6px;
  color: var(--brand);
  background: var(--soft-strong);
  border-radius: 6px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 12px 0 54px;
}

.doc-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.doc-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-card p {
  color: var(--muted);
  font-size: 15px;
}

.doc-card a {
  font-weight: 800;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.feature-list div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.feature-list p {
  font-size: 15px;
}

.check-list {
  max-width: 760px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  color: var(--muted);
  font-size: 17px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.highlight {
  margin: 36px 0;
  padding: 34px;
  border: 1px solid #c9dfef;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.reference-table {
  max-width: 820px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.reference-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.reference-table div:last-child {
  border-bottom: 0;
}

.reference-table strong {
  color: var(--brand);
}

.reference-table span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .toplinks {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-nav p {
    grid-column: 1 / -1;
  }

  .content {
    max-width: none;
    padding: 38px 24px 64px;
  }

  .card-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 18px;
  }

  .brand img {
    width: 140px;
  }

  .toplinks {
    gap: 12px;
  }

  .sidebar {
    padding: 20px 18px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 30px 18px 52px;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 18px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .reference-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
