@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root { --blue:#1746c7; --blue-soft:#edf2ff; --teal:#08bda5; --teal-soft:#e8faf7; --ink:#16213a; --muted:#66738a; --line:#e2e8f1; --panel:#f7f9fc; --code:#091b36; --danger:#d84b66; --warn:#d38b15; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; color:var(--ink); background:#fff; font:14px/1.72 Inter,system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--blue); text-decoration:none; }
.layout { display:grid; min-height:100vh; grid-template-columns:278px minmax(0,1fr); }
aside { position:sticky; top:0; z-index:10; height:100vh; overflow:auto; padding:25px 18px; border-right:1px solid var(--line); background:#fbfcfe; }
.brand { display:flex; align-items:center; gap:11px; margin:0 8px 21px; color:var(--ink); }
.brand:hover { text-decoration:none; }
.brand > span:last-child { display:flex; flex-direction:column; }
.brand b { font-size:.96rem; line-height:1.2; letter-spacing:-.03em; }
.brand small { margin-top:3px; color:#8490a3; font-size:.57rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; }
.logo-crop { position:relative; overflow:hidden; display:block; width:39px; height:39px; flex:0 0 39px; border:1px solid #e2e8f1; border-radius:11px; background:#fff; box-shadow:0 7px 18px rgba(23,70,199,.12); }
.logo-crop img { position:absolute; inset:50% auto auto 50%; width:70px; max-width:none; transform:translate(-50%,-50%); }
.docs-version { display:flex; align-items:center; gap:8px; margin:0 8px 21px; padding:10px 11px; border:1px solid #dce5f0; border-radius:9px; color:#657188; background:#fff; font-size:.64rem; }
.docs-version i { width:7px; height:7px; border-radius:50%; background:var(--teal); box-shadow:0 0 0 4px rgba(8,189,165,.11); }
.docs-version b { margin-left:auto; padding:2px 6px; border-radius:5px; color:var(--blue); background:var(--blue-soft); font-size:.58rem; }
nav strong { display:block; margin:20px 11px 7px; color:#9aa5b5; font-size:.57rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
nav a { display:block; margin:2px 0; padding:8px 11px; border-radius:8px; color:#66738a; font-size:.73rem; font-weight:550; }
nav a:hover, nav a.active { color:var(--blue); background:var(--blue-soft); }
main { width:min(1050px,100%); padding:57px clamp(34px,6vw,84px) 120px; }
.hero { position:relative; overflow:hidden; margin:0 0 44px; padding:42px; border:1px solid #dce5f0; border-radius:18px; background:linear-gradient(130deg,#f7faff,#eefaf8); }
.hero::after { content:''; position:absolute; right:-65px; bottom:-90px; width:250px; height:250px; border:1px solid rgba(23,70,199,.11); border-radius:42%; transform:rotate(25deg); }
.pill,.method { display:inline-flex; align-items:center; padding:5px 9px; border-radius:6px; font-size:.58rem; font-weight:800; letter-spacing:.06em; vertical-align:middle; }
.pill { color:#087e6d; background:var(--teal-soft); }
.hero h1 { max-width:650px; margin:17px 0 13px; color:#13213a; font-size:clamp(2.15rem,5vw,3.55rem); line-height:1.05; letter-spacing:-.055em; }
.hero p { position:relative; z-index:1; max-width:750px; margin:0; color:#617087; font-size:.91rem; }
.hero-actions { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }.hero-actions :is(a,button) { display:inline-flex; min-height:41px; align-items:center; justify-content:center; gap:15px; padding:0 16px; border:1px solid #d9e2ee; border-radius:8px; color:#526078; background:#fff; font:700 .69rem Inter,sans-serif; cursor:pointer; }.hero-actions :is(a,button):hover { border-color:#b9c7da; background:#f9fbff; }.hero-actions .docs-action { color:#fff; border-color:var(--blue); background:var(--blue); box-shadow:0 9px 20px rgba(23,70,199,.18); }.hero-actions .docs-action:hover { border-color:#123ba9; background:#123ba9; }
h2 { margin:62px 0 18px; padding-top:10px; color:#17233b; font-size:1.65rem; line-height:1.25; letter-spacing:-.04em; }
h3 { margin:30px 0 12px; color:#243047; font-size:1.05rem; letter-spacing:-.02em; }
p, li { color:#657188; }
section > p { max-width:850px; }
code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; color:#1746c7; }
.method.post { color:#087e6d; background:var(--teal-soft); }.method.get { color:var(--blue); background:var(--blue-soft); }
.endpoint { display:flex; align-items:center; min-height:48px; margin:13px 0; padding:0 15px; border:1px solid #dbe3ed; border-radius:9px; color:#314057; background:#f7f9fc; font:650 .76rem ui-monospace,Consolas,monospace; }
.note { margin:19px 0; padding:15px 17px; border:1px solid #cfe0f6; border-left:4px solid #2c78cc; border-radius:9px; color:#526178; background:#f3f8fe; }
.note.warn { border-color:#f1dfb9; border-left-color:var(--warn); background:#fff9ed; }.note.danger { border-color:#f0ced5; border-left-color:var(--danger); background:#fff4f6; }
table { display:block; width:100%; margin:16px 0 26px; overflow:auto; border:1px solid var(--line); border-radius:10px; border-spacing:0; border-collapse:separate; }
thead,tbody { display:table; width:100%; table-layout:auto; }
th,td { padding:11px 13px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
th:last-child,td:last-child { border-right:0; } tbody tr:last-child td { border-bottom:0; }
th { color:#536078; background:#f6f8fb; font-size:.65rem; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
td { color:#66738a; font-size:.73rem; }
pre { position:relative; margin:15px 0; padding:23px; overflow:auto; border:1px solid #17365f; border-radius:11px; color:#c8d7eb; background:var(--code); font:12px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace; box-shadow:0 12px 28px rgba(9,27,54,.09); }
pre code { color:#c8d7eb; }
.copy { float:right; margin:-8px -8px 8px 16px; padding:6px 10px; border:1px solid rgba(255,255,255,.14); border-radius:6px; color:#dce9f7; background:rgba(255,255,255,.08); font:600 .62rem Inter,sans-serif; cursor:pointer; }
.copy:hover { background:rgba(255,255,255,.14); }
.cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.card { padding:22px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 5px 22px rgba(28,57,91,.045); }
.card::before { content:''; display:block; width:34px; height:4px; margin-bottom:20px; border-radius:4px; background:linear-gradient(90deg,var(--blue),var(--teal)); }
.card h3 { margin-top:0; }.card p { margin-bottom:0; font-size:.79rem; }
.environment-cards .card { position:relative; }.environment-cards .card::before { display:none; }.environment-cards .card h3 { margin:12px 0 8px; }.environment-cards .card p { margin:0 0 12px; }.environment-cards .card ol { margin:0; font-size:.73rem; }
.env-label { display:inline-flex; padding:4px 8px; border-radius:6px; font-size:.57rem; font-weight:800; letter-spacing:.08em; }.env-label.sandbox { color:#a66a0b; background:#fff4dc; }.env-label.live { color:#087e6d; background:var(--teal-soft); }
.muted { color:var(--muted); }
ol { padding-left:21px; } li { padding:3px 0; }
.docs-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:70px; padding-top:24px; border-top:1px solid var(--line); color:#8a96a8; font-size:.64rem; }.docs-footer a { font-weight:700; }

@media(max-width:850px) {
  .layout { display:block; } aside { position:relative; height:auto; overflow:visible; padding:16px 14px; border-right:0; border-bottom:1px solid var(--line); }
  .brand { margin-bottom:13px; }.docs-version { position:absolute; top:20px; right:14px; width:122px; margin:0; }
  nav { display:flex; gap:5px; padding:5px 0 0; overflow-x:auto; } nav strong { display:none; } nav a { flex:0 0 auto; border:1px solid var(--line); background:#fff; }
  main { padding:28px 18px 80px; }.hero { padding:29px 23px; }.cards { grid-template-columns:1fr; } h2 { margin-top:48px; }.docs-footer { align-items:flex-start; flex-direction:column; }
}
@media(max-width:480px) { .docs-version { display:none; }.hero h1 { font-size:2.2rem; } .hero-actions :is(a,button) { width:100%; } pre { padding:18px 15px; } }
