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

:root {
  --bg: #111113;
  --surface: #1c1c1f;
  --border: #2e2e32;
  --text: #cccccc;
  --muted: #71717a;
  --accent: #7c6af7;
  --accent2: #a78bfa;
  --error: #f87171;
  --ok: #4ade80;
  --warn: #fbbf24;
  --radius: 8px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: #ffffff !important;
}

.brand-name span {
  color: var(--accent2);
}

a {
  color: var(--accent2);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: var(--accent2);
}

a:hover {
  color: var(--accent);
}

/* ── nav ─────────────────────────────────────────────────────────────── */
nav {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 24px;
}

.nav-brand {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-brand span {
  color: var(--accent2);
}

.nav-brand .nav-version {
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent2);
}

/* ── main content ────────────────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── hero (home page) ────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 0 48px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--border);
}

/* ── feature cards ───────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0;
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-card sup {
  font-size: 8px;
}

.feature-card .footnote {
  font-size: 10px;
  opacity: 0.7;
  margin-top: -8px;
}

/* ── screenshot placeholder ──────────────────────────────────────────── */
.screenshot {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 32px 0;
}

.screenshot-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 32px 0;
}

/* ── page headings ───────────────────────────────────────────────────── */
h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent2);
  margin-top: 28px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 14px;
  color: var(--text);
}

.subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── code blocks ─────────────────────────────────────────────────────── */
code {
  background: #161618;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  color: var(--accent2);
}

pre {
  background: #161618;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 13px;
  line-height: 1.6;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--border);
  border: none;
  border-radius: 4px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

pre:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background: var(--accent);
  color: #fff;
}

.copy-btn.copied {
  background: var(--ok);
  color: #111;
  opacity: 1;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e4e4e7;
}

/* ── lists ────────────────────────────────────────────────────────────── */
ul, ol {
  margin: 12px 0 16px 24px;
  color: var(--text);
}

li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* ── info boxes ──────────────────────────────────────────────────────── */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.7;
}

.info-box strong {
  color: var(--accent2);
}

/* ── os tabs ─────────────────────────────────────────────────────────── */
.os-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.os-tab {
  padding: 8px 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.os-tab:hover {
  color: var(--text);
  background: var(--surface);
}

.os-tab.active {
  color: var(--accent2);
  background: var(--surface);
  border-color: var(--border);
}

.os-tab-content {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px;
}

.os-tab-content.active {
  display: block;
}

/* ── tables ──────────────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}

td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── guide sections ──────────────────────────────────────────────────── */
.guide-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

.guide-section h3 {
  margin-top: 0;
}

.guide-section p:last-child {
  margin-bottom: 0;
}

/* ── footer ──────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 24px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  opacity: 0.6;
}

/* ── step list (getting started) ─────────────────────────────────────── */
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

.step-number {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  margin-right: 10px;
}

.step h3 {
  display: inline;
  margin-top: 0;
  vertical-align: middle;
}

.step p {
  margin-top: 12px;
}

.step p:last-child {
  margin-bottom: 0;
}
