:root {
  --ink: #05041a;
  --ink-2: #0a0824;
  --violet: #8b5cff;
  --magenta: #d86bff;
  --cyan: #4adcff;
  --txt: #eef0ff;
  --muted: rgba(238, 240, 255, .62);
  --faint: rgba(238, 240, 255, .42);
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);
  --glass: rgba(22, 20, 56, .52);
  --glass-2: rgba(28, 25, 68, .68);
  --grad: linear-gradient(102deg, var(--magenta), var(--violet) 44%, var(--cyan));
  --grad-soft: linear-gradient(140deg, rgba(216, 107, 255, .16), rgba(74, 220, 255, .12));
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(5, 3, 25, .9);
  --side: 292px;
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--txt);
  font: 400 16px/1.6 Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 70% at 50% -10%, #2a2062 0%, #150f3c 42%, #07061c 78%, #05041a 100%);
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 255, .45); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .34;
  animation: drift 26s ease-in-out infinite;
}
.aurora span:nth-child(1) { top: -12vw; left: -8vw; background: #7a3cff; }
.aurora span:nth-child(2) { top: 32vw; right: -14vw; background: #1f7fd6; animation-delay: -9s; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(3vw, 4vw, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--grad);
  color: #0a0524;
  box-shadow: 0 14px 34px -12px rgba(139, 92, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--glass {
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .12); }
.btn--ghost { padding: 10px 16px; color: var(--muted); }
.btn--ghost:hover { color: var(--txt); }

.kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.03em;
}
.brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 14px rgba(139, 92, 255, .6));
}

.shell {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: 12px 12px 12px 14px;
  border-right: 1px solid var(--line-soft);
  background: rgba(7, 6, 26, .55);
  backdrop-filter: blur(22px) saturate(140%);
}

.side__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}
.side__title {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.side__nav {
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.side__nav::-webkit-scrollbar { width: 5px; }
.side__nav::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 255, 255, .16);
}

.nav-group { margin-bottom: 10px; }
.nav-group__label {
  margin: 0 8px 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-group a {
  display: block;
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}
.nav-group a:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.nav-group a.is-on {
  color: #efe6ff;
  background: rgba(139, 92, 255, .22);
  box-shadow: inset 0 0 0 1.5px rgba(186, 140, 255, .55);
}

.side__foot {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
}
.side__foot a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.side__foot a:hover { color: var(--cyan); }

.stage {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 32px) clamp(18px, 3vw, 40px) 48px;
}

.mobbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: -18px -18px 18px;
  background: rgba(7, 6, 26, .72);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft);
}

.burger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.burger span,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--txt);
  content: "";
}
.burger span { margin: 0 auto; }

.article {
  display: grid;
  gap: 22px;
  width: min(820px, 100%);
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  backdrop-filter: blur(14px);
}

.article__head h1 {
  font-size: clamp(28px, 3.4vw, 42px);
}
.lead {
  color: var(--muted);
  font-size: 16.5px;
  font-weight: 650;
}

.article h2 {
  margin-top: 8px;
  font-size: clamp(20px, 2vw, 26px);
}
.article h3 {
  font-size: 17px;
}
.article p,
.article li {
  color: rgba(238, 240, 255, .86);
  font-size: 15.5px;
}
.article ul,
.article ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.article a:not(.btn) {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(74, 220, 255, .4);
  text-underline-offset: 3px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding: 16px 16px 16px 64px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grad);
  color: #0a0524;
  font-size: 14px;
  font-weight: 900;
}
.steps h3 { margin-bottom: 6px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.note {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(74, 220, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(74, 220, 255, .28);
  color: rgba(185, 242, 255, .92);
  font-size: 14.5px;
}
.note--warn {
  background: rgba(216, 107, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(216, 107, 255, .28);
  color: #f3e6ff;
}

.video-stub {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px 20px;
  border-radius: var(--r-md);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(139, 92, 255, .28), transparent 62%),
    rgba(10, 8, 36, .72);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.video-stub__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 16px 40px -12px rgba(139, 92, 255, .9);
  position: relative;
}
.video-stub__play::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 22px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #0a0524;
}
.video-stub__kicker {
  margin-top: 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.video-stub__title {
  font-size: 18px;
  font-weight: 900;
}
.video-stub p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.code {
  margin: 10px 0 0;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 12px;
  background: rgba(5, 4, 26, .7);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #d8fbff;
  font: 650 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card:hover { background: rgba(255, 255, 255, .07); }
.card b { font-size: 16px; }
.card span { color: var(--muted); font-size: 14px; }

.help {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(139, 92, 255, .22), transparent 60%),
    var(--glass-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 4, 26, .55);
}

body.nav-open { overflow: hidden; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    width: min(86vw, 320px);
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 24px 0 60px -24px #000;
  }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; }
  .mobbar { display: flex; }
  .stage { padding-top: 0; }
}
