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

:root {
  --bg-primary: #050b18;
  --bg-secondary: #080f1f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(16,128,149,0.5);
  --accent: #108095;
  --accent-2: #0c6b7c;
  --accent-3: #108095;
  --accent-glow: rgba(16,128,149,0.35);
  --text-primary: #ffffff;
  --text-secondary: #868686;
  --text-muted: #686868;
  --gradient-hero: linear-gradient(135deg, #108095 0%, #0c6b7c 100%);
  --gradient-card: linear-gradient(135deg, rgba(16,128,149,0.12), rgba(16,128,149,0.04));
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  color-scheme: dark;
}

[lang="ar"] body, body.ar {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
.gradient-text {
  display: inline-block;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent);
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===================== NOISE OVERLAY ===================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===================== NAVBAR ===================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5,11,24,0.85);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(5,11,24,0.97);
  border-bottom-color: rgba(16,128,149,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--accent); }

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.lang-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.btn-nav {
  padding: 8px 20px;
  background: var(--gradient-hero);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 5% 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,128,149,0.28) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,128,149,0.18) 0%, transparent 70%);
  top: 100px; right: -50px;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,128,149,0.14) 0%, transparent 70%);
  bottom: -50px; left: 40%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.97); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,128,149,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,128,149,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16,128,149,0.12);
  border: 1px solid rgba(16,128,149,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 25px var(--accent-glow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(16,128,149,0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dashboard {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(16,128,149,0.1);
  backdrop-filter: blur(20px);
  animation: dashFloat 6s ease-in-out infinite;
}

@keyframes dashFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

.dash-dots { display: flex; gap: 6px; }
.dash-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dash-dot:nth-child(1) { background: #ff5f57; }
.dash-dot:nth-child(2) { background: #febc2e; }
.dash-dot:nth-child(3) { background: #28c840; }

.dash-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}

.dash-body { padding: 20px; }

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: var(--transition);
}

.dash-metric:hover {
  border-color: var(--accent);
  background: rgba(16,128,149,0.08);
}

.dash-metric-val {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-metric-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-pipeline { margin-bottom: 16px; }

.dash-pipeline-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.dash-pipeline-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 60px;
}

.dash-bar {
  flex: 1;
  border-radius: 4px;
  background: var(--gradient-hero);
  opacity: 0.7;
  animation: barGrow 1.5s ease-out forwards;
}

@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.dash-leads { }

.dash-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.dash-lead:last-child { border-bottom: none; }
.dash-lead:hover { padding-left: 4px; }

.dash-lead-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.dash-lead-info { flex: 1; min-width: 0; }
.dash-lead-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.dash-lead-company { font-size: 11px; color: var(--text-muted); }

.dash-lead-score {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
}

.score-high { background: rgba(16,185,129,0.15); color: #10b981; }
.score-med { background: rgba(245,158,11,0.15); color: #f59e0b; }
.score-low { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Floating badges */
.hero-badge-float {
  position: absolute;
  background: rgba(5,11,24,0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: badgeFloat 4s ease-in-out infinite;
}

.hero-badge-float-1 {
  bottom: -20px; left: -30px;
  color: #10b981;
  animation-delay: -1s;
}

.hero-badge-float-2 {
  top: 20px; right: -40px;
  color: #ffffff;
  animation-delay: -2.5s;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-icon { font-size: 16px; }

/* ===================== SECTION BASE ===================== */
section {
  padding: 100px 5%;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(16,128,149,0.1);
  border: 1px solid rgba(16,128,149,0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.1;
}

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

.section-header { margin-bottom: 60px; }

/* ===================== FEATURES ===================== */
.features { background: var(--bg-secondary); }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(16,128,149,0.15);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon-1 { background: rgba(16,128,149,0.15); }
.feature-icon-2 { background: rgba(16,128,149,0.12); }
.feature-icon-3 { background: rgba(134,134,134,0.15); }
.feature-icon-4 { background: rgba(134,134,134,0.12); }
.feature-icon-5 { background: rgba(16,128,149,0.1); }
.feature-icon-6 { background: rgba(134,134,134,0.1); }

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
}

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

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.feature-link:hover { gap: 10px; }

/* ===================== HOW IT WORKS ===================== */
.how-it-works { background: var(--bg-primary); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.4;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-item:hover .step-num {
  background: var(--gradient-hero);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

/* ===================== WHATSAPP ===================== */
.whatsapp-section {
  background: var(--bg-secondary);
  overflow: hidden;
}

.whatsapp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.whatsapp-chat {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  max-width: 380px;
}

.wa-header {
  background: #1a2332;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.wa-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.wa-name { font-size: 14px; font-weight: 700; }
.wa-status { font-size: 11px; color: #25d366; }

.wa-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0a1520;
  min-height: 260px;
}

.wa-msg {
  max-width: 75%;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  animation: msgPop 0.3s ease-out;
}

@keyframes msgPop {
  from { transform: scale(0.8) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.wa-msg-in {
  background: #1e2d3d;
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.wa-msg-out {
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.wa-msg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-align: right;
  margin-top: 4px;
}

.wa-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16,128,149,0.15);
  border: 1px solid rgba(16,128,149,0.3);
  border-radius: 100px;
  font-size: 10px;
  color: #ffffff;
  margin-bottom: 6px;
}

.whatsapp-features { list-style: none; }
.whatsapp-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
}
.whatsapp-features li:last-child { border-bottom: none; }
.whatsapp-features li strong { color: var(--text-primary); display: block; margin-bottom: 2px; }
.wa-feature-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(37,211,102,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ===================== TEAM / COLLABORATION ===================== */
.team-section { background: var(--bg-primary); }

.team-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.team-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.task-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}

.task-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.task-done { background: rgba(16,185,129,0.15); color: #10b981; }
.task-pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.task-todo { background: rgba(16,128,149,0.15); color: var(--accent); }

.task-info { flex: 1; }
.task-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.task-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.task-assignee {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials { background: var(--bg-secondary); }

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(16,128,149,0.12);
}

.testimonial-quote {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

.stars { color: #f59e0b; font-size: 13px; margin-bottom: 14px; }

/* ===================== PRICING CTA ===================== */
.pricing-cta {
  background: var(--bg-primary);
  text-align: center;
}

.pricing-inner {
  background: rgba(16,128,149,0.1);
  border: 1px solid rgba(16,128,149,0.25);
  border-radius: 28px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.pricing-inner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,128,149,0.2) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.pricing-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.pricing-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.price-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
  transition: var(--transition);
  position: relative;
}

.price-card.popular {
  background: rgba(16,128,149,0.12);
  border-color: rgba(16,128,149,0.4);
  transform: scale(1.02);
}

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

.price-card.popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.price-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-hero);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.price-tier { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.price-amount { font-size: 42px; font-weight: 900; color: var(--text-primary); margin-bottom: 4px; }
.price-amount span { font-size: 18px; font-weight: 500; color: var(--text-muted); }
.price-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.btn-price {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-price-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
}

.btn-price-outline:hover {
  background: rgba(16,128,149,0.1);
  border-color: var(--accent);
}

.btn-price-filled {
  background: var(--gradient-hero);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-price-filled:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px var(--accent-glow);
}

/* ===================== FOOTER ===================== */
footer {
  background: #030810;
  border-top: 1px solid var(--border);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { }
.footer-logo { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 260px; }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: rgba(16,128,149,0.15);
  border-color: var(--accent);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--text-primary); }

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

.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--text-primary); }

/* ===================== ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps-grid::before { display: none; }
  .pricing-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 38px; }
  .hero-stats { gap: 20px; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .whatsapp-inner { grid-template-columns: 1fr; }
  .team-inner { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  section { padding: 70px 5%; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
}

/* ===================== RTL ADJUSTMENTS ===================== */
body.ar .nav-links { direction: rtl; }
body.ar .hero-subtitle { margin-left: 0; margin-right: 0; }
body.ar .feature-link { flex-direction: row-reverse; }
body.ar .task-card:hover { transform: translateX(-6px); }
body.ar .step-item { direction: rtl; }
body.ar .hero-stats { flex-direction: row-reverse; }
body.ar .footer-grid { direction: rtl; }
body.ar .footer-bottom { flex-direction: row-reverse; }
body.ar .dash-lead { direction: rtl; }
body.ar .whatsapp-inner { direction: rtl; }
body.ar .team-inner { direction: rtl; }
body.ar .wa-msg-out { align-self: flex-start; border-bottom-right-radius: 12px; border-bottom-left-radius: 4px; }
body.ar .wa-msg-in { align-self: flex-end; border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }

/* ===================== WHATSAPP GREEN ACCENT ===================== */
.wa-green { color: #25d366; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: rgba(5,11,24,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 30px 5%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--text-primary); padding-left: 8px; }

body.ar .mobile-nav { transform: translateX(100%); }
body.ar .mobile-nav.open { transform: translateX(0); }
body.ar .mobile-nav a:hover { padding-left: 0; padding-right: 8px; }

/* ===================== SCROLL TO TOP ===================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px; height: 44px;
  background: var(--gradient-hero);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover { transform: translateY(-3px); }

body.ar .scroll-top { right: auto; left: 30px; }

.dash-body img, .reveal img
{
    width: -webkit-fill-available;
    width: stretch;
}

.footer-logo img
{
    max-width: 40px;
}


/* CTA SECTION */
.cta-section {
    padding: 40px 0 100px;
}

.cta-panel {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 64px 40px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--bg-soft);
}

/* Subtle decorative glow */
.cta-panel::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent, #7c5cff);
    opacity: 0.12;
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
}

.cta-logo {
    position: relative;
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 24px;
}

.cta-panel .section-tag {
    position: relative;
    display: table;
    margin: 0 auto 18px;
}

.cta-panel .section-title {
    position: relative;
    margin: 0 auto 20px;
    max-width: 800px;
    line-height: 1.3;
}

.cta-panel .section-title > span {
    display: inline-block;
}

.cta-description {
    position: relative;
    max-width: 720px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.cta-actions {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-actions .btn-primary,
.cta-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cta-actions .btn-primary:hover,
.cta-actions .btn-secondary:hover {
    transform: translateY(-2px);
}

.cta-actions .btn-secondary {
    border: 1px solid var(--line);
    color: var(--text-primary);
    background: transparent;
}

/* Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 24px 0 64px;
    }

    .cta-panel {
        padding: 42px 22px;
        border-radius: 22px;
    }

    .cta-logo {
        width: 54px;
        height: 54px;
    }

    .cta-panel .section-title {
        font-size: clamp(28px, 7vw, 38px);
    }

    .cta-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn-primary,
    .cta-actions .btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===================== PRODUCT TOUR ===================== */

.product-tour {
    background: var(--bg-primary);
    overflow: hidden;
}

.product-tour .section-header {
    margin-bottom: 48px;
}

.product-tour .tour-stage {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 32px;
}

/* Main screenshot frame */
.product-tour .hero-dashboard {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: #080d18;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(16, 128, 149, 0.08);
    animation: none;
    backdrop-filter: none;
}

/* Browser-style header */
.product-tour .dash-header {
    min-height: 44px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid var(--border);
}

.product-tour .dash-title {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Main screenshot: preserve the complete image */
.product-tour #tour-img {
    display: block;
    width: 100%;
    height: clamp(280px, 58vw, 640px);
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    background: #080d18;
    cursor: zoom-in;
}

/* Screenshot description */
.product-tour .tour-caption {
    max-width: 900px;
    min-height: 24px;
    margin: 18px auto 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.product-tour .tour-caption b {
    color: var(--text-primary);
}

/* Thumbnail gallery */
.product-tour .tour-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto;
}

/* Individual thumbnail */
.product-tour .tour-thumb {
    min-width: 0;
    padding: 8px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-tour .tour-thumb:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(16, 128, 149, 0.12);
}

.product-tour .tour-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Consistent thumbnail dimensions */
.product-tour .tour-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    border-radius: 7px;
    background: #080d18;
}

.product-tour .t-label {
    padding: 10px 3px 4px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

.product-tour .tour-thumb.active .t-label {
    color: var(--text-primary);
}

/* Keyboard accessibility */
.product-tour .tour-thumb:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Tablet */
@media (max-width: 1024px) {
    .product-tour .tour-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .product-tour #tour-img {
        height: clamp(260px, 60vw, 520px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .product-tour .section-header {
        margin-bottom: 32px;
    }

    .product-tour .tour-stage {
        margin-bottom: 24px;
    }

    .product-tour .hero-dashboard {
        border-radius: 12px;
    }

    .product-tour .dash-header {
        padding: 10px 12px;
    }

    .product-tour #tour-img {
        height: clamp(220px, 65vw, 420px);
    }

    .product-tour .tour-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .product-tour .tour-thumb {
        padding: 6px;
        border-radius: 9px;
    }

    .product-tour .t-label {
        font-size: 11px;
        padding-top: 8px;
    }

    .product-tour .tour-caption {
        font-size: 13px;
        margin-top: 14px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .product-tour .tour-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-tour #tour-img {
        height: 250px;
    }

    .product-tour .tour-thumb img {
        aspect-ratio: 16 / 10;
    }
}

/* Arabic layout */
body.ar .product-tour .tour-caption {
    direction: rtl;
}