﻿/* ══════════════════════════════════════════════
   FASIH LANDING PAGE — Pistachio / Sage Green Theme
   Light & Dark Mode Support
   ══════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Dark Theme (default) ─── */
:root,
[data-theme="dark"] {
  --primary:   #5ecb8a;   /* pistachio / sage green */
  --primary-dim: #3da86a;
  --primary-glow: rgba(94,203,138,0.35);
  --accent:    #a8e6c3;   /* light mint */
  --amber:     #f4b860;
  --rose:      #e07a8a;
  --emerald:   #3db870;
  --bg-0:     #060a0c;
  --bg-1:     #0b1210;
  --bg-2:     #101910;
  --bg-3:     #152018;
  --surface:  rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border:   rgba(255,255,255,0.08);
  --border-primary: rgba(94,203,138,0.25);
  --text:     #eef5f0;
  --text-strong: #ffffff;
  --muted:    #7a9a85;
  --radius:   16px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);

  /* Nav */
  --nav-bg: rgba(6,10,12,0.82);

  /* Comparison */
  --human-bg: rgba(255,255,255,0.025);
  --fasih-bg:  rgba(94,203,138,0.06);
  --fasih-border: rgba(94,203,138,0.2);

  /* Negation colors */
  --comp-x-color: #4a5550;
  --excluded-color: #404040;
}

/* ─── Light Theme ─── */
[data-theme="light"] {
  --primary:   #2d9e5f;
  --primary-dim: #237a49;
  --primary-glow: rgba(45,158,95,0.2);
  --accent:    #1a7a48;
  --amber:     #d97706;
  --rose:      #c0556c;
  --emerald:   #16a34a;
  --bg-0:     #f4faf6;
  --bg-1:     #eaf5ee;
  --bg-2:     #dff0e6;
  --bg-3:     #cce8d7;
  --surface:  rgba(0,0,0,0.04);
  --surface-hover: rgba(0,0,0,0.07);
  --border:   rgba(0,0,0,0.1);
  --border-primary: rgba(45,158,95,0.3);
  --text:     #132218;
  --text-strong: #0a160e;
  --muted:    #4a7057;
  --nav-bg: rgba(244,250,246,0.9);
  --human-bg: rgba(0,0,0,0.03);
  --fasih-bg:  rgba(45,158,95,0.06);
  --fasih-border: rgba(45,158,95,0.25);
  --comp-x-color: #aaa;
  --excluded-color: #bbb;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* ─── Typography helpers ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 5px 14px;
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  text-align: center;
}

.section-alt {
  background: var(--bg-1);
  position: relative;
}

.section-alt::before,
.section-alt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

/* ─── Lottie section headers ─── */
.lottie-head {
  display: flex;
  justify-content: center;
  margin-bottom: 0.25rem;
}

/* ─── Reveal animations ─── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ═══════════════════════  NAVBAR  ═══════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon { display: flex; align-items: center; }

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

/* Theme toggle button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-primary);
  transform: rotate(15deg);
}

/* Show/hide sun & moon depending on theme */
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-cta {
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0d1f14;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════  HERO  ═══════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 24px 80px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(94,203,138,0.1);
  border: 1px solid rgba(94,203,138,0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

[data-theme="light"] .hero-badge {
  background: rgba(45,158,95,0.1);
  border-color: rgba(45,158,95,0.3);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0d1f14;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 40px var(--primary-glow);
}

/* btn-primary uses dark text in both modes — pistachio is a light background */

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 50px var(--primary-glow);
}

.btn-primary.btn-lg { padding: 18px 42px; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), background var(--transition);
}

.btn-ghost:hover { border-color: var(--border-primary); background: var(--surface-hover); }

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  backdrop-filter: blur(12px);
  max-width: 520px;
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span:not(.stat-num):not(.stat-label) {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.75rem; color: var(--muted); font-weight: 500; }

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ═══════════════════════  PIPELINE  ═══════════════════════ */
#how-it-works { background: var(--bg-0); }

.pipeline-wrapper {
  position: relative;
  padding: 20px 0;
}

.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: 24px 0 12px;
  scrollbar-width: none;
}

.pipeline::-webkit-scrollbar { display: none; }

.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  max-width: 130px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pipe-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.pipe-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.pipe-icon-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, var(--glow-color, var(--primary)), transparent 70%);
  opacity: 0.22;
  border-radius: 50%;
  animation: glow-pulse 2s ease-in-out infinite;
}

.pipe-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.pipe-step:hover .pipe-icon {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--border-primary);
  color: var(--accent);
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.1); }
}

.pipe-info h3 {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.pipe-info p {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}

.pipe-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}

/* Connectors */
.pipe-connector {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 50px;
  max-width: 100px;
  position: relative;
  margin-top: 36px;
}

.connector-svg {
  width: 100%;
  height: 24px;
}

.connector-path {
  stroke-dashoffset: 100;
  animation: dash-flow 2s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: 0; }
}

.signal-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary);
  top: 50%;
  transform: translateY(-50%);
  left: -4px;
  animation: signal-travel 2.5s ease-in-out infinite;
}

@keyframes signal-travel {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

#sig-2 { animation-delay: 0.4s; }
#sig-3 { animation-delay: 0.8s; }
#sig-4 { animation-delay: 1.2s; }
#sig-5 { animation-delay: 1.6s; }

/* Waveform */
.waveform-bar {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

#wave-canvas {
  max-width: 100%;
  height: 70px;
}

.wave-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ═══════════════════════  FEATURES  ═══════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  transition-delay: var(--delay, 0s);
  display: flex;
  flex-direction: column;
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94,203,138,0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feat-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-primary);
  box-shadow: 0 20px 60px rgba(94,203,138,0.1);
}

.feat-card:hover::before { opacity: 1; }

.feat-card--wide {
  grid-column: span 2;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.feat-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: rgba(94,203,138,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--icon-color, var(--primary));
  transition: background var(--transition);
}

[data-theme="light"] .feat-icon-wrap {
  background: rgba(45,158,95,0.1);
}

.feat-card--wide .feat-icon-wrap { margin-bottom: 0; }

.feat-ph-icon {
  width: 26px;
  height: 26px;
  color: var(--icon-color, var(--primary));
}

.feat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feat-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.feat-body { flex: 1; }

.feat-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(94,203,138,0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

[data-theme="light"] .feat-tag {
  background: rgba(45,158,95,0.12);
}

.feat-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.feat-langs span,
.flang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1;
}

.flang img {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.flang--more {
  background: rgba(94,203,138,0.1);
  border-color: var(--border-primary);
  color: var(--primary);
  font-weight: 700;
}

/* Retekess visual */
.retekess-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.retekess-device {
  width: 56px;
  background: linear-gradient(145deg, #1a2420, #243328);
  border-radius: 12px;
  padding: 8px 6px;
  border: 1px solid rgba(94,203,138,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.rd-screen {
  height: 28px;
  background: #0e1a10;
  border-radius: 6px;
  border: 1px solid rgba(94,203,138,0.3);
  display: flex;
  align-items: flex-end;
  padding: 4px 3px;
  margin-bottom: 6px;
}

.rd-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
}

.rd-bars span {
  flex: 1;
  background: var(--primary);
  border-radius: 2px;
  animation: bar-dance 1.2s ease-in-out infinite;
}

.rd-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.rd-bars span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.rd-bars span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.rd-bars span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.rd-bars span:nth-child(5) { height: 6px; animation-delay: 0.4s; }

@keyframes bar-dance {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.rd-body {
  height: 14px;
  background: linear-gradient(90deg, rgba(94,203,138,0.3), rgba(168,230,195,0.3));
  border-radius: 4px;
}

.rd-count {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════  MOBILE DEMO  ═══════════════════════ */
#mobile-demo { background: var(--bg-0); }

.mobile-demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  text-align: left;
}

.mobile-demo-text .section-title { margin-bottom: 1rem; }

.mobile-demo-text p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.mobile-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.perk-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background: rgba(94,203,138,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.perk-icon svg { width: 14px; height: 14px; }

/* Phone Mockup */
.mobile-demo-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  z-index: 1;
}

.phone-frame {
  width: 260px;
  background: #111a14;
  border-radius: 38px;
  border: 1.5px solid rgba(94,203,138,0.15);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(94,203,138,0.04);
  position: relative;
}

[data-theme="light"] .phone-frame {
  background: #f0f8f2;
  border-color: rgba(45,158,95,0.2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.15);
}

.phone-notch {
  width: 90px;
  height: 28px;
  background: #111a14;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

[data-theme="light"] .phone-notch { background: #f0f8f2; }

.phone-screen {
  background: var(--bg-1);
  min-height: 460px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ef4444;
}

.live-pulse {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-dot 1s ease-in-out infinite;
}

.phone-lang {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(94,203,138,0.1);
  padding: 3px 8px;
  border-radius: 999px;
}

.transcript-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.tline {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border-left: 2px solid var(--border);
  transition: all 0.4s;
}

.tline.active {
  color: var(--text);
  background: rgba(94,203,138,0.08);
  border-left-color: var(--primary);
}

.phone-audio-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(94,203,138,0.08);
  border-radius: 0 0 10px 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(94,203,138,0.12);
  margin-top: auto;
}

.audio-wave-mini {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}

.phone-audio-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
}

.phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(94,203,138,0.25), transparent 70%);
  pointer-events: none;
}

/* QR float */
.qr-float {
  position: absolute;
  bottom: 40px;
  right: -20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: float-bob 3s ease-in-out infinite;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.qr-svg {
  width: 80px;
  height: 80px;
  background: #182018;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
}

[data-theme="light"] .qr-svg { background: #e8f5ec; }

.qr-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══════════════════════  COMPARISON  ═══════════════════════ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 64px;
}

.comparison-col {
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
}

.human-col {
  background: var(--human-bg);
  border: 1px solid var(--border);
}

.fasih-col {
  background: var(--fasih-bg);
  border: 1px solid var(--fasih-border);
}

.comp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.comp-icon-svg {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.comp-icon-svg--primary {
  background: rgba(94,203,138,0.1);
  border-color: var(--border-primary);
  color: var(--primary);
}

.comp-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.comp-x {
  color: var(--comp-x-color);
  display: flex;
  align-items: center;
  margin-top: 1px;
  flex-shrink: 0;
}

.comp-check {
  color: var(--primary);
  display: flex;
  align-items: center;
  margin-top: 1px;
  flex-shrink: 0;
}

.neg li { color: var(--muted); }
.pos li { color: var(--text); }

.vs-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0d1f14;
  margin-top: 48px;
  align-self: flex-start;
}

/* Benefit cards */
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-primary);
  box-shadow: 0 12px 40px rgba(94,203,138,0.08);
}

.bc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(94,203,138,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}

[data-theme="light"] .bc-icon {
  background: rgba(45,158,95,0.1);
}

.benefit-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════  PACKAGES  ═══════════════════════ */
#packages { background: var(--bg-0); }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  align-items: stretch;
  margin-bottom: 40px;
}

.pkg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  transition-delay: var(--delay, 0s);
  display: flex;
  flex-direction: column;
}

.pkg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.2);
}

/* Featured package */
.pkg-featured {
  background: rgba(94,203,138,0.05);
  border-color: rgba(94,203,138,0.3);
  box-shadow: 0 0 0 1px rgba(94,203,138,0.1), 0 20px 60px rgba(94,203,138,0.12);
}

.pkg-featured:hover {
  box-shadow: 0 0 0 1px rgba(94,203,138,0.25), 0 40px 80px rgba(94,203,138,0.18);
}

.pkg-enterprise {
  background: rgba(244,184,96,0.03);
  border-color: rgba(244,184,96,0.2);
}

.pkg-ribbon {
  position: absolute;
  top: 16px;
  right: -28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0d1f14;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 40px;
  transform: rotate(35deg);
}

.pkg-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pkg-badge--gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: #0d1f14;
}

.pkg-badge--gold {
  background: linear-gradient(135deg, var(--amber), var(--rose));
  border: none;
  color: white;
}

.pkg-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.pkg-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pkg-devices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(94,203,138,0.06);
  border: 1px solid rgba(94,203,138,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.device-count {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.device-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.845rem;
  line-height: 1.5;
}

.pkg-features li.included { color: var(--text); }
.pkg-features li.excluded { color: var(--excluded-color); }
.pkg-features li.special { color: var(--amber); }

.pkg-chk {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
}

.pkg-note {
  font-size: 0.72rem;
  color: var(--amber);
  border-left: 2px solid var(--amber);
  padding-left: 10px;
  margin-bottom: 20px;
  line-height: 1.5;
  opacity: 0.85;
}

[data-theme="light"] .pkg-note {
  color: #b45309;
  border-left-color: #b45309;
  opacity: 1;
}

.pkg-cta {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.pkg-cta--outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.pkg-cta--outline:hover {
  border-color: var(--border-primary);
  background: var(--surface);
}

.pkg-cta--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0d1f14;
  box-shadow: 0 8px 30px var(--primary-glow);
}

.pkg-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--primary-glow);
}

.pkg-cta--gold {
  background: linear-gradient(135deg, var(--amber), var(--rose));
  color: white;
  box-shadow: 0 8px 30px rgba(244,184,96,0.2);
}
.pkg-cta--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(244,184,96,0.3);
}

.packages-footnote {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ═══════════════════════  CTA SECTION  ═══════════════════════ */
.cta-section { padding: 80px 0; background: var(--bg-1); }

.cta-card {
  position: relative;
  background: rgba(94,203,138,0.04);
  border: 1px solid rgba(94,203,138,0.18);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-bg-orbs { position: absolute; inset: 0; pointer-events: none; }

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.cta-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(94,203,138,0.1);
  top: -100px;
  left: -100px;
}

.cta-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(168,230,195,0.08);
  bottom: -80px;
  right: -80px;
}

.cta-inner { position: relative; z-index: 1; }

.cta-lottie {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.cta-card h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-card p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ═══════════════════════  FOOTER  ═══════════════════════ */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-0);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--comp-x-color);
}

/* ═══════════════════════  ANIMATED SVG BADGE  ═══════════════════════ */
.anim-badge {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-badge--sm {
  width: 80px;
  height: 80px;
  margin-bottom: 1.25rem;
}

/* Glowing background disc */
.anim-badge__inner {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(94,203,138,0.1);
  border: 1.5px solid rgba(94,203,138,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  animation: badge-pulse 3s ease-in-out infinite;
}

[data-theme="light"] .anim-badge__inner {
  background: rgba(45,158,95,0.1);
  border-color: rgba(45,158,95,0.3);
}

.anim-badge--sm .anim-badge__inner {
  width: 54px;
  height: 54px;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94,203,138,0.0); }
  50%       { box-shadow: 0 0 24px 8px rgba(94,203,138,0.18); }
}

/* Outer spinning ring */
.anim-badge__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(94,203,138,0.25);
  animation: badge-spin 12s linear infinite;
  z-index: 1;
}

[data-theme="light"] .anim-badge__ring {
  border-color: rgba(45,158,95,0.2);
}

@keyframes badge-spin {
  to { transform: rotate(360deg); }
}

/* Orbiting dot */
.anim-badge__orbit {
  position: absolute;
  inset: 0;
  animation: badge-spin 4s linear infinite;
  z-index: 3;
  pointer-events: none;
}

.anim-badge__orbit--slow { animation-duration: 7s; }
.anim-badge__orbit--fast { animation-duration: 2.5s; }

.anim-badge__dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

/* Lottie-head wrapper kept for layout spacing */
.lottie-head {
  display: flex;
  justify-content: center;
  margin-bottom: 0.25rem;
}

/* CTA badge centering */
.cta-lottie {
  display: flex;
  justify-content: center;
}

/* ═══════════════════════  LIVE IN ACTION  ═══════════════════════ */
#in-action { background: var(--bg-1); }

.inaction-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
  align-items: start;
}

.inaction-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.inaction-card:hover {
  border-color: var(--border-primary);
  box-shadow: 0 24px 64px rgba(94,203,138,0.12);
  transform: translateY(-4px);
}

.inaction-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
}

.inaction-card--wide .inaction-img-wrap {
  aspect-ratio: 16 / 9;
}

.inaction-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.inaction-card:hover .inaction-img-wrap img {
  transform: scale(1.04);
}

/* Gradient overlay at bottom of image */
.inaction-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(6,10,12,0.7) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
}

[data-theme="light"] .inaction-overlay {
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(20,40,30,0.5) 100%
  );
}

/* Live dot badge */
.inaction-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(94,203,138,0.4);
  color: #eef5f0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.inaction-live-dot span {
  width: 7px;
  height: 7px;
  background: #5ecb8a;
  border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px #5ecb8a;
}

/* Headphone badge */
.inaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(94,203,138,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(94,203,138,0.35);
  color: #a8e6c3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Caption below image */
.inaction-caption {
  padding: 18px 20px 20px;
  text-align: left;
}

.inaction-caption-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.inaction-caption p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Stats strip */
.inaction-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  backdrop-filter: blur(12px);
}

.inaction-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 36px;
}

.inaction-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.inaction-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.inaction-stat-div {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* ═══════════════════════  RESPONSIVE  ═══════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card--wide { grid-column: span 2; }
  .packages-grid { grid-template-columns: 1fr; }
  .pkg-featured { order: -1; }
  .benefit-cards { grid-template-columns: repeat(2, 1fr); }
  .inaction-grid { grid-template-columns: 1fr; }
  .inaction-card--wide .inaction-img-wrap { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .feat-card--wide { grid-column: span 1; flex-direction: column; }

  .mobile-demo-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mobile-perks { align-items: flex-start; text-align: left; }
  .mobile-demo-text { order: 1; }
  .mobile-demo-visual { order: 0; }

  .comparison-grid { grid-template-columns: 1fr; }
  .vs-badge { margin: 8px auto; }

  .benefit-cards { grid-template-columns: 1fr; }

  .pipeline { flex-direction: column; align-items: center; }
  .pipe-connector { transform: rotate(90deg); width: 24px; min-width: 24px; height: 60px; margin: 0; }

  .hero-stats { gap: 0; padding: 16px 20px; }
  .stat { padding: 0 16px; }

  .theme-toggle { display: flex; }

  .inaction-stats { padding: 20px 16px; }
  .inaction-stat { padding: 0 20px; }
}

@media (max-width: 520px) {
  .section { padding: 70px 0; }
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 60px; height: 1px; }
  .packages-grid { gap: 16px; }
  .inaction-stats { flex-direction: column; gap: 16px; }
  .inaction-stat-div { width: 60px; height: 1px; }
  .inaction-stat { padding: 0; }
}

/* -----------------------  COMPARISON SLIDER  ----------------------- */
.comp-slider-wrap {
  position: relative;
  display: grid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  min-height: 380px;
  margin-bottom: 56px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Both panels fill the full container, stacked via grid, clipped by clip-path */
.comp-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  transition: none;
  border-radius: inherit;
}

.comp-panel-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.comp-panel--human .comp-panel-content {
  grid-column: 1;
}

.comp-panel--fasih .comp-panel-content {
  grid-column: 2;
}

/* Human side — full width, clip-path applied by JS */
.comp-panel--human {
  inset: 0;
  background: var(--bg-2);
  clip-path: inset(0 50% 0 0); /* JS overrides this */
}

/* Fasih side — full width, clip-path applied by JS */
.comp-panel--fasih {
  inset: 0;
  background: linear-gradient(135deg, rgba(94,203,138,0.07) 0%, rgba(168,230,195,0.04) 100%);
  clip-path: inset(0 0 0 50%); /* JS overrides this */
}

[data-theme="light"] .comp-panel--fasih {
  background: linear-gradient(135deg, rgba(45,158,95,0.07) 0%, rgba(26,122,72,0.04) 100%);
}

.comp-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.comp-panel-header span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.comp-panel-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.comp-panel-icon--fasih {
  background: rgba(94,203,138,0.12);
  border-color: var(--border-primary);
  color: var(--primary);
}

[data-theme="light"] .comp-panel-icon--fasih {
  background: rgba(45,158,95,0.1);
}

.comp-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
}

.comp-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: nowrap;
}

.comp-panel--human .comp-panel-list li { color: var(--muted); }
.comp-panel--fasih .comp-panel-list li { color: var(--text); }

.cpl-x {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(180,80,80,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e07a8a;
  margin-top: 1px;
  flex-shrink: 0;
}

.cpl-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(94,203,138,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-top: 1px;
  flex-shrink: 0;
}

/* Drag handle */
.comp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: col-resize;
  transition: left 0s;
}

.comp-handle-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--primary), transparent);
  opacity: 0.7;
}

.comp-handle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #0d1f14;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 4px 20px rgba(94,203,138,0.5);
  flex-shrink: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}

.comp-slider-wrap:hover .comp-handle-btn,
.comp-handle.dragging .comp-handle-btn {
  box-shadow: 0 6px 30px rgba(94,203,138,0.7);
  transform: scale(1.08);
}

/* Drag hint label */
.comp-drag-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.comp-drag-hint svg { opacity: 0.6; }

/* -----------------------  BENTO GRID  ----------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

/* Wide card spans 2 columns */
.bento-card--wide {
  grid-column: span 2;
}

/* Base card style */
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  transition-delay: var(--delay, 0s);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--border-primary);
  box-shadow: 0 16px 48px rgba(94,203,138,0.09);
  transform: translateY(-3px);
}

/* Icon */
.bento-icon-wrap {
  --icon-color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(94,203,138,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
  margin-bottom: 18px;
  flex-shrink: 0;
}

[data-theme="light"] .bento-icon-wrap {
  background: rgba(45,158,95,0.09);
}

/* Heading */
.bento-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Body text */
.bento-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
  flex: 1;
}

/* Tag pill */
.bento-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(94,203,138,0.1);
  border: 1px solid rgba(94,203,138,0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: auto;
}

[data-theme="light"] .bento-tag {
  background: rgba(45,158,95,0.08);
  border-color: rgba(45,158,95,0.2);
}

/* Wide card content layout: row with icon left, content right */
.bento-card--wide {
  flex-direction: row;
  gap: 28px;
  align-items: flex-start;
}

.bento-card--wide .bento-icon-wrap {
  margin-bottom: 0;
  margin-top: 4px;
}

.bento-card--wide .bento-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bento-card--wide .bento-content p {
  margin-bottom: 20px;
}

/* Hardware stats strip */
.bento-hw-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: auto;
}

.bento-hw-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border-right: 1px solid var(--border);
  gap: 2px;
}

.bento-hw-stat:last-child { border-right: none; }

.bento-hw-stat span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.bento-hw-stat small {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; flex-direction: row; }
}

@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; flex-direction: column; }
  .bento-card--wide .bento-icon-wrap { margin-bottom: 16px; }
  .bento-hw-stats { flex-wrap: wrap; }
  .bento-hw-stat { min-width: 50%; border-bottom: 1px solid var(--border); }
}

/* -----------------------  CONTACT STYLES  ----------------------- */
.cta-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border-primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(94,203,138,0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94,203,138,0.15);
}

[data-theme="light"] .btn-outline {
  border-color: rgba(45,158,95,0.35);
  color: #1a7248;
}

/* Footer contact row */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact-item:hover {
  color: var(--primary);
}

.footer-contact-div {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* -----------------------  SPEAKER DIARIZATION DEMO  ----------------------- */
.diarization-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 4px;
}

.diar-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.3;
}

.diar-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--dcolor, #5ecb8a);
  box-shadow: 0 0 6px var(--dcolor, #5ecb8a);
  flex-shrink: 0;
}

.diar-label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-width: 62px;
}

.diar-text {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -----------------------  PHONE DIARIZATION UI  ----------------------- */

/* Header update */
.phone-header {
  justify-content: space-between !important;
  align-items: center;
}

.phone-header-left {
  display: flex;
  align-items: center;
}

.phone-wifi {
  color: var(--primary);
  opacity: 0.8;
  display: flex;
  align-items: center;
}

/* Speaker legend chips */
.phone-speaker-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 3px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.spk-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sc, #5ecb8a);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sc, #5ecb8a);
  border-opacity: 0.3;
  border-color: color-mix(in srgb, var(--sc, #5ecb8a) 35%, transparent);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.spk-chip .spk-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sc, #5ecb8a);
  flex-shrink: 0;
}

/* Diarized feed container */
.diar-feed {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  overflow-y: auto !important;
  flex: 1 !important;
}

/* Individual speaker bubble */
.diar-bubble {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 6px 9px;
  border-left: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.4s;
}

.diar-bubble--1 { border-left-color: #5ecb8a; }
.diar-bubble--2 { border-left-color: #f4b860; }
.diar-bubble--3 { border-left-color: #a78bfa; }

.diar-bubble.active {
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

.diar-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.diar-spk-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc, #5ecb8a);
}

.diar-ts {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

.diar-bubble-text {
  font-size: 0.65rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}

/* Typing cursor animation */
.typing-cursor-text {
  color: rgba(255,255,255,0.82);
}

.typing-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.7em;
  background: #5ecb8a;
  margin-left: 1px;
  vertical-align: text-top;
  border-radius: 1px;
  animation: blink-cursor 0.8s step-end infinite;
}

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

/* -----------------------  PHONE DIARIZATION � LIGHT MODE  ----------------------- */
[data-theme="light"] .diar-bubble {
  background: rgba(0,0,0,0.03);
  border-left-width: 2px;
}

[data-theme="light"] .diar-bubble.active {
  background: rgba(0,0,0,0.05);
}

[data-theme="light"] .diar-bubble-text {
  color: #1a2e22;
}

[data-theme="light"] .typing-cursor-text {
  color: #1a2e22;
}

[data-theme="light"] .typing-cursor {
  background: #2d9e5f;
}

[data-theme="light"] .diar-ts {
  color: rgba(0,0,0,0.35);
}

[data-theme="light"] .phone-speaker-legend {
  border-bottom-color: rgba(0,0,0,0.07);
}

[data-theme="light"] .spk-chip {
  background: rgba(0,0,0,0.04);
}

[data-theme="light"] .phone-audio-bar {
  background: rgba(0,0,0,0.04) !important;
  border-top-color: rgba(0,0,0,0.07) !important;
  color: #2d5a3d !important;
}

[data-theme="light"] .phone-lang {
  color: #2d5a3d;
}

[data-theme="light"] .phone-wifi {
  color: #2d9e5f;
}

[data-theme="light"] .audio-wave-mini div,
[data-theme="light"] .audio-wave-mini span {
  background: #2d9e5f !important;
}

/* Phone screen in light mode needs a tighter, distinct background */
[data-theme="light"] .phone-screen {
  background: #f8fcf9;
}

[data-theme="light"] .phone-frame {
  box-shadow: 0 40px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(45,158,95,0.12);
}

/* Fix phone screen padding � less top padding to fit legend + bubbles */
.phone-screen {
  padding: 10px 0 0 !important;
}

.phone-header {
  padding: 0 12px;
  margin-bottom: 8px !important;
}

.phone-speaker-legend {
  padding: 4px 12px 6px !important;
}

.diar-feed {
  padding: 6px 12px 8px !important;
  gap: 5px !important;
}
