:root{
  --bg:#081019;
  --bg-soft:#0d1724;
  --panel:rgba(255,255,255,.05);
  --panel-2:rgba(255,255,255,.08);
  --line:rgba(255,255,255,.09);
  --text:#eef4ff;
  --muted:#9fb0c7;
  --accent:#d11f5f;
  --accent-2:#7c3aed;
  --accent-3:#44c1f0;
  --ok:#4ade80;
  --shadow:0 24px 70px rgba(0,0,0,.28);
  --radius:26px;
  --container:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(209,31,95,.14), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(124,58,237,.16), transparent 24%),
    linear-gradient(180deg,#07111c 0%,#081019 50%,#09121d 100%);
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.container{width:min(var(--container), calc(100% - 32px)); margin:0 auto}

.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(18px);
  background:rgba(8,16,25,.72);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.site-header__inner{
  min-height:80px; display:flex; align-items:center; justify-content:space-between; gap:18px; position:relative;
}
.brand{display:inline-flex; align-items:center; gap:14px}
.brand-mark{
  width:42px; height:42px; border-radius:14px; display:grid; place-items:center; color:#fff; font-weight:800;
  background:linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.08)), linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.3), 0 14px 30px rgba(209,31,95,.18);
}
.brand-copy strong,.brand-copy small{display:block}
.brand-copy small{font-size:12px; color:var(--muted); margin-top:2px}

.nav{display:flex; align-items:center; gap:22px}
.nav > a{color:var(--muted); font-size:15px}
.nav > a:hover{color:var(--text)}
.nav-cta{display:flex; gap:12px; align-items:center}
.mobile-toggle{
  display:none; width:46px; height:46px; border-radius:14px; border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05); color:#fff; font-size:20px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px;
  border-radius:999px; border:1px solid transparent; font-weight:600; white-space:nowrap;
}
.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-2)); box-shadow:0 14px 32px rgba(209,31,95,.24)}
.btn-ghost{background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.08)}

.page-hero{padding:64px 0 30px; position:relative; overflow:hidden}
.eyebrow{
  display:inline-flex; align-items:center; gap:10px; padding:10px 14px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.09); color:#d7e3f7; font-size:13px; font-weight:600;
}
.eyebrow::before{content:""; width:8px; height:8px; border-radius:50%; background:linear-gradient(135deg,var(--ok),var(--accent-3))}
.hero-grid{display:grid; grid-template-columns:1.08fr .92fr; gap:28px; align-items:center}
h1{margin:18px 0 0; font-size:clamp(38px,5vw,68px); line-height:.98; letter-spacing:-.04em}
.hero-lead{max-width:760px; color:var(--muted); font-size:18px; line-height:1.75; margin:20px 0 0}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:26px}
.hero-card{
  border-radius:32px; padding:26px; background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.1); box-shadow:var(--shadow)
}
.hero-card h3{margin:0 0 10px; font-size:24px; letter-spacing:-.03em}
.hero-card p{margin:0; color:var(--muted); line-height:1.7}
.quick-links{display:grid; gap:12px; margin-top:22px}
.quick-link{
  padding:14px 16px; border-radius:18px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:space-between; gap:12px
}
.quick-link span{color:var(--muted); font-size:14px}

.section{padding:76px 0}
.section-head{max-width:820px; margin-bottom:30px}
.section-head.center{text-align:center; margin-inline:auto}
.kicker{
  display:inline-block; margin-bottom:12px; color:#cdd9ee; text-transform:uppercase; letter-spacing:.14em; font-size:12px; font-weight:700;
}
.section-head h2{margin:0; font-size:clamp(28px,4vw,48px); line-height:1.02; letter-spacing:-.04em}
.section-head p{margin:14px 0 0; color:var(--muted); line-height:1.75; font-size:17px}

.category-grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px}
.card{
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow)
}
.card h3{margin:0 0 10px; font-size:22px; letter-spacing:-.03em}
.card p{margin:0; color:var(--muted); line-height:1.7}
.card ul{margin:16px 0 0; padding-left:18px; color:var(--muted)}
.card li{margin:8px 0}
.card a.inline-link{display:inline-block; margin-top:16px; color:#fff}

.docs-layout{display:grid; grid-template-columns:300px minmax(0,1fr); gap:24px}
.docs-sidebar{
  position:sticky; top:96px; align-self:start;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:24px; padding:20px
}
.docs-sidebar h4{margin:0 0 12px; font-size:15px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em}
.docs-sidebar a{
  display:block; padding:12px 14px; border-radius:14px; color:var(--muted)
}
.docs-sidebar a:hover, .docs-sidebar a.is-active{background:rgba(255,255,255,.06); color:var(--text)}
.doc-content{display:grid; gap:18px}
.doc-panel{
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:28px; padding:28px; box-shadow:var(--shadow)
}
.doc-panel h2{margin:0 0 16px; font-size:34px; letter-spacing:-.04em}
.doc-panel h3{margin:24px 0 10px; font-size:22px; letter-spacing:-.03em}
.doc-panel p, .doc-panel li{color:var(--muted); line-height:1.8}
.doc-panel ol, .doc-panel ul{padding-left:20px}
.shot{
  margin:18px 0 6px; border-radius:24px; overflow:hidden; border:1px solid rgba(255,255,255,.1);
  background:#0b1320; box-shadow:var(--shadow)
}
.shot img{width:100%; height:auto}
.shot figcaption{padding:12px 14px; color:var(--muted); font-size:14px; border-top:1px solid rgba(255,255,255,.08)}
.doc-nav{display:flex; justify-content:space-between; gap:16px; margin-top:24px}
.doc-nav a{
  flex:1; padding:16px 18px; border-radius:18px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); color:#fff
}
.doc-nav small{display:block; color:var(--muted); margin-bottom:6px}

.site-footer{padding:0 0 42px}
.footer-grid{
  border-top:1px solid rgba(255,255,255,.08); padding-top:30px;
  display:grid; grid-template-columns:1.2fr .8fr .8fr .8fr; gap:20px; color:var(--muted)
}
.footer-grid h4{color:var(--text); margin:0 0 14px; font-size:15px}
.footer-grid a{display:block; margin:10px 0; color:var(--muted)}
.footer-grid p{line-height:1.7; margin:14px 0 0}

.notice{
  margin-top:16px; padding:14px 16px; border-radius:18px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); color:var(--muted)
}

@media (max-width:1100px){
  .hero-grid, .category-grid, .footer-grid, .docs-layout{grid-template-columns:1fr 1fr}
  .docs-sidebar{position:static}
}
@media (max-width:820px){
  .mobile-toggle{display:inline-grid; place-items:center}
  .nav{
    display:none; position:absolute; top:76px; left:0; right:0; flex-direction:column; align-items:stretch; gap:12px; padding:16px;
    background:rgba(10,16,24,.96); border:1px solid rgba(255,255,255,.08); border-radius:24px; box-shadow:var(--shadow)
  }
  .nav.is-open{display:flex}
  .nav-cta{flex-direction:column}
  .hero-grid, .category-grid, .footer-grid, .docs-layout{grid-template-columns:1fr}
  .page-hero{padding-top:48px}
}

/* DOCS V2 */
.docs-layout,
.docs-shell {
  align-items: start;
}

.docs-content,
.doc-content {
  max-width: 860px;
}

.doc-panel,
.docs-article,
.docs-content article {
  max-width: 860px;
}

.doc-panel p,
.doc-panel li,
.docs-content p,
.docs-content li {
  max-width: 72ch;
}

.docs-content img,
.doc-content img,
.doc-panel img,
article img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 24px auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.24);
  cursor: zoom-in;
}

.docs-content figure,
.doc-content figure,
.doc-panel figure {
  margin: 24px 0 10px;
}

.docs-content figcaption,
.doc-content figcaption,
.doc-panel figcaption {
  max-width: 760px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.doc-panel h2,
.docs-content h2 {
  scroll-margin-top: 110px;
}

.doc-panel h3,
.docs-content h3 {
  scroll-margin-top: 110px;
}

.docs-sidebar,
.doc-sidebar {
  top: 96px;
}

.docs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 14, 0.86);
  backdrop-filter: blur(12px);
}

.docs-lightbox.is-open {
  display: flex;
}

.docs-lightbox__img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
}

.docs-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .docs-content img,
  .doc-content img,
  .doc-panel img,
  article img {
    max-width: 100%;
  }

  .docs-content figcaption,
  .doc-content figcaption,
  .doc-panel figcaption {
    max-width: 100%;
  }
}
