:root {
  --bg: #0b0f14;
  --panel: #111823;
  --panel-2: #0e141d;
  --line: #1f2a38;
  --text: #dbe4ef;
  --muted: #8fa1b5;
  --accent: #4fc3f7;
  --accent-2: #7ee0a3;
  --code-bg: #0a0e13;
  --max: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
header.site .brand { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: 0.3px; }
header.site .brand span { color: var(--accent); }
header.site nav { display: flex; gap: 18px; margin-left: auto; }
header.site nav a { color: var(--muted); font-size: 14px; }
header.site nav a.active, header.site nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: var(--max); margin: 0 auto; padding: 32px 20px 80px; }

.hero { padding: 56px 0 32px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 46em; margin: 0 0 24px; }
.cta { display: inline-block; background: var(--accent); color: #06202e; font-weight: 600; padding: 10px 20px; border-radius: 8px; }
.cta:hover { text-decoration: none; filter: brightness(1.1); }
.cta.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); margin-left: 10px; }

h2 { font-size: 26px; margin: 48px 0 12px; padding-top: 8px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p, li { color: var(--text); }
p.muted, .muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin: 20px 0; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}
.card h3 { margin: 0 0 8px; font-size: 16px; color: var(--accent-2); }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.55;
}
code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
p code, li code, td code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13.5px;
}

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14.5px; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: var(--panel-2); color: var(--muted); font-weight: 600; }

.flow {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 14px;
  color: var(--accent-2);
  overflow-x: auto;
  white-space: pre;
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--accent);
  color: var(--accent); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps > li > strong { display: block; margin-bottom: 4px; font-size: 16.5px; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  padding: 26px 20px;
}
