/* ==========================================================================
   CARTIX DESIGN SYSTEM — OBSIDIAN TELEMETRY
   Design Language: Modern, Instrument-Grade Developer Infrastructure
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Color Tokens - Dark Mode (Default) */
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-surface: #121824;
  --bg-surface-elevated: #161e2e;
  --bg-surface-hover: #1c263a;
  --bg-glass: rgba(7, 9, 14, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-active: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(99, 102, 241, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #07090e;

  /* Brand Accents */
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4338ca 100%);

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  /* Code & Terminal Tokens */
  --code-bg: #090c13;
  --code-border: rgba(255, 255, 255, 0.08);
  --code-text: #e2e8f0;
  --code-key: #93c5fd;
  --code-string: #6ee7b7;
  --code-property: #38bdf8;
  --code-number: #fcd34d;
  --code-comment: #64748b;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1240px;
  --header-height: 4.25rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.22);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #e2e8f0;
  --bg-glass: rgba(248, 250, 252, 0.88);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-active: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(99, 102, 241, 0.15);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --code-bg: #0f172a;
  --code-border: rgba(15, 23, 42, 0.12);
  --code-text: #e2e8f0;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 28px rgba(99, 102, 241, 0.14);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Atmosphere */
.bg-glow-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 650px;
  background: radial-gradient(circle at 50% -10%, rgba(99, 102, 241, 0.14), transparent 70%),
              radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.09), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .bg-grid-layer {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.35rem, 5vw, 3.85rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

p {
  color: var(--text-secondary);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Code Syntax Color Tokens */
.code-key { color: var(--code-key); }
.code-string { color: var(--code-string); }
.code-number { color: var(--code-number); }
.code-comment { color: var(--code-comment); font-style: italic; }

/* Buttons & Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.55);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: transparent;
  transition: all var(--transition-fast);
}

.btn-ghost-sm:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-surface);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
}

/* ═══════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

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

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  height: 100%;
}

.brand-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover .brand-logo-mark {
  transform: scale(1.06);
}

.logo-img {
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-logo-text {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a5b4fc;
  font-weight: 600;
}

[data-theme="light"] .brand-version-pill {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.28);
}

.version-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle-btn, .search-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn {
  width: 36px;
}

.theme-toggle-btn:hover, .search-trigger-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.search-trigger-btn {
  padding: 0 0.75rem;
  gap: var(--space-2);
  font-size: 0.85rem;
}

.search-shortcut-badge {
  padding: 0.15rem 0.35rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
}

/* ═══════════════════════════════════════
   MOBILE DRAWER & SEARCH MODAL
   ═══════════════════════════════════════ */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 490;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-drawer-backdrop.open {
  display: block;
  opacity: 1;
}

.mobile-docs-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-medium);
  z-index: 500;
  padding: var(--space-6);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.mobile-docs-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-nav-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-primary);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: var(--space-6);
}

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.search-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.search-modal-dialog {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-sans);
}

.search-input::placeholder { color: var(--text-muted); }

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: var(--space-2);
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-result-item:hover, .search-result-item.selected {
  background: rgba(99, 102, 241, 0.14);
  color: var(--text-primary);
}

.result-title {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-primary);
}

.result-snippet {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   HERO SECTION (CLEAN & CENTERED)
   ═══════════════════════════════════════ */
.hero-section {
  padding: var(--space-24) 0 var(--space-16);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-centered {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  font-family: var(--font-mono);
}

[data-theme="light"] .hero-eyebrow {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 800px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 65%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0f172a 20%, #4f46e5 75%, #312e81 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
}

[data-theme="light"] .hero-description {
  color: #334155;
}

.hero-install-strip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.6rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

[data-theme="light"] .hero-install-strip {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hero-install-strip:hover {
  border-color: var(--border-active);
}

.hero-install-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #a5b4fc;
}

[data-theme="light"] .hero-install-code {
  color: #4338ca;
  font-weight: 600;
}

.install-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.install-copy-btn:hover {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

[data-theme="light"] .btn-outline {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 680px;
}

[data-theme="light"] .hero-trust-row {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trust-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-label {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

[data-theme="light"] .trust-label {
  color: #64748b;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

[data-theme="light"] .trust-divider {
  background: #e2e8f0;
}

/* ═══════════════════════════════════════
   ARCHITECTURAL PILLARS STRIP
   ═══════════════════════════════════════ */
.pillars-strip {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.pillars-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.pillar-icon-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
}

.pillar-item h4 {
  font-size: 0.925rem;
  margin-bottom: 0.15rem;
}

.pillar-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pillar-sep {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* ═══════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════ */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.section-title {
  margin-bottom: var(--space-3);
  font-weight: 800;
}

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

/* ═══════════════════════════════════════
   PROBLEM vs SOLUTION
   ═══════════════════════════════════════ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.comparison-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.danger-card {
  border-left: 3px solid var(--accent-rose);
}

.success-card {
  border-left: 3px solid var(--accent-emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--bg-surface) 100%);
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.danger-badge { color: var(--accent-rose); }
.success-badge { color: var(--accent-emerald); }

.comparison-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.comparison-list li svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════
   ARCHITECTURE PIPELINE
   ═══════════════════════════════════════ */
.arch-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
}

.arch-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: all var(--transition-fast);
}

.arch-step:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.arch-step-highlight {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-surface) 100%);
}

.arch-step-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.35);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.arch-step-label {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.arch-step h4 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.arch-step p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.arch-tech-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.arch-connector-line {
  display: none;
}

/* ═══════════════════════════════════════
   MCP TOOL REGISTRY (INTERACTIVE)
/* ═══════════════════════════════════════
   MCP TOOL REGISTRY (INTERACTIVE)
   ═══════════════════════════════════════ */
.tools-explorer {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
  box-shadow: var(--shadow-md);
  height: 580px;
  min-height: 580px;
  max-height: 580px;
  position: relative;
}

.tools-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  width: 260px;
  flex-shrink: 0;
}

.tool-sidebar-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.tool-sidebar-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

.tool-sidebar-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-active);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.tool-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
}

[data-theme="dark"] .tool-btn-icon {
  color: #a5b4fc;
}

.tool-btn-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.tool-btn-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-btn-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tools-detail-panel {
  padding: var(--space-6) var(--space-6);
  min-width: 0;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tool-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.tool-panel.active {
  display: flex;
}

.tool-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: var(--space-2);
  padding-bottom: var(--space-3);
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
}

.tool-panel-header > div {
  min-width: 0;
  flex: 1;
}

.tool-panel-name {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--accent-primary);
  word-break: break-word;
}

[data-theme="dark"] .tool-panel-name {
  color: #a5b4fc;
}

[data-theme="light"] .tool-panel-name {
  color: #4338ca;
}

.tool-panel-badge.read-only {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.tool-panel-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  flex-shrink: 0;
  line-height: 1.45;
}

/* ─── Segmented Sub-Navigation: Parameters | Response Payload ─────── */
.tool-view-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
  padding: 4px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
}

[data-theme="light"] .tool-view-nav {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .tool-view-nav {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.tool-view-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
}

.tool-view-tab:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

.tool-view-tab.active {
  color: var(--text-primary);
  background: var(--bg-surface-elevated, #ffffff);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .tool-view-tab.active {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .tool-view-tab.active {
  background: #161e2e;
  color: #f8fafc;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.tool-view-tab svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.tool-view-tab.active svg {
  color: var(--accent-primary);
}

[data-theme="dark"] .tool-view-tab.active svg {
  color: #a5b4fc;
}

.tab-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.14);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.28);
  display: inline-block;
  line-height: 1.3;
}

[data-theme="dark"] .tab-badge {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.tab-badge.format {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.28);
}

[data-theme="dark"] .tab-badge.format {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* ─── Tool View Panes ─────────────────────────────────────────────── */
.tool-view-content {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tool-view-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

.tool-view-pane.active {
  display: flex;
  animation: fadeInPane 0.18s ease-in-out;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tool-params-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
}

[data-theme="light"] .tool-params-scroll {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}

.tool-params-table th,
.tool-params-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.tool-params-table th {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.tool-params-table th:nth-child(1),
.tool-params-table td:nth-child(1) {
  width: 180px;
  min-width: 140px;
}

.tool-params-table th:nth-child(2),
.tool-params-table td:nth-child(2) {
  width: 130px;
  min-width: 100px;
}

.tool-params-table th:nth-child(3),
.tool-params-table td:nth-child(3) {
  width: auto;
}

.tool-params-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

[data-theme="light"] .tool-params-table tr:hover td {
  background: rgba(15, 23, 42, 0.02);
}

.tool-params-table tr:last-child td {
  border-bottom: none;
}

.tool-params-table td code {
  color: var(--code-property);
  font-size: 0.8rem;
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.tool-params-table .param-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #38bdf8;
}

[data-theme="light"] .tool-params-table .param-type {
  color: #0284c7;
}

.tool-params-table .param-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

/* Code Window (Response Column) */
.code-window {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

.code-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--code-border);
  flex-shrink: 0;
  min-width: 0;
}

.code-window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 var(--space-2);
}

.copy-code-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.copy-code-btn:hover { color: #f8fafc; }

.code-window pre {
  padding: var(--space-4);
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--code-text);
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

/* ═══════════════════════════════════════
   SECURITY BENTO GRID
   ═══════════════════════════════════════ */
.security-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-fast);
}

.bento-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.bento-lg {
  grid-column: span 1;
}

.bento-wide {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-6);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.bento-code-chip {
  margin-top: auto;
  padding: 0.55rem 0.85rem;
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--code-text);
  overflow-x: auto;
}

[data-theme="light"] .bento-code-chip {
  background: #f1f5f9;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .bento-code-chip code {
  color: #0f172a;
}

[data-theme="light"] .bento-code-chip .chip-comment {
  color: #64748b;
}

.chip-comment { color: var(--code-comment); }

.boundary-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.boundary-col-item {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.boundary-col-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.boundary-col-item.supported .boundary-col-heading { color: var(--accent-emerald); }
.boundary-col-item.rejected .boundary-col-heading { color: var(--accent-rose); }

.boundary-col-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   QUICKSTART & INTEGRATIONS
   ═══════════════════════════════════════ */
.quickstart-layout {
  max-width: 860px;
  margin: 0 auto;
}

.quickstart-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-2);
  overflow-x: auto;
}

.qs-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.15rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.qs-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.qs-tab.active {
  color: var(--text-primary);
  background: var(--bg-surface);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.qs-panel {
  display: none;
}

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

/* ═══════════════════════════════════════
   DEMO SCENARIOS
   ═══════════════════════════════════════ */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.scenario-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.scenario-query {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 500;
}

.scenario-query svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.scenario-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.scenario-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-secondary);
}

.step-tag {
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.7rem;
}

.step-tag.tool-tag { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.step-tag.reason-tag { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.step-tag.multi-tag { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }

/* ═══════════════════════════════════════
   CALL TO ACTION
   ═══════════════════════════════════════ */
.cta-section {
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta-glow-orb {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: var(--space-3);
}

.cta-desc {
  font-size: 1.05rem;
  margin-bottom: var(--space-8);
  color: var(--text-secondary);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-brand-logo {
  align-self: flex-start;
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 300px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.footer-badge.emerald {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.footer-badge.cyan {
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-active);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  z-index: 2000;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .studio-workbench {
    grid-template-columns: 1fr;
  }

  .pillars-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-sep {
    display: none;
  }

  .arch-pipeline {
    grid-template-columns: 1fr;
  }

  .arch-connector {
    transform: rotate(90deg);
    padding: var(--space-2) 0;
  }

  .tools-explorer {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .tool-view-nav {
    width: 100%;
    display: flex;
  }

  .tool-view-tab {
    flex: 1;
    justify-content: center;
  }

  .tool-params-scroll {
    max-height: 360px;
  }

  .code-window {
    min-height: 300px;
    max-height: 440px;
  }

  .tools-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: row;
    overflow-x: auto;
  }

  .tool-sidebar-btn {
    width: auto;
  }

  .security-bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-lg, .bento-wide {
    grid-column: span 2;
  }

  .bento-wide {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .search-trigger-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-trust-row {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .trust-divider {
    display: none;
  }

  .pillars-inner, .comparison-grid, .security-bento, .scenarios-grid, .boundary-two-col {
    grid-template-columns: 1fr;
  }

  .bento-lg, .bento-wide {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}
