:root {
  --bg: #ffffff; --bg2: #f5f7fb; --line: #e3e8f0; --text: #141a24; --muted: #5a6476;
  --accent: #3a7bea; --accent-ink: #1f5fcf; --green: #2fbf8a; --code-bg: #0f1520; --code-text: #e4e9f2;
  --radius: 14px; --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1018; --bg2: #121825; --line: #222b3b; --text: #e8edf5; --muted: #98a3b6; --accent: #5c95f5; --accent-ink: #8ab3ff; --code-bg: #0a0e15; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .35em; white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.top { 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); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav { gap: 14px; font-size: 14px; } .nav .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); color: var(--text); background: var(--bg); }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); }
.btn .soon { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: var(--bg2); color: var(--muted); border: 1px solid var(--line); }

/* hero */
.hero { padding: 88px 0 72px; background: radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(700px 360px at 0% 110%, color-mix(in srgb, var(--green) 11%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 56px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); padding: 4px 11px; border-radius: 99px; margin-bottom: 18px; }
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -.03em; margin: 0 0 20px; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 16px; }

/* hero mock (pure HTML/CSS) */
.mock { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(10, 30, 70, .25), 0 1px 0 rgba(0,0,0,.03); padding: 26px 26px 30px; position: relative; }
.mock .dots { display: flex; gap: 6px; margin: -8px 0 18px; }
.mock .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock h3 { margin: 0 0 16px; font-size: 20px; }
.mock label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
.field { height: 42px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; padding: 0 12px; font-size: 15px; background: var(--bg2); position: relative; }
.field.focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--bg); }
.field .alias { font-family: var(--mono); font-size: 14px; }
.field .pill { position: absolute; right: 7px; top: 7px; width: 28px; height: 28px; border-radius: 7px; background: #111824; display: grid; place-items: center; }
.field .pill img { width: 18px; height: 18px; }
.anchor { position: relative; height: 0; z-index: 2; }
.menu { position: absolute; left: 28%; right: -8px; top: 6px; background: #151b27; color: #e9eef7; border-radius: 12px; padding: 8px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.45); font-size: 13.5px; }
.menu .head { color: #8f9ab0; font-size: 12.5px; padding: 6px 10px 8px; }
.menu .it { padding: 8px 10px; border-radius: 8px; }
.menu .it b { display: block; font-weight: 600; }
.menu .it span { color: #9ba6bb; font-size: 12.5px; }
.menu .it.on { background: #1d2a44; }
.fakebtn { margin-top: 20px; height: 42px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: 15px; }
.toast { position: absolute; z-index: 3; right: -18px; bottom: -26px; background: #151b27; color: #e9eef7; border-left: 3px solid var(--green); border-radius: 10px; padding: 10px 14px; font-size: 13px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); max-width: 270px; }
@media (max-width: 520px) { .toast { display: none; } .menu { left: 8%; right: -4px; } }

/* sections */
section { padding: 84px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
.sub { color: var(--muted); font-size: 17.5px; max-width: 40em; margin: 0 0 44px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 17.5px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }
.ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 24px 24px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.shot { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 18px 40px -22px rgba(10, 30, 70, .35); background: #fff; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
.svc h3 { display: flex; align-items: center; gap: 10px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.svc ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }
.band { text-align: center; }
.band .ctas { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* docs + prose */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 48px 0 96px; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; } .toc { position: static !important; } }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc b { display: block; text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px; color: var(--muted); margin: 18px 0 8px; }
.toc b:first-child { margin-top: 0; }
.toc a { display: block; color: var(--muted); padding: 3px 0; }
.toc a:hover { color: var(--text); text-decoration: none; }
.prose { max-width: 780px; }
.prose h1 { font-size: 40px; }
.prose h2 { font-size: 26px; margin: 56px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 18px; margin: 34px 0 8px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose pre { background: var(--code-bg); color: var(--code-text); border-radius: 10px; padding: 16px 18px; overflow-x: auto; line-height: 1.55; font-size: 13.5px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0 20px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ep { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 15px; margin: 30px 0 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.ep .m { font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 6px; color: #fff; }
.m.get { background: #2b8a5e; } .m.post { background: #3a6fd8; } .m.put { background: #b07a12; } .m.del { background: #c2413b; }
.note { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 18px 0; font-size: 15px; }
.note.warn { border-color: #d39b22; background: color-mix(in srgb, #d39b22 9%, transparent); }
.updated { color: var(--muted); font-size: 14px; margin-top: -8px; }
.sub.center { margin-left: auto; margin-right: auto; }
.ep { overflow-wrap: anywhere; } .prose td:not(:first-child) code { white-space: normal; overflow-wrap: anywhere; }
.prose p > code { white-space: normal; overflow-wrap: anywhere; }
