/* === BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0f;
  color: #c8cdd5;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.text-red { color: #ff6b6b; }
.text-cyan { color: #00d4ff; }
.text-green { color: #30d158; }
.text-dim { color: #4a5568; }

/* === NAV === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}
#navbar.scrolled { background: rgba(10,10,15,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.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: #00d4ff; font-size: 1.3rem; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: #8892a4; 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: linear-gradient(135deg, #00d4ff, #7b2ff7) !important;
  color: #fff !important; border-radius: 50px;
  font-weight: 600 !important;
}
.nav-lang {
  padding: 4px 12px !important;
  border: 1px solid #2a2a3a !important;
  border-radius: 6px;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  color: #6b7280 !important;
  transition: all 0.2s;
}
.nav-lang:hover { border-color: #00d4ff !important; color: #00d4ff !important; }
.mobile-menu { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu span {
  display: block; width: 24px; height: 2px;
  background: #8892a4; 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: linear-gradient(135deg, #00d4ff, #7b2ff7);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.25); }
.btn-ghost {
  background: transparent; color: #8892a4;
  border: 1px solid #2a2a3a;
}
.btn-ghost:hover { border-color: #00d4ff; color: #00d4ff; }
.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: 500px; height: 500px;
  border-radius: 50%; filter: blur(150px); opacity: 0.07;
}
.bg-glow.blue { background: #00d4ff; top: -150px; right: -100px; }
.bg-glow.purple { background: #7b2ff7; bottom: -150px; left: -100px; }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50px; font-size: 0.8rem; color: #00d4ff;
  font-weight: 500; margin-bottom: 24px;
}
#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: #8892a4; 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 #1e2a3a; 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: linear-gradient(135deg, #00d4ff, #30d158);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 0.8rem; color: #6b7280; 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: #4a5568; font-size: 0.75rem;
}
.scroll-arrow {
  width: 20px; height: 20px; border-right: 2px solid #4a5568;
  border-bottom: 2px solid #4a5568; 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: rgba(255,255,255,0.01); }
.section-badge {
  display: inline-block; padding: 4px 14px;
  background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.15);
  border-radius: 50px; font-size: 0.75rem; color: #00d4ff;
  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: #6b7280; max-width: 600px;
  margin-bottom: 48px; line-height: 1.7;
}

/* === PROBLEM === */
.problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-bottom: 80px;
}
.problem-card {
  padding: 32px 24px; background: rgba(255,255,255,0.02);
  border: 1px solid #1e2a3a; border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s;
}
.problem-card:hover { transform: translateY(-4px); border-color: rgba(255,107,107,0.3); }
.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: #8892a4;
  text-transform: uppercase; letter-spacing: 1px;
  margin: 8px 0 12px;
}
.problem-card p { font-size: 0.85rem; color: #6b7280; }

/* 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: #6b7280; 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 #1e2a3a; }
.bar-label { width: 120px; font-size: 0.8rem; color: #6b7280; text-align: right; font-weight: 500; }
.bar-track { flex: 1; height: 28px; background: #141420; 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, #ff3b30, #ff6b6b); }
.bar-fill.green { background: linear-gradient(90deg, #00d4ff, #30d158); }
.storm-caption { font-size: 0.9rem; color: #8892a4; 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 #1e2a3a;
  border-radius: 8px; color: #6b7280; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.demo-tab.active { background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.3); color: #00d4ff; }
.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: #ff6b6b;
}

/* Split demo */
.split-demo {
  display: flex; border: 1px solid #1e2a3a;
  border-radius: 12px; overflow: hidden;
  height: 480px;
}
.split-panel { flex: 1; display: flex; flex-direction: column; }
.split-panel.trad { border-right: 1px solid #1e2a3a; }
.split-header {
  padding: 12px 16px; display: flex;
  justify-content: space-between; align-items: center;
  border-bottom: 1px solid #1e2a3a;
  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: #6b7280;
}
.split-stats b { color: #c8cdd5; }
.split-feed {
  flex: 1; overflow-y: auto; padding: 8px;
  scrollbar-width: thin; scrollbar-color: #2a2a3a #0a0a0f;
}
.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: #ff6b6b;
  border-top: 1px solid #1e2a3a; background: rgba(255,255,255,0.01);
}
.split-status.ai-status { color: #30d158; }
.split-divider {
  width: 1px; background: #1e2a3a; display: flex;
  align-items: center; justify-content: center;
  position: relative;
}
.split-divider span {
  position: absolute; background: #1a1a2e;
  border: 1px solid #2a2a3a; border-radius: 50%;
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: #6b7280;
}

/* 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(255,59,48,0.08); border-left: 3px solid #ff3b30; }
.alert-item.warning { background: rgba(255,159,10,0.08); border-left: 3px solid #ff9f0a; }
.alert-item.info { background: rgba(0,122,255,0.08); border-left: 3px solid #007aff; }
.alert-item.grouped { background: rgba(0,212,255,0.06); border-left: 3px solid #00d4ff; }
.alert-item.resolved { background: rgba(48,209,88,0.06); border-left: 3px solid #30d158; }
.alert-item.ticket { background: rgba(123,47,247,0.06); border-left: 3px solid #a78bfa; }
.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(255,59,48,0.15); color: #ff6b6b; }
.badge-warn { background: rgba(255,159,10,0.15); color: #ffb340; }
.badge-info { background: rgba(0,122,255,0.15); color: #5ac8fa; }
.badge-corr { background: rgba(0,212,255,0.15); color: #00d4ff; }
.badge-resolved { background: rgba(48,209,88,0.15); color: #30d158; }
.badge-ticket { background: rgba(123,47,247,0.15); color: #a78bfa; }

/* Triage cards */
.triage-card {
  margin: 6px 4px; padding: 12px;
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 8px; animation: alertSlide 0.4s ease;
}
.triage-card h4 {
  font-size: 0.72rem; color: #00d4ff;
  margin-bottom: 6px; font-weight: 600;
}
.triage-card p {
  font-size: 0.68rem; color: #8892a4;
  font-family: 'JetBrains Mono', monospace; line-height: 1.4;
}
.triage-action {
  margin-top: 6px; padding: 4px 10px;
  background: rgba(123,47,247,0.1); border-radius: 4px;
  font-size: 0.65rem; color: #a78bfa;
  font-family: 'JetBrains Mono', monospace;
}

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

/* Terminal demo */
.terminal-wrapper {
  border: 1px solid #1e2a3a; 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: #50fa7b; }
.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: #50fa7b; }
.t-cyan { color: #8be9fd; }
.t-purple { color: #bd93f9; }
.t-white { color: #f8f8f2; font-weight: 600; }
.t-sep { color: #44475a; }
.cursor {
  display: inline-block; width: 8px; height: 14px;
  background: #50fa7b; 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: rgba(255,255,255,0.02);
  border: 1px solid #1e2a3a; border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(0,212,255,0.3); }
.step-num {
  font-size: 2rem; font-weight: 800; color: #00d4ff; opacity: 0.3;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 12px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: #6b7280; }
.step-arrow {
  font-size: 1.5rem; color: #2a2a3a; 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 #1e2a3a; text-align: left;
}
.compare-table td {
  padding: 12px 24px; border-bottom: 1px solid #141420;
}
.compare-table td:first-child { color: #8892a4; font-weight: 500; }
.compare-table td:nth-child(2) { color: #ff6b6b; font-family: 'JetBrains Mono', monospace; }
.compare-table td:nth-child(3) { color: #30d158; font-family: 'JetBrains Mono', monospace; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* === ROI === */
.roi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.roi-card {
  padding: 32px 24px; text-align: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid #1e2a3a; border-radius: 16px;
  transition: transform 0.3s;
}
.roi-card:hover { transform: translateY(-4px); }
.roi-num {
  font-size: 3rem; font-weight: 800;
  font-family: 'JetBrains Mono', monospace; line-height: 1;
}
.roi-label {
  font-size: 0.85rem; font-weight: 600; color: #8892a4;
  text-transform: uppercase; letter-spacing: 1px;
  margin: 8px 0 12px;
}
.roi-card p { font-size: 0.8rem; color: #6b7280; }

/* === INTEGRATIONS === */
.integrations-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.integration-group {
  padding: 24px; background: rgba(255,255,255,0.02);
  border: 1px solid #1e2a3a; border-radius: 16px;
}
.integration-group h4 {
  font-size: 0.9rem; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.integration-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.integration-tags span {
  padding: 6px 14px; font-size: 0.8rem;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 50px; color: #8892a4; font-weight: 500;
}

/* === CTA === */
#cta { padding: 80px 0 100px; }
.cta-box {
  text-align: center; padding: 80px 40px;
  background: rgba(255,255,255,0.01);
  border: 1px solid #1e2a3a; border-radius: 24px;
  position: relative; overflow: hidden;
}
.cta-box h2 { font-size: 2.8rem; }
.cta-box p { font-size: 1.05rem; color: #6b7280; margin: 16px 0 32px; line-height: 1.7; }
.cta-sub { margin-top: 16px; color: #4a5568; font-size: 0.85rem; }

/* === FOOTER === */
footer {
  padding: 24px 0; border-top: 1px solid #1e2a3a;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-size: 0.9rem; font-weight: 700; color: #4a5568;
  display: flex; align-items: center; gap: 8px;
}
.footer-links {
  display: flex; gap: 16px; font-size: 0.8rem; color: #4a5568;
}

/* === 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: rgba(255,255,255,0.02);
  border: 1px solid #1e2a3a;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d0d12;
  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;
  /* iOS tap highlight fix */
  -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: linear-gradient(135deg, #00d4ff, #7b2ff7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(0,212,255,0.25);
  position: relative;
  z-index: 20;
  /* iOS tap improvements */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  /* Ensure button is always visible */
  opacity: 1 !important;
  visibility: visible !important;
}
.video-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0,212,255,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: #6b7280;
  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 #1e2a3a; }
  .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;
    /* Ensure minimum touch target for iOS */
    min-width: 44px;
    min-height: 44px;
  }
  .video-play-btn svg { width: 22px; height: 22px; }
  .video-overlay {
    /* Ensure overlay is tappable on iOS */
    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: #6b7280;
    font-size: 0.75rem;
    padding: 8px 0 0;
    animation: hintPulse 2s ease-in-out infinite;
  }
  .carousel-hint svg { fill: #6b7280; }
  @keyframes hintPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }
}
@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; }
}
