:root {
  --bg: #ffffff; --surface: #f7f7f8; --line: #e8e8ec; --ink: #16181d; --body: #5e6370; --muted: #7a7f8c;
  --action: #2563eb; --action-soft: #eaf1ff; --action-line: #bfd4ff;
  --gradient: linear-gradient(180deg, #3b82f6, #1d4ed8);
  --code-bg: #f7f7f8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --surface: #171a20; --line: #262a33; --ink: #f3f4f6; --body: #b4b8c2; --muted: #8b909c;
    --action: #60a5fa; --action-soft: #15233d; --action-line: #1e3a66; --code-bg: #171a20;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.6 Urbanist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
img { max-width: 100%; display: block; }
code, pre { font-family: Urbanist, system-ui, sans-serif; font-weight: 700; }
code { background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; color: var(--ink); }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.7; color: var(--ink); }
pre code { background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--action-line); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.nav .links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav .links a { color: var(--body); font-weight: 700; font-size: 15px; }
.nav .links a:hover { color: var(--ink); text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 8px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); }
.btn:hover { text-decoration: none; background: var(--surface); }
.btn.primary { background: var(--gradient); color: #fff; border: 0; }
.btn.primary:hover { opacity: 0.94; }
.pill { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--action-soft); color: var(--action); font-weight: 700; font-size: 14px; }

.hero { padding: 88px 0 56px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; max-width: 900px; margin-top: 20px; }
.hero p.lead { font-size: 22px; line-height: 1.5; max-width: 680px; margin: 24px 0 32px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.hero .shot { margin-top: 56px; box-shadow: 0 30px 80px -40px rgba(29, 78, 216, 0.35); }

section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.eyebrow { color: var(--action); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
section.block h2 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.08; max-width: 760px; }
section.block p.sub { font-size: 19px; max-width: 640px; margin: 16px 0 0; }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 40px; }
.step { background: var(--surface); border-radius: 12px; padding: 20px; }
.step .n { color: var(--muted); font-weight: 700; font-size: 14px; }
.step h3 { font-size: 20px; margin: 8px 0 6px; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; }
.step.on { background: var(--gradient); }
.step.on .n { color: #bfd4ff; } .step.on h3 { color: #fff; } .step.on p { color: #eaf1ff; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card h3 { font-size: 20px; margin: 14px 0 4px; }
.card p { margin: 0; font-size: 15px; }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 40px; }
.cols4 > div { border-top: 2px solid var(--line); padding-top: 18px; }
.cols4 > div:first-child { border-color: var(--action); }
.cols4 .k { font-weight: 700; font-size: 14px; color: var(--muted); }
.cols4 > div:first-child .k { color: var(--action); }
.cols4 h3 { font-size: 20px; line-height: 1.35; margin: 10px 0 8px; }
.cols4 p { margin: 0; font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .wrap > :last-child { margin-left: auto; }

/* Docs */
.docs { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--body); font-weight: 700; font-size: 14px; }
.toc a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.toc .g { color: var(--muted); font-size: 13px; font-weight: 700; padding: 16px 10px 4px; }
.prose { min-width: 0; max-width: 820px; }
.prose h1 { font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; }
.prose h2 { font-size: 30px; margin: 64px 0 14px; padding-top: 8px; scroll-margin-top: 84px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; scroll-margin-top: 84px; }
.prose p, .prose li { font-size: 16.5px; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; }
.note { background: var(--action-soft); border: 1px solid var(--action-line); border-radius: 12px; padding: 14px 18px; color: var(--ink); font-size: 15px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid3, .cols4 { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 620px) {
  .grid2, .grid3, .cols4, .steps { grid-template-columns: 1fr; }
  .nav .links a.hide-sm { display: none; }
  .hero { padding-top: 56px; }
}
