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

:root {
  --brand: #001bca;
  --brand-2: #3045e6;
  --electric: #4d61ff;
  --midnight: #111827;
  --slate: #475569;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--midnight);
  background: #f8fafc;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: 40px; object-fit: contain; }
.brand:hover img { transform: scale(1.05); }
.brand-name { font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; color: var(--midnight); }
.brand-slogan { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; font-size: .875rem; font-weight: 500; color: #475569;
  padding: 8px 12px;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  width: 0; background: var(--brand); transition: width .25s;
}
.nav-link:hover { color: var(--brand); }
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 24px); }
.nav-link.active { color: var(--brand); }
.drop { position: relative; }
.drop-panel {
  position: absolute; top: 100%; left: 0; min-width: 220px; margin-top: 8px;
  background: #fff; border: 1px solid #f1f5f9; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,27,202,.12);
  padding: 6px; opacity: 0; visibility: hidden; transition: .2s;
}
.drop:hover .drop-panel, .drop:focus-within .drop-panel { opacity: 1; visibility: visible; }
.drop-panel a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .875rem; color: #374151; font-weight: 500; }
.drop-panel a:hover { background: #f8fafc; color: var(--brand); }
.drop-panel .strong { font-weight: 700; }
.login-link { font-size: .875rem; font-weight: 600; color: #475569; padding: 8px 16px; border-radius: 12px; }
.login-link:hover { color: var(--brand); background: #f8fafc; }
.btn-start {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; font-size: .875rem; font-weight: 600;
  padding: 10px 20px; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,27,202,.2);
}
.btn-start:hover { background: var(--brand-2); }
.menu-btn { display: none; border: 0; background: transparent; font-size: 1.4rem; padding: 8px; cursor: pointer; color: #475569; }
.mobile-nav { display: none; background: rgba(255,255,255,.96); border-top: 1px solid #f1f5f9; padding: 12px 20px 20px; }
.mobile-nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mobile-nav a { padding: 8px 10px; border-radius: 8px; font-size: .875rem; font-weight: 500; color: #374151; }
.mobile-nav a:hover { background: #f8fafc; color: var(--brand); }
.page { padding-top: 80px; }
.badge-brand {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(0,27,202,.08); border: 1px solid rgba(0,27,202,.2);
  color: var(--brand); font-size: 12px; font-weight: 700;
}
.section-heading { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.03em; margin: 0 0 12px; }
.section-sub { color: #475569; font-weight: 500; font-size: 1.05rem; max-width: 42rem; margin: 0 auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.docs-hero { text-align: center; padding: 64px 0 24px; }
.docs-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-bottom: 72px; }
.side { background: #fff; border: 1px solid rgba(226,232,240,.95); border-radius: 16px; padding: 16px; position: sticky; top: 104px; box-shadow: 0 10px 30px rgba(15,23,42,.04); }
.side h3 { margin: 0 0 10px; font-size: .95rem; }
.side a { display: block; padding: 8px 0; font-size: .875rem; font-weight: 500; color: #475569; }
.side a:hover { color: var(--brand); }
.side .sub { padding-left: 12px; color: #374151; }
.doc { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: 28px; margin-bottom: 24px; }
.doc h2 { margin: 0 0 16px; font-size: 1.7rem; }
.doc h3 { margin: 0 0 8px; font-size: 1.15rem; }
.doc p, .doc li { color: #374151; line-height: 1.6; font-weight: 500; }
.endpoint { border-left: 4px solid #3b82f6; padding-left: 16px; margin: 22px 0; }
.badge-post, .badge-get {
  display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .04em;
}
.badge-post { background: #3b82f6; }
.badge-get { background: #10b981; }
.path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; margin-left: 8px; }
.code-dark { background: #111827; color: #6ee7b7; border-radius: 12px; padding: 16px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; }
.code-light { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #0f172a; }
.note { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px; color: #1e40af; font-size: .92rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.site-footer { background: #f1f5f9; border-top: 1px solid #e2e8f0; padding: 28px 0; color: #64748b; font-size: 13px; font-weight: 600; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .brand-name { font-size: 1.15rem; }
  .brand-slogan { display: none; }
  .docs-grid { grid-template-columns: 1fr; }
  .side { position: static; }
}
