:root {
  --bg: #07080c;
  --bg-2: #0b0d14;
  --surface: #11141d;
  --surface-2: #161a25;
  --line: #232838;
  --line-2: #2e3548;
  --text: #e8eaf2;
  --muted: #9aa2b8;
  --dim: #6b7386;
  --brand: #7c5cff;
  --brand-2: #b14aff;
  --accent: #29e0c0;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1140px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .9);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

[hidden] { display: none !important; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.06rem; }

p { margin: 0 0 1rem; }

code, kbd {
  font-family: var(--mono);
  font-size: .88em;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
  color: #cfd4e6;
  overflow-wrap: anywhere;
}

kbd {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .12em .45em;
  color: var(--text);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap--narrow { max-width: 780px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 600;
}

.skip:focus { left: 0; }

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .72em 1.25em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(124, 92, 255, .85);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(124, 92, 255, 1);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.btn--lg { padding: .9em 1.6em; font-size: 1.03rem; }
.btn--sm { padding: .55em .95em; font-size: .9rem; }

.btn:active { transform: translateY(0); }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 12, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  text-decoration: none;
  margin-right: auto;
}

.brand img { border-radius: 8px; }
.brand em { font-style: normal; color: var(--muted); font-weight: 600; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: .5em .7em;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}

.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.btn { color: #fff; }
.nav__links a.btn:hover { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3.5px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  padding: clamp(64px, 11vw, 122px) 0 clamp(52px, 8vw, 88px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -40% 50% auto;
  transform: translateX(-50%);
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(124, 92, 255, .3) 0%, rgba(124, 92, 255, 0) 62%),
    radial-gradient(circle, rgba(41, 224, 192, .13) 0%, rgba(41, 224, 192, 0) 55%);
  filter: blur(14px);
  pointer-events: none;
}

.hero__inner { position: relative; text-align: center; }

.badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}

.lede {
  max-width: 660px;
  margin: 0 auto 30px;
  font-size: clamp(1.02rem, 1.9vw, 1.17rem);
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta__note {
  margin: 16px 0 0;
  font-size: .86rem;
  color: var(--dim);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: .34em .85em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
}

.pills li::before {
  content: "\2713";
  margin-right: .45em;
  color: var(--accent);
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 52px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats div {
  padding: 20px 12px;
  background: var(--bg-2);
}

.stats dt {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--dim);
  margin-bottom: 5px;
}

.stats dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
}

/* Sections */

.section { padding: clamp(60px, 9vw, 100px) 0; }

.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section__title { text-align: center; margin-bottom: 10px; }

.section__sub {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 46px;
}

.section__sub a {
  display: inline-block;
  margin-left: 6px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.section__sub a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}

.card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}

.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.chip {
  padding: .48em 1em;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: .89rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.chip:hover { color: var(--text); border-color: var(--brand); }

.chip.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
}

/* Modules */

.mods__group {
  margin: 40px 0 16px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--dim);
  font-weight: 700;
}

.mods__group:first-child { margin-top: 0; }

.mods__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mods__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, background .16s ease;
}

.mods__list li:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.mods__list strong { font-size: .96rem; }
.mods__list span { font-size: .875rem; color: var(--muted); line-height: 1.5; }

.empty {
  text-align: center;
  color: var(--dim);
  padding: 30px 0;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 11px;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Download */

.dl {
  max-width: 780px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.dl__main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dl__main img { border-radius: 16px; flex: none; }

.dl__meta { flex: 1 1 220px; }
.dl__meta h3 { margin-bottom: .2em; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dl__meta p { margin: 0; color: var(--muted); font-size: .9rem; }
.dl__name { margin-top: 6px !important; }

.tag {
  padding: 2px 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--accent);
}

.dl__hash {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dl__hash > div { flex: 1 1 240px; min-width: 0; }

.dl__hashlabel {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dim);
  margin-bottom: 5px;
}

.dl__hash code {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  font-size: .78rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.dl__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: .87rem;
  color: var(--muted);
}

.dl__facts li { position: relative; padding-left: 20px; }

.dl__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

/* FAQ */

.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.qa summary {
  padding: 17px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "+";
  flex: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}

.qa[open] summary::after { content: "\2212"; color: var(--brand); }
.qa[open] { border-color: var(--line-2); }

.qa p {
  margin: 0;
  padding: 0 20px 19px;
  color: var(--muted);
  font-size: .94rem;
}

/* CTA band */

.cta-band {
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(124, 92, 255, .2) 0%, transparent 68%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.cta-band h2 { margin-bottom: .25em; }
.cta-band p { margin: 0; color: var(--muted); }

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 26px;
  background: var(--bg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand p {
  margin: 14px 0 0;
  max-width: 380px;
  font-size: .87rem;
  color: var(--dim);
}

.footer__col h3 {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--dim);
  margin-bottom: 14px;
}

.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: .91rem;
  color: var(--muted);
  text-decoration: none;
}

.footer__col a:hover { color: var(--brand); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer__bottom p { margin: 0; font-size: .83rem; color: var(--dim); }

/* Sub-pages */

.pagehead {
  padding: clamp(48px, 8vw, 84px) 0 clamp(34px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(124, 92, 255, .14) 0%, transparent 70%),
    var(--bg-2);
}

.pagehead h1 { margin-bottom: .35em; }

.pagehead .lede {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--muted);
}

.cta--left { justify-content: flex-start; margin-top: 28px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .82rem;
  color: var(--dim);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .16s ease;
}

.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-current] { color: var(--dim); }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.toc a {
  padding: .45em .95em;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}

.toc a:hover { color: var(--text); border-color: var(--brand); }

.prose {
  max-width: 760px;
  margin: -6px 0 26px;
  color: var(--muted);
}

.defs {
  margin: 0;
  max-width: 860px;
}

.defs dt {
  padding: 16px 0 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  scroll-margin-top: 88px;
}

.defs dt:first-of-type { padding-top: 0; }

.defs dd {
  margin: 4px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}

.defs dd + dt { margin-top: 12px; }

.cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 52px 0 18px;
  font-size: 1.4rem;
  scroll-margin-top: 88px;
}

.cat:first-of-type { margin-top: 0; }

.cat::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.cat__n {
  order: 3;
  padding: 2px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--accent);
}

.mods__list--wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.steps--stack { grid-template-columns: 1fr; }
.steps--stack li { display: flex; gap: 20px; align-items: flex-start; }
.steps--stack .steps__num { margin-bottom: 0; flex: none; }

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 460px;
}

.table th,
.table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td { border-bottom: 0; }

.table th[scope="row"] {
  width: 34%;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.table thead th {
  background: var(--surface-2);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--dim);
}

.table tbody tr:hover { background: var(--surface); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qa p a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */

@media (max-width: 860px) {
  .nav__toggle { display: block; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 20px;
    background: rgba(9, 10, 15, .98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    display: none;
  }

  .nav__links.is-open { display: flex; }

  .nav__links a { padding: .7em .6em; font-size: 1rem; }
  .nav__links a.btn { margin-top: 8px; text-align: center; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { width: 100%; }
  .dl__main .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
