:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --text: #13232f;
  --muted: #53687a;
  --accent: #0a6fb8;
  --accent-soft: #e2f0fa;
  --border: #d9e4ec;
  --max: 44rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1620;
    --surface: #12212e;
    --text: #e6eef4;
    --muted: #97abbb;
    --accent: #5db4f0;
    --accent-soft: #15314a;
    --border: #213646;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

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

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

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

.brand img { width: 28px; height: 28px; border-radius: 7px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-size: 15px;
}

nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 56px; }

.hero { text-align: center; padding: 24px 0 8px; }

.hero img {
  width: 144px;
  height: 144px;
  border-radius: 32px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
}

.hero h1 { font-size: 2.3rem; line-height: 1.15; margin: 24px 0 8px; letter-spacing: -0.02em; }

.hero .tagline { color: var(--muted); font-size: 1.15rem; margin: 0 auto; max-width: 32rem; }

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 8px;
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}

.card h2 { font-size: 1.05rem; margin: 0 0 6px; }

.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.prose h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.01em; }

.prose h2 { font-size: 1.25rem; margin: 36px 0 8px; }

.prose .meta { color: var(--muted); margin: 0 0 28px; }

.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 12px 0; }

.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.prose th { color: var(--muted); font-weight: 600; }

.table-scroll { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 32px;
}

footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

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

@media (max-width: 480px) {
  nav a { margin-left: 12px; font-size: 14px; }
  .brand span { display: none; }
  .hero h1 { font-size: 1.9rem; }
}
