/* ==========================================================================
    Local Brain MCP — Official Design System & Stylesheet
    Theme: Dark Minimal Technical Developer-First
    Palette: Purple (#A855F7) -> Blue (#3B82F6) -> Cyan (#06B6D4)
    ========================================================================== */

:root {
  --bg: #06090F;
  --bg-alt: #0B0F1A;
  --surface: #101626;
  --surface-2: #162035;
  --surface-3: #1E2B47;
  --surface-glass: rgba(16, 22, 38, 0.75);

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(6, 182, 212, 0.5);

  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --purple: #A855F7;
  --blue: #3B82F6;
  --cyan: #06B6D4;
  --green: #10B981;
  --yellow: #F59E0B;
  --red: #EF4444;

  --brand-grad: linear-gradient(135deg, #A855F7 0%, #3B82F6 50%, #06B6D4 100%);
  --brand-grad-hover: linear-gradient(135deg, #C084FC 0%, #60A5FA 50%, #22D3EE 100%);
  --brand-glow: 0 0 35px rgba(59, 130, 246, 0.25);
  --cyan-glow: 0 0 25px rgba(6, 182, 212, 0.2);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w: 1200px;
  --header-h: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 56px;
  --space-4xl: 96px;
}

/* ─── Reset & Base ───────────────────────────────────────────────── */

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

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

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

::selection {
  background: rgba(6, 182, 212, 0.3);
  color: #FFF;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

code, pre {
  font-family: var(--font-mono);
}

/* ─── Skip Link (Accessibility) ──────────────────────────────────── */

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* ─── Background Neural Canvas ───────────────────────────────────── */

#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* ─── Layout Container ──────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
}

/* ─── Navigation Bar ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.nav-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition-fast);
}

.btn-github:hover {
  background: var(--surface-3);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-github:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.mobile-toggle {
  display: none;
  padding: 8px;
  color: var(--text);
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.1rem;
  padding: 8px 0;
}

.mobile-nav .nav-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand-grad);
  color: #FFF;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--brand-grad-hover);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* ─── Badges & Tags ────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #C084FC;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: #22D3EE;
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ─── Hero Section ─────────────────────────────────────────────── */

.hero-section {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-line {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* ─── Hero Install Bar ────────────────────────────────────────── */

.hero-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 10px;
  padding: 12px 12px 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #090d16;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.hero-install-prompt {
  color: var(--cyan);
  user-select: none;
}

.hero-install code {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow-x: auto;
}

.hero-install-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.hero-install-copy:hover {
  background: rgba(6, 182, 212, 0.22);
}

.hero-install-note {
  margin: 0 auto 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-install-note a {
  color: var(--cyan);
}

/* ─── Hero Terminal Window ──────────────────────────────────────── */

.terminal-window {
  background: #090D16;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.12);
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.terminal-window:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #0E1422;
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #E2E8F0;
  overflow-x: auto;
}

.term-prompt {
  color: var(--cyan);
  font-weight: 700;
}

.term-cmd {
  color: #FFF;
  font-weight: 600;
}

.term-ascii {
  color: var(--purple);
  margin: 12px 0;
  line-height: 1.25;
  font-family: var(--font-mono);
}

.term-success {
  color: var(--green);
  font-weight: 600;
}

.term-label {
  color: var(--text-dim);
}

.term-val {
  color: #FFF;
  font-weight: 600;
}

.term-status-active {
  color: var(--green);
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--cyan);
  vertical-align: middle;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ─── Hero Stats Strip ─────────────────────────────────────────── */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 48px auto 0;
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFF;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Product Story Section ─────────────────────────────────────── */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

.story-column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.story-column--without {
  border-color: rgba(239, 68, 68, 0.2);
}

.story-column--with {
  border-color: rgba(16, 185, 129, 0.2);
}

.story-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-title--without {
  color: var(--red);
}

.story-title--with {
  color: var(--green);
}

.story-icon {
  font-size: 1.1rem;
}

.story-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-step {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  text-align: center;
}

.story-step--final {
  color: var(--text);
  font-weight: 600;
  background: var(--surface-3);
}

.story-arrow {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.2rem;
}

/* ─── Section Header ───────────────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ─── Shared Memory Visualization ──────────────────────────────── */

.shared-memory-hub {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.hub-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.agent-nodes-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agent-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.agent-node:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateX(4px);
  background: var(--surface-3);
}

.agent-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseNode 2s infinite ease-in-out;
}

@keyframes pulseNode {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.agent-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.agent-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Central Brain Hub Core */
.brain-hub-core {
  text-align: center;
  padding: 32px;
  background: #090D17;
  border: 2px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--brand-glow);
  position: relative;
}

.brain-hub-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.4));
}

.brain-hub-title {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.brain-hub-meta {
  font-size: 0.8rem;
  color: var(--cyan);
  font-family: var(--font-mono);
}

/* ─── How It Works ─────────────────────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.step-code-preview {
  background: #080C14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.5;
  overflow-x: auto;
}

.step-code-preview .kw { color: var(--purple); }
.step-code-preview .str { color: var(--cyan); }
.step-code-preview .fn { color: #60A5FA; }

/* ─── Context Handoff Section ────────────────────────────────── */

.handoff-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}

@media (max-width: 768px) {
  .handoff-box {
    padding: 28px 18px;
  }
}

.handoff-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .handoff-timeline {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.timeline-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.timeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.4rem;
}

@media (max-width: 960px) {
  .timeline-arrow {
    transform: rotate(90deg);
    margin: -10px 0;
  }
}

.timeline-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Features Grid ────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
  background: var(--surface-2);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Interactive Terminal / Code Section ──────────────────────── */

.code-tabs-wrapper {
  background: #090D17;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.code-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #0D1322;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.code-tabs {
  display: flex;
  gap: 4px;
}

.code-tab-btn {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.code-tab-btn:hover {
  color: var(--text);
}

.code-tab-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.code-tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.btn-copy-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.btn-copy-tab:hover {
  color: #FFF;
  border-color: var(--border-hover);
}

.btn-copy-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.code-panel {
  display: none;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #F1F5F9;
  overflow-x: auto;
}

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

/* ─── MCP Architecture Section ────────────────────────────────── */

.mcp-arch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.mcp-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.tool-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.tool-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 4px;
}

.tool-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Security & Trust ────────────────────────────────────────── */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.trust-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── GitHub CTA Banner ──────────────────────────────────────── */

.github-cta-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.12) 50%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 56px 36px;
  text-align: center;
  box-shadow: var(--brand-glow);
}

.github-cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.github-cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ─── Footer ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: #04070B;
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

/* ─── Reduced Motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #neural-canvas {
    display: none;
  }
  .term-cursor {
    animation: none;
    opacity: 1;
  }
  .agent-dot-pulse {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── Mobile Responsive ──────────────────────────────────────── */

@media (max-width: 375px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .terminal-body {
    font-size: 0.78rem;
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .code-tab-btn {
    padding: 12px 10px;
    font-size: 0.78rem;
  }
  .btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .handoff-timeline {
    grid-template-columns: 1fr;
  }
  .story-flow {
    gap: 8px;
  }
}
