/* ═══════════════════════════════════════════════════════
   GooLang Backend — Theme System
   ═══════════════════════════════════════════════════════ */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Theme (default) ── */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --bg-elevated: #1a1a24;
  --bg-input: #0d0d14;
  --border: #1e1e2a;
  --border-hover: #2a2a3a;
  --text: #e4e4ec;
  --text-dim: #8888a0;
  --text-faint: #555570;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --accent-subtle: rgba(108, 92, 231, 0.1);
  --green: #00b894;
  --green-dim: rgba(0, 184, 148, 0.15);
  --orange: #fdcb6e;
  --red: #e17055;
  --blue: #74b9ff;
  --pink: #fd79a8;
  --code-bg: #0d0d14;
  --nav-bg: rgba(10, 10, 15, 0.8);
  --hero-glow-opacity: 0.15;
  --feature-card-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  --terminal-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --arch-glow: 0 0 20px var(--accent-glow);
  --badge-border: rgba(108, 92, 231, 0.2);
}

/* ── Light Theme ── */
[data-theme="light"] {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f7;
  --bg-elevated: #f0f0f5;
  --bg-input: #f5f5f8;
  --border: #e2e2ea;
  --border-hover: #c8c8d4;
  --text: #1a1a2e;
  --text-dim: #6b6b80;
  --text-faint: #9999aa;
  --accent: #5a4bd1;
  --accent-light: #6c5ce7;
  --accent-glow: rgba(90, 75, 209, 0.15);
  --accent-subtle: rgba(90, 75, 209, 0.06);
  --green: #00a381;
  --green-dim: rgba(0, 163, 129, 0.1);
  --orange: #d4a017;
  --red: #c0392b;
  --blue: #2980b9;
  --pink: #e84393;
  --code-bg: #f4f4f8;
  --nav-bg: rgba(250, 250, 250, 0.85);
  --hero-glow-opacity: 0.08;
  --feature-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --terminal-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --arch-glow: 0 0 20px rgba(90, 75, 209, 0.08);
  --badge-border: rgba(90, 75, 209, 0.15);
}

/* ═══════════════════════════════════════════════════════
   Base
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════
   Theme Toggle
   ═══════════════════════════════════════════════════════ */

.theme-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.theme-icon-sun, .theme-icon-moon {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .theme-icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .theme-icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="light"] .theme-icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* ═══════════════════════════════════════════════════════
   Nav
   ═══════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.logo-icon { font-size: 1.4rem; color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-github {
  background: var(--bg-elevated);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; transition: var(--transition); }

/* ═══════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.03;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.glow-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: 20%; opacity: var(--hero-glow-opacity); }
.glow-2 { width: 400px; height: 400px; background: var(--green); bottom: -100px; right: 10%; opacity: calc(var(--hero-glow-opacity) * 0.7); }
.glow-3 { width: 300px; height: 300px; background: var(--pink); top: 30%; right: 30%; opacity: calc(var(--hero-glow-opacity) * 0.5); }
.hero-content { position: relative; text-align: center; max-width: 800px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-subtle);
  border: 1px solid var(--badge-border);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-badge a { color: inherit; text-decoration: none; font-weight: 700; }
.hero-badge a:hover { text-decoration: underline; }
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }

/* ═══════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-icon { font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════
   Terminal
   ═══════════════════════════════════════════════════════ */

.hero-terminal {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: var(--terminal-shadow);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title { color: var(--text-faint); font-size: 0.8rem; font-family: var(--mono); }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 0.85rem; line-height: 1.8; }
.terminal-line { opacity: 0; animation: fadeInLine 0.5s forwards; }
.terminal-line:nth-child(1) { animation-delay: 0.3s; }
.terminal-line:nth-child(2) { animation-delay: 1.2s; }
.terminal-line:nth-child(3) { animation-delay: 2.0s; }
.terminal-line:nth-child(4) { animation-delay: 2.8s; }
.terminal-line:nth-child(5) { animation-delay: 3.2s; }
@keyframes fadeInLine { to { opacity: 1; } }
.prompt { color: var(--green); margin-right: 8px; }
.cmd { color: var(--text); }
.output { color: var(--text-dim); }
.output.success { color: var(--green); }

/* ═══════════════════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════════════════ */

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-subtitle { color: var(--text-dim); font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════
   Features
   ═══════════════════════════════════════════════════════ */

.features { padding: 120px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--feature-card-shadow);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.feature-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  background: var(--accent-subtle);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════
   Quickstart
   ═══════════════════════════════════════════════════════ */

.quickstart {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-subtle) 50%, var(--bg) 100%);
}
.steps { max-width: 700px; margin: 0 auto; }
.step { display: flex; gap: 24px; margin-bottom: 32px; align-items: flex-start; }
.step-number {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 32px;
  padding-top: 14px;
}
.step-content { flex: 1; }
.step-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.code-block {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-light);
  overflow-x: auto;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}
.copy-btn:hover { color: var(--text); border-color: var(--border-hover); }

/* ═══════════════════════════════════════════════════════
   API Explorer
   ═══════════════════════════════════════════════════════ */

.api { padding: 120px 0; }
.api-explorer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.api-sidebar { background: var(--bg-card); padding: 16px; }
.api-group { margin-bottom: 16px; }
.api-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  padding: 4px 12px;
  display: block;
  margin-bottom: 4px;
}
.api-endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.api-endpoint:hover { background: var(--bg-elevated); color: var(--text); }
.api-endpoint.active { background: var(--accent-subtle); color: var(--text); }
.method {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  min-width: 40px;
  text-align: center;
}
.method.get { background: var(--green-dim); color: var(--green); }
.method.post { background: rgba(116, 185, 255, 0.15); color: var(--blue); }
.method.put { background: rgba(253, 203, 110, 0.15); color: var(--orange); }
.method.delete { background: rgba(225, 112, 85, 0.15); color: var(--red); }

.api-panel { background: var(--bg-card); display: flex; flex-direction: column; }
.api-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.api-method-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--green-dim);
  color: var(--green);
  font-family: var(--mono);
}
.api-panel-header code { flex: 1; font-family: var(--mono); font-size: 0.9rem; }
.api-panel-body { padding: 20px; flex: 1; overflow: auto; }
.api-section { margin-bottom: 16px; }
.api-section label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition);
}
textarea:focus { border-color: var(--accent); }
.response-output {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.85rem;
  min-height: 120px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--green);
  line-height: 1.6;
}
.response-placeholder { color: var(--text-faint); }

/* ═══════════════════════════════════════════════════════
   Architecture
   ═══════════════════════════════════════════════════════ */

.architecture { padding: 120px 0; }
.arch-diagram { max-width: 600px; margin: 0 auto 48px; }
.arch-layer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}
.arch-layer:hover { border-color: var(--accent); box-shadow: var(--arch-glow); }
.arch-layer-label { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.arch-layer-desc { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 8px; }
.arch-files { font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); }
.arch-api { border-left: 3px solid var(--accent); }
.arch-app { border-left: 3px solid var(--green); }
.arch-infra { border-left: 3px solid var(--blue); }
.arch-config { border-left: 3px solid var(--orange); }
.arch-arrow {
  text-align: center;
  padding: 12px 0;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-family: var(--mono);
}
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-badge {
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--transition);
}
.tech-badge:hover { border-color: var(--accent); color: var(--text); }

/* ═══════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════ */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-divider { color: var(--text-faint); }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }
.footer-copy a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-copy a:hover { text-decoration: underline; }
.footer-right { display: flex; gap: 24px; }
.footer-right a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-right a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════
   Toast
   ═══════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--green);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════
   Docs Layout
   ═══════════════════════════════════════════════════════ */

.docs-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.docs-nav-group { margin-bottom: 28px; }
.docs-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.docs-nav-group a {
  display: block;
  padding: 6px 10px;
  margin: 2px 0;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.docs-nav-group a:hover { color: var(--text); background: var(--bg-elevated); }
.docs-nav-group a.active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-left-color: var(--accent);
  font-weight: 600;
}
.docs-content { min-width: 0; }
.docs-header { margin-bottom: 48px; }
.docs-header h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.docs-header p { color: var(--text-dim); font-size: 1.05rem; }
.docs-section { margin-bottom: 64px; scroll-margin-top: 96px; }
.docs-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.docs-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
}
.docs-section p { color: var(--text-dim); margin-bottom: 16px; line-height: 1.75; }
.docs-section p code, .docs-section li code {
  font-family: var(--mono);
  background: var(--accent-subtle);
  color: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
.docs-section ul, .docs-section ol { color: var(--text-dim); margin: 0 0 16px 20px; line-height: 1.8; }
.docs-section > .code-block { margin-bottom: 16px; }
.docs-callout {
  display: flex;
  gap: 12px;
  background: var(--accent-subtle);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.docs-callout strong { color: var(--text); }

.docs-table-wrap { overflow-x: auto; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.docs-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.docs-table th, .docs-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.docs-table th { color: var(--text-faint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-card); }
.docs-table td { color: var(--text-dim); font-family: var(--mono); font-size: 0.82rem; }
.docs-table td.desc { font-family: var(--font); white-space: normal; }
.docs-table tr:last-child td { border-bottom: none; }

.docs-endpoint-row { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.docs-endpoint-row code { font-family: var(--mono); font-size: 0.95rem; color: var(--text); }

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .api-explorer { grid-template-columns: 1fr; }
  .api-sidebar { border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .step { flex-direction: column; gap: 8px; }
  .docs-shell { grid-template-columns: 1fr; padding-top: 88px; }
  .docs-sidebar { position: static; max-height: none; border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 16px; }
  .docs-table th, .docs-table td { white-space: normal; }
}

/* ═══════════════════════════════════════════════════════
   Theme Transition
   ═══════════════════════════════════════════════════════ */

body, .nav, .feature-card, .tech-badge, .arch-layer,
.code-block, .response-output, textarea,
.api-sidebar, .api-panel, .hero-terminal,
.footer, .btn, .copy-btn, .theme-toggle {
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}
