:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --accent: #1d5fd1;
  --accent-strong: #0f429b;
  --accent-soft: #eaf1ff;
  --success: #166a4a;
  --shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: #f1f4f8;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .1rem .35rem;
  overflow-wrap: anywhere;
}

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(246, 248, 251, .9);
  border-bottom: 1px solid rgba(223, 229, 236, .9);
}
.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: #3b4656; font-weight: 650; font-size: .95rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff !important;
  font-weight: 750;
}
.button.secondary { background: transparent; color: var(--ink) !important; border-color: #aeb8c5; }
.button:hover { transform: translateY(-1px); }

.hero { padding: 92px 0 64px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero p {
  max-width: 790px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-panel {
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #eef4ff);
  color: #354154;
}

.section { padding: 64px 0; }
.section-tight { padding: 38px 0; }
.section h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; line-height: 1.05; }
.section-intro { max-width: 780px; color: var(--muted); font-size: 1.08rem; margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 0 rgba(23,32,51,.02);
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 1.28rem; letter-spacing: -.02em; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card small, .muted { color: var(--muted); }
.kicker { color: var(--accent-strong); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.text-link { font-weight: 800; }

.step { position: relative; padding-top: 54px; }
.step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.band {
  margin: 34px auto;
  border: 1px solid #cbd8ee;
  border-radius: 22px;
  padding: 34px;
  background: linear-gradient(135deg, #eef4ff 0%, #fff 72%);
}
.endpoint {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.endpoint:last-child { border-bottom: 0; }
.endpoint strong { font-size: .95rem; }
.endpoint code { display: block; width: 100%; }

.page-hero { padding: 72px 0 36px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.15rem; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 30px; }
.prose li { margin: 8px 0; }
.callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
}
.install-card { margin-top: 22px; }
.install-card h2 { margin: 0 0 8px; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.03em; }
.install-card > p { max-width: 760px; }
.copy-row { display: flex; align-items: stretch; gap: 10px; margin: 18px 0 22px; }
.copy-row code { flex: 1; display: flex; align-items: center; min-height: 46px; padding: .65rem .8rem; background: #f7f9fc; }
.copy-button { min-width: 112px; cursor: pointer; font: inherit; }
.install-steps { margin: 0; padding-left: 1.25rem; }
.install-steps li { margin: 7px 0; }
.test-prompt { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fc; }
.test-prompt strong { display: block; margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3f6fa; font-size: .9rem; }

.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { padding: 42px 0; display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 28px; }
.footer-grid p { color: var(--muted); max-width: 580px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-note { border-top: 1px solid var(--line); padding: 18px 0 30px; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .nav { align-items: flex-start; padding: 16px 0; }
  .nav-links { gap: 12px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav { display: block; }
  .nav-links { margin-top: 14px; }
  .nav-links .button { display: none; }
  .hero { padding-top: 62px; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
  .endpoint { grid-template-columns: 1fr; }
  .copy-row { flex-direction: column; }
  .copy-button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
