:root{
  --bg:#0b1020;
  --card:#111a33;
  --muted:#a8b1c7;
  --text:#f2f5ff;
  --brand:#78a6ff;
  --brand2:#63ffd5;
  --border:rgba(255,255,255,.10);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(120,166,255,.25), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(99,255,213,.14), transparent 60%),
    radial-gradient(900px 700px at 40% 120%, rgba(120,166,255,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), #050816 70%);
  line-height:1.55;
}

a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}

.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{left:16px; top:16px; width:auto; height:auto; padding:10px 12px; background:var(--card); border:1px solid var(--border); border-radius:12px; z-index:9999}

header{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(5,8,22,.55);
  border-bottom:1px solid var(--border);
}
.nav{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  gap:18px;
}
.brand{
  display:flex; flex-direction:column;
  min-width: 180px;
}
.brand b{
  font-size:18px; letter-spacing:.3px
}
.brand span{color:var(--muted); font-size:12.5px}
.navlinks{
  display:flex; flex-wrap:wrap;
  gap:10px;
}
.navlinks a{
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:999px;
  color:var(--text);
  opacity:.92;
}
.navlinks a:hover{
  border-color: var(--border);
  background: rgba(255,255,255,.06);
  text-decoration:none;
}
.navlinks a[aria-current="page"]{
  border-color: rgba(120,166,255,.55);
  background: rgba(120,166,255,.12);
}

.lang{
  margin-left:auto;
  display:flex; align-items:center; gap:10px;
}
.pill{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius:999px;
  padding:6px 8px;
  display:flex; gap:6px;
}
.pill button{
  border:0; background:transparent;
  color:var(--text);
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  opacity:.85;
}
.pill button[aria-pressed="true"]{
  background: rgba(255,255,255,.08);
  opacity:1;
}

main{
  max-width:var(--max);
  margin:0 auto;
  padding:26px 18px 60px;
}
.hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero{grid-template-columns: 1fr}
  .brand{min-width:auto}
}
.card{
  background: rgba(17,26,51,.72);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad{padding:18px}
h1{margin:0 0 10px; font-size:34px; line-height:1.12}
h2{margin:18px 0 10px; font-size:22px}
p{margin:0 0 12px; color:rgba(242,245,255,.92)}
.muted{color:var(--muted)}
.kbd{
  font-family:var(--mono);
  font-size: 13px;
  padding:2px 8px;
  border:1px solid var(--border);
  border-bottom-color: rgba(255,255,255,.18);
  border-radius:999px;
  background: rgba(0,0,0,.18);
  display:inline-block;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 900px){ .grid{grid-template-columns:1fr} }

.feature{
  padding:14px;
}
.feature b{display:block; margin-bottom:6px; font-size:15px}
.feature p{margin:0; color:var(--muted); font-size:14px}

.callout{
  border:1px solid rgba(99,255,213,.25);
  background: rgba(99,255,213,.06);
  border-radius: var(--radius);
  padding:14px;
}
.callout b{display:block; margin-bottom:6px}
code, pre{
  font-family:var(--mono);
  font-size: 13px;
}
pre{
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  border:1px solid var(--border);
  overflow:auto;
}
hr{
  border:0; height:1px;
  background: var(--border);
  margin: 18px 0;
}
.footer{
  max-width:var(--max);
  margin:0 auto;
  padding: 18px;
  color:var(--muted);
  font-size: 13px;

  text-align:center;
}
.small{font-size:13px}
.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: rgba(242,245,255,.9);
  font-size: 12.5px;
}

/* Prevent grid items from forcing overflow (long code lines in <pre>) */
.grid > *{min-width:0}
.feature{min-width:0}
pre{max-width:100%}

/* Desktop nav: keep everything on one line */
.nav{flex-wrap:nowrap}
.navlinks{flex-wrap:nowrap; white-space:nowrap; gap:6px}
.navlinks a{padding:7px 9px; font-size:13.5px}
.brand{min-width:140px}
.brand span{display:none} /* hide tagline in header to save space */

@media (max-width: 980px){
  /* allow wrapping on smaller screens */
  .nav{flex-wrap:wrap}
  .navlinks{flex-wrap:wrap; white-space:normal; gap:10px}
  .brand span{display:block}
}


/* Clean centered footer */
.footer {
  text-align: center;
  padding: 30px 0;
}

.footer-inner {
  font-weight: 600;
  letter-spacing: 0.5px;
}


/* License text responsive wrapping */
#license-current {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
