/* ==========================================================================
   KSD-APP Modern ERP - Design System & Stylesheet
   Palette: Clean Light Theme, Elegant Typography, Fluid Micro-Animations
   RTL & LTR Seamless Localization
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* === Color Palette — Rich Executive Light === */
  --bg-page: #f5f7ff;
  --bg-surface: #ffffff;
  --bg-subtle: #eef2ff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbff;

  /* Primary: Electric Indigo */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-dark: #3730a3;
  --primary-soft: #eef2ff;
  --primary-border: #c7d2fe;
  --primary-glow: rgba(79, 70, 229, 0.18);

  /* Secondary: Sapphire Blue */
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;

  /* Accent: Emerald */
  --accent: #059669;
  --accent-hover: #047857;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --accent-glow: rgba(5, 150, 105, 0.15);

  /* Warm highlight: Amber (used sparingly) */
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  /* Text - High Contrast Executive Standards */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-light: #64748b;

  /* Borders */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 10px -2px rgba(79, 70, 229, 0.08), 0 1px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 28px -6px rgba(79, 70, 229, 0.1), 0 6px 14px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(79, 70, 229, 0.14), 0 10px 20px -6px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 36px -6px rgba(79, 70, 229, 0.2), 0 6px 14px -4px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 24px -4px rgba(79, 70, 229, 0.08), 0 1px 6px rgba(15, 23, 42, 0.04);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Fonts */
  --font-base: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-ar: 'Cairo', 'Plus Jakarta Sans', sans-serif;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.55s cubic-bezier(0.16, 1, 0.3, 1);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-hero: linear-gradient(160deg, #f5f7ff 0%, #eef2ff 50%, #f0fdf4 100%);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(238,242,255,0.8) 100%);
  --grad-accent: linear-gradient(135deg, #059669 0%, #0284c7 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-page);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(79,70,229,0.04) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 100%, rgba(5,150,105,0.04) 0%, transparent 60%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.lang-ar {
  font-family: var(--font-ar);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  vertical-align: middle;
  display: inline-block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Common Styling - High Contrast Executive Standards (Like Homepage) */
.section {
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.section-subtle {
  background-color: #f8faff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-lottie-bg {
  display: none;
}

.section > .container,
.section > .section-header {
  position: relative;
  z-index: 5;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.75rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: #ffffff;
  border: 1px solid #c7d2fe;
  padding: 0.42rem 1.15rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.15rem;
  box-shadow: 0 2px 8px -2px rgba(79,70,229,0.14);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.22;
  margin-bottom: 1.15rem;
  letter-spacing: -0.03em;
}

.section-title-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.15rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.7;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(245, 247, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(199, 210, 254, 0.45);
  transition: all var(--transition-fast);
}

.header-main.scrolled {
  box-shadow: 0 2px 20px -4px rgba(79, 70, 229, 0.12), 0 1px 6px rgba(15,23,42,0.04);
  background-color: rgba(245, 247, 255, 0.96);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
  text-decoration: none;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand:hover .brand-icon {
  transform: rotate(6deg) scale(1.05);
}

.brand-name {
  letter-spacing: -0.03em;
}

.brand-accent {
  color: var(--primary);
  font-weight: 800;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background-color: var(--bg-surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.35), 0 1px 4px rgba(79,70,229,0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.5), 0 2px 8px rgba(79,70,229,0.25);
  transform: translateY(-2px) scale(1.01);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border-color: rgba(199, 210, 254, 0.7);
  box-shadow: 0 2px 8px -2px rgba(79,70,229,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(238, 242, 255, 0.95);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -2px rgba(79,70,229,0.15);
}

.btn-accent {
  background: var(--grad-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(5, 150, 105, 0.35), 0 1px 4px rgba(5,150,105,0.2);
}

.btn-accent:hover {
  box-shadow: 0 8px 24px -4px rgba(5, 150, 105, 0.5);
  transform: translateY(-2px) scale(1.01);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.95rem 1.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   Hero Section & Full-Page Background Layers
   ========================================================================== */

/* ==========================================================================
   Multi-Layer Background Architecture:
   Layer 1 (Bottom): Global Video Layer (01.mp4) -> z-index: 1
   Layer 2 (Middle): Full-Page Ambient Animations & Glowing Orbs -> z-index: 2
   Layer 3 (Above): Section Backgrounds & Hero Particles -> z-index: 3 to 4
   Layer 5+ (Top): Content, Cards, Texts, Buttons -> z-index: 5 to 10
   ========================================================================== */

/* Layer 1: Ambient Video Background (STRICTLY LOWEST LAYER) */
.fullpage-video-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* strictly at bottom */
  pointer-events: none;
  overflow: hidden;
}

.fullpage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.25) contrast(1.06);
}

.fullpage-video-tint {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 45% 25%, rgba(248, 250, 255, 0.70) 0%, rgba(238, 244, 255, 0.82) 100%);
}

/* Layer 2: Ambient Animation Background Layer (STRICTLY ON TOP OF VIDEO) */
.fullpage-ambient-anim-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2; /* STRICTLY ON TOP OF VIDEO (1) AND BEHIND CONTENT (5+) */
  pointer-events: none;
  overflow: hidden;
}

.fullpage-lottie-backdrop {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  opacity: 0.28;
  filter: saturate(1.5) hue-rotate(-8deg);
  pointer-events: none;
}

/* Ambient Floating Glow Orbs */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  opacity: 0.45;
  animation: floatOrb 24s ease-in-out infinite alternate;
}

.orb-primary {
  width: 500px;
  height: 500px;
  top: 8%;
  left: -80px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.32) 0%, rgba(99, 102, 241, 0.06) 65%, transparent 100%);
  animation-duration: 22s;
}

.orb-accent {
  width: 540px;
  height: 540px;
  top: 48%;
  right: -100px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.26) 0%, rgba(16, 185, 129, 0.05) 65%, transparent 100%);
  animation-duration: 28s;
  animation-delay: -8s;
}

.orb-cyan {
  width: 440px;
  height: 440px;
  bottom: 8%;
  left: 25%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.24) 0%, rgba(56, 189, 248, 0.04) 65%, transparent 100%);
  animation-duration: 32s;
  animation-delay: -15s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -55px) scale(1.1); }
  100% { transform: translate(-35px, 35px) scale(0.94); }
}

/* Hero section */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem 0;
  overflow: hidden;
  background: transparent;
  z-index: 5;
}

/* Hero backdrop: Vanta net (3) -> gradient overlay (4) -> content (10) */
.hero-media-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

/* Vanta particle net — animated nodes reacting to cursor, strictly on top of video */
.hero-vanta-net {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.65;
}

/* Gradient overlay — provides soft luminous contrast */
.hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    150deg,
    rgba(248, 250, 255, 0.52) 0%,
    rgba(240, 244, 255, 0.42) 50%,
    rgba(240, 253, 244, 0.48) 100%
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Video Indicator Badge */
.video-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--primary-border);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(8px);
}

.video-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  animation: pulseBlue 2s infinite;
}

@keyframes pulseBlue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Hero Content Grid (2 Columns: Value Proposition + Live Lottie Showcase) */
.hero-layout-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-content {
  text-align: left;
}

[dir="rtl"] .hero-content {
  text-align: right;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(238,242,255,0.95) 0%, rgba(237,233,254,0.9) 100%);
  border: 1px solid rgba(199, 210, 254, 0.8);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.35rem;
  animation: floatSubtle 4.5s ease-in-out infinite;
  box-shadow: 0 2px 12px -2px rgba(79,70,229,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.16;
  color: var(--text-main);
  letter-spacing: -0.033em;
  margin-bottom: 1.35rem;
}

.hero-title-highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Value Props Pills */
.hero-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(199, 210, 254, 0.6);
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px -2px rgba(79,70,229,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.hero-pill-item:hover {
  border-color: var(--primary-border);
  background: rgba(238,242,255,0.95);
  color: var(--primary);
}

.hero-pill-item svg {
  color: var(--accent);
}

/* ==========================================================================
   Hero Visual Showcase (Lottie Business Analysis Card)
   ========================================================================== */
.hero-visual-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.92) 0%, rgba(238,242,255,0.82) 100%);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(199, 210, 254, 0.7);
  border-radius: var(--radius-xl);
  padding: 1.65rem;
  box-shadow: 0 24px 48px -12px rgba(79,70,229,0.15), 0 4px 16px rgba(15,23,42,0.05),
              inset 0 1px 0 rgba(255,255,255,0.95);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-visual-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 64px -12px rgba(79,70,229,0.22), 0 8px 24px rgba(15,23,42,0.06),
              inset 0 1px 0 rgba(255,255,255,0.98);
}

.visual-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.75rem;
}

.visual-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.visual-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lottie-business-container {
  width: 100%;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visual-card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.visual-footer-item {
  display: flex;
  flex-direction: column;
}

.visual-footer-item .v-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.visual-footer-item .v-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Stats Bar with Ambient Looping Background Lottie
   ========================================================================== */
.hero-stats-wrapper {
  position: relative;
  z-index: 10;
}

.lottie-ambient-bg {
  position: absolute;
  top: -25%;
  left: -5%;
  right: -5%;
  bottom: -25%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  overflow: hidden;
  filter: saturate(1.5);
}

/* Key Stats Bar */
.stats-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.88) 0%, rgba(238,242,255,0.82) 100%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(199, 210, 254, 0.7);
  box-shadow: 0 10px 30px -4px rgba(79, 70, 229, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2.25rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background-color: var(--border-light);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive ERP Preview Mockup Section
   ========================================================================== */
.preview-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
}

.preview-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background-color: #f87171; }
.dot-yellow { background-color: #fbbf24; }
.dot-green { background-color: #34d399; }

.preview-tabs {
  display: flex;
  gap: 0.5rem;
}

.preview-tab {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preview-tab:hover {
  color: var(--primary);
  background-color: rgba(37, 99, 235, 0.05);
}

.preview-tab.active {
  background-color: var(--bg-surface);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Mockup Content Windows */
.preview-pane {
  display: none;
  padding: 1.75rem;
}

.preview-pane.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

/* SaaS Mockup UI Elements */
.mockup-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  min-height: 420px;
}

.mockup-sidebar {
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mockup-nav-item.active {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.mockup-nav-item svg {
  width: 16px;
  height: 16px;
}

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mockup-kpi-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.mockup-kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.mockup-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.mockup-kpi-trend {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mockup-table-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mockup-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.mockup-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  background-color: #fbfcfe;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.mockup-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-secondary);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}
.status-success { background-color: var(--accent-soft); color: var(--accent); }
.status-pending { background-color: #fffbeb; color: #b45309; }
.status-info { background-color: var(--primary-soft); color: var(--primary); }

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -4px rgba(79, 70, 229, 0.14);
  border-color: #c7d2fe;
}

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

.service-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(237,233,254,0.8) 100%);
  color: var(--primary);
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 12px -2px rgba(79,70,229,0.15);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--grad-primary);
  color: white;
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 20px -4px rgba(79,70,229,0.35);
}

.service-card.highlight .service-icon-box {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #d1fae5 100%);
  color: var(--accent);
}

.service-card.highlight:hover .service-icon-box {
  background: var(--grad-accent);
  color: white;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.98rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.65;
}

.service-card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

/* ==========================================================================
   Modules Section (12 Modules)
   ========================================================================== */
.module-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.module-filter-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.module-filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary-border);
}

.module-filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.module-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px -4px rgba(79, 70, 229, 0.14);
  border-color: #c7d2fe;
}

.module-card:hover::after {
  opacity: 1;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.module-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(237,233,254,0.6) 100%);
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--transition-normal);
  box-shadow: 0 3px 8px -2px rgba(79,70,229,0.12);
}

.module-card:hover .module-icon {
  background: var(--grad-primary);
  color: white;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 16px -4px rgba(79,70,229,0.3);
}

.module-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.module-desc {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.module-action {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.btn-test-mod {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0;
  transition: gap var(--transition-fast);
}

.btn-test-mod:hover {
  color: var(--primary-hover);
  gap: 0.6rem;
}

/* ==========================================================================
   Deployment Options Section
   ========================================================================== */
.deployment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.deploy-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.deploy-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.deploy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -4px rgba(79, 70, 229, 0.14);
  border-color: #c7d2fe;
}

.deploy-card.featured {
  border-color: #c7d2fe;
  background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%);
  box-shadow: 0 10px 32px -4px rgba(79, 70, 229, 0.12);
}

.deploy-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1rem;
}

.deploy-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.deploy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.deploy-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: #1e293b;
  font-weight: 500;
}

.deploy-list-item svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Special Offer Banner with Animated Background Video
   ========================================================================== */
.offer-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(238,242,255,0.95) 0%, rgba(236,253,245,0.9) 100%);
  border: 1px solid rgba(199, 210, 254, 0.7);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 12px 40px -8px rgba(79,70,229,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  margin: 3rem 0;
}

/* Decorative accent orbs */
.offer-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.offer-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 5%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(5,150,105,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.offer-bg-video-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Video BEHIND the overlay and content */
.offer-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(1.3) contrast(1.1) hue-rotate(-5deg);
  z-index: -1;
}

.offer-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(238,242,255,0.7) 0%, rgba(236,253,245,0.65) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 0;
}

.offer-info,
.offer-banner .btn {
  position: relative;
  z-index: 2;
}

.offer-info {
  max-width: 680px;
}

.offer-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.offer-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.offer-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.why-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,0.4), transparent);
  transition: all var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -4px rgba(79, 70, 229, 0.14);
  border-color: #c7d2fe;
}

.why-card:hover::after {
  width: 90%;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,0.9), transparent);
}

.why-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(237,233,254,0.7) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem auto;
  box-shadow: 0 4px 12px -2px rgba(79,70,229,0.15);
  transition: all var(--transition-normal);
}

.why-card:hover .why-icon {
  background: var(--grad-primary);
  color: white;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px -4px rgba(79,70,229,0.35);
}

.why-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.why-desc {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(238,242,255,0.82) 100%);
  border: 1px solid rgba(199, 210, 254, 0.5);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background-color: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-content {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-item-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.15rem;
}

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

/* Form Styling */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-main {
  background: linear-gradient(180deg, rgba(238,242,255,0.92) 0%, rgba(255,255,255,0.98) 100%);
  border-top: 1px solid rgba(199, 210, 254, 0.5);
  padding: 5rem 0 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.footer-main::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 160px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Toast Notification & Utilities
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  background-color: var(--text-main);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  max-width: 420px;
}

.toast-notification.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

/* Scroll Animation Base */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RTL Rules (Arabic Language)
   ========================================================================== */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .mockup-table th,
[dir="rtl"] .mockup-table td {
  text-align: right;
}

[dir="rtl"] .stat-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

[dir="rtl"] .service-card-badge {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.25rem;
}

[dir="rtl"] .modal-title {
  padding-right: 0;
  padding-left: 2rem;
}

[dir="rtl"] .toast-notification {
  right: auto;
  left: 2rem;
}

/* Animation Controls Button */
.btn-anim-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.btn-anim-toggle:hover {
  color: var(--primary);
  border-color: var(--primary-border);
  background-color: var(--primary-soft);
}

.btn-anim-toggle.paused {
  opacity: 0.65;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  [dir="rtl"] .hero-content {
    text-align: center;
  }

  .hero-ctas,
  .hero-pills {
    justify-content: center;
  }

  .hero-visual-card {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 4.75rem;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    gap: 1.25rem;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  .header-actions .btn-test-nav {
    display: none;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .services-grid,
  .deployment-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .offer-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    display: none;
  }

  .mockup-kpis {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat-item::after {
    display: none !important;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}
