:root {
  color-scheme: dark;
  --background: #0d1016;
  --surface: #151a23;
  --surface-raised: #1b2230;
  --border: #30394a;
  --text: #d9dee8;
  --muted: #98a3b7;
  --accent: #71a1fe;
  --accent-soft: rgba(113, 161, 254, 0.14);
  --code: #0a0d12;
  --success: #68d391;
  --maximum-width: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -20%, rgba(113, 161, 254, 0.18), transparent 34rem),
    var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #9abbff;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(calc(100% - 2rem), var(--maximum-width));
  margin: 0 auto;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid rgba(113, 161, 254, 0.5);
  border-radius: 0.55rem;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.brand-icon {
  width: 1.6rem;
  height: 1.6rem;
  image-rendering: pixelated;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

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

.page-shell {
  width: min(calc(100% - 2rem), var(--maximum-width));
  min-height: calc(100vh - 11rem);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

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

h1,
h2,
h3 {
  color: #f2f5fa;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-top: 3rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

p,
ul,
ol,
blockquote {
  max-width: 74ch;
}

strong {
  color: #f5f7fb;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 0.45rem 0.45rem 0;
  color: var(--muted);
  background: var(--accent-soft);
}

code {
  border: 1px solid rgba(152, 163, 183, 0.18);
  border-radius: 0.3rem;
  padding: 0.12em 0.35em;
  color: #dce7ff;
  background: var(--code);
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", monospace;
  font-size: 0.9em;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 1rem 1.1rem;
  background: var(--code);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.16);
}

pre code {
  border: 0;
  padding: 0;
  background: transparent;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  text-align: left;
}

th {
  color: #f2f5fa;
  background: var(--surface-raised);
}

.hero-copy {
  max-width: 54rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.55rem 1rem;
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  color: #07101f;
  background: var(--accent);
}

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

.feature-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.1rem;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.feature-card h3 {
  margin: 0 0 0.45rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.version-chip {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  border: 1px solid rgba(104, 211, 145, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  color: var(--success);
  background: rgba(104, 211, 145, 0.08);
  font-size: 0.85rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--maximum-width));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 44rem) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

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