/* ═══════════════════════════════════════════════
   swarmandbeeroi.com — Real Objects Intelligence
   Purple + Gold thesis theme
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0a0e17;
  --bg-2: #0f1420;
  --surface: #141b2d;
  --surface-2: #1a2340;
  --border: #1e293b;
  --primary: #8b5cf6;
  --primary-dim: #7c3aed;
  --accent: #f59e0b;
  --accent-dim: #d97706;
  --blue: #3b82f6;
  --green: #10b981;
  --red: #ef4444;
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --code-bg: #0d1117;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
}

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

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
code, pre { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.9em; }

/* ═══ ECOSYSTEM BAR ═══ */
.eco-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: 0.72rem;
}
.eco-bar a { color: var(--text-3); font-weight: 500; transition: color 0.2s; }
.eco-bar a:hover { color: var(--text); }
.eco-bar a.eco-active { color: var(--primary); font-weight: 600; }
.eco-sep { color: var(--border); }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 100;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1rem; }
.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; padding: 5px 10px; border-radius: 6px;
  font-weight: 900; font-size: 0.85rem; letter-spacing: 0.05em;
}
.logo-icon-sm {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; padding: 3px 7px; border-radius: 4px;
  font-weight: 900; font-size: 0.7rem; letter-spacing: 0.05em;
  margin-right: 6px;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-2); font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ═══ HERO ═══ */
.hero {
  padding: 172px 24px 80px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
}
.hero-inner { max-width: 850px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: var(--surface); color: var(--accent);
  font-size: 0.8rem; font-weight: 600; padding: 6px 16px;
  border-radius: 20px; border: 1px solid var(--border); margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.03em;
}
.hero-accent {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { color: var(--text-2); font-size: 1.15rem; margin-bottom: 40px; line-height: 1.7; }
.hero-stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-stat { text-align: center; }
.hs-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.hs-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-pain {
  font-size: 1.1rem; color: var(--text); margin-bottom: 16px; line-height: 1.6;
}
.hero-pain strong { color: var(--accent); }
.hero-roi {
  font-size: 1rem; color: var(--primary); font-weight: 600;
  letter-spacing: 0.02em;
}

/* ═══ SECTION COMMON ═══ */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-label {
  text-transform: uppercase; font-size: 0.75rem; font-weight: 700;
  color: var(--primary); letter-spacing: 0.1em; margin-bottom: 12px; text-align: center;
}
section h2 { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--text-2); max-width: 660px; margin: 0 auto 48px; line-height: 1.7; }

/* ═══ PRIMITIVE ═══ */
.primitive { padding: 80px 24px; }
.object-anatomy {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-bottom: 48px; align-items: start;
}
.object-json {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; overflow-x: auto;
  line-height: 1.8; font-size: 0.85rem;
}
.j-key { color: var(--primary); }
.j-str { color: var(--green); }
.j-num { color: var(--accent); }
.j-bool { color: var(--blue); }
.object-traits { display: flex; flex-direction: column; gap: 16px; }
.trait {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto;
  gap: 0 12px;
}
.trait-icon {
  grid-row: 1/3; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, 0.15); color: var(--primary);
  border-radius: 8px; font-weight: 800; font-size: 1rem;
}
.trait h4 { font-size: 0.9rem; font-weight: 700; }
.trait p { font-size: 0.8rem; color: var(--text-2); line-height: 1.4; }
.object-types { text-align: center; }
.object-types h3 { font-size: 1rem; color: var(--text-2); margin-bottom: 16px; }
.type-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.type-tag {
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px; font-size: 0.78rem;
  color: var(--text-2); font-family: 'JetBrains Mono', monospace;
}

/* ═══ COOK ═══ */
.cook { padding: 80px 24px; background: var(--bg-2); }
.pipeline { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 48px; overflow-x: auto; padding-bottom: 8px; }
.pipe-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; flex: 1; min-width: 180px;
}
.pipe-num {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: white; border-radius: 50%;
  font-weight: 700; font-size: 0.85rem; margin-bottom: 10px;
}
.pipe-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.pipe-step p { font-size: 0.8rem; color: var(--text-2); line-height: 1.4; margin-bottom: 8px; }
.pipe-tag {
  display: inline-block; background: rgba(139, 92, 246, 0.12); color: var(--primary);
  padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 600;
}
.pipe-arrow {
  flex-shrink: 0; width: 20px; height: 2px; background: var(--border);
  margin-top: 40px; position: relative;
}
.pipe-arrow::after {
  content: ''; position: absolute; right: 0; top: -4px;
  border: 5px solid transparent; border-left-color: var(--border);
}
.event-grid { text-align: center; }
.event-grid h3 { font-size: 1rem; color: var(--text-2); margin-bottom: 20px; }
.event-cats { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.event-cat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; text-align: left; min-width: 160px;
}
.event-cat h4 { font-size: 0.85rem; color: var(--accent); margin-bottom: 8px; font-weight: 700; }
.event-cat span {
  display: block; font-size: 0.75rem; color: var(--text-3); padding: 2px 0;
  font-family: 'JetBrains Mono', monospace;
}

/* ═══ FLYWHEEL ═══ */
.flywheel { padding: 80px 24px; }
.wheel { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center; }
.wheel-phase {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; flex: 1; min-width: 180px; max-width: 220px;
}
.wheel-phase.accent { border-color: var(--accent); }
.wheel-num {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, 0.15); color: var(--primary);
  border-radius: 50%; font-weight: 800; font-size: 0.9rem; margin-bottom: 12px;
}
.wheel-phase.accent .wheel-num { background: rgba(245, 158, 11, 0.15); color: var(--accent); font-size: 1.2rem; }
.wheel-phase h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.wheel-phase p { font-size: 0.8rem; color: var(--text-2); line-height: 1.4; }
.flywheel-numbers { text-align: center; }
.flywheel-numbers h3 { font-size: 1rem; color: var(--text-2); margin-bottom: 20px; }
.fw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fw-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; text-align: left;
}
.fw-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.fw-pairs { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.fw-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.4; }

/* ═══ ROI ENGINES ═══ */
.engines { padding: 80px 24px; background: var(--bg-2); }
.engine-thesis {
  text-align: center; font-size: 1rem; font-weight: 600;
  color: var(--accent); max-width: 700px; margin: -32px auto 48px;
  line-height: 1.6;
}
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.engine-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; position: relative;
}
.engine-card.cre { border-top: 3px solid var(--blue); }
.engine-card.med { border-top: 3px solid var(--green); }
.engine-card.avi { border-top: 3px solid var(--accent); }
.engine-status {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 10px; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.engine-status.live { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.engine-status.banked { background: rgba(245, 158, 11, 0.15); color: var(--accent); }
.engine-icon { font-size: 2rem; margin-bottom: 8px; }
.engine-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 2px; }
.engine-sub { font-size: 0.8rem; color: var(--text-3); margin-bottom: 16px; font-weight: 500; }
.engine-section { margin-bottom: 14px; }
.engine-section h4 {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3); margin-bottom: 6px; font-weight: 700;
}
.engine-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.engine-tags span {
  background: var(--bg); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 12px; font-size: 0.7rem;
  color: var(--text-2);
}
.engine-tags.accent span { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.2); color: var(--primary); }
.engine-tags.muted span { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.15); color: var(--accent); }
.engine-stats {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 8px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.engine-stats div { font-size: 0.8rem; color: var(--text-2); }
.engine-num { font-weight: 800; color: var(--text); }
.engine-vault {
  font-size: 0.7rem; color: var(--text-3);
  font-family: 'JetBrains Mono', monospace; margin-bottom: 8px;
}
.engine-link { font-size: 0.85rem; font-weight: 600; }
.engine-model-cta {
  text-align: center; padding: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.engine-model-cta p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; }
.engine-model-cta strong { color: var(--accent); }

/* ═══ AGENTS ═══ */
.agents { padding: 80px 24px; }
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.agent-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
}
.agent-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.agent-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.4; }
.agent-live { text-align: center; }
.agent-live h3 { font-size: 1rem; color: var(--text-2); margin-bottom: 16px; }
.agent-ids {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 24px;
  max-width: 520px; margin: 0 auto 16px; display: flex; flex-direction: column; gap: 8px;
}
.agent-ids div { display: flex; justify-content: space-between; font-size: 0.85rem; }
.aid-label { color: var(--text-3); }
.agent-ids code { color: var(--accent); }
.agent-hashscan { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

/* ═══ STACK ═══ */
.stack { padding: 80px 24px; background: var(--bg-2); }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.stack-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
}
.stack-layer {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--primary); margin-bottom: 4px;
}
.stack-detail { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.stack-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.4; }
.cost-table { max-width: 480px; margin: 0 auto; }
.cost-table h3 { text-align: center; font-size: 1rem; color: var(--text-2); margin-bottom: 16px; }
.cost-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--text-2);
}
.cost-row span:last-child { color: var(--accent); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.cost-row.highlight { border-bottom: none; padding-top: 14px; }
.cost-row.highlight span:first-child { font-weight: 700; color: var(--text); }
.cost-row.highlight span:last-child { font-size: 1.1rem; color: var(--accent); }

/* ═══ NUMBERS ═══ */
.numbers { padding: 80px 24px; }
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 700px; margin: 0 auto; }
.num-card { text-align: center; }
.num-val {
  display: block; font-size: 2.8rem; font-weight: 900; color: var(--accent); line-height: 1;
}
.num-label { display: block; font-size: 0.8rem; color: var(--text-3); margin-top: 6px; font-weight: 500; }

/* ═══ DEMO + QUICKSTART ═══ */
.demo { padding: 80px 24px; }

.roi-search-box {
  display: flex; max-width: 640px; margin: 0 auto 16px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s;
}
.roi-search-box:focus-within { border-color: var(--primary); }
.roi-search-box input {
  flex: 1; padding: 16px 20px; background: transparent; border: none;
  color: var(--text); font-size: 1rem; font-family: inherit; outline: none;
}
.roi-search-box input::placeholder { color: var(--text-3); }
.roi-search-box button {
  padding: 16px 28px; background: var(--primary); color: white; border: none;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.roi-search-box button:hover { background: var(--primary-dim); }
.roi-search-box button:disabled { opacity: 0.6; cursor: not-allowed; }

.search-examples {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-3); font-size: 0.85rem; flex-wrap: wrap; margin-bottom: 32px;
}
.example-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  padding: 4px 12px; border-radius: 16px; cursor: pointer;
  font-size: 0.8rem; font-family: inherit; transition: all 0.2s;
}
.example-btn:hover { border-color: var(--primary); color: var(--primary); }

.search-results { max-width: 800px; margin: 0 auto 40px; text-align: left; }
.search-results.hidden { display: none; }
.result-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.result-header h3 { font-size: 1rem; color: var(--text); }
.result-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-3); }
.result-meta .latency { color: var(--accent); font-weight: 600; }
.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px;
}
.result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
}
.result-card h4 {
  font-size: 0.85rem; color: var(--primary); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.result-card p { color: var(--text-2); font-size: 0.85rem; line-height: 1.5; }
.result-card ul { list-style: none; padding: 0; }
.result-card ul li { color: var(--text-2); font-size: 0.85rem; padding: 2px 0; }
.result-card ul li::before { content: '\2022'; color: var(--primary); margin-right: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag {
  display: inline-block; background: var(--bg); color: var(--text-2);
  padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 500;
}
.result-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  background: rgba(139, 92, 246, 0.12); color: var(--primary);
  padding: 4px 10px; border-radius: 12px; font-size: 0.78rem; font-weight: 500;
}

/* Quickstart steps */
.qs-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.qs-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.qs-num {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: white; border-radius: 50%;
  font-weight: 700; font-size: 0.85rem; margin-bottom: 12px;
}
.qs-step h3 { font-size: 1rem; margin-bottom: 8px; }
.qs-step p { color: var(--text-2); font-size: 0.85rem; line-height: 1.5; }
.qs-code-wrap { position: relative; }
.qs-code {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  overflow-x: auto; font-size: 0.75rem; color: var(--text-2); line-height: 1.6; margin: 0;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-3); padding: 4px 10px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn.copied { border-color: var(--accent); color: var(--accent); }

/* ═══ API ═══ */
.api { padding: 80px 24px; background: var(--bg-2); }
.code-tabs {
  display: flex; gap: 0; max-width: 700px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.code-tab {
  background: transparent; border: none; color: var(--text-3);
  padding: 10px 20px; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s; font-family: inherit;
}
.code-tab:hover { color: var(--text-2); }
.code-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.code-blocks { max-width: 700px; margin: 0 auto; }
.code-block {
  display: none; background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 24px; overflow-x: auto; line-height: 1.7; font-size: 0.82rem; color: var(--text-2);
}
.code-block.active { display: block; }
.c-comment { color: var(--text-3); }
.api-links {
  display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap;
}
.api-link-btn {
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; border: 1px solid var(--primary);
  color: var(--primary); transition: all 0.2s;
}
.api-link-btn:hover { background: var(--primary); color: white; }
.api-link-btn.secondary { border-color: var(--border); color: var(--text-2); }
.api-link-btn.secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ═══ FEEDBACK WIDGET ═══ */
.fb-widget { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.fb-toggle {
  background: var(--primary); color: white; border: none;
  padding: 10px 18px; border-radius: 24px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: inherit; box-shadow: 0 4px 20px rgba(0,0,0,0.3); transition: all 0.2s;
}
.fb-toggle:hover { transform: scale(1.05); }
.fb-panel {
  position: absolute; bottom: 50px; right: 0; width: 280px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.fb-panel.hidden { display: none; }
.fb-header { font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.fb-rating { display: flex; gap: 8px; margin-bottom: 12px; }
.fb-rate {
  flex: 1; padding: 8px; background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
}
.fb-rate:hover, .fb-rate.selected { border-color: var(--primary); background: rgba(139,92,246,0.1); }
.fb-comment {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px; color: var(--text);
  font-size: 0.85rem; font-family: inherit; resize: vertical; margin-bottom: 12px;
}
.fb-comment:focus { outline: none; border-color: var(--primary); }
.fb-submit {
  width: 100%; padding: 10px; background: var(--primary); color: white;
  border: none; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.85rem; cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.fb-submit:hover { background: var(--primary-dim); }
.fb-thanks { text-align: center; color: var(--accent); font-weight: 600; font-size: 0.85rem; padding: 8px 0; }
.fb-thanks.hidden { display: none; }

/* ═══ FOOTER ═══ */
.footer { padding: 60px 24px 24px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-logo { font-weight: 700; font-size: 1rem; margin-bottom: 8px; display: block; }
.footer-col p { color: var(--text-3); font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-3); margin-bottom: 12px;
}
.footer-col a { display: block; color: var(--text-2); font-size: 0.85rem; padding: 3px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-3); font-size: 0.8rem;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 16px; }
  .object-anatomy { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; align-items: center; }
  .pipe-arrow { width: 2px; height: 20px; margin: 0; }
  .pipe-arrow::after { display: none; }
  .pipe-step { min-width: auto; width: 100%; max-width: 400px; }
  .wheel { flex-direction: column; align-items: center; }
  .wheel-phase { max-width: 100%; }
  .qs-steps { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .result-grid { grid-template-columns: 1fr; }
  .roi-search-box { flex-direction: column; }
  .roi-search-box button { padding: 14px; }
  .engine-grid { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .agent-ids div { flex-direction: column; gap: 2px; }
  .event-cats { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 16px 60px; }
  .hero-stats { gap: 12px; }
  .hs-num { font-size: 1.2rem; }
  .agent-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .num-val { font-size: 2rem; }
}
