:root {
  --bg: #111116;
  --panel: #17171e;
  --panel-2: #1c1b24;
  --line: rgba(255,255,255,.09);
  --text: #f7f7fb;
  --muted: #a8a6b2;
  --purple: #9c35ff;
  --purple-2: #d338ff;
  --pink: #ff4bd1;
  --sidebar: 275px;
  --topbar: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 0%, rgba(130, 48, 185, .16), transparent 34rem),
    linear-gradient(180deg, #15131a 0%, #101014 100%);
  font-family: Inter, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(80px);
  opacity: .18;
  z-index: -1;
}
.ambient-one { width: 420px; height: 420px; background:#006eff; top: 30%; right: 8%; }
.ambient-two { width: 260px; height: 260px; background:#00a2ff; bottom: 2%; left: 20%; }

.topbar {
  height: var(--topbar);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 22, .86);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  max-width: 1440px;
  height: 100%;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 185px;
  font-weight: 800;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 22px rgba(0,81,255,.35);
}
.topnav { display: flex; gap: 22px; flex: 1; }
.topnav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: .2s;
}
.topnav a:hover, .topnav a.active { color: white; }
.top-actions { display:flex; align-items:center; gap:10px; }
.search-button, .question-button {
  height: 38px;
  border: 1px solid var(--line);
  color: #c9c7d0;
  background: rgba(255,255,255,.035);
  border-radius: 12px;
}
.search-button {
  min-width: 220px;
  padding: 0 10px;
  display:flex;
  align-items:center;
  gap:9px;
  cursor:pointer;
}
.search-button kbd {
  margin-left:auto;
  color:#8f8d98;
  background:#111116;
  border:1px solid var(--line);
  border-radius:6px;
  padding:2px 6px;
  font-size:10px;
}
.question-button { padding: 0 14px; display:flex; align-items:center; font-size:12px; font-weight:700; }
.mobile-menu { display:none; border:0; color:white; background:none; font-size:24px; }

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: calc(var(--topbar) + 16px);
  display:grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 28px;
}
.sidebar {
  height: calc(100vh - var(--topbar) - 32px);
  position: sticky;
  top: calc(var(--topbar) + 16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20,20,25,.86);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.sidebar-scroll { padding: 18px 12px; overflow-y:auto; }
.side-group + .side-group { margin-top: 26px; }
.side-title {
  margin: 0 10px 9px;
  font-size: 11px;
  font-weight: 800;
  color: #eeeeF5;
}
.side-link {
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 11px;
  margin: 3px 0;
  border-radius: 10px;
  color: #b9b7c2;
  font-size: 13px;
  font-weight: 600;
}
.side-link:hover { background: rgba(255,255,255,.045); color:white; }
.side-link.active {
  color:white;
  background: linear-gradient(90deg, rgba(157,53,255,.17), rgba(157,53,255,.04));
  box-shadow: inset 2px 0 0 var(--purple);
}
.sidebar-footer {
  margin-top:auto;
  border-top:1px solid var(--line);
  padding:15px 18px;
  display:flex;
  align-items:center;
  gap:9px;
  color:#aaa8b3;
  font-size:12px;
}
.status-dot { width:8px; height:8px; border-radius:50%; background:#66df8b; box-shadow:0 0 10px #66df8b; }

.content { min-width:0; padding-bottom: 34px; }
.hero {
  min-height: 245px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
        linear-gradient(100deg, rgba(0,48,120,.92), rgba(0,119,255,.72)),
        radial-gradient(circle at 76% 36%, rgba(255,255,255,.15), transparent 10%),
        linear-gradient(135deg, #002b70, #006cff 55%, #001d52);
  box-shadow: 0 20px 50px rgba(0,0,0,.25), inset 0 0 70px rgba(255,255,255,.05);
}
.hero-grid {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(500px) rotateX(62deg) scale(1.4);
  transform-origin: bottom;
  opacity:.32;
}
.hero-glow {
  position:absolute;
  width:330px; height:330px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.28), transparent 63%);
  right:-20px; top:-120px;
}
.hero-copy {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-shadow: 0 5px 28px rgba(0,0,0,.5);
}
.hero-badge {
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(10,10,15,.26);
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
}
.hero h1 { margin: 10px 0 -2px; font-size: clamp(48px, 8vw, 86px); line-height:.9; letter-spacing:-.07em; font-weight:900; }
.logo-n {
  display:inline-block;
  transform:skew(-10deg);
  color:white;
  -webkit-text-stroke: 3px #15151b;
  text-shadow: 6px 5px 0 #006dff;
}
.hero p { margin: 8px 0 0; font-size:24px; font-weight:800; letter-spacing:.06em; }
.breadcrumb {
  display:flex; gap:8px;
  padding: 20px 2px 12px;
  color:#8e8b98;
  font-size:11px;
}

.page-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin: 0 0 18px; }
.page-header h2 { margin:0; font-size:34px; letter-spacing:-.04em; }
.page-header p { margin:6px 0 0; color:var(--muted); font-size:13px; }
.discord-pill {
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  padding:9px 12px;
  border-radius:999px;
  color:#d0ced8;
  font-size:12px;
}

.section-banner {
  position:relative;
  overflow:hidden;
  min-height: 118px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 14px 0;
  background:
        linear-gradient(100deg, rgba(0,70,170,.95), rgba(0,120,255,.82)),
        linear-gradient(135deg, #003b96, #006dff);
}
.section-banner::before {
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 10% 140%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(120deg, transparent 30%, rgba(255,255,255,.08), transparent 64%);
}
.section-banner h3 { position:relative; margin:0; font-size:38px; font-weight:900; letter-spacing:-.04em; }

.card-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
.nav-card {
  min-height: 58px;
  padding: 0 16px;
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.025);
  transition:.22s ease;
}
.nav-card:hover {
  transform:translateY(-2px);
  border-color: rgba(0,130,255,.45);
  background: rgba(0,120,255,.10);
}
.nav-card strong { font-size:13px; }
.nav-card .arrow { margin-left:auto; color:#777582; }

.divider { height:1px; background:var(--line); margin: 18px 0; }

.doc {
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:16px;
  padding:24px;
}
.doc h3 { margin:0 0 12px; font-size:23px; }
.doc h4 { margin:24px 0 8px; }
.doc p, .doc li { color:#b9b7c1; line-height:1.75; font-size:14px; }
.doc ul { padding-left:20px; }
.callout {
  margin:18px 0;
  padding:15px 16px;
  border:1px solid rgba(156,53,255,.28);
  border-left:3px solid var(--purple);
  border-radius:11px;
  background:rgba(156,53,255,.08);
  color:#d9d7df;
  font-size:13px;
}
.steps { display:grid; gap:10px; counter-reset:step; }
.step {
  position:relative;
  padding:16px 16px 16px 52px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.02);
}
.step::before {
  counter-increment:step;
  content:counter(step);
  position:absolute;
  left:15px; top:14px;
  width:24px; height:24px;
  border-radius:8px;
  display:grid; place-items:center;
  background:linear-gradient(135deg,var(--purple-2),var(--purple));
  font-weight:800;
  font-size:12px;
}

.footer {
  margin-top: 30px;
  padding: 18px 2px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  color:#777581;
  font-size:11px;
}

.search-modal {
  position:fixed; inset:0; z-index:100;
  display:none;
  place-items:start center;
  padding-top:12vh;
  background:rgba(8,8,12,.72);
  backdrop-filter:blur(8px);
}
.search-modal.open { display:grid; }
.search-panel {
  width:min(650px, calc(100% - 28px));
  border:1px solid var(--line);
  border-radius:17px;
  background:#191820;
  box-shadow:0 24px 100px rgba(0,0,0,.55);
  overflow:hidden;
}
.search-head { height:58px; padding:0 14px; display:flex; align-items:center; gap:11px; border-bottom:1px solid var(--line); }
.search-head input { flex:1; border:0; outline:0; color:white; background:transparent; }
.search-head button { border:1px solid var(--line); border-radius:8px; background:#111116; color:#888692; padding:5px 8px; font-size:11px; }
.search-results { max-height:380px; overflow:auto; padding:10px; }
.search-result {
  display:block;
  padding:12px;
  border-radius:10px;
  color:#c8c6cf;
  font-size:13px;
}
.search-result:hover { background:rgba(156,53,255,.1); color:white; }

@media (max-width: 1080px) {
  .topnav { display:none; }
  .shell { padding-left:16px; padding-right:16px; }
}
@media (max-width: 820px) {
  :root { --topbar:64px; }
  .topbar-inner { padding:0 14px; }
  .mobile-menu { display:block; margin-left:auto; }
  .top-actions { display:none; }
  .shell { display:block; padding-top:calc(var(--topbar) + 12px); }
  .sidebar {
    position:fixed;
    top:var(--topbar); left:0; bottom:0;
    width:280px;
    height:auto;
    z-index:50;
    border-radius:0 16px 16px 0;
    transform:translateX(-105%);
    transition:.25s;
  }
  .sidebar.open { transform:translateX(0); }
  .hero { min-height:190px; }
  .hero p { font-size:18px; }
  .page-header { align-items:flex-start; flex-direction:column; }
  .card-grid { grid-template-columns:1fr; }
  .section-banner h3 { font-size:28px; }
  .footer { flex-direction:column; gap:8px; }
}
