:root{
  --bg: #0b0f1a;
  --bg2: #0f1526;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --accent: #5865F2;
  --accent2: #57F287;
  --warn: #FEE75C;
  --danger: #ED4245;

  --radius: 16px;
  --radius2: 22px;
  --shadow: 0 14px 50px rgba(0,0,0,.45);

  --sidebar-width: 300px;
  --footer-height: 68px;
}

*{box-sizing:border-box}

html, body{
  min-height: 100%;
  margin: 0;
  background: var(--bg);
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(88,101,242,.35), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(87,242,135,.18), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent;
  overscroll-behavior-y: none;
}

a{color:inherit}

.container{
  width:min(1252px, 92vw);
  margin:0 auto;
}

.bg-glow{
  position:fixed;
  top:-30vh;
  left:-30vw;
  width:160vw;
  height:80vh;
  filter: blur(60px);
  background: radial-gradient(circle at 30% 40%, rgba(88,101,242,.55), transparent 60%);
  pointer-events:none;
  z-index:-1;
}

.layout{
  display:flex;
  align-items:stretch;
  min-height:100vh;
}

.sidebar{
  position:sticky;
  top:0;
  width:var(--sidebar-width);
  min-width:var(--sidebar-width);
  height:100vh;
  z-index:30;
  border-right:1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(11,15,26,.92), rgba(11,15,26,.78));
  backdrop-filter: blur(12px);
  overflow:hidden;
}

.sidebar-inner{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:18px 16px calc(var(--footer-height) + 24px);
  overflow-y:auto;
}

.content-area{
  flex:1;
  min-width:0;
}

.mobile-menu-toggle{
  display:none;
  position:fixed;
  top:14px;
  right:14px;
  z-index:60;
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(11,15,26,.82);
  backdrop-filter: blur(12px);
  cursor:pointer;
  padding:0;
}

.mobile-menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  margin:4px auto;
  background: rgba(255,255,255,.92);
  border-radius:999px;
  transition:.2s ease;
}

.mobile-overlay{
  position:fixed;
  inset:0;
  z-index:49;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width:0;
  margin-bottom:18px;
}

.logo-slot{
  width:44px;
  height:44px;
  min-width:44px;
  border-radius:14px;
  background: rgba(88,101,242,.18);
  border:1px solid rgba(88,101,242,.30);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.logo-slot img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}

.brand-text{
  min-width:0;
}

.brand-title{
  font-weight:800;
  line-height:1.1;
}

.brand-subtitle{
  font-size:12.5px;
  color:var(--muted);
  margin-top:2px;
}

.header-cta{
  display:flex;
  gap:10px;
  align-items:center;
}

.sidebar-cta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:18px;
}

.sidebar-cta .btn{
  width:100%;
}

.tabs-nav{
  border-top:1px solid rgba(255,255,255,.04);
}

.sidebar-nav{
  padding-top:14px;
}

.tabs-scroll{
  scrollbar-width:thin;
}

.tabs-vertical{
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow:visible;
  padding:0;
}

.tab{
  appearance:none;
  width:100%;
  text-align:left;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding:12px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
  white-space:normal;
}

.tab:hover{
  background: rgba(255,255,255,.06);
}

.tab:active{
  transform: translateY(1px);
}

.tab[aria-selected="true"]{
  border-color: rgba(88,101,242,.45);
  background: rgba(88,101,242,.16);
}

.main{
  padding:22px 24px calc(42px + var(--footer-height));
}

.panel{display:none}
.panel.is-active{display:block}

.hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  align-items:stretch;
  margin-top:8px;
}

h1{
  margin:0 0 10px;
  font-size:clamp(28px, 3.2vw, 44px);
  line-height:1.05;
  letter-spacing:-.02em;
}

h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.01em;
}

h3{
  margin:0 0 8px;
  font-size:18px;
}

h4{
  margin:0 0 8px;
  font-size:16px;
}

.lead{
  margin:0 0 18px;
  color: var(--muted);
  font-size:15.5px;
  line-height:1.55;
}

.accent{
  color: var(--accent);
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 16px;
}

.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-size:12.5px;
}

.card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  padding:16px;
  margin-top:14px;
}

.card-glass{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
}

.card-title-row{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  margin-bottom:10px;
}

.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(88,101,242,.35);
  background: rgba(88,101,242,.14);
}

.pill-soft{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
}

.grid{
  display:block;
}

.grid-3{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

.grid-2{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}

.panel-head{
  margin:8px 0 10px;
}

.muted{color: var(--muted)}
.small{font-size:12.5px}

.checklist{
  margin:10px 0 0;
  padding:0 0 0 18px;
  color: rgba(255,255,255,.82);
}

.checklist li{margin:7px 0}

.bullets{
  margin:10px 0 0;
  padding:0 0 0 18px;
  color: rgba(255,255,255,.82);
}

.bullets li{margin:7px 0}

.hint{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.16);
  color: rgba(255,255,255,.70);
  background: rgba(255,255,255,.03);
  font-size:13px;
}

.callout{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(88,101,242,.30);
  background: rgba(88,101,242,.12);
  color: rgba(255,255,255,.86);
}

.codebox{
  border-radius:5px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  overflow:auto;
}

.codebox-rich{
  padding:12px;
  margin-top:12px;
}

pre{
  margin:0;
  padding:12px;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12.5px;
  color: rgba(255,255,255,.84);
}

.mini{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:12px;
  color: rgba(255,255,255,.78);
}

.kbd{
  display:inline-grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight:700;
  font-size:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, filter .15s ease;
  user-select:none;
}

.btn:hover{
  background: rgba(255,255,255,.08);
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  border-color: rgba(88,101,242,.55);
  background: rgba(88,101,242,.22);
}

.btn-primary:hover{
  filter: brightness(1.05);
}

.btn-secondary{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}

.btn-ghost{
  border-color: rgba(255,255,255,.08);
  background: transparent;
}

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:600;
  color: rgba(255,255,255,.86);
  font-size:13px;
}

input, textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding:10px 12px;
  outline:none;
}

input:focus, textarea:focus{
  border-color: rgba(88,101,242,.55);
  box-shadow: 0 0 0 4px rgba(88,101,242,.12);
}

.footer{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  z-index:20;
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(11,15,26,.65);
  backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
  flex-wrap:wrap;
}

.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.footer a{
  color: rgba(255,255,255,.74);
  text-decoration:none;
}

.footer a:hover{
  text-decoration:underline;
}

@media (max-width: 980px){
  .layout{
    display:block;
  }

  .sidebar{
    position:fixed;
    top:0;
    left:0;
    width:min(320px, 86vw);
    min-width:0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index:50;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
  }

  .sidebar.is-open{
    transform: translateX(0);
  }

  .mobile-menu-toggle{
    display:block;
  }

  .content-area{
    width:100%;
  }

  .main{
    padding:78px 16px calc(42px + 72px);
  }

  .sidebar-cta{
    grid-template-columns:1fr;
  }

  .hero,
  .grid-2,
  .grid-3{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .container{
    width:min(100%, calc(100vw - 24px));
  }

  .footer-inner{
    align-items:flex-start;
  }
}