/**
 * PackGuard.dev - Enterprise Cybersecurity & AI Architecture Design System
 * Modern, dark security interface tailored for CISOs, CTOs, Security Teams & Developers.
 */

:root {
  /* Color Palette - Security Dark Theme */
  --bg-primary: #070a12;
  --bg-secondary: #0c1220;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(26, 38, 66, 0.85);
  --bg-glass: rgba(12, 18, 32, 0.8);
  
  /* Accents & Brand */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.25);
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  
  /* Status Colors */
  --status-critical: #ef4444;
  --status-critical-glow: rgba(239, 68, 68, 0.2);
  --status-warning: #f59e0b;
  --status-warning-glow: rgba(245, 158, 11, 0.2);
  --status-safe: #10b981;
  --status-safe-glow: rgba(16, 185, 129, 0.2);
  --status-info: #0ea5e9;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #020617;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-highlight: rgba(6, 182, 212, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.5);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px -3px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
  --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.25);

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

/* Global Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Cyber Grid Pattern */
.cyber-bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 85% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    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);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.site-content {
  position: relative;
  z-index: 1;
}

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

a:hover {
  color: #38bdf8;
}

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

.font-mono {
  font-family: var(--font-mono);
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 70%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Header */
.enterprise-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
}

.brand-logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
  transition: transform var(--transition-normal);
}

.brand-logo-wrapper:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links li {
  display: inline-flex;
  align-items: center;
  list-style: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
}

.nav-link-item span {
  white-space: nowrap;
}

.nav-link-item:hover, .nav-link-item.active {
  color: #ffffff;
}

.nav-link-item .badge-pill {
  font-size: 0.65rem;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 1px 6px;
  border-radius: 12px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Button System */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-cyber-primary {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.35);
}

.btn-cyber-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
  box-shadow: 0 6px 20px 0 rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-cyber-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-cyber-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-cyber-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-cyber-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-cyber-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-medium);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 18px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-menu-drawer.open {
  display: flex;
}

/* Container Structure */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-wrapper {
  padding: 96px 0;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------------------------------------------------- */
/* 1. HERO SECTION */
/* ---------------------------------------------------- */
.hero-section {
  padding-top: 160px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-medium);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-safe);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-supporting-copy {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 580px;
}

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

.hero-trust-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--accent-cyan);
}

/* Hero Interactive Telemetry Card */
.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
  overflow: hidden;
  backdrop-filter: blur(12px);
  position: relative;
}

.card-top-bar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--status-safe);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-visual-body {
  padding: 20px;
}

.telemetry-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feed-row:hover {
  border-color: var(--border-cyan);
  transform: translateX(4px);
}

.feed-pkg {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.feed-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.tag-npm { background: #cb3837; color: #fff; }
.tag-pypi { background: #3775a9; color: #ffd343; }
.tag-vscode { background: #007acc; color: #fff; }
.tag-chrome { background: #4285f4; color: #fff; }

.feed-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.status-flagged { color: #f87171; font-weight: 600; }
.status-analyzing { color: #38bdf8; font-weight: 600; }
.status-verified { color: #34d399; font-weight: 600; }

.hero-ai-summary-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 10px;
  padding: 14px;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-text {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------------------------------------------------- */
/* 2. ECOSYSTEMS SECTION */
/* ---------------------------------------------------- */
.ecosystem-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 18, 32, 0.5);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ecosystem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-normal);
}

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

.ecosystem-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.eco-npm { background: rgba(203, 56, 55, 0.15); color: #ef4444; border: 1px solid rgba(203, 56, 55, 0.3); }
.eco-pypi { background: rgba(55, 117, 169, 0.15); color: #38bdf8; border: 1px solid rgba(55, 117, 169, 0.3); }
.eco-vscode { background: rgba(0, 122, 204, 0.15); color: #60a5fa; border: 1px solid rgba(0, 122, 204, 0.3); }
.eco-chrome { background: rgba(234, 67, 53, 0.15); color: #f87171; border: 1px solid rgba(234, 67, 53, 0.3); }

.ecosystem-info h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.ecosystem-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------- */
/* 3. HOW WE USE AI (PRIMARY HERO FEATURE) */
/* ---------------------------------------------------- */
.ai-workflow-section {
  padding: 110px 0;
  position: relative;
}

.manifesto-banner {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.15) 50%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 32px 40px;
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-glow-cyan);
}

.manifesto-text {
  max-width: 720px;
}

.manifesto-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.manifesto-headline {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.3;
}

.manifesto-headline span {
  color: var(--accent-cyan);
}

/* 5-Stage Interactive Workflow Component */
.ai-workflow-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  position: relative;
}

.workflow-stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.workflow-stage-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.workflow-stage-card.active {
  background: rgba(14, 23, 42, 0.95);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.stage-step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.stage-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.stage-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Stage Details Interactive Viewer */
.stage-detail-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.detail-content h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.detail-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.detail-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.detail-checklist li svg {
  color: var(--status-safe);
  flex-shrink: 0;
  margin-top: 3px;
}

.detail-code-preview {
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #e2e8f0;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}

.code-keyword { color: #f43f5e; }
.code-func { color: #38bdf8; }
.code-str { color: #a7f3d0; }
.code-comment { color: #64748b; font-style: italic; }
.code-highlight { background: rgba(244, 63, 94, 0.15); border-left: 2px solid #f43f5e; padding: 2px 4px; }

/* ---------------------------------------------------- */
/* 4. INTERACTIVE LIVE AI THREAT INSPECTOR */
/* ---------------------------------------------------- */
.live-demo-section {
  padding: 96px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 32, 0.7) 50%, transparent 100%);
}

.demo-console {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.demo-console-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-medium);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sample-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sample-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sample-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sample-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--border-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

.demo-console-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}

.demo-code-pane {
  background: #040813;
  border-right: 1px solid var(--border-medium);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-y: auto;
}

.demo-ai-pane {
  padding: 24px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.ai-reasoning-card {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
}

.reasoning-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.badge-detect { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-llm { background: rgba(147, 51, 234, 0.15); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.3); }
.badge-human { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.reasoning-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------------------------------------------------- */
/* 5. PRODUCT CAPABILITIES MATRIX */
/* ---------------------------------------------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 32px 24px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.capability-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.capability-card:hover::before {
  opacity: 1;
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.capability-card h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.capability-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.cap-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.cap-link:hover {
  gap: 10px;
  color: #38bdf8;
}

/* ---------------------------------------------------- */
/* 6. AI + HUMAN EXPERTISE (BETTER TOGETHER) */
/* ---------------------------------------------------- */
.collaboration-section {
  padding: 100px 0;
  position: relative;
}

.collab-grid {
  display: grid;
  grid-template-columns: 1fr 0.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.collab-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 36px 30px;
  backdrop-filter: blur(12px);
}

.collab-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.collab-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.badge-ai-icon {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-human-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-safe);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.collab-card h4 {
  font-size: 1.35rem;
}

.collab-card h4 span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.collab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.collab-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.collab-list li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

.collab-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.connector-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-glow-cyan);
  margin-bottom: 12px;
}

.connector-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------- */
/* 7. SOCKET.DEV PARTNERSHIP SECTION */
/* ---------------------------------------------------- */
.partnership-section {
  padding: 100px 0;
  position: relative;
}

.partner-card-featured {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(26, 38, 66, 0.6) 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
  position: relative;
  overflow: hidden;
}

.partner-card-featured::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.partner-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.partner-logo-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.partner-logo-svg {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.partner-name {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.partner-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.partner-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pillar-item {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
}

.pillar-item h5 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #ffffff;
}

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

/* ---------------------------------------------------- */
/* 8. TECHNICAL ARCHITECTURE PIPELINE */
/* ---------------------------------------------------- */
.architecture-section {
  padding: 100px 0;
  background: rgba(12, 18, 32, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pipeline-flow-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.pipeline-node {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.pipeline-node:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  transform: scale(1.01);
}

.node-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.node-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  width: 28px;
}

.node-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.node-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

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

.node-tech-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.pipeline-arrow {
  display: flex;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ---------------------------------------------------- */
/* 9. METRICS & SCALE */
/* ---------------------------------------------------- */
.metrics-section {
  padding: 80px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
}

.metric-number {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

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

/* ---------------------------------------------------- */
/* 10. FINAL CTA */
/* ---------------------------------------------------- */
.final-cta-section {
  padding: 100px 0;
  position: relative;
}

.cta-box-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.2) 0%, rgba(15, 23, 42, 0.9) 70%);
  border: 1px solid var(--border-cyan);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
  max-width: 960px;
  margin: 0 auto;
}

.cta-box-gradient h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-box-gradient p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px auto;
}

.cta-buttons-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------- */
/* FOOTER */
/* ---------------------------------------------------- */
.enterprise-footer {
  background: #030712;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links li a:hover {
  color: var(--accent-cyan);
}

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

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

/* ---------------------------------------------------- */
/* MODALS */
/* ---------------------------------------------------- */
.enterprise-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.enterprise-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-dialog-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-dialog-box-lg {
  max-width: 860px;
}

.modal-header-bar {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-bar h3 {
  font-size: 1.35rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body-scroll {
  padding: 28px;
  overflow-y: auto;
}

.form-group-cyber {
  margin-bottom: 20px;
}

.form-label-cyber {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input-cyber, .form-select-cyber, .form-textarea-cyber {
  width: 100%;
  background: #040813;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  transition: border-color var(--transition-fast);
}

.form-input-cyber:focus, .form-select-cyber:focus, .form-textarea-cyber:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* ---------------------------------------------------- */
/* RESPONSIVE MEDIA QUERIES */
/* ---------------------------------------------------- */
@media (max-width: 1280px) {
  .nav-links {
    gap: 16px;
  }
  .btn-console-desktop {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .nav-links-wrapper {
    display: none !important;
  }
  .btn-deck-desktop {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: block !important;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-workflow-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .collab-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .partner-card-featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .ai-workflow-timeline {
    grid-template-columns: 1fr;
  }

  .stage-detail-panel {
    grid-template-columns: 1fr;
  }

  .demo-console-body {
    grid-template-columns: 1fr;
  }

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

  .partner-pillars {
    grid-template-columns: 1fr;
  }

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

  .manifesto-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

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