:root {
  --bg: #ffffff;
  --fg: #111418;
  --muted: #5e6470;
  --line: #e6e8ec;
  --accent: #2477ee;
  --accent-dark: #1556b8;
  --card: #f7f8fa;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --fg: #e8eaee;
    --muted: #9ba1ac;
    --line: #232830;
    --accent: #5ea1ff;
    --accent-dark: #2477ee;
    --card: #161b22;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover { border-bottom-color: var(--accent); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
}
header.site img { width: 32px; height: 32px; border-radius: 7px; }
header.site .name { font-weight: 600; font-size: 17px; }
header.site nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--muted); border: none; }
header.site nav a:hover { color: var(--fg); }
header.site nav a[aria-current="page"] { color: var(--fg); font-weight: 500; }

.hero {
  text-align: center;
  padding: 48px 0 32px;
}
.hero img.icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(36, 119, 238, 0.28);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: 21px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 540px;
}

h1, h2, h3 { letter-spacing: -0.01em; }
h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 12px;
}
h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 6px;
}

p { margin: 14px 0; }

.lead {
  font-size: 19px;
  color: var(--muted);
}

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 0;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.feature h3 { margin-top: 0; }
.feature p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 18px; }
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 24px;
  border: none;
}
.cta:hover { background: var(--accent-dark); border: none; }

.muted { color: var(--muted); }
.small { font-size: 14px; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  max-width: var(--max);
  margin: 0 auto;
}
footer.site a { color: var(--muted); border: none; margin: 0 12px; }
footer.site a:hover { color: var(--fg); }

.callout {
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 15px;
}

code, kbd {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}

table { border-collapse: collapse; width: 100%; margin: 16px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 14px; }
