/* ============================================================
   BootStrap — shared design system
   Dark SaaS theme · violet → cyan accents
   ============================================================ */

:root {
  --bg: #0b0d12;
  --bg-soft: #0e1118;
  --surface: #12151d;
  --surface-2: #181c27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ebf4;
  --text-body: #c2c9da;
  --text-muted: #9aa3b5;
  --text-faint: #6b7385;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --grad: linear-gradient(135deg, #7c3aed, #06b6d4);
  --amber: #fbbf24;
  --green: #34d399;
  --red: #f87171;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "Consolas", ui-monospace, "SF Mono", Menlo,
    monospace;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
ul, ol { padding: 0; }
li { margin: 0; }

::selection { background: rgba(124, 58, 237, 0.45); color: #fff; }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262b38; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #333a4d; }

a { color: inherit; text-decoration: none; }

h1[id], h2[id], h3[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    filter 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    background-color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.btn-sm { padding: 8px 16px; font-size: 0.88rem; border-radius: 10px; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: 14px; }

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ------------------------------------------------------------
   Header / navigation
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4); }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }

.nav-links a {
  display: block;
  padding: 8px 15px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.14));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 190;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    padding: 18px 24px 26px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 13px 14px; }
  .site-nav .btn { width: 100%; }
}

/* ------------------------------------------------------------
   Hero (landing + page headers)
   ------------------------------------------------------------ */

.hero { position: relative; padding: 104px 0 88px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(120px);
}
.hero-bg::before { top: -260px; left: -160px; background: rgba(124, 58, 237, 0.22); }
.hero-bg::after { bottom: -320px; right: -180px; background: rgba(6, 182, 212, 0.16); }
.hero > .container { position: relative; z-index: 1; }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.9);
}

.hero-logo {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  margin: 34px auto 30px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 48px rgba(124, 58, 237, 0.45);
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 820px;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: 1.22rem;
  line-height: 1.55;
}

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }

.hero-meta { margin-top: 30px; color: var(--text-faint); font-size: 0.85rem; }

/* Page hero used on subpages */
.page-hero { position: relative; padding: 76px 0 10px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.page-hero p { max-width: 640px; margin: 16px auto 0; color: var(--text-muted); font-size: 1.08rem; }
.page-hero .badge { margin-bottom: 22px; }

/* ------------------------------------------------------------
   Sections & grids
   ------------------------------------------------------------ */

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.35rem); font-weight: 750; letter-spacing: -0.015em; line-height: 1.15; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 1.02rem; }

.grid-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-features { grid-template-columns: 1fr; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: rgba(124, 58, 237, 0.45); transform: translateY(-3px); box-shadow: var(--shadow); }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.16));
  color: #67e8f9;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 8px; font-size: 1.07rem; font-weight: 650; }
.card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
a.card-link:hover svg { transform: translateX(3px); }

/* Wiki hub cards */
.wiki-card h3 { display: flex; align-items: center; gap: 10px; }
.wiki-card .card-icon { margin-bottom: 0; width: 40px; height: 40px; border-radius: 11px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

/* CTA band */
.cta-band {
  margin: 90px 0;
  padding: 60px 32px;
  border-radius: 26px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(124, 58, 237, 0.25), transparent),
    radial-gradient(600px 240px at 80% 100%, rgba(6, 182, 212, 0.2), transparent),
    var(--surface);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 750; letter-spacing: -0.015em; }
.cta-band p { max-width: 520px; margin: 12px auto 28px; color: var(--text-muted); }

/* ------------------------------------------------------------
   FAQ accordions
   ------------------------------------------------------------ */

.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }

details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
details.faq[open] { border-color: rgba(124, 58, 237, 0.4); }

details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }

.faq-body { padding: 0 22px 21px; color: var(--text-muted); font-size: 0.95rem; }
.faq-body a { color: var(--cyan); }
.faq-body a:hover { text-decoration: underline; }
.faq-body p + p { margin-top: 10px; }
.faq-body code {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ------------------------------------------------------------
   Callouts
   ------------------------------------------------------------ */

.callout {
  margin: 22px 0;
  padding: 17px 20px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-body);
}
.callout-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 6px; }
.callout p { color: var(--text-body); }
.callout p + p { margin-top: 8px; }

.callout-warning { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.35); }
.callout-warning .callout-title { color: var(--amber); }

.callout-info { background: rgba(6, 182, 212, 0.08); border-color: rgba(6, 182, 212, 0.3); }
.callout-info .callout-title { color: #67e8f9; }

.callout-tip { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.3); }
.callout-tip .callout-title { color: var(--green); }

.callout-danger { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.35); }
.callout-danger .callout-title { color: var(--red); }

/* ------------------------------------------------------------
   Tables
   ------------------------------------------------------------ */

.table-wrap {
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  background: var(--surface);
}
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.92rem; }
thead th {
  padding: 12px 18px;
  text-align: left;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody td { padding: 13px 18px; border-top: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
tbody td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

td code, li code {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: #a5f3fc;
  word-break: break-word;
}

/* ------------------------------------------------------------
   Code blocks + copy button
   ------------------------------------------------------------ */

.code-block { position: relative; margin: 22px 0; }
.code-block pre {
  margin: 0;
  padding: 18px 92px 18px 20px;
  background: #070910;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: #ccd6e8;
}
.code-label {
  display: block;
  margin-bottom: -14px;
  padding: 0 2px;
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { color: var(--text); border-color: var(--cyan); }
.copy-btn.copied { color: var(--green); border-color: rgba(52, 211, 153, 0.45); }

/* ------------------------------------------------------------
   Docs layout (wiki articles)
   ------------------------------------------------------------ */

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding: 44px 0 72px;
}

.docs-sidebar { position: sticky; top: calc(var(--nav-h) + 28px); }
.side-group + .side-group { margin-top: 30px; }
.side-group-title {
  margin: 0 0 10px 13px;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.side-nav { list-style: none; display: grid; gap: 2px; }
.side-nav a {
  display: block;
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.91rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.side-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.side-nav a.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.1));
  box-shadow: inset 2px 0 0 var(--cyan);
}
.side-nav .toc-link { font-size: 0.86rem; color: var(--text-faint); }
.side-nav .toc-link:hover { color: var(--text-muted); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 20px; font-size: 0.87rem; color: var(--text-faint); }
.breadcrumb a { color: var(--text-muted); transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { user-select: none; }

.article-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--text-faint); font-size: 0.83rem; }

.article-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.article-footer-nav a {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.18s ease;
}
.article-footer-nav a:hover { border-color: rgba(124, 58, 237, 0.5); }
.article-footer-nav .next { text-align: right; }
.article-footer-nav .dir { color: var(--text-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.article-footer-nav .title { color: var(--cyan); font-weight: 600; font-size: 0.95rem; }
.article-footer-nav a.single { grid-column: 2; }
@media (max-width: 560px) { .article-footer-nav { grid-template-columns: 1fr; } .article-footer-nav .next { text-align: left; } }

.prose { color: var(--text-body); font-size: 0.99rem; }
.prose > p:first-child { font-size: 1.06rem; color: var(--text-muted); }
.prose h2 { margin: 46px 0 14px; padding-top: 6px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.prose h2:first-child { margin-top: 28px; }
.prose h3 { margin: 30px 0 10px; font-size: 1.15rem; font-weight: 650; color: var(--text); }
.prose p { margin: 13px 0; }
.prose ul, .prose ol { margin: 13px 0 13px 24px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--violet); }
.prose strong { color: var(--text); }
.prose a:not(.btn) { color: var(--cyan); }
.prose a:not(.btn):hover { text-decoration: underline; }
.prose hr { margin: 38px 0; border: 0; border-top: 1px solid var(--border); }
.prose img { border-radius: 12px; border: 1px solid var(--border); margin: 20px 0; }

/* ------------------------------------------------------------
   Download page
   ------------------------------------------------------------ */

.download-card {
  position: relative;
  max-width: 720px;
  margin: 44px auto 0;
  padding: 46px 36px;
  border-radius: 26px;
  border: 1px solid rgba(124, 58, 237, 0.45);
  background:
    radial-gradient(480px 220px at 50% 0%, rgba(124, 58, 237, 0.18), transparent),
    var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.14);
  color: #d6c7fa;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.download-card h2 { margin-top: 18px; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.015em; }
.download-card .dl-sub { margin-top: 8px; color: var(--text-muted); }
.download-card .btn { margin-top: 28px; }
.dl-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 24px; color: var(--text-faint); font-size: 0.84rem; }

.check-list { list-style: none; display: grid; gap: 12px; margin-top: 16px; }
.check-list li { display: flex; gap: 11px; color: var(--text-body); font-size: 0.96rem; }
.check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
}

.install-steps { counter-reset: instep; list-style: none; margin-top: 16px; display: grid; gap: 16px; }
.install-steps li { display: flex; gap: 15px; }
.install-steps li::before {
  counter-increment: instep;
  content: counter(instep);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.4);
}
.install-steps strong { color: var(--text); display: block; margin-bottom: 2px; }
.install-steps p { color: var(--text-muted); font-size: 0.92rem; }

/* ------------------------------------------------------------
   Support page
   ------------------------------------------------------------ */

.channel-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .channel-cards { grid-template-columns: 1fr; } }

.info-list { list-style: none; display: grid; gap: 14px; margin-top: 16px; }
.info-list li { display: flex; gap: 13px; color: var(--text-body); font-size: 0.96rem; }
.info-list .bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--grad);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer { margin-top: 90px; padding: 60px 0 30px; background: var(--bg-soft); border-top: 1px solid var(--border); }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.5fr; gap: 40px; }

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 300px; color: var(--text-muted); font-size: 0.9rem; }

.footer-col h4 { margin-bottom: 16px; color: var(--text-faint); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col ul a:hover { color: var(--text); }

.footer-legal { color: var(--text-muted); font-size: 0.9rem; }
.footer-note { margin-top: 10px; color: var(--text-faint); font-size: 0.81rem; line-height: 1.55; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.8rem;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ------------------------------------------------------------
   Responsive docs layout
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 32px; }
  .docs-sidebar { position: static; }
  .side-group + .side-group { margin-top: 22px; }
  .side-nav { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; }
}

@media (max-width: 768px) {
  .hero { padding: 76px 0 66px; }
  .section { padding: 62px 0; }
  .hero-sub { font-size: 1.08rem; }
  .download-card { padding: 36px 22px; }
  .cta-band { margin: 64px 0; padding: 44px 22px; }
}

@media (max-width: 640px) {
  .container { width: min(1120px, 100% - 40px); }
  .code-block pre { padding-right: 20px; padding-top: 46px; }
  .copy-btn { top: 8px; right: 8px; }
}

/* ============================================================
   Mods page — tabs & mod cards
   ============================================================ */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.tab-btn:hover { color: var(--text); border-color: var(--border-strong); }
.tab-btn.active {
  color: var(--text);
  border-color: transparent;
  background: var(--grad);
}
.tab-panel { display: none; animation: fadeIn 0.22s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mod-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.mod-card:hover { border-color: rgba(124,58,237,0.45); transform: translateY(-3px); box-shadow: var(--shadow); }
.mod-preview { position: relative; aspect-ratio: 16/10; background: var(--surface-2); }
.mod-preview img { width: 100%; height: 100%; object-fit: cover; }
.mod-preview.placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.1));
  color: var(--text-faint);
  font-size: 2.5rem;
}
.mod-body { padding: 20px; display: flex; flex-direction: column; }
.mod-body h3 { margin: 0 0 8px; font-size: 1.07rem; font-weight: 650; }
.mod-desc { flex: 1; margin: 0 0 14px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.mod-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted); }
.mod-actions { display: flex; gap: 10px; }
.mod-actions .btn { flex: 1; }

@media (max-width: 640px) {
  .tabs { justify-content: center; }
  .mod-grid { grid-template-columns: 1fr; }
}
