/* ── Tokens ───────────────────────────────────────── */
:root {
  --bg-primary: #09090b;
  --bg-secondary: #0f0f12;
  --bg-tertiary: #16161a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 35%, #3b82f6 65%, #06b6d4 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.15));
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.18);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.06);
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: var(--text-primary); font-weight: 600; }

/* ── Background pattern ──────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ── Container ────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Section spacing ──────────────────────────────── */
section { padding: 120px 0; }
.section-alt { background: var(--bg-secondary); }

/* ── Fade-in animation ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Gradient text ────────────────────────────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Section header ───────────────────────────────── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 12px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-align: center;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.nav-logo-icon {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-github {
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.nav-github:hover { opacity: 1; }

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { z-index: 1; }
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-purple);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Terminal mockup */
.hero-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto 40px;
  align-items: start;
}
.hero-col { padding: 0 16px; }
.hero-col-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-align: center;
}
.hero-col-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}
.hero-col-note a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.hero-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  align-self: stretch;
}
.hero-sep-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
}
.hero-sep-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* How It Works comparison layout */
.hiw-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  max-width: 960px;
  margin: 56px auto 0;
  align-items: start;
}
.hiw-col {
  padding: 0 16px;
  min-width: 0;
  overflow: hidden;
}
.hiw-col-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-align: center;
}
.hiw-col-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
  line-height: 1.5;
}
.hiw-col-note a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.hiw-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  align-self: stretch;
}
.hiw-sep-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
}
.hiw-sep-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hiw-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
}
.hiw-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.hiw-step-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.terminal {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-glow), 0 24px 48px rgba(0,0,0,0.4);
}
.terminal-stacked {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.terminal-sm {
  font-size: 0.7rem;
  padding: 14px 16px;
  min-height: auto;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
  min-height: 140px;
  white-space: pre;
  overflow-x: auto;
}
.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent-cyan);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* CTA buttons */
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 30px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--text-primary); border-color: var(--border-hover); }

/* ════════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-purple), var(--accent-blue), var(--accent-cyan), var(--border));
  opacity: 0.4;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}
.step code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-primary);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  display: inline-block;
  margin-bottom: 8px;
}
.step-cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.step-cmd code {
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 0.7rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.copy-btn-sm {
  font-size: 0.7rem;
  padding: 3px 8px;
  flex-shrink: 0;
}
.step a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ════ Why section ════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.why-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.why-card code {
  font-size: 0.78rem;
  background: var(--bg-tertiary);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Side-by-side architecture diagram */
.arch-side {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 48px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}
.arch-half { text-align: center; }
.arch-half-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 80px;
}
.arch-node svg { color: var(--text-muted); }
.arch-node-hl {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.06);
}
.arch-arr {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.arch-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  align-self: stretch;
}
.arch-divider::before,
.arch-divider::after {
  content: '';
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
}
.arch-divider span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 0;
}

/* Dual architecture diagram */
.arch-dual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.arch-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.arch-path-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.arch-path-sep {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 0;
}

/* Architecture diagram */
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 64px;
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.arch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 160px;
}
.arch-box-highlight {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.08);
}
.arch-icon { font-size: 1.5rem; }
.arch-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════
   MODELS
   ════════════════════════════════════════════════════ */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.model-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.model-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.model-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.model-icon-gemini { background: linear-gradient(135deg, #4285f4, #34a853); }
.model-icon-openai { background: linear-gradient(135deg, #10a37f, #0d8a6a); }
.model-icon-llama { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.model-icon-deepseek { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.model-icon-mistral { background: linear-gradient(135deg, #f97316, #ef4444); }
.model-icon-ollama { background: linear-gradient(135deg, #52525b, #3f3f46); font-size: 1.3rem; }
.model-card h3 {
  font-size: 1rem;
  font-weight: 600;
}
.model-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.model-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.model-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-primary);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  display: inline-block;
}

/* ════════════════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 0.3s;
}
.feature-card:hover { border-color: var(--border-hover); }
.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 14px;
  display: block;
  color: var(--accent-emerald);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}
.feature-card code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent-cyan);
}

/* ════════════════════════════════════════════════════
   DOCS
   ════════════════════════════════════════════════════ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s;
}
.doc-card:hover { border-color: var(--border-hover); }
.doc-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.doc-content pre {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
  margin: 0;
}
.doc-content pre code { background: none; border: none; padding: 0; }
.hl-label { color: var(--accent-purple); font-weight: 600; }
.hl-method { color: var(--accent-emerald); font-weight: 600; }
.hl-comment { color: var(--text-muted); }
.hl-cmd { color: var(--accent-cyan); }

/* Doc table */
.doc-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.doc-row:last-child { border-bottom: none; }
.doc-row code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-primary);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  white-space: nowrap;
}
.doc-row span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: right;
}
.doc-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.doc-note code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent-cyan);
}

/* Doc flow */
.doc-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.doc-flow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.doc-flow-item code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-primary);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  white-space: nowrap;
}
.doc-flow-item span { color: var(--text-secondary); }

/* ════════════════════════════════════════════════════
   EXAMPLES
   ════════════════════════════════════════════════════ */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
  position: relative;
}
.example-card:hover { border-color: var(--border-hover); }
.example-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.example-header h3 {
  font-size: 0.92rem;
  font-weight: 600;
}
.example-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  white-space: nowrap;
}
.example-card pre {
  padding: 16px 24px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
  margin: 0;
}
.example-card pre code { background: none; border: none; padding: 0; }
.example-card .copy-btn {
  position: absolute;
  top: 18px;
  right: 18px;
}

/* ════════════════════════════════════════════════════
   INSTALL
   ════════════════════════════════════════════════════ */
#install {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.install-hero {
  text-align: center;
  margin-bottom: 48px;
}
.install-cmd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  max-width: 420px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}
.install-cmd .dollar {
  color: var(--text-muted);
  user-select: none;
}
.install-alt {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.install-cmd-small {
  font-size: 0.92rem;
  padding: 12px 20px;
  max-width: 300px;
  box-shadow: none;
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-weight: 500;
}
.copy-btn:hover { color: var(--text-primary); border-color: var(--border-hover); }
.copy-btn.copied { color: var(--accent-emerald); border-color: var(--accent-emerald); }

/* Quickstart */
.quickstart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.quickstart h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qs-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.qs-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}
.qs-step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}
.qs-step a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(6, 182, 212, 0.3);
  transition: text-decoration-color 0.2s;
}

/* ════ Guides ════ */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.guide-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.guide-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.guide-steps { display: flex; flex-direction: column; gap: 16px; }
.guide-step {
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.6;
}
.guide-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}
.guide-step a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.guide-step code { font-size: 0.78rem; background: var(--bg-primary); padding: 1px 5px; border-radius: 4px; }
.guide-step pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: auto;
}
.guide-step pre code { background: none; padding: 0; }
.guide-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ════ FAQ ════ */
.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
  opacity: 0.85;
}
.faq-item code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: rgba(127,127,127,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline;
  white-space: nowrap;
}
.faq-item summary code {
  font-weight: 400;
  font-size: 0.85em;
}
.qs-step a:hover { text-decoration-color: var(--accent-cyan); }
.qs-step code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-primary);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  display: inline-block;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Path Tabs ─────────────────────────────────���─── */
.paths-container {
  margin-top: 40px;
}
.path-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 4px 4px 0;
  border: 1px solid var(--border);
  border-bottom: none;
}
.path-tab {
  flex: 1;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.path-tab:hover {
  color: var(--text-secondary);
}
.path-tab.active {
  color: var(--text-primary);
  background: var(--bg-card);
}
.path-panel {
  display: none;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.path-panel.active {
  display: block;
}
.path-panel .steps-grid {
  margin-top: 0;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .nav-links a:not(.nav-github) { display: none; }
  .hero-compare { grid-template-columns: 1fr; gap: 24px; }
  .hero-sep { flex-direction: row; padding: 8px 0; }
  .hero-sep-line { height: 1px; width: 100%; flex: 1; background: linear-gradient(to right, transparent, var(--border-hover), transparent); }
  .steps-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .steps-grid::before { display: none; }
  .models-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }
  .arch-diagram { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .arch-side { grid-template-columns: 1fr; gap: 24px; }
  .arch-divider { flex-direction: row; padding: 8px 0; }
  .arch-divider::before, .arch-divider::after { height: 1px; width: 100%; background: linear-gradient(to right, transparent, var(--border-hover), transparent); }
  .hero-stats { gap: 20px; }
  .hero-stats .stat-sep { height: 24px; }
  .install-alt { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .install-cmd { padding: 16px 20px; font-size: 1rem; }
  .terminal-body { font-size: 0.72rem; padding: 14px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stats .stat-sep { display: none; }
}

/* ════════════════════════════════════════════════════
   THEME TOGGLE
   ════════════════════════════════════════════════════ */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ════════════════════════════════════════════════════
   LIGHT THEME
   ════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f0f0f2;
  --bg-tertiary: #e4e4e7;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --text-primary: #18181b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --accent-purple: #7c3aed;
  --accent-blue: #2563eb;
  --accent-cyan: #0891b2;
  --accent-emerald: #059669;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 35%, #2563eb 65%, #0891b2 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.08), rgba(8, 145, 178, 0.08));
  --border: rgba(0, 0, 0, 0.10);
  --border-hover: rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ── Light: background ── */
html[data-theme="light"] body::before {
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* ── Light: nav ── */
html[data-theme="light"] .nav {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ── Light: terminals stay dark (code looks better on dark) ── */
html[data-theme="light"] .terminal {
  background: #1c1c2e;
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
html[data-theme="light"] .terminal-body { color: #d4d4d8; }
html[data-theme="light"] .terminal-title { color: #a1a1aa; }
html[data-theme="light"] .terminal-bar { border-bottom-color: rgba(255,255,255,0.06); }

/* ── Light: install command boxes ── */
html[data-theme="light"] .install-cmd {
  background: #1c1c2e;
  color: #d4d4d8;
  border-color: rgba(0,0,0,0.10);
}
html[data-theme="light"] .install-cmd span { color: #d4d4d8; }
html[data-theme="light"] .install-cmd .dollar { color: #71717a; }

/* ── Light: code blocks ── */
html[data-theme="light"] .step-cmd {
  background: #1c1c2e;
  border-color: rgba(0,0,0,0.10);
}
html[data-theme="light"] .step-cmd code {
  color: #06b6d4;
  background: none;
}
html[data-theme="light"] code {
  background: rgba(0,0,0,0.06);
}
html[data-theme="light"] .model-id {
  background: rgba(0,0,0,0.05);
  color: var(--accent-cyan);
}
html[data-theme="light"] .qs-step code {
  background: #1c1c2e;
  color: #06b6d4;
}

/* ── Light: cards ── */
html[data-theme="light"] .model-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .doc-card,
html[data-theme="light"] .example-card,
html[data-theme="light"] .guide-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
html[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

/* ── Light: section alternating bg ── */
html[data-theme="light"] .section-alt {
  background: #f4f4f5;
}

/* ── Light: gradient text ── */
html[data-theme="light"] .gradient-text {
  -webkit-text-fill-color: transparent;
}

/* ── Light: copy buttons ── */
html[data-theme="light"] .copy-btn {
  background: rgba(0,0,0,0.05);
  color: var(--text-secondary);
  border-color: rgba(0,0,0,0.10);
}

/* ── Light: quickstart ── */
html[data-theme="light"] .quickstart {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

/* ── Light: guide code blocks ── */
html[data-theme="light"] .guide-step pre {
  background: #1c1c2e;
  color: #d4d4d8;
  border-color: rgba(0,0,0,0.10);
}
html[data-theme="light"] .guide-step pre code {
  background: none;
  color: #d4d4d8;
}

/* Model icon SVG colors — make all visible on dark bg */
.model-icon img[alt="Google Gemini"], .model-icon img[alt="Meta"], .model-icon img[alt="NVIDIA"], .model-icon img[alt="Ollama"] {
  filter: brightness(0) invert(1);
}
/* In light mode, keep them dark */
html[data-theme="light"] .model-icon {
  background: rgba(0,0,0,0.06);
}
html[data-theme="light"] .model-icon img {
  filter: none;
}
