:root {
  color-scheme: light dark;
  --bg: #f9fafc;
  --bg-elevated: #eef5fb;
  --panel: #ffffff;
  --text: #121a24;
  --muted: #526171;
  --line: #d8e1ea;
  --accent: #1954d8;
  --accent-text: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d12;
    --bg-elevated: #10161d;
    --panel: #111b22;
    --text: #f4fbfb;
    --muted: #9fb2b9;
    --line: #293944;
    --accent: #66f0df;
    --accent-text: #06100f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg), var(--bg-elevated));
  color: var(--text);
  line-height: 1.58;
}

a {
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

header,
footer {
  border-color: var(--line);
}

header {
  border-bottom: 1px solid var(--line);
}

footer {
  border-top: 1px solid var(--line);
}

.nav,
.footer-inner,
.page {
  width: min(760px, calc(100vw - 40px));
  margin: 0 auto;
}

.nav,
.footer-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page {
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 760;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 40px 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

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

p {
  margin: 0 0 16px;
}

ul {
  padding-left: 1.2rem;
}

section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

section:last-child {
  border-bottom: 0;
}

.updated,
.lead {
  margin-top: 18px;
}

.lead {
  max-width: 640px;
  font-size: 1.15rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
}

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

@media (max-width: 620px) {
  .nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }
}
