:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7ecf3;
  --muted: #9aacbf;
  --accent: #5eb8ff;
  --accent-dim: #3d8fcc;
  --border: #2a3544;
  --radius: 10px;
  --font: "Segoe UI", system-ui, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.btn-primary {
  background: linear-gradient(165deg, var(--accent-dim), var(--accent));
  border-color: transparent;
  color: #041018;
}

.btn-primary:hover {
  color: #041018;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--accent);
}

.prose code {
  font-size: 0.9em;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}

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

.prose pre code {
  padding: 0;
  border: none;
  background: none;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.doc-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.doc-list a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.doc-list a:hover {
  text-decoration: underline;
}

.doc-page {
  padding-top: 0.5rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .inner {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--accent);
}
