/* ==========================================================================
   DocOrbit — Developer Theme (Context7 & Supabase Inspired)
   Palette: Matte Charcoal, Emerald (#10b981 / #34d399), Slate & Hairline Borders
   ========================================================================== */

:root {
  --bg: #090d12;
  --bg-subtle: #0d1219;
  --surface: #121822;
  --surface-raised: #18202d;
  --surface-card: #111722;
  --surface-hover: #1b2434;

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-bright: rgba(52, 211, 153, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.28);
  --emerald-glow: rgba(52, 211, 153, 0.2);

  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --danger: #f43f5e;
  --danger-dim: rgba(244, 63, 94, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Subtle matte background texture (no loud distracting grids) */
.bg-subtle-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(900px 450px at 20% -50px, rgba(16, 185, 129, 0.08), transparent 70%),
    radial-gradient(800px 400px at 85% 100px, rgba(56, 189, 248, 0.05), transparent 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 48px;
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Announcement Banner (Supabase Style)
   ========================================================================== */
.top-banner {
  background: #0b1016;
  border-bottom: 1px solid var(--border);
  padding: 6px 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-banner a {
  color: var(--emerald-bright);
  text-decoration: none;
  font-weight: 500;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-banner a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Navigation Bar (Clean, Non-wrapping, High Craft)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
  display: block;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--emerald-dim);
  color: var(--emerald-bright);
  border: 1px solid var(--emerald-border);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  white-space: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--emerald-bright);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-btn-secondary {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.nav-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-btn-primary {
  background: var(--emerald);
  color: #05140c;
  font-weight: 600;
  border: 1px solid var(--emerald-bright);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.nav-btn-primary:hover {
  background: var(--emerald-bright);
  color: #000000;
}

.glama-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  text-decoration: none;
  white-space: nowrap;
}

.glama-score {
  color: var(--emerald-bright);
  font-weight: 700;
}

.glama-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* ==========================================================================
   Hero Section (Left-Aligned Context7 & Supabase Style)
   ========================================================================== */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-border);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.text-emerald {
  color: var(--emerald-bright);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cmd-box {
  display: flex;
  align-items: center;
  background: #0d131c;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 6px 5px 14px;
  gap: 1rem;
  max-width: 480px;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-cmd-box code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--emerald-bright);
  flex: 1;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.copy-btn.copied {
  background: var(--emerald-dim);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald);
  color: #03140a;
  border: 1px solid var(--emerald-bright);
}

.btn-primary:hover {
  background: var(--emerald-bright);
  color: #000000;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Hero Visual Console / Inspector (Right Column)
   ========================================================================== */
.hero-console {
  background: #0d121b;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
}

.console-header {
  height: 38px;
  background: #080c12;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem;
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.console-dot.red { background: #ef4444; }
.console-dot.yellow { background: #f59e0b; }
.console-dot.green { background: #10b981; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.console-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
}

.console-line {
  margin-bottom: 0.6rem;
}

.cl-err {
  color: var(--danger);
  background: var(--danger-dim);
  padding: 2px 4px;
  border-radius: 3px;
}

.cl-ok {
  color: var(--emerald-bright);
  background: var(--emerald-dim);
  padding: 2px 4px;
  border-radius: 3px;
}

.cl-dim {
  color: var(--text-muted);
}

.cl-accent {
  color: var(--cyan);
}

/* ==========================================================================
   How to Use DocOrbit & Agent Prompt Showcase
   ========================================================================== */
.how-to-use-section {
  border-top: 1px solid var(--border);
  background: #080c12;
  position: relative;
}

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.step-card {
  background: #0d121b;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.step-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-bright);
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-border);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.step-code {
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--emerald-bright);
  word-break: break-all;
}

/* Prompt Studio Showcase */
.prompt-studio {
  background: #0d131e;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.75);
}

.prompt-studio-header {
  background: #090d14;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.prompt-studio-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
}

.prompt-studio-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
}

.prompt-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.prompt-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.prompt-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.prompt-tab.active {
  background: var(--emerald-dim);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
  font-weight: 600;
}

.prompt-pane {
  display: none;
  padding: 1.5rem;
}

.prompt-pane.active {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .prompt-pane.active {
    grid-template-columns: 1fr;
  }
}

.prompt-left, .prompt-right {
  display: flex;
  flex-direction: column;
}

.pane-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-box {
  background: #06090e;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: #e2e8f0;
  position: relative;
  flex: 1;
}

.prompt-box .highlight {
  color: var(--emerald-bright);
  font-weight: 600;
}

.prompt-box .url {
  color: var(--cyan);
  text-decoration: underline;
}

.prompt-notes {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.prompt-notes strong {
  color: var(--emerald-bright);
}

.trace-timeline {
  background: #06090e;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.trace-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.trace-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  font-size: 0.7rem;
}

.trace-icon.ok {
  background: var(--emerald-dim);
  color: var(--emerald-bright);
  border: 1px solid var(--emerald-border);
}

.trace-content {
  flex: 1;
}

.trace-fn {
  color: var(--emerald-bright);
  font-weight: 600;
}

.trace-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 2px;
}

.verified-code-box {
  background: #06090e;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.code-box-header {
  background: #090d14;
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.code-box-content {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #cbd5e1;
  overflow-x: auto;
  max-height: 240px;
}

.code-box-content .cm { color: #64748b; }
.code-box-content .kw { color: #f472b6; }
.code-box-content .fn { color: #60a5fa; }
.code-box-content .str { color: #34d399; }

/* ==========================================================================
   Supabase-Style Bento Features (The 5 Vectors Solved)
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-bright);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-card {
  background: #0f141d;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.bento-inner {
  margin-top: auto;
  background: #090c12;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ==========================================================================
   Multi-Harness Tabs & Code Viewer
   ========================================================================== */
.harness-card {
  background: #0e131b;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.harness-tabs {
  display: flex;
  overflow-x: auto;
  background: #080c12;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.5rem 0;
  gap: 2px;
  white-space: nowrap;
}

.h-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  white-space: nowrap;
}

.h-tab:hover {
  color: var(--text-secondary);
}

.h-tab.active {
  background: #0e131b;
  color: var(--emerald-bright);
  border-color: var(--border);
  border-bottom-color: #0e131b;
  font-weight: 600;
}

.h-panel {
  display: none;
  padding: 1.5rem;
}

.h-panel.active {
  display: block;
}

.h-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.code-box {
  background: #06090e;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #f1f5f9;
  overflow-x: auto;
}

/* ==========================================================================
   Competitor Benchmark Table
   ========================================================================== */
.benchmark-card {
  background: #0e131b;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.bm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.bm-table th,
.bm-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bm-table th {
  background: #080c12;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.bm-table th.bm-highlight,
.bm-table td.bm-highlight {
  background: rgba(16, 185, 129, 0.05);
  border-left: 1px solid var(--emerald-border);
  border-right: 1px solid var(--emerald-border);
  font-weight: 600;
  color: #ffffff;
}

.bm-table th.bm-highlight {
  color: var(--emerald-bright);
}

/* ==========================================================================
   15 MCP Tools Grid
   ========================================================================== */
.tools-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tf-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.tf-btn.active {
  background: var(--emerald-dim);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.tool-item {
  background: #0f141d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: all 0.15s ease;
}

.tool-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.tool-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tool-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald-bright);
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.tool-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.tool-sig {
  background: #070a0f;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: nowrap;
}

/* ==========================================================================
   Documentation Page Layout (/docs)
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  padding: 2rem 0 5rem;
  min-height: calc(100vh - 120px);
}

.docs-sidebar {
  position: sticky;
  top: 84px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}

.docs-nav-group {
  margin-bottom: 1.75rem;
}

.docs-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.docs-nav-item a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.docs-nav-item a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.docs-nav-item.active a {
  background: var(--emerald-dim);
  color: var(--emerald-bright);
  font-weight: 600;
}

.docs-body {
  max-width: 860px;
}

.docs-body h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.docs-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.docs-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
}

.docs-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.docs-body p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.docs-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--emerald-bright);
}

.docs-body pre {
  background: #070b10;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #f1f5f9;
}

.docs-callout {
  background: #0d141e;
  border-left: 3px solid var(--emerald);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.docs-callout p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  background: #070a0f;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-meta p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 300px;
  margin-top: 0.5rem;
}

.footer-col-group {
  display: flex;
  gap: 3rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .bento-span-7, .bento-span-5, .bento-span-4 { grid-column: span 12; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .explorer-header { flex-direction: column; align-items: stretch; }
  .search-filter-box { max-width: 100%; }
}
