/* Agent Inspector Docs - Void Dark Theme */
/* Design System: The Void - Deep dark theme with glowing signal colors */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Core Surfaces */
  --void: #000000;
  --surface: #0a0a0f;
  --surface2: #12121a;
  --surface3: #1a1a24;
  --surface4: #22222e;

  /* Signal Colors */
  --cyan: #00f0ff;
  --cyan-muted: rgba(0, 240, 255, 0.15);
  --cyan-glow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.15);
  --green: #00ff88;
  --green-muted: rgba(0, 255, 136, 0.15);
  --green-glow: 0 0 20px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.15);
  --orange: #ff9f43;
  --orange-muted: rgba(255, 159, 67, 0.15);
  --red: #ff4757;
  --red-muted: rgba(255, 71, 87, 0.15);
  --red-glow: 0 0 20px rgba(255, 71, 87, 0.3), 0 0 40px rgba(255, 71, 87, 0.15);
  --purple: #a855f7;
  --purple-muted: rgba(168, 85, 247, 0.15);
  --yellow: #f59e0b;
  --yellow-muted: rgba(245, 158, 11, 0.15);
  --gold: #fbbf24;

  /* Severity Colors */
  --severity-critical: #dc2626;
  --severity-high: #ef4444;
  --severity-medium: #f59e0b;
  --severity-low: #6b7280;
  --severity-pass: #00ff88;

  /* Text Colors */
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-30: rgba(255, 255, 255, 0.3);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.20);

  /* Legacy variable mapping for compatibility */
  --primary-color: var(--cyan);
  --primary-dark: #00d4e0;
  --primary-light: #33f3ff;
  --primary-muted: var(--cyan-muted);
  --text-primary: var(--white);
  --text-secondary: var(--white-70);
  --text-tertiary: var(--white-50);
  --border-color: var(--border-subtle);
  --background: var(--surface);
  --background-alt: var(--surface2);
  --code-bg: var(--surface3);
  --code-border: var(--border-medium);
  --success: var(--green);
  --warning: var(--orange);
  --danger: var(--red);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.65;
  color: var(--white-90);
  background-color: var(--void);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: var(--surface2);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 0.375rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white-70);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  border-color: var(--cyan);
}

.mobile-menu-toggle:hover span {
  background: var(--cyan);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

.sidebar-header {
  padding: 1.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Logo Animation */
@keyframes orb-spin {
  to { transform: rotate(360deg); }
}

.sidebar-header .logo-container {
  margin-bottom: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--cyan),
    var(--green),
    var(--cyan)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orb-spin 8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5)) drop-shadow(0 0 16px rgba(0, 255, 136, 0.3));
  flex-shrink: 0;
}

.logo-orb-inner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
}

.logo-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.sidebar-header .logo {
  max-width: 140px;
  height: auto;
  filter: brightness(1.1);
}

.sidebar-header h1 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.sidebar-header .subtitle {
  font-size: 0.8125rem;
  color: var(--white-50);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.sidebar-header .version-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background-color: var(--cyan-muted);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
  box-shadow: var(--cyan-glow);
}

.sidebar-header .by-cylestio {
  font-size: 0.8125rem;
  color: var(--white-50);
  margin: 0 0 0.5rem 0;
  font-weight: 400;
}

.sidebar-header .by-cylestio a {
  color: var(--white-70);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-header .by-cylestio a:hover {
  color: var(--cyan);
}

.nav-menu {
  padding: 1.5rem 0;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-50);
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
}

.nav-subsection-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-50);
  padding: 0 1.5rem 0 2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.nav-item {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--white-70);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.9375rem;
  border-left: 2px solid transparent;
}

.nav-item:hover {
  color: var(--cyan);
  background-color: var(--surface2);
}

.nav-item.active {
  color: var(--cyan);
  background-color: var(--surface2);
  border-left-color: var(--cyan);
  font-weight: 500;
}

/* New badge for nav items */
.nav-item .badge-new {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.375rem;
  background-color: var(--cyan-muted);
  color: var(--cyan);
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 3rem 4rem 4rem;
  max-width: 1200px;
}

.hero {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero p {
  font-size: 1.0625rem;
  color: var(--white-70);
  max-width: 800px;
  line-height: 1.7;
}

.install-instructions {
  overflow: hidden;
  height: 0px;
  width: 0px;
  margin: 0px;
  padding: 0;
  border: none;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: 1.625rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section h3 {
  font-size: 1.125rem;
  color: var(--white);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section h3:first-of-type {
  margin-top: 1.5rem;
}

.section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--white-70);
}

.section ul, .section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--white-70);
}

.section li strong {
  color: var(--white);
  font-weight: 600;
}

.section a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.section a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Code Blocks */
pre {
  background-color: var(--surface3);
  border: 1px solid var(--border-medium);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--white-90);
}

code {
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

p code, li code, td code {
  background-color: var(--surface3);
  color: var(--cyan);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.875em;
  border: 1px solid var(--border-medium);
}

/* Images */
.screenshot {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  margin: 1.5rem 0;
  border: 1px solid var(--border-medium);
}

.screenshot-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--white-50);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Cards & Boxes */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--surface2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  font-size: 0.9375rem;
  color: var(--white-70);
  margin: 0;
}

/* Info/Warning/Success Boxes */
.info-box, .warning-box, .success-box, .danger-box {
  border: 1px solid var(--border-subtle);
  border-left-width: 3px;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  background: var(--surface2);
}

.info-box {
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, var(--cyan-muted), transparent);
}

.warning-box {
  border-left-color: var(--orange);
  background: linear-gradient(90deg, var(--orange-muted), transparent);
}

.success-box {
  border-left-color: var(--green);
  background: linear-gradient(90deg, var(--green-muted), transparent);
}

.danger-box {
  border-left-color: var(--red);
  background: linear-gradient(90deg, var(--red-muted), transparent);
}

.box-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-size: 0.9375rem;
}

.info-box p, .warning-box p, .success-box p, .danger-box p {
  margin: 0;
  color: var(--white-70);
}

.info-box ul, .warning-box ul, .success-box ul, .danger-box ul {
  margin-top: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid;
  font-size: 0.9375rem;
}

.btn-primary {
  background-color: var(--cyan-muted);
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-primary:hover {
  background-color: var(--cyan);
  color: var(--void);
  box-shadow: var(--cyan-glow);
}

.btn-secondary {
  background-color: var(--surface2);
  color: var(--white-70);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--white-50);
  color: var(--white);
  background-color: var(--surface3);
}

.btn-success {
  background-color: var(--green-muted);
  color: var(--green);
  border-color: var(--green);
}

.btn-success:hover {
  background-color: var(--green);
  color: var(--void);
  box-shadow: var(--green-glow);
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Feature Lists */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-item {
  padding: 1.25rem;
  background: var(--surface2);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: all var(--transition-base);
}

.feature-item:hover {
  border-color: var(--border-medium);
}

.feature-item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--white-70);
  margin: 0;
  line-height: 1.6;
}

/* Steps */
.steps {
  counter-reset: step-counter;
  margin: 2rem 0;
}

.step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--cyan);
  color: var(--void);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--cyan-glow);
}

.step h3 {
  margin-top: 0 !important;
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: var(--surface3);
}

th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid var(--border-medium);
  font-size: 0.875rem;
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--white-70);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: var(--surface2);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid;
}

.badge-primary {
  background-color: var(--cyan-muted);
  color: var(--cyan);
  border-color: var(--cyan);
}

.badge-success {
  background-color: var(--green-muted);
  color: var(--green);
  border-color: var(--green);
}

.badge-warning {
  background-color: var(--orange-muted);
  color: var(--orange);
  border-color: var(--orange);
}

.badge-danger {
  background-color: var(--red-muted);
  color: var(--red);
  border-color: var(--red);
}

.badge-purple {
  background-color: var(--purple-muted);
  color: var(--purple);
  border-color: var(--purple);
}

/* Severity Badges */
.badge-critical {
  background-color: rgba(220, 38, 38, 0.15);
  color: var(--severity-critical);
  border-color: var(--severity-critical);
}

.badge-high {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--severity-high);
  border-color: var(--severity-high);
}

.badge-medium {
  background-color: var(--yellow-muted);
  color: var(--severity-medium);
  border-color: var(--severity-medium);
}

.badge-low {
  background-color: rgba(107, 114, 128, 0.15);
  color: var(--severity-low);
  border-color: var(--severity-low);
}

/* Keyboard */
kbd {
  background-color: var(--surface3);
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  padding: 0.125rem 0.375rem;
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
  font-size: 0.875em;
  color: var(--white-90);
  box-shadow: 0 2px 0 var(--border-medium);
}

/* Security Lifecycle Flow */
.lifecycle-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.lifecycle-stage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface3);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  font-weight: 500;
  color: var(--white-90);
  font-size: 0.875rem;
}

.lifecycle-stage.active {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--cyan-glow);
}

.lifecycle-arrow {
  color: var(--white-30);
  font-size: 1.25rem;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.pass {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.status-dot.fail {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.status-dot.warning {
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.status-dot.pending {
  background: var(--white-50);
}

/* Metric Cards */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.metric-card {
  background: var(--surface2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
  }
  
  .main-content {
    margin-left: 220px;
    padding: 2rem 1.5rem;
  }
  
  .hero {
    padding: 2rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 1.5rem;
  }

  .lifecycle-flow {
    flex-direction: column;
  }

  .lifecycle-arrow {
    transform: rotate(90deg);
  }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
  /* Show mobile menu button */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-overlay {
    display: block;
  }
  
  /* Sidebar transitions */
  .sidebar {
    transform: translateX(-100%);
    z-index: 100;
    box-shadow: var(--shadow-lg);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  /* Main content adjustments */
  .main-content {
    margin-left: 0;
    padding: 4rem 1.25rem 1.25rem;
  }
  
  /* Typography */
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section h2 {
    font-size: 1.375rem;
  }
  
  .section h3 {
    font-size: 1rem;
  }
  
  /* Grids to single column */
  .card-grid, .feature-list, .metric-grid {
    grid-template-columns: 1fr;
  }
  
  /* Steps */
  .step {
    padding-left: 2.5rem;
  }
  
  .step::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8125rem;
  }
  
  /* Navigation buttons */
  .nav-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Next steps buttons */
  .next-steps {
    flex-direction: column;
  }
  
  .next-steps .button {
    width: 100%;
    text-align: center;
  }
  
  /* Tables - horizontal scroll */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  /* Code blocks - horizontal scroll */
  pre {
    overflow-x: auto;
    font-size: 0.8125rem;
  }
  
  /* Images */
  .screenshot {
    margin: 1rem 0;
  }
  
  /* Hero buttons */
  .hero .btn {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0 !important;
  }
  
  /* Inline grid layouts */
  [style*="display: grid"],
  [style*="display: flex"] {
    display: block !important;
  }
  
  [style*="display: grid"] > *,
  [style*="display: flex"] > * {
    margin-bottom: 1rem;
  }
  
  /* Two-column code examples */
  div[style*="grid-template-columns"] > div {
    margin-bottom: 1.5rem;
  }
  
  /* Button groups with margin-left */
  a[style*="margin-left"] {
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
  
  /* Flex items with flex: 1 */
  div[style*="flex: 1"] {
    flex: none !important;
    width: 100%;
  }
  
  /* FAQ page button groups */
  div[style*="display: flex; gap"] a {
    width: 100%;
    text-align: center;
  }
  
  /* Numbered step layouts */
  div[style*="display: flex; align-items: start"] {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
  }
  
  div[style*="display: flex; align-items: start"] > div[style*="flex-shrink: 0"] {
    margin-bottom: 1rem;
  }

  /* Lifecycle flow */
  .lifecycle-flow {
    flex-direction: column;
    gap: 0.75rem;
  }

  .lifecycle-arrow {
    transform: rotate(90deg);
  }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .main-content {
    padding: 3.5rem 1rem 1rem;
  }
  
  .hero {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .section h2 {
    font-size: 1.25rem;
  }
  
  .btn, .button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  pre {
    padding: 0.75rem;
    font-size: 0.75rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .step {
    padding-left: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  
  .step::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }
}

/* Utility Classes */
.next-steps {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: var(--cyan-muted);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  font-size: 0.9375rem;
}

.button:hover {
  background-color: var(--cyan);
  color: var(--void);
  box-shadow: var(--cyan-glow);
}

.image-container {
  margin: 2rem 0;
}

.image-container img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
}

.image-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--white-50);
  margin-top: 0.75rem;
  font-style: italic;
}

.code-block {
  margin: 1.25rem 0;
}

.code-header {
  background-color: var(--surface4);
  border: 1px solid var(--border-medium);
  border-bottom: none;
  padding: 0.5rem 1rem;
  border-radius: 6px 6px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-block pre {
  margin: 0;
  border-radius: 0 0 6px 6px;
}

/* Glow text utility */
.glow-text {
  text-shadow: 0 0 10px currentColor;
}

/* Highlight box for key features */
.highlight-box {
  background: linear-gradient(135deg, var(--cyan-muted) 0%, transparent 100%);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h3 {
  color: var(--cyan);
  margin-top: 0 !important;
}

/* Connect Tabs - Quick Install Section */
.connect-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
}

.connect-sidebar {
  background: var(--surface2);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.connect-tab {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.connect-tab:hover {
  background: var(--surface3);
}

.connect-tab.active {
  background: var(--surface3);
  border-left-color: var(--cyan);
}

.connect-tab-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.connect-tab.active .connect-tab-title {
  color: var(--cyan);
}

.connect-tab-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--white-50);
  line-height: 1.4;
}

.connect-content {
  padding: 2rem;
}

.connect-panel {
  display: none;
}

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

.connect-panel h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 1.5rem 0;
  font-weight: 600;
}

/* IDE Options within Connect IDE panel */
.ide-option {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ide-option:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ide-option-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ide-option-icon {
  font-size: 1.25rem;
}

.ide-option-header h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.ide-option-desc {
  font-size: 0.9375rem;
  color: var(--white-70);
  margin-bottom: 1rem;
}

/* Numbered command steps */
.command-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface3);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
}

.command-step:last-child {
  margin-bottom: 0;
}

.command-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--cyan);
  color: var(--void);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
}

.command-step-code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--cyan);
}

.command-step-copy {
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 0.375rem;
  cursor: pointer;
  color: var(--white-50);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.command-step-copy:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.command-step-copy svg {
  width: 14px;
  height: 14px;
}

/* Single command box (for Cursor) */
.command-box {
  background: var(--surface3);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.command-box-code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--cyan);
  word-break: break-all;
  line-height: 1.5;
}

/* Connect Agent panel */
.connect-agent-desc {
  font-size: 0.9375rem;
  color: var(--white-70);
  margin-bottom: 1.5rem;
}

.connect-agent-code {
  margin-bottom: 1rem;
}

.connect-agent-code label {
  display: block;
  font-size: 0.875rem;
  color: var(--white-70);
  margin-bottom: 0.5rem;
}

.connect-agent-providers {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.connect-agent-providers span {
  font-size: 0.75rem;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.connect-agent-providers code {
  font-size: 0.8125rem;
  background: var(--surface3);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--white-70);
}

/* Responsive for connect tabs */
@media (max-width: 768px) {
  .connect-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .connect-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    padding: 0;
    overflow-x: auto;
  }

  .connect-tab {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 1rem;
    white-space: nowrap;
    flex: 1;
    text-align: center;
  }

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

  .connect-tab-desc {
    display: none;
  }

  .connect-content {
    padding: 1.5rem;
  }

  .command-step {
    flex-wrap: wrap;
  }

  .command-step-code {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.75rem;
  }

  .command-box-code {
    font-size: 0.75rem;
  }
}

/* Print styles */
@media print {
  .sidebar, .nav-buttons {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
    max-width: 100%;
  }

  body {
    background: white;
    color: black;
  }

  .section, .hero, .card {
    border: 1px solid #ccc;
    background: white;
  }
}
