:root {
  --bg:            #0c0a14;
  --bg-2:          #131022;
  --surface:       #16121f;
  --surface-2:     #221c31;
  --border:        #2a2340;
  --border-2:      #362d52;
  --accent:        #8b5cf6;
  --accent-light:  #a78bfa;
  --accent-dim:    rgba(139, 92, 246, .13);
  --accent-border: rgba(139, 92, 246, .35);
  --text:          #f2f0f7;
  --text-2:        #a29db8;
  --text-3:        #6f6a85;
  --green:         #22c55e;
  --mono:          ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  --body:          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── header ─────────────────────────────────────────────────────────────── */

header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 10, 20, .85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; gap: 12px;
  height: 60px;
}
header.site img { width: 26px; height: 26px; border-radius: 6px; }
header.site .name { font-weight: 600; letter-spacing: -.01em; }
header.site nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
header.site nav a { color: var(--text-2); }
header.site nav a:hover { color: var(--text); text-decoration: none; }

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero { padding: 76px 0 56px; text-align: center; }
.badge {
  display: inline-block;
  font-size: 12px; font-family: var(--mono);
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 18px;
}
.hero p.lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 auto 32px;
}

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn:hover { text-decoration: none; border-color: var(--accent-border); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.1); }

/* ── sections ───────────────────────────────────────────────────────────── */

section { padding: 56px 0; border-top: 1px solid var(--border); }
section h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-3); margin: 0 0 8px; font-weight: 600;
}
section h3.title {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
section p { color: var(--text-2); max-width: 68ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}
.card h4 {
  margin: 0 0 7px;
  font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.card p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto;
}
.dot.green { background: var(--green); }

kbd {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--text);
}

/* ── theme gallery ──────────────────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
}
.gallery figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: var(--mono);
  color: var(--text-2);
}
.theme-list { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-list span {
  font-size: 13px; font-family: var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--text-2);
}

/* ── install steps ──────────────────────────────────────────────────────── */

ol.steps { margin: 24px 0 0; padding-left: 0; counter-reset: step; list-style: none; }
ol.steps li {
  counter-increment: step;
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0;
  color: var(--text-2);
  max-width: 68ch;
}
ol.steps li::before {
  content: counter(step);
  flex: 0 0 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  border-radius: 50%;
  font-size: 13px; font-family: var(--mono);
}
ol.steps code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 2px 6px;
}

/* ── prose (privacy page) ───────────────────────────────────────────────── */

.prose { padding: 56px 0 80px; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -.02em; margin: 0 0 6px; }
.prose .updated { color: var(--text-3); font-size: 14px; font-family: var(--mono); margin: 0 0 40px; }
.prose h2 {
  font-size: 19px; text-transform: none; letter-spacing: -.01em;
  color: var(--text); margin: 38px 0 10px; font-weight: 600;
}
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--text); font-weight: 600; }

.callout {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}
.callout p { margin: 0; color: var(--text); }

/* ── footer ─────────────────────────────────────────────────────────────── */

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-3);
  font-size: 14px;
}
footer.site .wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
footer.site a { color: var(--text-2); }
footer.site .spacer { flex: 1 1 auto; }
