:root{
  --bg0:#071225;
  --bg1:#071b2f;
  --bg2:#0a2b3a;
  --ink:#eaf2ff;
  --muted:rgba(234,242,255,.72);
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.035);
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.14);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 22px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--ink);
  font: 15px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background:
    radial-gradient(1200px 700px at 18% 0%, rgba(76,110,255,.18), transparent 62%),
    radial-gradient(1000px 760px at 82% 18%, rgba(0,200,200,.14), transparent 62%),
    radial-gradient(1100px 900px at 65% 92%, rgba(110,60,255,.10), transparent 66%),
    linear-gradient(180deg, #071a33, #050c1c);
  overflow-x:hidden;
}

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

.wrap{ max-width: var(--max); margin:0 auto; padding: 0 18px; }

/* Top bar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,18,37,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
  gap: 14px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.logo{
  width:34px; height:34px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(100,160,255,.95), rgba(0,210,205,.85));
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.brand strong{ font-size: 14px; letter-spacing:.2px; }
.brand span{ font-size: 12px; color: var(--muted); }

.nav{
  display:flex; flex-wrap:wrap; gap: 10px;
  justify-content:flex-end;
}
.nav a{
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.nav a:hover{ border-color: rgba(255,255,255,.18); }
.nav a.active{
  border-color: rgba(0,210,205,.55);
  background: linear-gradient(180deg, rgba(0,210,205,.16), rgba(255,255,255,.03));
}

/* Sections */
.section{ padding: 26px 0; }
.hero{ padding-top: 22px; }
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 12px;
}
.title{ margin: 14px 0 6px; font-size: 44px; line-height: 1.08; letter-spacing: -.6px; }
.lead{ margin: 0; color: var(--muted); max-width: 70ch; }

/* Pills (like your dashboard chips) */
.pillrow{ margin-top: 14px; display:flex; flex-wrap:wrap; gap:10px; }
.pill, .tag{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 12px;
}
.tagrow{ margin-top: 12px; display:flex; flex-wrap:wrap; gap:10px; }

/* Grid + cards */
.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card{
  grid-column: span 12;
  padding: 16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
}
.card:hover{ border-color: rgba(255,255,255,.18); }

.card h2, .card h3{ margin: 0 0 8px; }
.card h2{ font-size: 20px; }
.card h3{ font-size: 16px; }

.card p{ margin: 0; color: var(--muted); }
.card ul{ margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.card li{ margin: 4px 0; }

a.card{ display:block; }
a.card p{ margin-top: 2px; }

@media (min-width: 860px){
  .card.half{ grid-column: span 6; }
}

/* Code blocks in cards (Dashboard style) */
.pre{
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  overflow:auto;
  color: rgba(234,242,255,.85);
  font-size: 12.5px;
}

/* Footer */
.footer{
  padding: 26px 0 40px;
  color: rgba(234,242,255,.55);
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 28px;
}
.footer .wrap{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
/* Keep top navigation visible */
.topbar {
  position: sticky;
  top: 0;
  z-index: 9999;
}
