/* ===== DESIGN SYSTEM — Ollama Herd ===== */

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f7;
  --bg-card: #fafafa;
  --border: #ebebeb;
  --border-hover: #d4d4d4;
  --text: #0a0a0a;
  --text-secondary: #6b6b6b;
  --text-dim: #999999;
  --neon: #00c853;
  --neon-dim: rgba(0, 200, 83, 0.08);
  --neon-glow: rgba(0, 200, 83, 0.3);
  --terminal-bg: #0a0a0a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 1rem;
  text-decoration: none; color: var(--text);
}
.nav-logo svg { width: 28px; height: 28px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.825rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.btn-github {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: var(--text); color: #ffffff !important;
  border: 1px solid var(--text); border-radius: 6px;
  text-decoration: none; font-size: 0.825rem; font-weight: 500;
  transition: all 0.2s;
}
.btn-github:hover { opacity: 0.8; }
.btn-github svg { width: 16px; height: 16px; fill: #ffffff; }

/* Hamburger menu button (mobile only) */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; margin-left: 0.5rem;
  flex-direction: column; gap: 4px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile menu overlay */
.nav-mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 4.5rem 2rem 2rem;
  flex-direction: column; align-items: center; gap: 0.25rem;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--text); text-decoration: none;
  font-size: 1.1rem; font-weight: 500;
  padding: 0.75rem 1.5rem; border-radius: 8px;
  transition: all 0.2s; width: 100%; text-align: center;
  max-width: 300px;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { background: var(--bg-subtle); color: var(--neon); }
.nav-mobile-menu .btn-github {
  margin-top: 1rem; justify-content: center;
  padding: 0.75rem 2rem; font-size: 0.95rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; background: var(--neon); color: #fff;
  border-radius: 8px; text-decoration: none;
  font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--neon-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; background: transparent;
  color: var(--text-secondary); border: 1px solid var(--border);
  border-radius: 8px; text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text); }

/* ===== TERMINAL ===== */
.terminal {
  background: var(--terminal-bg); border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px; max-width: 560px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  text-align: left; overflow: hidden;
}
.terminal-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot { width: 8px; height: 8px; 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-body {
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; line-height: 1.8; color: #94a3b8;
}
.terminal-body .comment { color: #64748b; }
.terminal-body .command { color: #00ff87; }
.terminal-body .flag { color: #94a3b8; }

/* ===== SECTIONS ===== */
section {
  padding: 6rem 2rem; max-width: 1100px; margin: 0 auto;
}
.section-label {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--neon); margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-secondary); font-size: 1rem;
  max-width: 560px; margin-bottom: 3rem; line-height: 1.7;
}

/* ===== HERO (index page) ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, var(--neon-dim) 0%, transparent 70%);
  pointer-events: none; opacity: 0.5;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.75rem; color: var(--text-secondary);
  margin-bottom: 2.5rem; background: var(--bg);
}
.hero-badge .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--neon); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; max-width: 800px; margin-bottom: 1.5rem;
}
.neon { color: var(--neon); }

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-secondary); max-width: 500px;
  margin-bottom: 3rem; line-height: 1.7;
}

.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  flex-wrap: wrap; justify-content: center; margin-bottom: 4rem;
}

/* ===== NEGATION ===== */
.negation {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.negation-item {
  font-size: 0.85rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 0.4rem;
}
.negation-item .x { color: #ef4444; font-weight: 600; font-size: 0.8rem; }
.negation-item span { text-decoration: line-through; }

/* ===== PAIN STORY ===== */
.pain-section { max-width: 860px; margin: 0 auto; padding: 5rem 2rem; }
.pain-steps { display: flex; flex-direction: column; }
.pain-step {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 1.25rem; position: relative;
}
.pain-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; position: relative; z-index: 1;
  background: var(--bg-card); border: 1px solid var(--border);
}
.pain-step:not(:last-child) .pain-icon::after {
  content: ''; position: absolute; top: 40px; left: 50%;
  transform: translateX(-50%); width: 1px;
  height: calc(100% + 0.5rem); background: var(--border);
}
.pain-content { padding-bottom: 2.5rem; }
.pain-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.pain-content p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.pain-content .highlight { color: var(--neon); font-weight: 500; }

.device-example { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.device-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.75rem; font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}
.device-chip .arrow { color: var(--neon); }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); max-width: 1100px; margin: 0 auto; }

/* ===== STATS ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; padding: 4rem 2rem; max-width: 1100px; margin: 0 auto;
}
.stat { text-align: center; }
.stat-value {
  font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1; margin-bottom: 0.5rem; color: var(--neon);
}
.stat-label { font-size: 0.8rem; color: var(--text-dim); }

/* ===== FEATURES ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.feature-card { padding: 2rem; background: var(--bg); transition: background 0.3s; }
.feature-card:hover { background: var(--bg-subtle); }
.feature-icon { font-size: 1.1rem; margin-bottom: 1rem; opacity: 0.7; }
.feature-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* ===== MODALITIES ===== */
.modalities-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.modality-card {
  padding: 2rem 1.5rem; background: var(--bg); text-align: center;
  transition: background 0.3s;
}
.modality-card:hover { background: var(--bg-subtle); }
.modality-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.modality-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.modality-card .modality-desc { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.5; margin-bottom: 0.75rem; }
.modality-card .modality-models { font-size: 0.7rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

/* ===== SIGNALS ===== */
.signals-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.signals-section .inner { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; }
.signals-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.75rem; }
.signal-pill {
  padding: 1.25rem 0.5rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  text-align: center; transition: all 0.2s;
}
.signal-pill:hover { border-color: var(--neon); background: var(--neon-dim); }
.signal-pill .emoji { font-size: 1.3rem; margin-bottom: 0.4rem; }
.signal-pill .label { font-size: 0.7rem; font-weight: 600; color: var(--text-dim); }

/* ===== HOW IT WORKS ===== */
.flow-steps { display: flex; flex-direction: column; }
.flow-step {
  display: grid; grid-template-columns: 44px 1fr;
  gap: 1.25rem; position: relative;
}
.flow-step-number {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8rem; font-family: 'JetBrains Mono', monospace;
  color: var(--neon); background: var(--bg);
  position: relative; z-index: 1;
}
.flow-step:not(:last-child) .flow-step-number::after {
  content: ''; position: absolute; top: 44px; left: 50%;
  transform: translateX(-50%); width: 1px;
  height: calc(100% + 1rem); background: var(--border);
}
.flow-step-content { padding-bottom: 2.5rem; }
.flow-step-content h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.flow-step-content p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* ===== COMPATIBILITY ===== */
.compat-section { text-align: center; }
.compat-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin-bottom: 1.5rem;
}
.compat-chip {
  padding: 0.45rem 1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.8rem; color: var(--text-secondary);
  font-weight: 500; transition: all 0.2s;
}
.compat-chip:hover { border-color: var(--neon); color: var(--neon); }
.compat-note { color: var(--text-dim); font-size: 0.8rem; font-style: italic; }

/* ===== VISION ===== */
.vision-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 3rem; text-align: center;
}
.vision-block p {
  color: var(--text-secondary); max-width: 560px;
  margin: 0 auto 2rem; font-size: 1rem; line-height: 1.7;
}
.vision-features { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.vision-feature { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.85rem; }
.vision-feature .check { color: var(--neon); font-weight: 600; }

/* ===== ENTERPRISE ===== */
.enterprise-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.enterprise-section .inner {
  max-width: 1100px; margin: 0 auto; padding: 6rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.enterprise-text p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.enterprise-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.enterprise-stat {
  padding: 1.25rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px;
}
.enterprise-stat .val { font-size: 1.4rem; font-weight: 700; color: var(--neon); margin-bottom: 0.2rem; }
.enterprise-stat .desc { font-size: 0.75rem; color: var(--text-dim); line-height: 1.4; }

.btn-enterprise {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; background: transparent;
  color: var(--neon); border: 1px solid rgba(0, 255, 135, 0.3);
  border-radius: 8px; text-decoration: none;
  font-size: 0.875rem; font-weight: 600; transition: all 0.2s;
}
.btn-enterprise:hover { background: var(--neon); border-color: var(--neon); color: #fff; }

/* ===== CTA ===== */
.cta-section {
  background: var(--terminal-bg); color: #fff;
  text-align: center; padding: 8rem 2rem; position: relative;
}
.cta-section::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,200,83,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; color: #fff; }
.cta-section p { color: #64748b; font-size: 1rem; margin-bottom: 2.5rem; }
.cta-terminal { max-width: 380px; margin: 0 auto 2.5rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--terminal-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem; text-align: center;
}
.footer-links {
  display: flex; gap: 2rem; justify-content: center;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.footer-links a {
  color: #525252; text-decoration: none;
  font-size: 0.8rem; transition: color 0.2s;
}
.footer-links a:hover { color: #94a3b8; }
.footer-copy { color: #404040; font-size: 0.75rem; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Content pages: show content immediately (no scroll-to-reveal on subpages) */
.page-hero.fade-in,
.page-content .fade-in,
.guide-sidebar.fade-in,
.guide-layout .fade-in {
  opacity: 1; transform: none;
}

/* ===== CONTENT PAGES ===== */

/* Page hero — compact version for subpages */
.page-hero {
  padding: 8rem 2rem 3rem;
  max-width: 1100px; margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.page-hero .subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px; line-height: 1.7;
}

/* Breadcrumbs */
.breadcrumb {
  padding: 5.5rem 2rem 0;
  max-width: 1100px; margin: 0 auto;
  font-size: 0.8rem; color: var(--text-dim);
}
.breadcrumb a {
  color: var(--text-secondary); text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb .sep { margin: 0 0.4rem; color: var(--text-dim); }

/* Prose content */
.page-content {
  padding: 0 2rem 6rem;
  max-width: 1100px; margin: 0 auto;
}

.prose {
  max-width: 760px;
  font-size: 0.95rem; line-height: 1.8;
  color: var(--text);
}

.prose h2 {
  font-size: 1.5rem; margin-top: 3rem; margin-bottom: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.5rem;
  font-weight: 600;
}
.prose h4 {
  font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.5rem;
  font-weight: 600; color: var(--text-secondary);
}
.prose p {
  margin-bottom: 1rem; color: var(--text-secondary);
  line-height: 1.8;
}
.prose a {
  color: var(--neon); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.prose a:hover { border-bottom-color: var(--neon); }

.prose ul, .prose ol {
  margin-bottom: 1rem; padding-left: 1.5rem;
  color: var(--text-secondary);
}
.prose li { margin-bottom: 0.4rem; line-height: 1.7; }
.prose li strong { color: var(--text); }

.prose strong { color: var(--text); font-weight: 600; }

.prose blockquote {
  border-left: 3px solid var(--neon);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--neon-dim);
  border-radius: 0 8px 8px 0;
}
.prose blockquote p { color: var(--text-secondary); margin-bottom: 0; }

/* Callout / tip box */
.callout {
  border-left: 3px solid var(--neon);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--neon-dim);
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.callout strong { color: var(--text); }

/* Tables */
.prose table, .content-table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: 0.85rem;
}
.prose th, .content-table th {
  text-align: left; padding: 0.75rem 1rem;
  background: var(--bg-subtle); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.8rem; color: var(--text);
}
.prose td, .content-table td {
  padding: 0.65rem 1rem; border: 1px solid var(--border);
  color: var(--text-secondary); line-height: 1.5;
}
.prose tr:hover td, .content-table tr:hover td {
  background: var(--bg-subtle);
}

/* Table scroll wrapper for mobile */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}
.table-wrap table { margin: 0; }

/* Code blocks */
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem; padding: 0.15rem 0.4rem;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text);
}

.prose pre {
  background: var(--terminal-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  margin: 1.5rem 0; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose pre code {
  background: none; border: none; padding: 0;
  color: #e2e8f0; font-size: 0.8rem; line-height: 1.8;
}

/* Check/feature lists */
.check-list {
  list-style: none; padding: 0; margin: 1.5rem 0;
}
.check-list li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative; color: var(--text-secondary);
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--neon); font-weight: 700;
}

/* Guide layout with sidebar */
.guide-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 3rem; max-width: 1100px; margin: 0 auto;
  padding: 0 2rem 6rem;
}

.guide-sidebar {
  position: sticky; top: 5rem; align-self: start;
}
.guide-sidebar h4 {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); margin-bottom: 0.75rem;
}
.guide-sidebar ul {
  list-style: none; padding: 0;
}
.guide-sidebar li {
  margin-bottom: 0.25rem;
}
.guide-sidebar a {
  display: block; padding: 0.4rem 0.75rem;
  font-size: 0.825rem; color: var(--text-secondary);
  text-decoration: none; border-radius: 6px;
  transition: all 0.2s; border-left: 2px solid transparent;
}
.guide-sidebar a:hover {
  color: var(--text); background: var(--bg-subtle);
}
.guide-sidebar a.active {
  color: var(--neon); border-left-color: var(--neon);
  background: var(--neon-dim); font-weight: 500;
}

/* Markdown-rendered page container */
.md-content {
  max-width: 760px;
}
.md-content h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.md-content h2 {
  font-size: 1.5rem; margin-top: 3rem; margin-bottom: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.md-content h3 {
  font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.5rem;
  font-weight: 600;
}
.md-content p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.8; }
.md-content a { color: var(--neon); text-decoration: none; }
.md-content a:hover { border-bottom: 1px solid var(--neon); }
.md-content ul, .md-content ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-secondary); }
.md-content li { margin-bottom: 0.4rem; line-height: 1.7; }
.md-content strong { color: var(--text); font-weight: 600; }
.md-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem; padding: 0.15rem 0.4rem;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 4px;
}
.md-content pre {
  background: var(--terminal-bg); border-radius: 10px;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  overflow-x: auto;
}
.md-content pre code {
  background: none; border: none; padding: 0;
  color: #e2e8f0; font-size: 0.8rem; line-height: 1.8;
}
.md-content table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: 0.85rem;
}
.md-content th {
  text-align: left; padding: 0.75rem 1rem;
  background: var(--bg-subtle); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.8rem;
}
.md-content td {
  padding: 0.65rem 1rem; border: 1px solid var(--border);
  color: var(--text-secondary);
}
.md-content tr:hover td { background: var(--bg-subtle); }
.md-content blockquote {
  border-left: 3px solid var(--neon);
  padding: 0.75rem 1.25rem; margin: 1.5rem 0;
  background: var(--neon-dim); border-radius: 0 8px 8px 0;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  nav { padding: 0.75rem 1rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a:not(.nav-hamburger) { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 4rem 1.5rem; }
  .signals-section .inner { padding: 4rem 1.5rem; }
  .signals-grid { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
  .negation { gap: 1rem; padding: 2rem 1rem; }
  .negation-item { font-size: 0.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .modalities-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2rem; padding: 3rem 1.5rem; }
  .vision-block { padding: 2rem 1.5rem; }
  .vision-features { flex-direction: column; align-items: center; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-actions { flex-direction: column; }
  .cta-section { padding: 5rem 1.5rem; }
  .pain-section { padding: 3rem 1.5rem; }
  .device-example { flex-direction: column; }
  .enterprise-section .inner { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 1.5rem; }

  /* Content pages mobile */
  .page-hero { padding: 6rem 1.5rem 2rem; }
  .page-content { padding: 0 1.5rem 4rem; }
  .breadcrumb { padding: 5rem 1.5rem 0; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-sidebar {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem; margin-bottom: 2rem;
  }
  .guide-sidebar ul { display: none; }
  .guide-sidebar.expanded ul { display: block; }
  .guide-sidebar h4 {
    cursor: pointer; display: flex; align-items: center;
    justify-content: space-between;
  }
  .guide-sidebar h4::after {
    content: '▸'; font-size: 0.8rem; transition: transform 0.2s;
  }
  .guide-sidebar.expanded h4::after { transform: rotate(90deg); }
  .prose table, .content-table, .md-content table { font-size: 0.8rem; }
  .prose th, .prose td, .content-table th, .content-table td,
  .md-content th, .md-content td { padding: 0.5rem 0.65rem; }
}
