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

/* === COLOR VARIABLES (Support/Helpdesk Theme) === */
:root {
  --primary: #3b9ae1;         /* Sky blue - friendly, approachable */
  --primary-light: #5cb3f5;
  --primary-dark: #2a7ab8;
  --secondary: #f0936c;       /* Warm coral - human touch */
  --secondary-light: #f7b499;
  --accent: #2dd4bf;          /* Teal - modern, fresh */
  --accent-light: #5eead4;
  --success: #34d399;         /* Green - resolved */
  --warning: #fbbf24;         /* Amber - pending */
  --danger: #f87171;          /* Coral red - urgent */
  --bg-dark: #0f1419;
  --bg-card: rgba(59, 154, 225, 0.03);
  --border: #1e3a5f;
  --border-light: rgba(59, 154, 225, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.text-red { color: var(--danger); }
.text-cyan { 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, 20, 25, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s;
}
#navbar.scrolled { background: rgba(15, 20, 25, 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: 10px;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  font-size: 0.9rem;
  color: #fff;
}
.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: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important; border-radius: 50px;
  font-weight: 600 !important;
}
.nav-lang {
  padding: 4px 12px !important;
  border: 1px solid var(--border) !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: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 154, 225, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59, 154, 225, 0.35); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.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: 500px; height: 500px;
  border-radius: 50%; filter: blur(150px); opacity: 0.08;
}
.bg-glow.blue { background: var(--primary); top: -150px; right: -100px; }
.bg-glow.purple { background: var(--secondary); bottom: -150px; left: -100px; }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59, 154, 225, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 154, 225, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Ticket-style decorative elements */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 5%;
  width: 80px;
  height: 100px;
  background: linear-gradient(135deg, rgba(59, 154, 225, 0.1), rgba(59, 154, 225, 0.02));
  border: 1px solid rgba(59, 154, 225, 0.15);
  border-radius: 12px;
  transform: rotate(-15deg);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 8%;
  width: 100px;
  height: 120px;
  background: linear-gradient(135deg, rgba(240, 147, 108, 0.1), rgba(240, 147, 108, 0.02));
  border: 1px solid rgba(240, 147, 108, 0.15);
  border-radius: 12px;
  transform: rotate(10deg);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(59, 154, 225, 0.12), rgba(59, 154, 225, 0.04));
  border: 1px solid rgba(59, 154, 225, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  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); 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, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.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: rgba(59, 154, 225, 0.02); }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(59, 154, 225, 0.08), rgba(59, 154, 225, 0.02));
  border: 1px solid rgba(59, 154, 225, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary-light);
  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 === */
.problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-bottom: 80px;
}
.problem-card {
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.04), rgba(248, 113, 113, 0.01));
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
/* Ticket notch effect */
.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 40px;
  height: 8px;
  background: var(--bg-dark);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 113, 113, 0.35);
  box-shadow: 0 12px 40px rgba(248, 113, 113, 0.1);
}
.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); }

/* Example section - cyan/teal cards */
#example .problem-card {
  background: linear-gradient(135deg, rgba(59, 154, 225, 0.06), rgba(45, 212, 191, 0.02));
  border: 1px solid rgba(59, 154, 225, 0.2);
}
#example .problem-card::before {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.6;
}
#example .problem-card:hover {
  border-color: rgba(59, 154, 225, 0.4);
  box-shadow: 0 12px 40px rgba(59, 154, 225, 0.12);
}

/* 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); }
.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: #141c24; 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, var(--danger), #f9a8a8); }
.bar-fill.green { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.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(59, 154, 225, 0.04); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-muted); cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.demo-tab.active { background: rgba(59, 154, 225, 0.1); border-color: rgba(59, 154, 225, 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);
  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); }
.split-header {
  padding: 12px 16px; display: flex;
  justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(59, 154, 225, 0.02);
}
.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: #c8cdd5; }
.split-feed {
  flex: 1; overflow-y: auto; padding: 8px;
  scrollbar-width: thin; scrollbar-color: var(--border) var(--bg-dark);
}
.split-feed::-webkit-scrollbar { width: 4px; }
.split-feed::-webkit-scrollbar-track { background: transparent; }
.split-feed::-webkit-scrollbar-thumb { background: var(--border); 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); background: rgba(59, 154, 225, 0.02);
}
.split-status.ai-status { color: var(--success); }
.split-divider {
  width: 1px; background: var(--border); display: flex;
  align-items: center; justify-content: center;
  position: relative;
}
.split-divider span {
  position: absolute; background: #1a2633;
  border: 1px solid var(--border); 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(248, 113, 113, 0.1); border-left: 3px solid var(--danger); }
.alert-item.warning { background: rgba(251, 191, 36, 0.1); border-left: 3px solid var(--warning); }
.alert-item.info { background: rgba(59, 154, 225, 0.1); border-left: 3px solid var(--primary); }
.alert-item.grouped { background: rgba(45, 212, 191, 0.08); border-left: 3px solid var(--accent); }
.alert-item.resolved { background: rgba(52, 211, 153, 0.08); border-left: 3px solid var(--success); }
.alert-item.ticket { background: rgba(240, 147, 108, 0.08); 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(248, 113, 113, 0.2); color: var(--danger); }
.badge-warn { background: rgba(251, 191, 36, 0.2); color: var(--warning); }
.badge-info { background: rgba(59, 154, 225, 0.2); color: var(--primary-light); }
.badge-corr { background: rgba(45, 212, 191, 0.2); color: var(--accent); }
.badge-resolved { background: rgba(52, 211, 153, 0.2); color: var(--success); }
.badge-ticket { background: rgba(240, 147, 108, 0.2); color: var(--secondary); }

/* Triage cards */
.triage-card {
  margin: 6px 4px; padding: 12px;
  background: rgba(59, 154, 225, 0.06);
  border: 1px solid rgba(59, 154, 225, 0.15);
  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(240, 147, 108, 0.12); 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(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 6px; font-size: 0.7rem;
  color: var(--warning); 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 var(--border); border-radius: 12px;
  overflow: hidden; height: 480px; display: flex; flex-direction: column;
}
.term-bar {
  height: 36px; background: #1a2633;
  display: flex; align-items: center;
  padding: 0 14px; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.red { background: #f87171; }
.term-dot.yellow { background: #fbbf24; }
.term-dot.green { background: #34d399; }
.term-title { flex: 1; text-align: center; font-size: 0.7rem; color: var(--text-muted); 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: var(--border) #0c1015;
  background: #0c1015;
}
.term-body::-webkit-scrollbar { width: 4px; }
.term-body::-webkit-scrollbar-track { background: #0c1015; }
.term-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.term-line { white-space: pre-wrap; word-break: break-all; animation: alertSlide 0.1s ease; }
.t-prompt { color: var(--accent); }
.t-cmd { color: #f8f8f2; }
.t-dim { color: var(--text-muted); }
.t-red { color: var(--danger); font-weight: 600; }
.t-orange { color: var(--secondary); }
.t-yellow { color: var(--warning); }
.t-green { color: var(--success); }
.t-cyan { color: var(--primary-light); }
.t-purple { color: var(--secondary-light); }
.t-white { color: #f8f8f2; font-weight: 600; }
.t-sep { color: var(--border); }
.cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent); 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: linear-gradient(180deg, rgba(59, 154, 225, 0.06), rgba(59, 154, 225, 0.01));
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
/* Conversation bubble tail effect */
.step-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30px;
  width: 16px;
  height: 16px;
  background: inherit;
  border: inherit;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 154, 225, 0.35);
  box-shadow: 0 12px 40px rgba(59, 154, 225, 0.1);
}
.step-num {
  font-size: 2rem; font-weight: 800; color: var(--primary); opacity: 0.4;
  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: var(--text-muted); }
.step-arrow {
  font-size: 1.5rem; color: var(--border); 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); text-align: left;
}
.compare-table td {
  padding: 12px 24px; border-bottom: 1px solid #141c24;
}
.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: rgba(59, 154, 225, 0.03); }

/* === ROI === */
.roi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.roi-card {
  padding: 32px 24px; text-align: center;
  background: linear-gradient(180deg, rgba(59, 154, 225, 0.05), rgba(59, 154, 225, 0.01));
  border: 1px solid var(--border-light); border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.roi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 154, 225, 0.08);
}
.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: 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: 28px;
  background: linear-gradient(180deg, rgba(59, 154, 225, 0.04), transparent);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
/* Inbox-style header bar */
.integration-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.6;
}
.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: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.integration-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.integration-tags span {
  padding: 8px 16px; font-size: 0.8rem;
  background: rgba(59, 154, 225, 0.06);
  border: 1px solid rgba(59, 154, 225, 0.12);
  border-radius: 50px; color: var(--text-secondary); font-weight: 500;
  transition: all 0.2s;
}
.integration-tags span:hover {
  background: rgba(59, 154, 225, 0.12);
  border-color: rgba(59, 154, 225, 0.25);
  color: var(--primary-light);
}

/* === CTA === */
#cta { padding: 80px 0 100px; }
.cta-box {
  text-align: center; padding: 80px 40px;
  background: linear-gradient(180deg, rgba(59, 154, 225, 0.06), rgba(59, 154, 225, 0.01));
  border: 1px solid var(--border-light);
  border-radius: 24px;
  position: relative; overflow: hidden;
}
/* Decorative ticket elements */
.cta-box::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -20px;
  width: 60px;
  height: 80px;
  background: linear-gradient(135deg, rgba(59, 154, 225, 0.08), transparent);
  border: 1px solid rgba(59, 154, 225, 0.1);
  border-radius: 8px;
  transform: rotate(-10deg);
}
.cta-box::after {
  content: '';
  position: absolute;
  bottom: 40px;
  right: -15px;
  width: 50px;
  height: 70px;
  background: linear-gradient(135deg, rgba(240, 147, 108, 0.08), transparent);
  border: 1px solid rgba(240, 147, 108, 0.1);
  border-radius: 8px;
  transform: rotate(15deg);
}
.cta-box h2 { font-size: 2.8rem; position: relative; z-index: 1; }
.cta-box p { font-size: 1.05rem; color: var(--text-muted); margin: 16px 0 32px; line-height: 1.7; position: relative; z-index: 1; }
.cta-sub { margin-top: 16px; color: var(--text-muted); font-size: 0.85rem; position: relative; z-index: 1; }

/* === FOOTER === */
footer {
  padding: 24px 0; border-top: 1px solid var(--border);
}
.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 {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
  opacity: 0.7;
}
.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: rgba(59, 154, 225, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 154, 225, 0.35);
  box-shadow: 0 12px 40px rgba(59, 154, 225, 0.12);
}
.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d1117;
  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, var(--primary), var(--secondary));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(59, 154, 225, 0.3);
  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(59, 154, 225, 0.4);
}
.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); }
  .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%; }
  .step-card::after { display: none; }
  /* Hide decorative ticket elements on mobile */
  .hero-bg::before,
  .hero-bg::after,
  .cta-box::before,
  .cta-box::after { display: none; }
  /* 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: 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; }
  }
}
@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; }
}
