/* =====================================================
   Agent-Nuvira — Marketing Website Styles
   A professional dark-theme showcase for an AI coding tool
   ===================================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #06060e;
  --bg-secondary: #0b0b18;
  --bg-card: #111125;
  --bg-card-hover: #18183a;
  --bg-nav: rgba(6, 6, 14, 0.85);
  --border-color: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.35);
  --text-primary: #f0f0f5;
  --text-secondary: #9090b0;
  --text-muted: #606080;
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a78bfa;
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --gradient-2: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
  --glow-purple: rgba(99, 102, 241, 0.25);
  --glow-cyan: rgba(6, 182, 212, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(6, 6, 14, 0.95);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.85; }

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-1);
  border-radius: 8px;
  color: white;
  font-size: 16px;
}

.logo-text {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.logo-text strong { 
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 20px var(--glow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-purple);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  border-color: var(--accent-1);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-hover);
}

/* --- Live Demo Section --- */
.live-demo {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.demo-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.demo-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.demo-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.15);
}

.demo-image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), transparent 50%, rgba(6, 182, 212, 0.04));
  pointer-events: none;
  z-index: 1;
}

.demo-image-borders {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.demo-image-borders span {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
}

.demo-image-borders span:nth-child(1) {
  top: 0; left: -100%; width: 100%; height: 1px;
  animation: sweep-x 3s ease-in-out infinite;
  animation-delay: 0s;
}
.demo-image-borders span:nth-child(2) {
  bottom: 0; right: -100%; width: 100%; height: 1px;
  animation: sweep-x 3s ease-in-out infinite;
  animation-delay: 1.5s;
}
.demo-image-borders span:nth-child(3) {
  left: 0; top: -100%; height: 100%; width: 1px;
  animation: sweep-y 3s ease-in-out infinite;
  animation-delay: 0.75s;
}
.demo-image-borders span:nth-child(4) {
  right: 0; bottom: -100%; height: 100%; width: 1px;
  animation: sweep-y 3s ease-in-out infinite;
  animation-delay: 2.25s;
}

@keyframes sweep-x {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(200%); opacity: 0; }
}

@keyframes sweep-y {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

.demo-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.demo-image-frame:hover .demo-image {
  transform: scale(1.02);
}

.demo-image-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(12px);
}

.demo-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.demo-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.demo-feature:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.demo-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
}

.demo-feature-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.demo-feature-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 20px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  text-align: left;
}

.metric-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Hero Visual --- */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
}

.hero-image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), transparent 50%, rgba(6, 182, 212, 0.05));
  pointer-events: none;
}

/* Terminal Window */
.terminal-window {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.terminal-body {
  padding: 16px;
  line-height: 1.8;
}

.terminal-body .prompt {
  color: var(--success);
  margin-right: 8px;
}

.terminal-body .cmd {
  color: var(--text-primary);
}

.terminal-output {
  margin-top: 8px;
}

.terminal-output .log {
  display: block;
}

.terminal-output .log.info { color: var(--accent-1); }
.terminal-output .log.success { color: var(--success); }

.blinking-cursor {
  animation: blink 1s step-end infinite;
  color: var(--text-primary);
}

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

/* --- Features Section --- */
.features {
  padding: 120px 0;
  position: relative;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-1);
}

.feature-card:hover .feature-icon {
  animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Pipeline Section --- */
.pipeline {
  padding: 120px 0;
  position: relative;
}

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

.pipeline-flow {
  text-align: center;
  margin-bottom: 40px;
}

.pipeline-input {
  margin-bottom: 48px;
}

.pipeline-input .pipeline-arrow {
  display: inline-block;
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
}

.pipeline-agents {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pipeline-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 140px;
  position: relative;
  animation: fadeInUp 0.6s ease both;
  animation-delay: calc(var(--order, 1) * 0.1s);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-node {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.agent-node:hover {
  transform: scale(1.1);
}

.agent-emoji {
  font-size: 24px;
}

.agent-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

.agent-node.planner {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.agent-node.gatherer {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.agent-node.writer {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.agent-node.reviewer {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.agent-node.tester {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.agent-node.git {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
}

.agent-node.verify-node {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.agent-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  max-width: 140px;
}

.agent-connector {
  display: none;
}

.pipeline-visual {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pipeline-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.15);
}

.pipeline-image {
  width: 100%;
  height: auto;
  display: block;
}

.pipeline-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.pipeline-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Providers Section --- */
.providers {
  padding: 120px 0;
  position: relative;
}

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

.providers-visual {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.providers-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.15);
}

.providers-image {
  width: 100%;
  height: auto;
  display: block;
}

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

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.provider-card.groq:hover { border-color: rgba(255, 107, 53, 0.4); }
.provider-card.nvidia:hover { border-color: rgba(118, 185, 0, 0.4); }
.provider-card.gemini:hover { border-color: rgba(66, 133, 244, 0.4); }
.provider-card.openrouter:hover { border-color: rgba(139, 92, 246, 0.4); }
.provider-card.local:hover { border-color: rgba(16, 185, 129, 0.4); }

.provider-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.provider-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.provider-color.groq { background: #ff6b35; }
.provider-color.nvidia { background: #76b900; }
.provider-color.gemini { background: #4285f4; }
.provider-color.openrouter { background: #8b5cf6; }
.provider-color.local { background: #10b981; }

.provider-card h3 {
  font-size: 15px;
  font-weight: 700;
}

.provider-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.provider-models {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.model-tag {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.provider-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-1);
  transition: color 0.2s;
  margin-top: auto;
}

.provider-link:hover {
  color: var(--accent-3);
}

/* --- Quick Start Section --- */
.quickstart {
  padding: 120px 0;
  position: relative;
}

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

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

.quickstart-step {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.quickstart-step:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.code-block {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}

.code-block code {
  color: var(--text-secondary);
}

.code-block .prompt {
  color: var(--success);
  margin-right: 6px;
}

.code-block .hljs-built_in {
  color: #06b6d4;
}

.code-block .hljs-string {
  color: #10b981;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.code-block:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-1);
}

.copy-btn.copied {
  color: var(--success);
  border-color: var(--success);
}

.code-block-sm {
  padding: 10px 14px;
}

.code-block-sm code {
  font-size: 12px;
}

.quickstart-cta {
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.quickstart-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* --- Extensions Section --- */
.extensions {
  padding: 120px 0;
  position: relative;
}

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

.extensions-visual {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.extensions-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.15);
}

.extensions-image {
  width: 100%;
  height: auto;
  display: block;
}

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

.extension-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.extension-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.extension-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  margin-bottom: 20px;
}

.extension-icon.sdk { color: #06b6d4; background: rgba(6, 182, 212, 0.1); }
.extension-icon.dashboard { color: #10b981; background: rgba(16, 185, 129, 0.1); }

.extension-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.extension-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.extension-card .btn {
  align-self: flex-start;
}

.extension-card .code-block {
  align-self: stretch;
}

/* --- Architecture Migration Section --- */
.architecture {
  padding: 120px 0;
  position: relative;
}

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

.architecture-visual {
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.architecture-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.15);
}

.architecture-image-frame {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.architecture-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 700px;
  transition: transform 0.6s ease;
}

.architecture-visual:hover .architecture-image {
  transform: scale(1.01);
}

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

.arch-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
}

.arch-highlight:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.arch-highlight-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.arch-highlight-count {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.arch-highlight-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

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

/* --- Comparison Section --- */
.comparison {
  padding: 120px 0;
  position: relative;
}

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

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th {
  text-align: left;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

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

.comparison-table .highlight-col {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(99, 102, 241, 0.04);
}

.comparison-table .feature-name {
  color: var(--text-primary);
  font-weight: 500;
}

.check { color: var(--success); font-weight: 700; }
.cross { color: var(--error); font-weight: 700; }
.warning { color: var(--warning); font-weight: 700; }

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0 120px;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
}

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

.cta-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

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

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-brand .logo-icon {
  margin-bottom: 12px;
}

.footer-brand .logo-text {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 340px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-1);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Scroll Animations (defined in script.js via IntersectionObserver) --- */
/* Base visibility is handled dynamically */

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 40px;
  }

  .hero-title { font-size: 42px; }
  .hero-subtitle { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-metrics { justify-content: center; }
  .hero-visual { max-width: 600px; margin: 0 auto; width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .providers-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 6, 14, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-ctas {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .hero-metrics { gap: 24px; }
  .metric-value { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .providers-grid { grid-template-columns: repeat(2, 1fr); }
  .quickstart-grid { grid-template-columns: 1fr; }
  .extensions-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .pipeline-agents { gap: 12px; }
  .pipeline-agent { width: 100px; }
  .agent-node { width: 64px; height: 64px; }
  .agent-emoji { font-size: 20px; }
  .agent-name { font-size: 9px; }
  .section-title { font-size: 28px; }
  .cta-card { padding: 40px 24px; }
  .cta-title { font-size: 28px; }

  .comparison-table { font-size: 12px; }
  .comparison-table th,
  .comparison-table td { padding: 12px 14px; }
}

@media (max-width: 480px) {
  .providers-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .pipeline-features { flex-direction: column; align-items: center; }
}
