/* ============================================
   CONVSRR VSL FUNNEL — Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors — Convsrr Brand Palette (Light Mode) */
  --bg-primary: #ffffff;
  --bg-surface: #f9fafb;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;
  --bg-elevated: #ffffff;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-accent: #FF6B00;

  --accent-orange: #FF6B00;
  --accent-orange-light: #ff8533;
  --accent-orange-dark: #e06000;
  --accent-gradient: linear-gradient(135deg, #FF6B00 0%, #ff8533 100%);
  --accent-gradient-hover: linear-gradient(135deg, #ff8533 0%, #ffA533 100%);

  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #20BA5A;
  --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);

  --gold: #D4AF37;
  --gold-dark: #C5A028;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);

  --danger: #ef4444;
  --success: #22c55e;

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.1);

  /* Spacing */
  --section-pad-y: 100px;
  --section-pad-y-mobile: 50px;
  --container-max: 1200px;
  --container-pad: 24px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --h1-size: clamp(2rem, 5vw, 3.5rem);
  --h2-size: clamp(1.75rem, 4vw, 2.625rem);
  --h3-size: clamp(1.5rem, 3vw, 2rem);
  --body-size: clamp(1rem, 1.5vw, 1.25rem);
  --small-size: clamp(0.875rem, 1.2vw, 1rem);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow-accent: 0 0 40px rgba(255, 107, 0, 0.15);
  --shadow-glow-green: 0 0 30px rgba(37, 211, 102, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--body-size);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

@keyframes guidePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    border-color: var(--accent-orange);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    border-color: var(--accent-orange);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

.guide-pulse {
  animation: guidePulse 2s infinite;
  z-index: 10;
  border-color: var(--accent-orange) !important;
}

.section--alt {
  background-color: var(--bg-surface);
}

.section--gradient {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(255, 107, 0, 0.03) 50%, var(--bg-primary) 100%);
}

/* --- Smart Scroll Progress Bar --- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- Typography --- */
.headline-1 {
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.headline-2 {
  font-size: var(--h2-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.headline-3 {
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.25;
}

.subheadline {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

.text-gradient {
  background: linear-gradient(135deg, #FF6B00 0%, #FF9100 25%, #FF3D00 50%, #FF9100 75%, #FF6B00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine-text 8s linear infinite;
}

@keyframes shine-text {
  to {
    background-position: 200% center;
  }
}

.text-center {
  text-align: center;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .subheadline {
  margin-top: 16px;
}

/* --- Mobile Phone Frame Mockup (Vertical Video) --- */
.phone-frame-mockup {
  position: relative;
  width: 320px;
  height: 568.88px;
  /* 9:16 aspect ratio relative to width */
  margin: 0 auto;
  background: #000;
  border-radius: 40px;
  border: 12px solid #000;
  z-index: 2;
  box-shadow: 0 0 0 2px #333, 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 100%;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
  max-width: 40%;
}

.video-container-vertical {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container-vertical wistia-player {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 28px !important;
}

.video-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Adjust for Landscape/Desktop if needed to not be too huge */
@media (min-width: 768px) {
  .phone-frame-mockup {
    width: 360px;
    height: 640px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(0.95rem, 1.3vw, 1.125rem);
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.btn--primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.4);
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  animation: shimmer 4s infinite;
}

.btn--whatsapp {
  background: var(--whatsapp-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn--whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  filter: brightness(1.1);
}

.btn--whatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.5s infinite;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.btn--outline:hover {
  border-color: var(--accent-orange-light);
  background: rgba(255, 107, 0, 0.08);
  transform: translateY(-2px);
}

.btn--large {
  padding: 20px 48px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.5);
  }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   SECTION 1: HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 var(--section-pad-y);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.01);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 32px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: default;
}

.hero__badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 107, 0, 0.1);
  color: var(--text-primary);
}

.hero__badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 1);
}

.hero__badge-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  animation: badge-pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes badge-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

.hero .headline-1 {
  margin-bottom: 20px;
}

.hero .subheadline {
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Video Player */
.video-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  cursor: pointer;
}

.video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.4);
  transition: all var(--transition-base);
  margin-bottom: 16px;
}

.video-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(255, 107, 0, 0.6);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  color: #fff;
  margin-left: 4px;
}

.video-placeholder span {
  font-size: var(--small-size);
  color: var(--text-muted);
}

/* Trust Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: var(--small-size);
  color: var(--text-muted);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* Floating Icons */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.floating-icon:hover {
  transform: scale(1.15);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-glow-accent);
}

.floating-icon svg {
  width: 24px;
  height: 24px;
}

.floating-icon--clock {
  top: 15%;
  left: 8%;
  animation: float-1 6s ease-in-out infinite;
  color: var(--accent-orange-light);
}

.floating-icon--calendar {
  top: 20%;
  right: 8%;
  animation: float-2 7s ease-in-out infinite;
  color: var(--accent-orange);
}

.floating-icon--whatsapp {
  bottom: 25%;
  left: 6%;
  animation: float-3 5s ease-in-out infinite;
  color: var(--whatsapp-green);
}

.floating-icon--chat {
  bottom: 20%;
  right: 6%;
  animation: float-4 8s ease-in-out infinite;
  color: var(--gold);
}

@keyframes float-1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(10px, -15px) rotate(5deg);
  }

  66% {
    transform: translate(-5px, 10px) rotate(-3deg);
  }
}

@keyframes float-2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-12px, 8px) rotate(-4deg);
  }

  75% {
    transform: translate(8px, -12px) rotate(6deg);
  }
}

@keyframes float-3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(15px, -10px);
  }
}

@keyframes float-4 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  40% {
    transform: translate(-10px, -8px) rotate(-5deg);
  }

  80% {
    transform: translate(6px, 12px) rotate(3deg);
  }
}

/* Tooltip */
.floating-icon .tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.floating-icon .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-elevated);
}

.floating-icon:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   SECTION 2: PROBLEM AGITATION
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pain-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
}

.pain-point__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-point__icon svg {
  width: 14px;
  height: 14px;
  color: var(--danger);
}

.pain-point__text {
  font-size: var(--body-size);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Animated Stats */
.stat-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--accent-orange);
  transform: translateX(5px);
  box-shadow: var(--shadow-glow-accent);
}

.stat-card__number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-card__number .text-gradient {
  display: inline;
}

.stat-card__label {
  font-size: var(--small-size);
  color: var(--text-muted);
}

/* Before/After Slider */
.comparison-slider {
  margin-top: 60px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  user-select: none;
  /* touch-action: none; removed to fix mobile scrolling */
}

.comparison-slider__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  position: relative;
}

.comparison-side {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.comparison-side--before {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.comparison-side--after {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.comparison-side__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-side--before .comparison-side__title {
  color: var(--danger);
}

.comparison-side--after .comparison-side__title {
  color: var(--success);
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: var(--small-size);
  color: var(--text-secondary);
}

.comparison-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.comparison-side--before .comparison-item svg {
  color: var(--danger);
}

.comparison-side--after .comparison-item svg {
  color: var(--success);
}

.comparison-slider__handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  cursor: ew-resize;
  z-index: 5;
}

.comparison-slider__handle::after {
  content: '⟺';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* ============================================
   SECTION 3: SOLUTION
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-accent);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(255, 107, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-orange-light);
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: var(--small-size);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* WhatsApp Simulator */
.chat-simulator {
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.chat-header {
  background: #075e54;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header__info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-header__info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.chat-body {
  background: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  min-height: 300px;
  max-height: 360px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  animation: bubble-in 0.3s ease;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-bubble--incoming {
  background: #1f2c34;
  color: #e9edef;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble--outgoing {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble__time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  margin-top: 4px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #1f2c34;
  border-radius: 12px;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.chat-prompts {
  padding: 12px;
  background: #111b21;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-prompt-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.25);
  color: var(--accent-orange-light);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-prompt-btn:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--accent-orange);
}

.chat-prompt-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   SECTION 4: SOCIAL PROOF
   ============================================ */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

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

.testimonial-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-accent);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  fill: var(--gold);
}

.testimonial-card__quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

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

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Guarantee Badge */
.guarantee-badge {
  text-align: center;
  padding: 40px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  background: rgba(212, 175, 55, 0.03);
  max-width: 600px;
  margin: 0 auto;
}

.guarantee-badge__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.guarantee-badge__icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.guarantee-badge__title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold);
}

.guarantee-badge__text {
  font-size: var(--small-size);
  color: var(--text-secondary);
  max-width: 450px;
  margin: 0 auto;
}

/* ============================================
   SECTION 5: INTERACTIVE WORKFLOW BUILDER
   ============================================ */
.builder-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

@media (min-width: 992px) {
  .builder-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .builder-column {
    flex: 3;
  }

  .preview-column {
    flex: 2;
    position: sticky;
    top: 100px;
  }
}

/* --- Left Column: Builder --- */
.template-selector {
  margin-bottom: 24px;
}

.template-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.template-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.template-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.template-btn:hover,
.template-btn.active {
  background: rgba(255, 107, 0, 0.1);
  border-color: var(--accent-orange);
  color: var(--accent-orange-dark);
}

/* Blocks Palette */
.blocks-palette-container {
  margin-bottom: 24px;
  position: relative;
}

.blocks-palette {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px;
  padding-bottom: 12px;
  scrollbar-width: none;
  /* Firefox */
}

.blocks-palette::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.flow-block {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  user-select: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  /* touch-action: none; removed to fix mobile scrolling */
}

.flow-block:hover {
  transform: translateY(-2px);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-md);
}

.flow-block:active {
  cursor: grabbing;
}

.flow-block__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 107, 0, 0.1);
  color: var(--accent-orange);
}

.flow-block__icon svg {
  width: 14px;
  height: 14px;
}

.scroll-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -8px;
  display: none;
}

@media (max-width: 768px) {
  .scroll-hint {
    display: block;
  }
}

/* Flow Canvas (Drop Zone) */
.flow-canvas {
  min-height: 300px;
  background: var(--bg-surface);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-base);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.flow-canvas.drag-over {
  border-color: var(--accent-orange);
  background: rgba(255, 107, 0, 0.05);
}

.flow-canvas__placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-muted);
  pointer-events: none;
}

.placeholder-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Dropped Block Styling */
.flow-canvas .flow-block {
  width: 100%;
  max-width: 100%;
  cursor: default;
  background: #fff;
  border-left: 4px solid var(--accent-orange);
  padding: 16px;
  position: relative;
  z-index: 2;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.flow-canvas .flow-block:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Connection Lines */
.flow-connection {
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
  z-index: 1;
}

.flow-connection-segment {
  height: 24px;
  width: 2px;
  background: var(--accent-gradient);
  margin-left: 28px;
  position: relative;
  overflow: hidden;
}

.flow-connection-segment::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: flowDown 1.5s linear infinite;
}

@keyframes flowDown {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* AI Suggestion */
.ai-suggestion {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF3E0 100%);
  border: 1px solid #FFE0B2;
  border-radius: var(--radius-md);
  margin-top: 16px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-suggestion__content {
  flex: 1;
  color: #E65100;
}

.ai-suggestion__add {
  background: #FF9800;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.ai-suggestion__add:hover {
  background: #F57C00;
}

.ai-suggestion__close {
  color: #FFB74D;
  font-size: 1.2rem;
  padding: 4px;
}

.ai-suggestion__close:hover {
  color: #E65100;
}

/* Results Card */
.results-card {
  display: none;
  margin-top: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.5s ease;
}

.results-card__title {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.results-metrics {
  display: grid;
  gap: 12px;
}

.result-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.result-metric__text strong {
  color: var(--whatsapp-green);
}

/* Success Area */
.builder-success-area {
  display: none;
  text-align: center;
  margin-top: 30px;
  animation: popIn 0.5s ease;
}

.success-animation {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(10deg);
  }
}

/* --- Right Column: WhatsApp Preview --- */
.mockup-device {
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 8px solid #111;
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mockup-header {
  background: #075e54;
  color: #fff;
  padding: 40px 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.mockup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}

.mockup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mockup-name {
  font-weight: 600;
  font-size: 1rem;
}

.mockup-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.mockup-body {
  flex: 1;
  background: #e5ddd5;
  background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-message {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: messageSlide 0.3s ease;
}

.mockup-message--incoming {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.mockup-message--outgoing {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.mockup-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: #999;
  margin-top: 4px;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mockup-footer {
  padding: 12px 16px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-input {
  flex: 1;
  background: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  color: #999;
  font-size: 0.9rem;
}

.mockup-mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00897b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mockup-mic svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   SECTION 6: PRICING
   ============================================ */
.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-glow-accent);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.pricing-card__label {
  font-size: 0.85rem;
  color: var(--accent-orange-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card__period {
  color: var(--text-muted);
  font-size: var(--small-size);
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 36px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--small-size);
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-feature svg {
  width: 20px;
  height: 20px;
  color: var(--whatsapp-green);
  flex-shrink: 0;
}

.pricing-card .guarantee-text {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   SECTION 7: FINAL CTA
   ============================================ */
.final-cta {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 50%, #f3f4f6 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .headline-2 {
  margin-bottom: 16px;
}

.final-cta .subheadline {
  margin-bottom: 40px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: var(--small-size);
}

.trust-badge-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-orange-light);
}

/* ============================================
   WHATSAPP FLOATING WIDGET
   ============================================ */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.wa-widget__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-base);
  cursor: pointer;
}

.wa-widget__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.wa-widget__btn svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.wa-widget__preview {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition-base);
}

.wa-widget:hover .wa-widget__preview {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.wa-widget__preview p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.wa-widget__preview small {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
}

/* ============================================
   EXIT INTENT POPUP
   ============================================ */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.exit-popup-overlay.active {
  display: flex;
}

.exit-popup {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: popup-in 0.4s ease;
  box-shadow: var(--shadow-lg);
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.exit-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exit-popup__close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.exit-popup__close svg {
  width: 18px;
  height: 18px;
}

.exit-popup__emoji {
  font-size: 3rem;
  margin-bottom: 24px;
  background: var(--bg-surface);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exit-popup .headline-3 {
  margin-bottom: 12px;
}

.exit-popup .subheadline {
  font-size: 1rem;
  margin-bottom: 28px;
}

.exit-popup .btn {
  white-space: normal;
  height: auto;
  padding: 18px 24px;
  line-height: 1.3;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-pad-y-mobile) 0;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 400px;
  }

  .btn--large {
    padding: 18px 36px;
  }

  .floating-icons {
    display: none;
  }

  .comparison-slider__inner {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 36px 24px;
  }

  .trust-badges {
    gap: 16px;
  }

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

  .guarantee-badge {
    padding: 28px 20px;
  }

  .workflow-source,
  .workflow-dropzone {
    padding: 16px;
  }
}

@media (max-width: 375px) {
  :root {
    --container-pad: 16px;
  }

  .hero {
    padding-top: 40px;
  }

  .chat-simulator {
    margin: 0 -8px;
    border-radius: var(--radius-md);
  }
}

/* ============================================
   MOBILE FIXES
   ============================================ */
@media (max-width: 768px) {

  /* Comparison Slider - Stack vertically on mobile to fix layout issues */
  .hero {
    padding-top: 140px;
    align-items: flex-start;
  }

  .comparison-slider__inner {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .comparison-slider__handle {
    display: none;
  }

  .comparison-side {
    padding: 30px 24px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .comparison-side:last-child {
    border-bottom: none;
  }
}
/* ============================================
   LANGUAGE TOGGLE & RTL SUPPORT
   ============================================ */

/* Arabic Typography */
:root {
  --font-arabic: 'Tajawal', sans-serif;
}

[lang="ar"] body {
  font-family: var(--font-arabic);
}

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] .btn {
  font-family: var(--font-arabic);
  letter-spacing: 0; /* Arabic doesn't usually use letter spacing */
}

/* Language Toggle */
.lang-toggle-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9000;
}

.lang-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lang-btn {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.lang-btn.active {
  background: var(--text-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* RTL Layout Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .lang-toggle-container {
  right: auto;
  left: 24px;
}

/* Fix direction for icons in buttons */
[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

[dir="rtl"] .video-play-btn svg {
  margin-left: 0;
  margin-right: 4px;
  transform: rotate(180deg); /* Play icon usually needs flip for RTL if it implies direction */
}

/* Tooltip positioning override */
[dir="rtl"] .floating-icon .tooltip {
  direction: rtl; 
}

/* Ensure text inputs and textareas are RTL */
[dir="rtl"] input, 
[dir="rtl"] textarea,
[dir="rtl"] select {
  direction: rtl;
  text-align: right;
}

/* Flip margins/paddings where necessary */
[dir="rtl"] .hero__badge {
  padding: 8px 12px 8px 16px;
}

/* ============================================
   RTL SPECIFIC OVERRIDES (Continued)
   ============================================ */

/* Chat Bubbles (Mockup & Simulator) */
[dir="rtl"] .mockup-message--incoming,
[dir="rtl"] .chat-bubble--incoming {
  border-top-left-radius: 8px; 
  border-top-right-radius: 0;
}

[dir="rtl"] .mockup-message--outgoing,
[dir="rtl"] .chat-bubble--outgoing {
  border-top-right-radius: 8px;
  border-top-left-radius: 0;
}

[dir="rtl"] .mockup-time,
[dir="rtl"] .chat-bubble__time {
  text-align: left;
}

[dir="rtl"] .mockup-footer {
  flex-direction: row-reverse;
}

[dir="rtl"] .mockup-input {
  text-align: right;
}

/* Workflow Builder RTL */
[dir="rtl"] .flow-canvas .flow-block {
  border-left: none;
  border-right: 4px solid var(--accent-orange);
}

[dir="rtl"] .flow-connection {
  left: auto;
  right: 36px;
}

[dir="rtl"] .flow-connection-segment {
  margin-left: 0;
  margin-right: 28px;
}

/* AI Suggestion & Results */
[dir="rtl"] .ai-suggestion {
  text-align: right;
}

[dir="rtl"] .results-metric {
  flex-direction: row; /* Icon and text */
}

/* Stat Cards */
[dir="rtl"] .stat-card:hover {
  transform: translateX(-5px); /* Flip hover movement */
}

/* Comparison Slider */
[dir="rtl"] .comparison-slider__inner {
  direction: ltr; /* Keep slider logic LTR if it breaks, or adapt layout */
  /* Actually, before/after slider relies on absolute positioning usually. 
     If it's grid (as seen in CSS), RTL might flip the columns.
     Before (Red) -> Right? After (Green) -> Left?
     Logic: "Before" is usually Left. "After" is Right.
     In RTL, progress flows R->L. So "Before" (Right) -> "After" (Left) makes sense?
     Let's leave it natural RTL flip.
  */
}

/* Chat Header Text Color Fix */
.chat-header__info h4 {
  color: #ffffff;
}
.chat-header__info span {
  color: rgba(255, 255, 255, 0.8);
}
