/* === AUTOMATION AI - DISTINCTIVE DESIGN === */
/* Color Palette:
   Primary: Amber/Orange (#f59e0b, #ea580c) - efficiency, energy
   Secondary: Violet (#8b5cf6, #6d28d9) - intelligence, automation
   Accent: Warm coral (#fb7185) for highlights
   Success: Warm green (#22c55e)
   Background: Warm dark tones (#0f0d13, #1a1520)
*/

/* === CSS CUSTOM PROPERTIES === */
:root {
  --primary: #f59e0b;
  --primary-dark: #ea580c;
  --primary-light: #fbbf24;
  --secondary: #8b5cf6;
  --secondary-dark: #6d28d9;
  --accent: #fb7185;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f97316;

  --bg-primary: #0f0d13;
  --bg-secondary: #1a1520;
  --bg-card: rgba(251, 191, 36, 0.02);
  --bg-card-hover: rgba(251, 191, 36, 0.05);

  --border-subtle: rgba(251, 191, 36, 0.1);
  --border-medium: rgba(251, 191, 36, 0.2);

  --text-primary: #f5f5f7;
  --text-secondary: #a3a3a8;
  --text-muted: #6b6b70;

  --gradient-primary: linear-gradient(135deg, #f59e0b, #ea580c);
  --gradient-accent: linear-gradient(135deg, #f59e0b, #8b5cf6);
  --gradient-glow: linear-gradient(135deg, #fbbf24, #f97316);
}

/* === BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-red { color: var(--danger); }
.text-cyan { color: var(--primary); }
.text-orange { color: var(--primary); }
.text-green { color: var(--success); }
.text-dim { color: var(--text-muted); }

/* === NAV === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 13, 19, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s;
}
#navbar.scrolled {
  background: rgba(15, 13, 19, 0.95);
  box-shadow: 0 4px 30px rgba(245, 158, 11, 0.1);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.nav-logo {
  font-size: 1.1rem; font-weight: 800; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  color: var(--primary);
  font-size: 1.3rem;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 8px 20px !important;
  background: var(--gradient-primary) !important;
  color: #fff !important; border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}
.nav-lang {
  padding: 4px 12px !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: 6px;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  color: var(--text-muted) !important;
  transition: all 0.2s;
}
.nav-lang:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}
.mobile-menu { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu span {
  display: block; width: 24px; height: 2px;
  background: var(--text-secondary); margin: 5px 0; transition: 0.3s;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: 0.95rem; font-weight: 600;
  border-radius: 50px; text-decoration: none;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all 0.2s; border: none;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-sm { padding: 8px 20px; font-size: 0.8rem; }
.btn-lg { padding: 18px 48px; font-size: 1.1rem; }

/* === HERO === */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; text-align: center;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.bg-glow {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%; filter: blur(150px); opacity: 0.08;
}
.bg-glow.blue {
  background: var(--primary);
  top: -200px; right: -150px;
}
.bg-glow.purple {
  background: var(--secondary);
  bottom: -200px; left: -150px;
}
.bg-glow.orange {
  background: var(--primary-dark);
  top: 30%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  opacity: 0.05;
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Workflow decoration - animated dots/lines */
.workflow-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.workflow-decoration::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 5%;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.2;
  animation: flowRight 4s ease-in-out infinite;
}
.workflow-decoration::after {
  content: '';
  position: absolute;
  bottom: 25%;
  right: 8%;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  opacity: 0.15;
  animation: flowRight 4s ease-in-out infinite 2s;
}
@keyframes flowRight {
  0%, 100% { transform: translateX(-20px); opacity: 0; }
  50% { transform: translateX(20px); opacity: 0.3; }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 50px; font-size: 0.8rem; color: var(--primary);
  font-weight: 600; margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

#hero h1 {
  font-size: 3.8rem; font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-secondary); max-width: 600px;
  margin: 0 auto 32px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  border-top: 1px solid var(--border-subtle); padding-top: 32px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block; font-size: 2rem; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem;
}
.scroll-arrow {
  width: 20px; height: 20px; border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted); transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* === SECTIONS === */
section { padding: 100px 0; position: relative; }
section:nth-child(even) { background: var(--bg-secondary); }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 50px; font-size: 0.75rem; color: var(--primary);
  font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px;
}
section h2 {
  font-size: 2.5rem; font-weight: 800; color: #fff;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted); max-width: 600px;
  margin-bottom: 48px; line-height: 1.7;
}

/* === PROBLEM CARDS === */
.problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-bottom: 80px;
}
.problem-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.1);
}
.problem-card:hover::before {
  background: var(--gradient-primary);
}
.problem-num {
  font-size: 2.8rem; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.problem-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1px;
  margin: 8px 0 12px;
}
.problem-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Solution cards (after section) - different hover style */
#after .problem-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.1);
}

/* Bar chart */
.storm-viz { max-width: 700px; }
.storm-viz h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.storm-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }
.bar-chart { margin-bottom: 16px; }
.bar-row { display: flex; align-items: center; margin: 10px 0; gap: 16px; }
.bar-row.highlight { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.bar-label { width: 120px; font-size: 0.8rem; color: var(--text-muted); text-align: right; font-weight: 500; }
.bar-track { flex: 1; height: 28px; background: var(--bg-secondary); border-radius: 6px; overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: 6px;
  display: flex; align-items: center; padding-left: 12px;
  font-size: 0.75rem; font-weight: 600; color: #fff;
  font-family: 'JetBrains Mono', monospace;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.red { background: linear-gradient(90deg, #ef4444, #f87171); }
.bar-fill.green { background: linear-gradient(90deg, var(--primary), var(--success)); }
.storm-caption { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* === DEMO === */
.demo-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.demo-tab {
  padding: 10px 24px; font-size: 0.85rem; font-weight: 600;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  border-radius: 8px; color: var(--text-muted); cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.demo-tab.active {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--primary);
}
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.demo-controls {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.demo-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem; font-weight: 700; color: #fff;
}
.demo-alert-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; color: var(--danger);
}

/* Split demo */
.split-demo {
  display: flex; border: 1px solid var(--border-subtle);
  border-radius: 12px; overflow: hidden;
  height: 480px;
}
.split-panel { flex: 1; display: flex; flex-direction: column; }
.split-panel.trad { border-right: 1px solid var(--border-subtle); }
.split-header {
  padding: 12px 16px; display: flex;
  justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.01);
}
.split-title {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.split-stats {
  display: flex; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--text-muted);
}
.split-stats b { color: var(--text-secondary); }
.split-feed {
  flex: 1; overflow-y: auto; padding: 8px;
  scrollbar-width: thin; scrollbar-color: #2a2a3a var(--bg-primary);
}
.split-feed::-webkit-scrollbar { width: 4px; }
.split-feed::-webkit-scrollbar-track { background: transparent; }
.split-feed::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 4px; }
.split-status {
  padding: 8px 16px; font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--danger);
  border-top: 1px solid var(--border-subtle); background: rgba(255,255,255,0.01);
}
.split-status.ai-status { color: var(--success); }
.split-divider {
  width: 1px; background: var(--border-subtle); display: flex;
  align-items: center; justify-content: center;
  position: relative;
}
.split-divider span {
  position: absolute; background: var(--bg-secondary);
  border: 1px solid var(--border-medium); border-radius: 50%;
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: var(--text-muted);
}

/* Alert items in demo */
.alert-item {
  padding: 8px 12px; margin-bottom: 3px;
  border-radius: 6px; font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex; justify-content: space-between;
  align-items: center; gap: 8px;
  animation: alertSlide 0.25s ease;
}
@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.alert-item.critical { background: rgba(239, 68, 68, 0.08); border-left: 3px solid #ef4444; }
.alert-item.warning { background: rgba(249, 115, 22, 0.08); border-left: 3px solid #f97316; }
.alert-item.info { background: rgba(59, 130, 246, 0.08); border-left: 3px solid #3b82f6; }
.alert-item.grouped { background: rgba(245, 158, 11, 0.06); border-left: 3px solid var(--primary); }
.alert-item.resolved { background: rgba(34, 197, 94, 0.06); border-left: 3px solid var(--success); }
.alert-item.ticket { background: rgba(139, 92, 246, 0.06); border-left: 3px solid var(--secondary); }
.alert-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-badge {
  font-size: 0.6rem; padding: 2px 8px; border-radius: 10px;
  white-space: nowrap; font-weight: 600;
}
.badge-crit { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-warn { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-corr { background: rgba(245, 158, 11, 0.15); color: var(--primary); }
.badge-resolved { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge-ticket { background: rgba(139, 92, 246, 0.15); color: var(--secondary); }

/* Triage cards */
.triage-card {
  margin: 6px 4px; padding: 12px;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 8px; animation: alertSlide 0.4s ease;
}
.triage-card h4 {
  font-size: 0.72rem; color: var(--primary);
  margin-bottom: 6px; font-weight: 600;
}
.triage-card p {
  font-size: 0.68rem; color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace; line-height: 1.4;
}
.triage-action {
  margin-top: 6px; padding: 4px 10px;
  background: rgba(139, 92, 246, 0.1); border-radius: 4px;
  font-size: 0.65rem; color: var(--secondary);
  font-family: 'JetBrains Mono', monospace;
}

/* Stress indicator */
.stress-bar {
  padding: 8px 12px; margin: 4px 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px; font-size: 0.7rem;
  color: var(--warning); font-family: 'JetBrains Mono', monospace;
  animation: pulseStress 1.5s infinite;
}
@keyframes pulseStress { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* Terminal demo */
.terminal-wrapper {
  border: 1px solid var(--border-subtle); border-radius: 12px;
  overflow: hidden; height: 480px; display: flex; flex-direction: column;
}
.term-bar {
  height: 36px; background: #1e1e1e;
  display: flex; align-items: center;
  padding: 0 14px; gap: 8px;
  border-bottom: 1px solid #333;
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #28c840; }
.term-title { flex: 1; text-align: center; font-size: 0.7rem; color: #666; font-family: 'JetBrains Mono', monospace; }
.term-body {
  flex: 1; padding: 14px; overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; line-height: 1.55;
  scrollbar-width: thin; scrollbar-color: #333 #0c0c0c;
  background: #0c0c0c;
}
.term-body::-webkit-scrollbar { width: 4px; }
.term-body::-webkit-scrollbar-track { background: #0c0c0c; }
.term-body::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.term-line { white-space: pre-wrap; word-break: break-all; animation: alertSlide 0.1s ease; }
.t-prompt { color: var(--primary); }
.t-cmd { color: #f8f8f2; }
.t-dim { color: #6272a4; }
.t-red { color: #ff5555; font-weight: 600; }
.t-orange { color: #ffb86c; }
.t-yellow { color: #f1fa8c; }
.t-green { color: var(--success); }
.t-cyan { color: var(--primary-light); }
.t-purple { color: var(--secondary); }
.t-white { color: #f8f8f2; font-weight: 600; }
.t-sep { color: #44475a; }
.cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--primary); animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* === STEPS === */
.steps-grid {
  display: flex; align-items: flex-start; gap: 0;
  flex-wrap: wrap; justify-content: center;
}
.step-card {
  flex: 1; min-width: 200px; max-width: 240px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.step-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  transition: background 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.1);
}
.step-card:hover::after {
  background: var(--gradient-primary);
}
.step-num {
  font-size: 1.5rem; font-weight: 800; color: var(--primary); opacity: 0.5;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); }
.step-arrow {
  font-size: 1.5rem; color: var(--primary); opacity: 0.3;
  padding: 0 8px;
  align-self: center; margin-top: 20px;
}

/* === COMPARISON === */
.compare-wrapper { overflow-x: auto; }
.compare-table { border-collapse: collapse; width: 100%; max-width: 800px; font-size: 0.9rem; }
.compare-table th {
  padding: 14px 24px; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: 0.75rem; font-weight: 700;
  border-bottom: 2px solid var(--border-subtle); text-align: left;
}
.compare-table td {
  padding: 12px 24px; border-bottom: 1px solid var(--border-subtle);
}
.compare-table td:first-child { color: var(--text-secondary); font-weight: 500; }
.compare-table td:nth-child(2) { color: var(--danger); font-family: 'JetBrains Mono', monospace; }
.compare-table td:nth-child(3) { color: var(--success); font-family: 'JetBrains Mono', monospace; }
.compare-table tbody tr:hover { background: var(--bg-card-hover); }

/* === ROI === */
.roi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.roi-card {
  padding: 32px 24px; text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.roi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.roi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.1);
}
.roi-card:hover::before {
  opacity: 1;
}
.roi-num {
  font-size: 3rem; font-weight: 800;
  font-family: 'JetBrains Mono', monospace; line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.roi-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1px;
  margin: 8px 0 12px;
}
.roi-card p { font-size: 0.8rem; color: var(--text-muted); }

/* === INTEGRATIONS === */
.integrations-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.integration-group {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: border-color 0.3s;
}
.integration-group:hover {
  border-color: rgba(245, 158, 11, 0.2);
}
.integration-group h4 {
  font-size: 0.9rem; font-weight: 700; color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.integration-group h4::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.integration-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.integration-tags span {
  padding: 6px 14px; font-size: 0.8rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 50px; color: var(--text-secondary); font-weight: 500;
  transition: all 0.2s;
}
.integration-tags span:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(245, 158, 11, 0.1);
}

/* === CTA === */
#cta { padding: 80px 0 100px; }
.cta-box {
  text-align: center; padding: 80px 40px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), rgba(139, 92, 246, 0.03));
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}
.cta-box h2 { font-size: 2.8rem; }
.cta-box p { font-size: 1.05rem; color: var(--text-muted); margin: 16px 0 32px; line-height: 1.7; }
.cta-sub { margin-top: 16px; color: var(--text-muted); font-size: 0.85rem; }

/* === FOOTER === */
footer {
  padding: 24px 0; border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-size: 0.9rem; font-weight: 700; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.footer-logo .logo-icon {
  color: var(--primary);
  opacity: 0.5;
}
.footer-links {
  display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted);
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}

/* === VIDEO SHOWCASE === */
#videos { padding: 100px 0; }
.video-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.carousel-hint {
  display: none;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15);
}
.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  transition: background 0.3s, opacity 0.3s;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.video-card:hover .video-overlay {
  background: rgba(0,0,0,0.2);
}
.video-card.playing .video-overlay {
  display: none;
}
.video-card.loading .video-play-btn {
  animation: btnPulse 1s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.95); opacity: 0.7; }
}
.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
  position: relative;
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  opacity: 1 !important;
  visibility: visible !important;
}
.video-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.35);
}
.video-play-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-left: 4px;
}
.video-info {
  padding: 16px;
}
.video-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.video-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .roi-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .steps-grid { gap: 16px; }
  .video-carousel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  #hero h1 { font-size: 2.4rem; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .problem-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr 1fr; }
  .split-demo { flex-direction: column; height: auto; }
  .split-panel { height: 320px; min-height: 320px; max-height: 320px; }
  .split-panel.trad { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .split-divider { width: 100%; height: 40px; flex-shrink: 0; }
  .split-divider span { top: 50%; transform: translateY(-50%); }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-card { max-width: 100%; }
  /* Video carousel mobile */
  #videos { padding: 50px 0; }
  #videos .container { padding: 0; }
  #videos .section-badge,
  #videos h2,
  #videos .section-sub { padding: 0 24px; }
  .video-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 24px 16px;
    margin-top: 24px;
    scrollbar-width: none;
  }
  .video-carousel::-webkit-scrollbar { display: none; }
  .video-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: 12px;
  }
  .video-wrapper { aspect-ratio: 16/9; }
  .video-play-btn {
    width: 56px;
    height: 56px;
    min-width: 44px;
    min-height: 44px;
  }
  .video-play-btn svg { width: 22px; height: 22px; }
  .video-overlay {
    cursor: pointer;
  }
  .video-info { padding: 12px; }
  .video-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
  .video-info p { font-size: 0.75rem; }
  .carousel-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 8px 0 0;
    animation: hintPulse 2s ease-in-out infinite;
  }
  .carousel-hint svg { fill: var(--text-muted); }
  @keyframes hintPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }
  .workflow-decoration { display: none; }
}
@media (max-width: 480px) {
  #hero h1 { font-size: 2rem; }
  section h2 { font-size: 1.8rem; }
  .roi-grid { grid-template-columns: 1fr; }
  /* Video carousel small mobile */
  #videos { padding: 40px 0; }
  #videos h2 { font-size: 1.5rem; }
  .video-carousel { padding: 0 16px 12px; gap: 10px; }
  .video-card { flex: 0 0 240px; }
  .video-play-btn {
    width: 50px;
    height: 50px;
    min-width: 44px;
    min-height: 44px;
  }
  .video-play-btn svg { width: 20px; height: 20px; }
  .video-info { padding: 10px; }
  .video-info h4 { font-size: 0.85rem; }
  .video-info p { font-size: 0.7rem; }
}

/* === DOCUMENT PROCESSING DEMO === */
.demo-stats {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.demo-stats b {
  color: var(--primary);
}

.process-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  min-height: 520px;
  background: var(--bg-secondary);
}

.process-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.process-panel.documents {
  border-right: 1px solid var(--border-subtle);
}

.process-panel.output {
  border-left: 1px solid var(--border-subtle);
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.01);
}

.panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.panel-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-weight: 600;
}

.panel-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: #2a2a3a var(--bg-primary);
}

.panel-feed::-webkit-scrollbar { width: 4px; }
.panel-feed::-webkit-scrollbar-track { background: transparent; }
.panel-feed::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 4px; }

/* Document cards in queue */
.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  animation: docSlide 0.3s ease;
}

@keyframes docSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.doc-card.processing {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.doc-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-vendor {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.doc-status {
  font-size: 1rem;
}

/* Center AI Extractor */
.process-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-secondary);
}

.ai-extractor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  min-width: 180px;
}

.ai-extractor.processing {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.ai-extractor.processing .extractor-icon {
  animation: extractorPulse 1s ease-in-out infinite;
}

@keyframes extractorPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.extractor-icon {
  font-size: 2.5rem;
  transition: transform 0.3s;
}

.extractor-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

.extraction-preview {
  width: 100%;
}

.preview-card {
  padding: 14px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  animation: previewFade 0.3s ease;
}

@keyframes previewFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.preview-card.final {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}

.preview-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-card.final .preview-title {
  color: var(--success);
}

.preview-field {
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-field span {
  color: var(--text-muted);
}

.preview-confidence {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 158, 11, 0.1);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--success);
  font-family: 'JetBrains Mono', monospace;
}

/* Output cards */
.output-card {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 10px;
  animation: outputSlide 0.4s ease;
}

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

.output-card.valid {
  border-left: 3px solid var(--success);
}

.output-card.flagged {
  border-left: 3px solid var(--warning);
  background: rgba(249, 115, 22, 0.03);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.output-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.output-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.output-badge.valid {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.output-badge.flagged {
  background: rgba(249, 115, 22, 0.15);
  color: var(--warning);
}

.output-row {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.output-row span {
  color: var(--text-muted);
}

.output-flag {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 6px;
  font-size: 0.68rem;
  color: var(--warning);
  font-family: 'JetBrains Mono', monospace;
}

.output-meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Demo responsive */
@media (max-width: 1024px) {
  .process-demo {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .process-panel.documents,
  .process-panel.output {
    border: none;
    min-height: 300px;
  }

  .process-panel.documents {
    border-bottom: 1px solid var(--border-subtle);
  }

  .process-center {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .ai-extractor {
    flex-direction: row;
    min-width: 100%;
    padding: 16px 20px;
  }

  .extraction-preview {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .demo-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .demo-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ai-extractor {
    flex-direction: column;
  }
}
