:root {
  --bg: #05070b;
  --bg-elevated: #0c1017;
  --panel: rgba(14, 18, 26, 0.86);
  --panel-strong: rgba(16, 21, 31, 0.96);
  --panel-soft: rgba(22, 28, 40, 0.7);
  --accent: #2fd1a3;
  --accent-strong: #1aa17f;
  --accent-soft: rgba(47, 209, 163, 0.12);
  --warm: #f0b25f;
  --text: #edf2f7;
  --text-muted: rgba(237, 242, 247, 0.72);
  --border: rgba(237, 242, 247, 0.1);
  --max: 1120px;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(980px 580px at 18% -8%, rgba(47, 209, 163, 0.16) 0%, rgba(47, 209, 163, 0) 58%),
    radial-gradient(760px 520px at 108% 6%, rgba(240, 178, 95, 0.14) 0%, rgba(240, 178, 95, 0) 56%),
    linear-gradient(180deg, #090d13 0%, #05070b 52%, #090d13 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(47, 209, 163, 0.9);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  background: rgba(6, 9, 14, 0.82);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

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

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  border: 1px solid transparent;
}

.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  border-color: rgba(47, 209, 163, 0.22);
  color: var(--text);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.page {
  padding: 34px 0 52px;
}

.hero,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 209, 163, 0.22) 0%, rgba(47, 209, 163, 0) 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.prose h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0 0 18px;
  font-size: 1.12rem;
  color: var(--warm);
  font-weight: 600;
}

.lead {
  margin: 0;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 209, 163, 0.18);
  background: rgba(47, 209, 163, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #03120e;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.link-card {
  padding: 20px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

.card h2,
.card h3,
.panel h2,
.prose h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

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

.code-chip,
.route {
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
}

.route {
  color: var(--accent);
  font-size: 0.92rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-card strong {
  font-size: 1.02rem;
}

.link-card span {
  color: var(--text-muted);
}

.link-card em {
  color: var(--accent);
  font-style: normal;
  font-size: 0.9rem;
}

.notice {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(240, 178, 95, 0.24);
  background: rgba(240, 178, 95, 0.08);
  color: var(--text);
}

.section-stack {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.prose {
  padding: clamp(22px, 3vw, 34px);
}

.prose h2 {
  margin-top: 22px;
}

.prose ul {
  margin: 10px 0 16px;
  padding-left: 1.15rem;
}

.prose li {
  margin: 8px 0;
}

.prose strong {
  color: var(--text);
}

.callout {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  background: rgba(47, 209, 163, 0.08);
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 13, 19, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

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

.muted {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
