:root {
  color-scheme: dark;
  --bg: #090d0b;
  --panel: #101612;
  --line: #2b352f;
  --muted: #9ba69f;
  --text: #f4f7f5;
  --lime: #caff33;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }

.site-header { min-height: 88px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(9,13,11,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); }
.brand { font-size: 25px; letter-spacing: -.055em; }
.brand strong { font-weight: 800; }
.brand i { color: var(--lime); font-style: normal; }
.product-label { color: var(--lime); border-left: 1px solid var(--line); padding-left: 24px; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .17em; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 30px; color: #c3cbc6; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-header nav a:hover { color: var(--lime); }

main { overflow: hidden; }
.hero { padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 112px) 85px; position: relative; background: radial-gradient(circle at 78% 35%, rgba(202,255,51,.1), transparent 25%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: auto, 64px 64px, 64px 64px; }
.hero::after { content: "API"; position: absolute; right: 3vw; bottom: -9vw; color: transparent; -webkit-text-stroke: 1px rgba(202,255,51,.09); font-size: min(34vw, 510px); font-weight: 900; line-height: .8; pointer-events: none; }
.eyebrow, .kicker { color: var(--lime); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
h1 { position: relative; z-index: 1; max-width: 1050px; margin: 30px 0 24px; font-size: clamp(55px, 9vw, 142px); line-height: .83; letter-spacing: -.075em; font-weight: 780; }
h1 em { color: var(--lime); font-style: normal; }
.hero > p { max-width: 720px; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 42px; position: relative; z-index: 2; }
.primary { padding: 17px 24px; background: var(--lime); color: #0a0d0b; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.hero-actions code { padding: 16px 18px; border: 1px solid var(--line); color: #b6c0ba; background: rgba(16,22,18,.85); font-size: 12px; overflow-wrap: anywhere; }

.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.quick-facts article { min-height: 175px; padding: 34px clamp(24px, 4vw, 64px); border-right: 1px solid var(--line); background: var(--panel); }
.quick-facts article:last-child { border-right: 0; }
.quick-facts span { display: block; color: var(--lime); font: 700 10px/1 ui-monospace, monospace; margin-bottom: 25px; }
.quick-facts strong { font-size: 18px; text-transform: uppercase; letter-spacing: .06em; }
.quick-facts p { color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

.guide-navigation { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.guide-navigation > a { min-height: 360px; padding: clamp(35px, 5vw, 72px); display: flex; flex-direction: column; align-items: flex-start; background: #0d130f; border-right: 1px solid var(--line); transition: background .2s ease; }
.guide-navigation > a:last-child { border-right: 0; background: radial-gradient(circle at 80% 20%, rgba(202,255,51,.1), transparent 33%), #0d130f; }
.guide-navigation > a:hover { background-color: #141c17; }
.guide-navigation > a > span { color: var(--lime); font: 700 11px/1 ui-monospace, monospace; letter-spacing: .13em; }
.guide-navigation b { font-weight: 700; }
.guide-navigation h2 { max-width: 700px; margin: 45px 0 18px; font-size: clamp(34px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; }
.guide-navigation p { max-width: 630px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.guide-navigation strong { margin-top: auto; padding-top: 35px; color: var(--lime); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.reference { padding: 90px clamp(12px, 4vw, 64px); background: #edf2ef; color: #111814; }
.reference-heading { padding: 0 clamp(12px, 2vw, 28px) 45px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.reference h2 { margin: 12px 0 0; font-size: clamp(32px, 5vw, 65px); letter-spacing: -.05em; line-height: .95; }
.language-switcher { display: flex; border: 1px solid #bec9c1; }
.language-switcher a { padding: 13px 16px; color: #4a5750; font: 800 11px/1 ui-monospace, monospace; border-right: 1px solid #bec9c1; }
.language-switcher a:last-child { border-right: 0; }
.language-switcher a[aria-current="page"] { background: #111814; color: var(--lime); }
#swagger-ui { background: white; border: 1px solid #ccd5cf; box-shadow: 0 24px 60px rgba(10,20,14,.08); }
.swagger-ui .topbar { display: none; }
.swagger-ui .info { margin: 45px 0 35px; }
.swagger-ui .scheme-container { box-shadow: none; border-block: 1px solid #dce3df; }
.swagger-ui .opblock-tag { font-size: 20px; }
.swagger-ui .btn.authorize { color: #527500; border-color: #8eae35; }
.swagger-ui .btn.authorize svg { fill: #527500; }

footer { min-height: 110px; padding: 32px clamp(24px, 5vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 25px; color: #86928b; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
footer div { display: flex; gap: 24px; }
footer a:hover { color: var(--lime); }

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .site-header nav a:not(:last-child), .product-label { display: none; }
  .hero { padding-top: 80px; }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts article { border-right: 0; border-bottom: 1px solid var(--line); }
  .reference { padding-top: 65px; }
  .guide-navigation { grid-template-columns: 1fr; }
  .guide-navigation > a { min-height: 310px; border-right: 0; border-bottom: 1px solid var(--line); }
  .reference-heading { align-items: start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; }
}
