:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.05);
  --panel2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --border: rgba(255,255,255,0.14);
  --accent: #58a6ff;
  --accent2: #a78bfa;
  --shadow: 0 16px 50px rgba(0,0,0,0.35);
  --radius: 18px;
}

@media (prefers-color-scheme: light) {
  :root{
    --bg: #f6f8ff;
    --panel: rgba(0,0,0,0.04);
    --panel2: rgba(0,0,0,0.06);
    --text: rgba(10,18,32,0.92);
    --muted: rgba(10,18,32,0.64);
    --border: rgba(10,18,32,0.12);
    --accent: #0969da;
    --accent2: #7c3aed;
    --shadow: 0 14px 40px rgba(0,0,0,0.12);
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(88,166,255,0.20), transparent 55%),
    radial-gradient(900px 560px at 100% 10%, rgba(167,139,250,0.20), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 70%),
    var(--bg);
}

a{color: inherit; text-decoration: none}
code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.container{max-width: 1120px; margin: 0 auto; padding: 0 20px}

.top{
  position: sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.top .container{
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:0.2px}
.logoImg{
  width:30px;
  height:30px;
  display:block;
}
.name{font-size: 15px}
.nav{display:flex; gap:16px; color: var(--muted); font-weight:600; font-size: 14px}
.nav a:hover{color: var(--text)}

.hero{padding: 46px 0 28px}
.grid{display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start}
@media (max-width: 980px){.grid{grid-template-columns:1fr}}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.heroMark{display:flex; align-items:center; gap:12px}
.heroLogo{
  width:42px;
  height:42px;
  display:block;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18));
}
h1{margin:14px 0 10px; font-size: 44px; line-height: 1.06; letter-spacing:-0.02em}
@media (max-width: 560px){h1{font-size: 36px}}
.lead{margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.6}

.controls{
  display:grid;
  grid-template-columns: 1fr 160px auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
@media (max-width: 460px){.controls{grid-template-columns:1fr;}}
.field span{display:block; font-size: 12px; color: var(--muted); margin: 0 0 6px; font-weight: 700}
.field input, .field select{
  width:100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.field input:focus, .field select:focus{border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{background: color-mix(in srgb, var(--panel2) 80%, white 5%); border-color: color-mix(in srgb, var(--border) 60%, white 25%)}
.btn:active{transform: translateY(1px)}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: white;
}
.btn.ghost{background: transparent}
.btn.small{height: 34px; padding: 0 12px; font-size: 13px}

.cta{display:flex; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap}
.fine{margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55}

.panel{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panelTop{
  height: 44px;
  display:flex; align-items:center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.dot{width:10px; height:10px; border-radius: 50%;}
.dot.red{background:#ff5f56}
.dot.yellow{background:#ffbd2e}
.dot.green{background:#27c93f}
.panelTitle{margin-left: 8px; color: var(--muted); font-weight:800; font-size: 13px}
.panelBody{padding: 14px; display:grid; grid-template-columns: 1fr; gap: 12px}
.card{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  overflow:hidden;
}
.card.wide img{width:100%;}
.card img{display:block; width:100%; height:auto}
.panelFoot{
  display:flex; gap: 10px; align-items:center; justify-content:center;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight:700;
  font-size: 12px;
}
.panelFoot a{color: var(--text)}
.sep{opacity:0.45}

.section{padding: 40px 0}
h2{margin: 0 0 10px; font-size: 24px}
.muted{color: var(--muted); line-height: 1.6}

.codeWrap{
  position: relative;
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  overflow: hidden;
}
pre{margin:0; padding: 16px; overflow:auto}
.codeWrap button{position:absolute; top: 12px; right: 12px}

.note{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
}

.cols{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 900px){.cols{grid-template-columns:1fr}}
.endpoint{
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.endpoint h3{margin:0 0 6px; font-size: 16px}
.endpoint p{margin:0 0 6px}

.foot{
  padding: 18px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.foot .container{display:flex; gap: 10px; align-items:center; justify-content:center; flex-wrap: wrap}
.foot a{color: var(--text)}
