/* ======================================================
   RESET & BASE
   ====================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #080B12;
  --surface: #0F1420;
  --card: #151B2B;
  --card-hover: #1C2438;
  --border: #1E2A3E;
  --border-light: #2A3A52;
  --primary: #0EA5E9;
  --primary-rgb: 14, 165, 233;
  --secondary: #8B5CF6;
  --primary-shade: #0284C7;
  --primary-tint: #38BDF8;
  --cta: #F97316;
  --success: #10B981;
  --text: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 250ms ease-out;
  --max-width: 1200px;
  --glow-primary: 0 0 40px rgba(14, 165, 233, 0.15);
  --glow-primary-strong: 0 0 60px rgba(14, 165, 233, 0.25);

  --brand-gradient: linear-gradient(135deg, #0EA5E9 0%, #8B5CF6 100%);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

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

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
}

img { max-width: 100%; display: block; }

/* ======================================================
   UTILITY
   ====================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #0EA5E9, #8B5CF6, #F97316);
  z-index: 10001;
  transition: width 50ms;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, #0EA5E9, #8B5CF6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.4), 0 10px 40px rgba(14, 165, 233, 0.2);
}

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

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-tint);
  background: rgba(14, 165, 233, 0.06);
}

.btn-cta {
  background: linear-gradient(135deg, var(--cta), #EA580C);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.btn-cta:hover {
  box-shadow: 0 6px 30px rgba(249, 115, 22, 0.45);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ======================================================
   NAVIGATION
   ====================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(8, 11, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
  letter-spacing: -0.02em;
}

.nav-logo svg {
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover { color: #fff; }

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

.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-login:hover { color: #fff; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0EA5E9, #8B5CF6);
  color: #fff;
  transition: all var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-cta:hover {
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  color: var(--text);
  padding: 8px;
  min-height: 44px;
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
              var(--bg);
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%; }
  33% { background-position: 100% 50%, 0% 100%, 0% 0%, 0% 0%; }
  66% { background-position: 50% 100%, 50% 0%, 100% 50%, 0% 0%; }
}

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

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.4);
  animation: floatParticle linear infinite;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 25%; top: 60%; width: 5px; height: 5px; background: rgba(139, 92, 246, 0.3); animation-duration: 18s; animation-delay: -3s; }
.hero-particle:nth-child(3) { left: 45%; top: 35%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: -5s; }
.hero-particle:nth-child(4) { left: 65%; top: 70%; width: 6px; height: 6px; background: rgba(16, 185, 129, 0.25); animation-duration: 20s; animation-delay: -2s; }
.hero-particle:nth-child(5) { left: 80%; top: 15%; width: 4px; height: 4px; background: rgba(14, 165, 233, 0.35); animation-duration: 16s; animation-delay: -8s; }
.hero-particle:nth-child(6) { left: 90%; top: 50%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: -4s; }
.hero-particle:nth-child(7) { left: 15%; top: 80%; width: 5px; height: 5px; background: rgba(16, 185, 129, 0.2); animation-duration: 17s; animation-delay: -7s; }
.hero-particle:nth-child(8) { left: 55%; top: 10%; width: 4px; height: 4px; background: rgba(139, 92, 246, 0.25); animation-duration: 15s; animation-delay: -1s; }

@keyframes floatParticle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-120px) translateX(40px); opacity: 0; }
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-content { z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-tint);
  margin-bottom: 24px;
}

.hero-badge svg { flex-shrink: 0; }

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--primary-tint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

/* Terminal */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.15), 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

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

.terminal-dot:nth-child(1) { background: #EF4444; }
.terminal-dot:nth-child(2) { background: #F59E0B; }
.terminal-dot:nth-child(3) { background: #10B981; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-body {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.8;
  min-height: 280px;
}

.terminal-line {
  opacity: 0;
  transform: translateY(4px);
}

.terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.terminal-prompt {
  color: var(--primary);
}

.terminal-command {
  color: var(--text);
}

.terminal-success {
  color: var(--success);
}

.terminal-info {
  color: var(--text-muted);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--primary);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

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

/* Trust bar */
.trust-bar {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.trust-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity var(--transition);
  letter-spacing: 0.5px;
}

.trust-logo:hover { opacity: 0.8; }

/* ======================================================
   METRICS
   ====================================================== */
.metrics {
  padding: 80px 0;
}

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

.metric-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(139, 92, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}

.metric-card:hover::before { opacity: 1; }
.metric-card:hover { transform: translateY(-4px); }

.metric-value {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--primary-tint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.3));
}

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

/* ======================================================
   HOW IT WORKS
   ====================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-light), var(--border-light), transparent);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all var(--transition);
}

.step-card:hover .step-number {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.step-number svg {
  width: 36px;
  height: 36px;
  color: var(--primary-tint);
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 240px;
  margin: 0 auto 24px;
}

.step-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  min-height: 100px;
}

.step-mock-line {
  height: 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

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

.step-mock-line.w-full { width: 100%; background: rgba(14, 165, 233, 0.15); }
.step-mock-line.w-75 { width: 75%; background: rgba(14, 165, 233, 0.1); }
.step-mock-line.w-50 { width: 50%; background: rgba(14, 165, 233, 0.08); }
.step-mock-line.w-30 { width: 30%; background: rgba(16, 185, 129, 0.15); }

/* ======================================================
   FEATURES BENTO
   ====================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, var(--primary), transparent, var(--secondary), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  animation: spin 4s linear infinite;
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--card);
  z-index: 0;
}

.bento-card:hover::before { opacity: 0.6; }

.bento-card > * { position: relative; z-index: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

.bento-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bento-card.large { grid-column: span 2; }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-tint);
}

.bento-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.bento-visual {
  margin-top: 24px;
}

/* Knowledge graph nodes */
.knowledge-nodes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.k-node {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  animation: pulse-node 3s ease-in-out infinite;
}

.k-node:nth-child(2n) { animation-delay: 0.5s; }
.k-node:nth-child(3n) { animation-delay: 1s; }
.k-node.active { border-color: var(--primary); color: var(--primary-tint); background: rgba(14, 165, 233, 0.08); }

@keyframes pulse-node {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Score mock */
.score-mock {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.score-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  flex-shrink: 0;
}

.score-details {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.score-details strong {
  color: var(--text);
  font-weight: 600;
}

/* Progress bars */
.parallel-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.p-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-bar-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 72px;
}

.p-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.p-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 2s ease-out;
}

.p-bar-fill.frontend { background: var(--primary); }
.p-bar-fill.backend { background: var(--secondary); }
.p-bar-fill.tests { background: var(--success); }

.p-bar-fill.animated { width: var(--target); }

/* ======================================================
   USE CASES
   ====================================================== */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}

.usecase-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.usecase-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.usecase-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary-tint);
}

.usecase-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ======================================================
   INTEGRATIONS
   ====================================================== */
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.integration-badge {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.integration-badge:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
}

.integration-badge svg {
  width: 18px;
  height: 18px;
  color: var(--primary-tint);
}

.integrations-more {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

/* ======================================================
   PRICING
   ====================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, #0EA5E9, #8B5CF6, #38BDF8, #0EA5E9) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: gradientBorder 6s ease infinite;
  box-shadow: var(--glow-primary);
}

.pricing-card.featured:hover {
  box-shadow: var(--glow-primary-strong), 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes gradientBorder {
  0% { background-position: 0% 0%, 0% 0%; }
  50% { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 0% 0%, 0% 0%; }
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0EA5E9, #8B5CF6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ======================================================
   TESTIMONIALS
   ====================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.testimonial-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: #F59E0B;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.testimonial-info { line-height: 1.4; }

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ======================================================
   BOTTOM CTA
   ====================================================== */
.bottom-cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-cta .section-title {
  margin-bottom: 16px;
}

.bottom-cta .section-subtitle {
  margin: 0 auto 40px;
  text-align: center;
}

.bottom-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 240px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.footer-logo svg {
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

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

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  min-height: 44px;
  min-width: 44px;
}

.footer-social:hover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.footer-social:hover svg { color: var(--primary-tint); }

/* ======================================================
   PERSONAS
   ====================================================== */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.persona-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.persona-card:first-child::before {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.persona-card:last-child::before {
  background: linear-gradient(90deg, var(--success), #34D399);
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: var(--border-light);
}

.persona-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.persona-card:first-child .persona-icon {
  background: rgba(14, 165, 233, 0.1);
}

.persona-card:last-child .persona-icon {
  background: rgba(16, 185, 129, 0.1);
}

.persona-icon svg {
  width: 26px;
  height: 26px;
}

.persona-card:first-child .persona-icon svg {
  color: var(--primary-tint);
}

.persona-card:last-child .persona-icon svg {
  color: var(--success);
}

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

.persona-headline {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.persona-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.persona-card ul li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.persona-card ul li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-card:first-child ul li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230EA5E9' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: 14px;
}

.persona-card:last-child ul li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: 14px;
}

.persona-stat {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--text);
  text-align: center;
}

.persona-stat strong {
  color: #fff;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { text-align: center; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.large { grid-column: span 2; }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .personas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: span 3; max-width: 100%; }
  .trust-bar { margin-top: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-toggle { display: block; }
  .metrics-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.large { grid-column: span 1; }
  .bento-card [style*="display:flex"][style*="gap:16px"] { flex-direction: column; }
  .usecases-grid { grid-template-columns: 1fr; }
  .usecases-grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 400px; margin: 0 auto; }
  .personas-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sub { font-size: 16px; }
  .section-title { font-size: clamp(24px, 5vw, 36px); }
  .section-header { margin-bottom: 40px; }
  .terminal-body { font-size: 12px; padding: 14px; min-height: auto; }
  .agent-feed-action { font-size: 11px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .trust-logos { gap: 16px; font-size: 13px; }
  .trust-logo { font-size: 13px; }
  .h-bar-label { min-width: 55px; font-size: 11px; }
  .h-bar-val { font-size: 11px; min-width: 30px; }
  .metric-value { font-size: clamp(32px, 8vw, 48px); }
  .donut-chart { width: 80px; height: 80px; }
  .donut-chart .donut-label { font-size: 18px; }
  .donut-chart .donut-label small { font-size: 9px; }
}

@media (max-width: 375px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(8, 11, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 999;
}

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

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  min-height: 44px;
}

.nav-mobile a:hover { color: #fff; }

/* ======================================================
   VISUAL CHARTS & DASHBOARD COMPONENTS
   ====================================================== */

/* Donut chart */
.donut-chart {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.donut-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-chart circle {
  fill: none;
  stroke-width: 8;
}

.donut-chart .donut-bg {
  stroke: rgba(255,255,255,0.06);
}

.donut-chart .donut-fill {
  stroke-dasharray: 283;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s ease-out;
}

.donut-chart .donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.donut-chart .donut-label small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding-top: 8px;
}

.bar-chart-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.bar-chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 1.5s ease-out;
  min-width: 24px;
  max-width: 40px;
}

.bar-chart-label {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.bar-chart-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Stat row */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.stat-row:last-child { border-bottom: none; }

.stat-row-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-row-label .stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-row-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Mini dashboard card */
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dash-card-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
}

/* Horizontal bar chart rows */
.h-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.h-bar-row:last-child { margin-bottom: 0; }

.h-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 65px;
  text-align: right;
}

.h-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
}

.h-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 2s ease-out;
}

.h-bar-fill.animated { width: var(--target); }

.h-bar-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 36px;
}

/* Agent live feed */
.agent-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.agent-feed-row:last-child { border-bottom: none; }

.agent-feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.agent-feed-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-tint);
  min-width: 70px;
}

.agent-feed-action {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
}

.agent-feed-time {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Use case grid — 4 columns for more cases */
.usecases-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.usecase-card-mini {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

.usecase-card-mini:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.usecase-card-mini h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.usecase-card-mini .usecase-agents {
  list-style: none;
  padding: 0;
}

.usecase-card-mini .usecase-agents li {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.usecase-card-mini .usecase-agents li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.usecase-card-mini .usecase-stat {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

@media (max-width: 1024px) {
  .usecases-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .usecases-grid-4 { grid-template-columns: 1fr; }
  .donut-chart { width: 90px; height: 90px; }
  .donut-chart .donut-label { font-size: 18px; }
}
