/* ─── Design System ───────────────────────────────────────── */
:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-elevated: #242424;
  --bg-hover: #2e2e2e;
  --accent: #e5a00d;
  --accent-rgb: 229, 160, 13;
  --accent-dim: rgba(229, 160, 13, 0.15);
  --accent-dim2: rgba(229, 160, 13, 0.20);
  --accent-glow: rgba(229, 160, 13, 0.08);
  --accent-border: rgba(229, 160, 13, 0.4);
  --accent-hover: #f5b422;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.7);
  --radius: 8px;
  --radius-lg: 12px;
  --nav-height: 64px;
  --sidebar-width: 268px;
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; scroll-behavior: smooth; }
body { overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 50% 50% at 50% 0%, rgba(229, 160, 13, 0.28) 0%, transparent 100%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(229, 160, 13, 0.12) 0%, transparent 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  z-index: 1;
  flex-shrink: 0;
}

.logo-icon {
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.logo-text { color: var(--text-primary); }

.nav-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
}

.nav-tab {
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: var(--accent-glow);
}

.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.nav-github {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.nav-github:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.nav-github svg { width: 18px; height: 18px; }

/* ─── Hamburger (mobile docs) ──────────────────────────────── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.nav-hamburger svg { width: 18px; height: 18px; }

/* ─── Showcase Tab ──────────────────────────────────────────── */
#showcase { display: block; margin-top: var(--nav-height); }
#docs-wrap { display: none; margin-top: var(--nav-height); }

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.btn-secondary svg, .btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero-version {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-version span {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Sections */
.section { margin-bottom: 72px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 3px 10px;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 16px;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-border), var(--shadow);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  color: var(--text-muted);
  font-size: 1.4rem;
  padding-top: 28px;
  align-self: flex-start;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Integrations */
.integrations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.integration-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.integration-chip:hover {
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.integration-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.integration-required { color: var(--accent); }

/* Screenshots */
.screenshots-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.screenshot-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.screenshot-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 0 1px var(--accent-border);
  transform: translateY(-2px);
}

.screenshot-img {
  width: 100%;
  position: relative;
  display: block;
}

.screenshot-img img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  pointer-events: none;
}

.screenshot-label .title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  margin-bottom: 2px;
}

.screenshot-label .sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
}

.footer-logo .logo-icon { color: var(--accent); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Docs Layout ───────────────────────────────────────────── */
.docs-wrap {
  display: flex;
  height: calc(100vh - var(--nav-height));
}

/* Sidebar */
.docs-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.docs-search-wrap {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.docs-search {
  width: 100%;
  padding: 7px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.docs-search::placeholder { color: var(--text-muted); }
.docs-search:focus { border-color: var(--accent-border); }

.docs-tree {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.docs-tree::-webkit-scrollbar { width: 4px; }
.docs-tree::-webkit-scrollbar-track { background: transparent; }
.docs-tree::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 2px; }

/* Tree Groups */
.tree-group { margin-bottom: 2px; }

.tree-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: color 0.2s;
  text-align: left;
}

.tree-group-header:hover { color: var(--text-secondary); }

.tree-group-header .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
  opacity: 0.5;
  flex-shrink: 0;
}

.tree-group.collapsed .chevron { transform: rotate(-90deg); }

.tree-group-items { overflow: hidden; }
.tree-group.collapsed .tree-group-items { display: none; }

/* Tree Leaves */
.tree-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 14px 6px 24px;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.tree-item.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-left-color: var(--accent);
  font-weight: 600;
}

.tree-item.hidden { display: none; }

/* Doc Content */
.docs-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px 52px 80px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.docs-content::-webkit-scrollbar { width: 6px; }
.docs-content::-webkit-scrollbar-track { background: transparent; }
.docs-content::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }

/* Doc Sections */
.doc-section { display: none; max-width: 820px; }
.doc-section.active { display: block; }

.doc-welcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 600px;
}

/* Doc Typography */
.doc-section h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.doc-section .doc-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.doc-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.doc-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--accent);
}

.doc-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.doc-section strong { color: var(--text-primary); font-weight: 600; }

.doc-section ul, .doc-section ol {
  padding-left: 0;
  margin-bottom: 16px;
  list-style: none;
}

.doc-section ul li, .doc-section ol li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 3px 0 3px 18px;
  position: relative;
}

.doc-section ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
}

.doc-section ol {
  counter-reset: ol-counter;
}
.doc-section ol li {
  counter-increment: ol-counter;
}
.doc-section ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}

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

.doc-section a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* Code blocks */
.doc-section pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.doc-section code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 1px 5px;
}

.doc-section pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 1em;
}

/* Callout boxes */
.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  line-height: 1.6;
  border-left: 3px solid;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.callout-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }

.callout-note {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text-secondary);
}

.callout-tip {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.6);
  color: var(--text-secondary);
}

.callout-warn {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--text-secondary);
}

/* Field reference cards */
.field-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.field-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.field-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.field-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.field-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 10px;
}

.badge-required {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-optional {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-auto {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.field-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Step cards (installation) */
.install-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.install-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.install-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.install-step-body { flex: 1; }

.install-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.install-step-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.install-step-body pre { margin-bottom: 0; }

/* API table */
.api-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.api-table thead {
  background: var(--bg-elevated);
}

.api-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.api-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}

.api-table tr:last-child td { border-bottom: none; }

.api-table tr:hover td { background: var(--bg-hover); }

.method {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.03em;
}

.method-get { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.method-post { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.method-put { background: rgba(234, 179, 8, 0.12); color: #facc15; }
.method-delete { background: rgba(239, 68, 68, 0.12); color: #f87171; }

.api-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* Sidebar overlay (mobile) */
.docs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-tabs { position: static; transform: none; }
  .nav-hamburger.hamburger-visible { display: flex; }
  .nav-inner { gap: 12px; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-arrow { display: none; }

  .docs-sidebar {
    position: fixed;
    left: -100%;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    z-index: 200;
    transition: left 0.3s ease;
    width: min(var(--sidebar-width), 85vw);
  }

  .docs-sidebar.open { left: 0; }
  .docs-overlay.open { display: block; }

  .docs-content { padding: 28px 24px 60px; }
}

/* ─── Install method tabs ──────────────────────────────────── */
.install-method-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
}
.install-method-tab {
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.install-method-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.install-method-tab.active { background: var(--accent); color: #000; font-weight: 600; }
.install-method-tab.active:hover { background: var(--accent-hover); }
.method-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0,0,0,0.25);
  color: inherit;
  padding: 1px 6px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.callout-tip {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.06);
}
.callout-tip .callout-icon { color: #22c55e; }
.doc-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-border); }
.doc-link:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

@media (max-width: 700px) {
  .nav-tab { padding: 0 14px; font-size: 0.82rem; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .docs-content { padding: 20px 16px 60px; }
  .doc-section h1 { font-size: 1.6rem; }
}
