:root {
  --bg: #ffffff;
  --fg: #14202b;
  --muted: #5b6b7a;
  --line: #e3e9ef;
  --accent: #0f6b5c;
  --accent-dark: #0a4f44;
  --soft: #f3f7f6;
  --code-bg: #0f1720;
  --code-fg: #d7e3ea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.brand-name { font-size: 17px; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--fg); text-decoration: none; }

/* Hero */
.hero {
  padding: 78px 0 54px;
  background: linear-gradient(180deg, var(--soft) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.hero h1 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 0 26px;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: #c9d4de; }

/* Stats */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 26px 0;
}
.stats-grid > div {
  padding: 0 22px;
  border-left: 1px solid var(--line);
}
.stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.stats-grid strong { display: block; font-size: 24px; letter-spacing: -0.02em; }
.stats-grid span { color: var(--muted); font-size: 13px; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 22px; font-size: 28px; letter-spacing: -0.02em; }
.section p { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: #fff;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.checks { margin: 18px 0 0; padding: 0; list-style: none; }
.checks li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.code {
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--code-fg);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 42px 24px;
  background: var(--soft);
}
.cta h2 { margin-top: 0; }
.cta p { max-width: 620px; margin: 0 auto 20px; }

/* Docs / About */
.doc { padding: 56px 0 72px; max-width: 900px; }
.doc h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; }
.doc h2 { margin: 38px 0 12px; font-size: 22px; letter-spacing: -0.01em; }
.doc p { color: var(--muted); }
.doc code {
  background: #eef3f2;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--fg);
}
.doc .code code { background: none; padding: 0; color: inherit; }
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 8px;
  font-size: 14px;
}
.table th, .table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th { color: var(--fg); font-weight: 600; background: var(--soft); }
.table td { color: var(--muted); }
.muted { color: var(--muted); font-size: 13.5px; }
.center { text-align: center; }
.center .btn { margin-top: 8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { color: var(--muted); font-size: 13px; }

@media (max-width: 780px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stats-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .header-inner { min-height: 58px; }
  .nav { gap: 14px; }
  .hero { padding: 54px 0 40px; }
  .section { padding: 46px 0; }
}
