/* ================================================
   SITERP WEBSITE - PREMIUM THEME WITH LIGHT/DARK MODE
   Modern SaaS Design - Professional & Trustworthy
   Version: 79.0 - Cache Purge
   ================================================ */

/* ================================================
   DARK THEME (Default)
   ================================================ */
:root,
[data-theme="dark"] {
  /* Couleurs Principales - BLEU */
  --primary-blue: #3B82F6;
  --blue-light: #60A5FA;
  --blue-dark: #2563EB;
  --blue-glow: rgba(59, 130, 246, 0.5);
  --blue-subtle: rgba(59, 130, 246, 0.1);
  
  /* Theme Colors */
  --bg-primary: #000000;
  --bg-secondary: #0A0A0F;
  --bg-tertiary: #12121A;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(15, 23, 42, 0.6);
  --bg-navbar: rgba(10, 10, 15, 0.85);
  --bg-navbar-scrolled: rgba(5, 5, 10, 0.95);
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0C0;
  --text-tertiary: #707080;
  --text-muted: #505060;
  
  /* Borders */
  --border-color: rgba(59, 130, 246, 0.15);
  --border-color-hover: rgba(59, 130, 246, 0.4);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--blue-glow);
  --shadow-glow-strong: 0 0 40px var(--blue-glow), 0 0 80px var(--blue-glow);
  
  /* Legacy support */
  --black: #000000;
  --dark-bg: #0F0F0F;
  --dark-card: rgba(20, 20, 20, 0.6);
  --dark-card-hover: rgba(30, 30, 30, 0.8);
  --gray-text: #A0A0A0;
  --white: #FFFFFF;
  --glow-blue: 0 0 20px var(--blue-glow);
  --glow-blue-strong: 0 0 40px var(--blue-glow), 0 0 80px var(--blue-glow);
}

/* ================================================
   LIGHT THEME
   ================================================ */
[data-theme="light"] {
  /* Couleurs Principales - BLEU (same) */
  --primary-blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-dark: #1D4ED8;
  --blue-glow: rgba(37, 99, 235, 0.3);
  --blue-subtle: rgba(37, 99, 235, 0.08);
  
  /* Theme Colors - Light */
  --bg-primary: #FAFBFC;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E8EDF3;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --bg-navbar: rgba(255, 255, 255, 0.9);
  --bg-navbar-scrolled: rgba(255, 255, 255, 0.98);
  
  /* Text Colors - Light */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #64748B;
  --text-muted: #94A3B8;
  
  /* Borders - Light */
  --border-color: rgba(37, 99, 235, 0.12);
  --border-color-hover: rgba(37, 99, 235, 0.3);
  
  /* Shadows - Light */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px var(--blue-glow);
  --shadow-glow-strong: 0 4px 30px var(--blue-glow);
  
  /* Legacy support - Light */
  --black: #0F172A;
  --dark-bg: #F1F5F9;
  --dark-card: rgba(255, 255, 255, 0.8);
  --dark-card-hover: rgba(255, 255, 255, 1);
  --gray-text: #64748B;
  --white: #FFFFFF;
  --glow-blue: 0 4px 20px var(--blue-glow);
  --glow-blue-strong: 0 4px 30px var(--blue-glow);
}

/* ================================================
   RESET & BASE
   ================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sora', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease, direction 0.3s ease;
}

/* RTL Support for Arabic */
html[dir="rtl"] body {
  font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================================================
   THEME TOGGLE BUTTON
   ================================================ */

.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.theme-toggle:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}

.theme-toggle-icon {
  font-size: 12px;
  transition: all 0.3s ease;
  z-index: 1;
}

.theme-toggle-icon.sun {
  color: #FCD34D;
  opacity: 0.4;
}

.theme-toggle-icon.moon {
  color: var(--blue-light);
  opacity: 1;
}

[data-theme="light"] .theme-toggle-icon.sun {
  opacity: 1;
}

[data-theme="light"] .theme-toggle-icon.moon {
  opacity: 0.4;
}

.theme-toggle-slider {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-dark));
  border-radius: 50%;
  left: 4px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .theme-toggle-slider {
  left: calc(100% - 24px);
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Smooth theme transitions for all elements */
.navbar,
.glass-card,
.stat-card,
.btn,
.section,
.mobile-menu,
input,
textarea,
select {
  transition: 
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    color 0.4s ease;
}

/* RTL base rules moved to comprehensive section below */

/* ================================================
   COMPREHENSIVE RTL (Arabic) SUPPORT
   ================================================ */

/* Global RTL - Keep content centered like French */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  text-align: right;
}

/* Navbar RTL - Mirror layout */
html[dir="rtl"] .navbar-content {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

/* Buttons RTL - Icon order */
html[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

/* Hero Section RTL - Keep centered */
html[dir="rtl"] .hero-content,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .hero-description {
  text-align: center;
}

html[dir="rtl"] .hero-badges,
html[dir="rtl"] .hero-actions {
  justify-content: center;
}

/* Section Headers - Keep centered */
html[dir="rtl"] .section-header,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle {
  text-align: center;
}

/* Cards RTL - Text right but card centered */
html[dir="rtl"] .glass-card {
  text-align: right;
}

html[dir="rtl"] .glass-card ul {
  padding: 0;
}

html[dir="rtl"] .glass-card li {
  flex-direction: row-reverse;
}

/* Grids - Keep normal flow, just RTL direction */
html[dir="rtl"] .grid-2,
html[dir="rtl"] .grid-3,
html[dir="rtl"] .grid-4 {
  direction: rtl;
}

/* Stats - Keep centered */
html[dir="rtl"] .stat-card,
html[dir="rtl"] .stats-grid {
  text-align: center;
}

/* Footer RTL */
html[dir="rtl"] .modern-footer {
  text-align: right;
}

html[dir="rtl"] .footer-cta-area {
  text-align: center;
}

html[dir="rtl"] .footer-links-row {
  direction: rtl;
}

html[dir="rtl"] .footer-bottom {
  direction: rtl;
}

/* Form Elements RTL */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}

html[dir="rtl"] label {
  text-align: right;
}

/* Testimonials RTL */
html[dir="rtl"] .testimonial-card,
html[dir="rtl"] .testimonial-content {
  text-align: right;
}

/* Marquee RTL - Keep LTR for animation */
html[dir="rtl"] .marquee-track {
  direction: ltr;
}

/* Mobile Menu RTL */
html[dir="rtl"] .mobile-menu {
  right: auto;
  left: 0;
  text-align: right;
}

/* Improved spacing for Arabic text */
html[dir="rtl"] * {
  letter-spacing: 0 !important;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  line-height: 1.5;
}

html[dir="rtl"] p {
  line-height: 1.8;
}

/* Background avec gradient subtil */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, var(--blue-subtle) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, var(--blue-subtle) 0%, transparent 50%),
    var(--bg-primary);
  z-index: -1;
  pointer-events: none;
  transition: background 0.4s ease;
}

/* Subtle grid pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

[data-theme="light"] body::after {
  opacity: 0.15;
}

/* ================================================
   NAVIGATION
   ================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-navbar-scrolled);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 2rem;
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: var(--glow-blue);
}

/* —— SITERP text wordmark : SIT (dégradé) + ERP (blanc dark / bleu foncé light) —— */
.logo.logo--wordmark {
  background: none;
  -webkit-text-fill-color: unset;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: none;
}

/* Logo image dans la navbar — éviter le clipping texte du bloc .logo */
.logo.logo--header-image {
  background: none;
  -webkit-text-fill-color: unset;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: none;
}

.logo-header-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 152px;
  object-fit: contain;
}

.logo-link-wordmark {
  color: inherit;
}

.logo-wordmark-lockup,
.hero-brand-lockup {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  white-space: nowrap;
}

.logo-wordmark-lockup {
  font-size: 1.65rem;
}

.logo-sit {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ERP suffix : même logique navbar + hero */
.logo-erp {
  margin: 0;
  padding: 0;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  font-weight: 800;
  transition: color 0.25s ease, -webkit-text-fill-color 0.25s ease;
}

[data-theme="dark"] .logo-erp {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

[data-theme="light"] .logo-erp {
  color: #1e40af;
  -webkit-text-fill-color: #1e40af;
}

.hero-brand-lockup {
  font-size: clamp(1.85rem, 5vw, 3rem);
  vertical-align: baseline;
}

html[dir="rtl"] .logo-wordmark-lockup {
  unicode-bidi: isolate;
}

.logo img {
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
  filter: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: -0.01em;
}

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

.nav-links a.active {
  color: var(--primary-blue);
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
  box-shadow: var(--shadow-glow);
  border-radius: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  filter: brightness(1.1);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--primary-blue);
  border: 2px solid var(--border-color-hover);
}

.btn-outline:hover {
  background: var(--blue-subtle);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}

/* Light mode button adjustments */
[data-theme="light"] .btn-primary {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

[data-theme="light"] .btn-outline {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--primary-blue);
}

/* ================================================
   GLASS CARDS - Premium Design
   ================================================ */

.glass-card {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Storm spotlight glow - follows mouse */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

/* Shine sweep effect */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.04), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 
    0 4px 25px rgba(59, 130, 246, 0.12),
    0 15px 50px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

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

.glass-card:hover::after {
  left: 150%;
}

/* Light mode card adjustments */
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(59, 130, 246, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .glass-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 
    0 4px 20px rgba(37, 99, 235, 0.08),
    0 15px 50px rgba(15, 23, 42, 0.06);
}

/* Tarifs — 4 cartes même hauteur, CTA & badge alignés */
.pricing-cards-grid {
  align-items: stretch;
}

.pricing-cards-grid .glass-card.pricing-card-package {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.pricing-cards-grid .glass-card.pricing-card-package > * {
  position: relative;
  z-index: 2;
}

.pricing-cards-grid .glass-card.pricing-card-package.pricing-card-featured {
  border: 2px solid var(--primary-blue);
  box-shadow: var(--glow-blue);
}

.pricing-card-badge-row {
  position: relative;
  min-height: 2.35rem;
  flex-shrink: 0;
}

.pricing-cards-grid .pricing-card-popular-badge {
  position: absolute;
  top: 0;
  right: 0;
}

html[dir="rtl"] .pricing-cards-grid .pricing-card-popular-badge {
  right: auto;
  left: 0;
  border-radius: 10px 0 16px 0;
}

.pricing-cards-grid .glass-card .pricing-card-features {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
}

.pricing-cards-grid .glass-card .pricing-card-footer {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  align-items: stretch;
}

.pricing-cards-grid .glass-card .pricing-card-footer .btn {
  margin-top: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Lighting Effects Background */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
}

.hero-stat-item {
  opacity: 0;
  transform: translateY(20px);
  animation: heroStatReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-stat-item:nth-child(1) { animation-delay: 0.3s; }
.hero-stat-item:nth-child(3) { animation-delay: 0.45s; }
.hero-stat-item:nth-child(5) { animation-delay: 0.6s; }
.hero-stat-item:nth-child(7) { animation-delay: 0.75s; }

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

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

/* Hero H1: only the middle word uses .gradient-text; rest stays plain */
.hero-title .hero-title-plain {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

[data-theme="light"] .hero-title .hero-title-plain {
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

/* Hero H1: one line on desktop/tablet; word-per-line stack on phone */
@media (min-width: 769px) {
  .hero-title .hero-title-line {
    display: inline;
  }
  .hero-title .hero-title-line:not(:last-child)::after {
    content: ' ';
  }
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

/* Hero Summary Pills */
.hero-pills {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  font-size: 0.78rem;
  color: var(--gray-text, rgba(255, 255, 255, 0.6));
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-pill:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text-primary, #fff);
  transform: translateY(-1px);
}

.hero-pill i {
  font-size: 0.7rem;
  color: #3B82F6;
}

.hero-pill strong {
  color: #60A5FA;
  font-weight: 800;
}

body.light-mode .hero-pill {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.12);
  color: var(--text-secondary);
}

body.light-mode .hero-pill:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

body.light-mode .hero-pill strong {
  color: #2563EB;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ================================================
   STAT CARDS
   ================================================ */

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

[data-theme="light"] .stat-card {
  box-shadow: var(--shadow-sm);
}

/* ================================================
   SECTIONS
   ================================================ */

.section {
  padding: 6rem 5%;
  position: relative;
  width: 100%;
}

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

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================
   GRID LAYOUTS
   ================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================================================
   ADDITIONAL LIGHTING EFFECTS
   ================================================ */

/* Dot pattern background */
.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Input focus effects */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Link hover effects */
a {
  transition: all 0.3s ease;
}

/* Hover glow effect on buttons */
.btn:active {
  transform: scale(0.95);
}

/* Card pulse animation on hover */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.glass-card:hover::before {
  animation: pulse 2s ease-in-out infinite;
}

/* Selection color */
::selection {
  background: var(--primary-blue);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary-blue);
  color: var(--white);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-light);
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ================================================
   SCROLLING MARQUEE BANNER
   ================================================ */

.marquee-section {
  padding: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee-scroll 120s linear infinite;
  align-items: center;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2.5rem 1.5rem;
  white-space: nowrap;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  color: transparent;
  transition: color 0.4s ease, -webkit-text-stroke 0.4s ease;
  cursor: default;
  font-family: 'Sora', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.marquee-item:hover {
  color: var(--primary-blue);
  -webkit-text-stroke: 1.5px var(--primary-blue);
}

.marquee-item .dot,
.marquee-section .dot,
.marquee-track .dot,
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3B82F6 !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4) !important;
  flex-shrink: 0;
  margin: 0 0.5rem;
  display: flex;
  align-self: center;
}

/* Light mode marquee */
[data-theme="light"] .marquee-item,
body.light-mode .marquee-item {
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .marquee-item:hover,
body.light-mode .marquee-item:hover {
  color: var(--primary-blue);
  -webkit-text-stroke: 1.5px var(--primary-blue);
}

body.light-mode .marquee-section .dot {
  background: #3B82F6 !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
}

/* Reverse direction marquee */
.marquee-track.reverse {
  animation-direction: reverse;
}

/* Light mode adjustments */
[data-theme="light"] .marquee-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ================================================
   STATS BANNER (Separator)
   ================================================ */

.stats-banner {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-banner-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-banner-item {
  text-align: center;
}

.stats-banner-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-banner-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-banner-grid {
    gap: 2rem;
  }
  
  .stats-banner-number {
    font-size: 2.5rem;
  }
  
  .stats-banner-label {
    font-size: 0.8rem;
  }
}

/* ================================================
   TESTIMONIALS ANIMATED SCROLL
   ================================================ */

.testimonials-scroll-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.testimonials-scroll-track {
  display: flex;
  gap: 2rem;
  animation: scroll-testimonials 20s linear infinite;
  width: fit-content;
  will-change: transform;
  padding: 1rem 0;
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Custom scrollbar for webkit browsers */
.testimonials-scroll-track::-webkit-scrollbar {
  height: 8px;
}

.testimonials-scroll-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.testimonials-scroll-track::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 10px;
}

.testimonials-scroll-track::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* Pause animation on hover */
.testimonials-scroll-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

/* ================================================
   FORMS
   ================================================ */

.contact-select option {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="light"] .contact-select option {
  background-color: #FFFFFF;
  color: #0F172A;
}

/* Form inputs light mode */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--text-tertiary);
}

/* ================================================
   SCROLL REVEAL ANIMATIONS - ULTRA PREMIUM
   ================================================ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: 
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), 
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* Staggered delays for child elements */
.scroll-reveal.sr-delay-1 { transition-delay: 0.1s; }
.scroll-reveal.sr-delay-2 { transition-delay: 0.2s; }
.scroll-reveal.sr-delay-3 { transition-delay: 0.3s; }
.scroll-reveal.sr-delay-4 { transition-delay: 0.4s; }
.scroll-reveal.sr-delay-5 { transition-delay: 0.5s; }
.scroll-reveal.sr-delay-6 { transition-delay: 0.6s; }

/* Slide from left */
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  filter: blur(8px);
  transition: 
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), 
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.scroll-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0px);
}

/* Slide from right */
.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  filter: blur(8px);
  transition: 
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), 
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.scroll-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0px);
}

/* Scale up reveal */
.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  filter: blur(8px);
  transition: 
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), 
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.scroll-reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* Disable for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ================================================
   ULTRA-PREMIUM UI ENHANCEMENTS v3.0
   World-Class ERP Design System
   ================================================ */

/* ---- CURSOR GLOW FOLLOWER ---- */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.2s ease-out, top 0.2s ease-out, opacity 0.4s ease;
  opacity: 0;
  will-change: left, top;
}

body:hover .cursor-glow {
  opacity: 1;
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }
}

/* ---- HERO FLOATING ORBS ---- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  top: 5%;
  left: -5%;
  filter: blur(80px);
  animation: orbFloat1 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  filter: blur(70px);
  animation: orbFloat2 18s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  filter: blur(60px);
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -40px) scale(1.08); }
  66% { transform: translate(40px, 30px) scale(0.92); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(-40px, 40px) scale(1.1); opacity: 1; }
}

/* ---- HERO ROTATING RINGS VISUAL ---- */
.hero-rings-visual {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-ring-container {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.08);
  pointer-events: none;
}

/* Ring 1 - Outermost */
.hr-1 {
  width: 100%;
  height: 100%;
  animation: heroRingRot 28s linear infinite;
}

/* Ring 2 - Middle */
.hr-2 {
  width: 75%;
  height: 75%;
  animation: heroRingRot 22s linear infinite reverse;
}

/* Ring 3 - Inner */
.hr-3 {
  width: 50%;
  height: 50%;
  animation: heroRingRot 16s linear infinite;
}

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

/* Circling light dots on each ring */
.hero-ring::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3B82F6;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px #3B82F6, 0 0 30px rgba(59, 130, 246, 0.4);
}

.hr-2::before {
  background: #60A5FA;
  box-shadow: 0 0 12px #60A5FA, 0 0 30px rgba(96, 165, 250, 0.4);
  width: 6px;
  height: 6px;
  top: -3px;
}

.hr-3::before {
  background: #93C5FD;
  box-shadow: 0 0 12px #93C5FD, 0 0 30px rgba(147, 197, 253, 0.4);
  width: 5px;
  height: 5px;
  top: -2.5px;
}

/* Center badge */
.hero-center-badge {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2), 0 0 80px rgba(59, 130, 246, 0.08);
  animation: heroCenterPulse 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}

.hero-center-badge .hero-center-badge-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

@keyframes heroCenterPulse {
  0%, 100% { box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 0 0 80px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 20px 80px rgba(59, 130, 246, 0.45), 0 0 120px rgba(59, 130, 246, 0.15); }
}

/* Floating tags around the visual */
.hero-float-tag {
  position: absolute;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-text, rgba(255, 255, 255, 0.6));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  z-index: 3;
  animation: heroFloatTag 6s ease-in-out infinite;
  transition: all 0.3s ease;
}

.hero-float-tag:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px) !important;
}

.hero-float-tag i {
  font-size: 0.85rem;
}

.hft-1 { top: 8%; left: 0; animation-delay: 0s; }
.hft-2 { top: 22%; right: -8%; animation-delay: -1.5s; }
.hft-3 { bottom: 22%; left: -8%; animation-delay: -3s; }
.hft-4 { bottom: 8%; right: 0; animation-delay: -4.5s; }

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

/* Light mode adjustments */
body.light-mode .hero-ring {
  border-color: rgba(59, 130, 246, 0.12);
}

body.light-mode .hero-float-tag {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(59, 130, 246, 0.15);
  color: var(--text-secondary);
}

body.light-mode .hero-center-badge {
  background: linear-gradient(135deg, #FFFFFF, #F1F5F9);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.12), 0 0 40px rgba(59, 130, 246, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-ring-container {
    width: 280px;
    height: 280px;
  }
  .hero-center-badge {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    border-radius: 20px;
  }
  .hero-center-badge .hero-center-badge-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .hero-float-tag {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
  }
  .hft-2 { right: -4%; }
  .hft-3 { left: -4%; }
  .hero-rings-visual {
    margin-top: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-ring-container {
    width: 220px;
    height: 220px;
  }
  .hero-center-badge {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    border-radius: 16px;
  }
  .hero-center-badge .hero-center-badge-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .hero-float-tag {
    display: none;
  }
}

/* ---- HERO PARTICLES ---- */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

@keyframes particleRise {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ---- HERO BADGE PULSE ---- */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

/* ---- HERO STATS ROW GLASS ---- */
.hero-stats-row {
  position: relative;
  padding: 2rem 2.5rem !important;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- GRADIENT TEXT SHIMMER ---- */
.gradient-text {
  background: linear-gradient(
    90deg,
    var(--primary-blue) 0%,
    var(--blue-light) 25%,
    #93c5fd 50%,
    var(--blue-light) 75%,
    var(--primary-blue) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s linear infinite;
}

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

[data-theme="light"] .gradient-text {
  background: linear-gradient(
    90deg,
    var(--blue-dark) 0%,
    var(--primary-blue) 25%,
    #60a5fa 50%,
    var(--primary-blue) 75%,
    var(--blue-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s linear infinite;
}

/* ---- GLASS CARD PREMIUM SHINE SWEEP ---- */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.04) 30%,
    rgba(59, 130, 246, 0.08) 50%,
    rgba(59, 130, 246, 0.04) 70%,
    transparent 100%
  );
  transition: left 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover::after {
  left: 150%;
}

/* Enhanced border glow on hover */
.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.12),
    0 0 60px rgba(59, 130, 246, 0.06),
    0 25px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
}

/* Icon lift on card hover */
.glass-card:hover > div:first-child {
  transform: translateY(-4px) scale(1.08);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- BUTTON PREMIUM SHINE ---- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(59, 130, 246, 0.4),
    0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

/* ---- ANIMATED SECTION DIVIDER ---- */
.section-divider {
  width: 100%;
  height: 1px;
  position: relative;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.2) 20%,
    rgba(59, 130, 246, 0.35) 50%,
    rgba(59, 130, 246, 0.2) 80%,
    transparent 100%
  );
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.8) 50%, 
    transparent 100%
  );
  border-radius: 2px;
  animation: dividerSweep 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

@keyframes dividerSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* ---- STATS BANNER GLOW ---- */
.stats-banner {
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stats-banner-number {
  position: relative;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.stats-banner-item {
  position: relative;
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-banner-item:hover {
  background: rgba(59, 130, 246, 0.06);
  transform: translateY(-4px);
}

.stats-banner-item:hover .stats-banner-number {
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
}

/* ---- TESTIMONIAL CARD PREMIUM ---- */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: '\201C';
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(59, 130, 246, 0.06);
  line-height: 1;
  z-index: 0;
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
}

/* ---- CTA SECTION ANIMATED ---- */
.cta-enhanced {
  position: relative;
  overflow: hidden;
  background: 
    linear-gradient(135deg, 
      rgba(59, 130, 246, 0.1) 0%, 
      rgba(96, 165, 250, 0.06) 30%,
      rgba(59, 130, 246, 0.08) 60%,
      rgba(37, 99, 235, 0.04) 100%
    );
  background-size: 300% 300%;
  animation: ctaGradientShift 8s ease infinite;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

@keyframes ctaGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  animation: ctaOrbFloat 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ctaOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}

/* ---- MODERN FOOTER (VOID-inspired) ---- */
.modern-footer {
  position: relative;
  background: #0A0A0F;
  padding: 0;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

/* ---- Footer CTA Area ---- */
.footer-cta-area {
  padding: 6rem 5% 4rem;
  text-align: center;
  position: relative;
}

.footer-cta-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #3B82F6;
  margin-bottom: 1.5rem;
}

.footer-cta-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(135deg, #3B82F6, #60A5FA, #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.footer-cta-title:hover {
  opacity: 0.8;
}

.footer-cta-title a {
  background: linear-gradient(135deg, #3B82F6, #60A5FA, #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-cta-title a::after {
  display: none;
}

/* ---- Footer Links Row ---- */
.footer-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem 5%;
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s ease !important;
  padding: 0.25rem 0;
  position: relative;
}

.footer-link:hover {
  color: #ffffff !important;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #3B82F6;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-link-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
  margin: 0 1.25rem;
}

/* ---- Footer Bottom Bar ---- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand-favicon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.contact-heading-favicon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
  flex-shrink: 0;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-link-sm {
  color: rgba(255, 255, 255, 0.35) !important;
  text-decoration: none !important;
  font-size: 0.78rem;
  transition: color 0.3s ease !important;
  position: relative;
}

.footer-link-sm:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-link-sm::after {
  display: none;
}

/* Light mode footer override */
[data-theme="light"] .modern-footer {
  background: #0F172A;
}

[data-theme="light"] .footer-link {
  color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="light"] .footer-link:hover {
  color: #ffffff !important;
}

[data-theme="light"] .footer-bottom {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .footer-link-sm {
  color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="light"] .footer-link-sm:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ---- NAV ACTIVE LINK GLOW ---- */
.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--blue-light));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ---- CARD 3D TILT ---- */
.glass-card.tilt-active {
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* ---- COUNTER ANIMATION ---- */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---- COMPARISON VS GLOW ---- */
.vs-glow {
  position: relative;
}

.vs-glow::after {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  animation: vsGlowPulse 2.5s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

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

/* ---- PRICING POPULAR CARD GLOW BORDER ---- */
.pricing-glow-border {
  position: relative;
}

.pricing-glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.6),
    rgba(96, 165, 250, 0.5),
    rgba(59, 130, 246, 0.6)
  );
  background-size: 200% 200%;
  animation: glowBorderShift 3s ease infinite;
  z-index: -1;
  border-radius: 22px;
}

@keyframes glowBorderShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- LOADING NUMBER TICK ---- */
@keyframes numberTick {
  0% { transform: translateY(100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

/* ---- SMOOTH SECTION TRANSITIONS ---- */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  pointer-events: none;
}

/* ---- HERO TITLE ENTRANCE ---- */
@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

.hero-title {
  animation: heroTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-badge {
  animation: heroTitleReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
             badgePulse 3s ease-in-out 1.5s infinite;
}

.hero-subtitle {
  animation: heroTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.hero-stats-row {
  animation: heroTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.hero-actions {
  animation: heroTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

/* ---- MARQUEE HOVER EFFECTS ENHANCEMENT ---- */
.marquee-section {
  position: relative;
}

.marquee-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.02) 0%, transparent 30%, transparent 70%, rgba(59, 130, 246, 0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---- SCROLLBAR PREMIUM ---- */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-blue), var(--blue-dark));
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--blue-light), var(--primary-blue));
}

/* ---- BENTO FEATURES GRID ---- */
.bento-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
}

/* Large background number */
.bento-card .bento-number {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(59, 130, 246, 0.12);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  transition: -webkit-text-stroke 0.4s ease;
}

.bento-card:hover .bento-number {
  -webkit-text-stroke: 1.5px rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .bento-card .bento-number {
  -webkit-text-stroke: 1.5px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .bento-card:hover .bento-number {
  -webkit-text-stroke: 1.5px rgba(59, 130, 246, 0.18);
}

/* Icon circle */
.bento-card .bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.bento-card:hover .bento-icon {
  transform: translateY(-3px) scale(1.08);
}

.bento-card .bento-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  color: var(--text-primary);
}

.bento-card .bento-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Card hover effects - inherits glass-card hover, just adds transform */
.bento-card:hover {
  transform: translateY(-5px);
}

/* bento-card inherits ::before (spotlight) and ::after (shine sweep) from .glass-card */

/* Grid spans for bento layout */
.bento-card.bento-wide {
  grid-column: span 2;
}

.bento-card.bento-tall {
  grid-row: span 2;
  min-height: 500px;
}

/* Light mode */
[data-theme="light"] .bento-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(59, 130, 246, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .bento-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 
    0 4px 20px rgba(37, 99, 235, 0.08),
    0 15px 50px rgba(15, 23, 42, 0.06);
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .bento-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.bento-wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .bento-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bento-card {
    min-height: 200px;
    padding: 2rem 1.5rem;
  }
  .bento-card .bento-number {
    font-size: 5rem;
    right: 15px;
    top: 5px;
  }
  .bento-card.bento-wide {
    grid-column: span 1;
  }
}

/* ---- NOISE GRAIN TEXTURE ---- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

/* gradient-text is now defined in ULTRA-PREMIUM ENHANCEMENTS section with shimmer */

/* ================================================
   ALGERIAN FLAG ANIMATED TEXT
   ================================================ */

.algerian-flag-text {
  background: linear-gradient(
    90deg,
    #006233 0%,      /* Green */
    #006233 20%,
    #FFFFFF 35%,     /* White */
    #FFFFFF 50%,
    #D21034 65%,     /* Red */
    #D21034 80%,
    #006233 100%     /* Back to Green for seamless loop */
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: algerian-flag-flow 4s ease-in-out infinite;
  font-weight: 900;
  text-shadow: 0 0 40px rgba(0, 98, 51, 0.3);
}

@keyframes algerian-flag-flow {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Alternative: Each letter animates separately (more dramatic) */
.algerian-flag-text-wave {
  display: inline-block;
}

.algerian-flag-text-wave span {
  display: inline-block;
  animation: flag-letter-color 3s ease-in-out infinite;
  font-weight: 900;
}

.algerian-flag-text-wave span:nth-child(1) { animation-delay: 0s; }
.algerian-flag-text-wave span:nth-child(2) { animation-delay: 0.1s; }
.algerian-flag-text-wave span:nth-child(3) { animation-delay: 0.2s; }
.algerian-flag-text-wave span:nth-child(4) { animation-delay: 0.3s; }
.algerian-flag-text-wave span:nth-child(5) { animation-delay: 0.4s; }
.algerian-flag-text-wave span:nth-child(6) { animation-delay: 0.5s; }
.algerian-flag-text-wave span:nth-child(7) { animation-delay: 0.6s; }
.algerian-flag-text-wave span:nth-child(8) { animation-delay: 0.7s; }
.algerian-flag-text-wave span:nth-child(9) { animation-delay: 0.8s; }
.algerian-flag-text-wave span:nth-child(10) { animation-delay: 0.9s; }
.algerian-flag-text-wave span:nth-child(11) { animation-delay: 1.0s; }

@keyframes flag-letter-color {
  0%, 100% {
    color: #006233; /* Green */
    text-shadow: 0 0 20px rgba(0, 98, 51, 0.5);
  }
  33% {
    color: #FFFFFF; /* White */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
  66% {
    color: #D21034; /* Red */
    text-shadow: 0 0 20px rgba(210, 16, 52, 0.5);
  }
}

/* Light mode gradient-text is now in ULTRA-PREMIUM ENHANCEMENTS section */

/* Light mode logo visibility */
[data-theme="light"] .logo img {
  filter: none;
}

/* Light mode text improvements */
[data-theme="light"] .hero-title {
  color: var(--text-primary);
}

[data-theme="light"] .section-title {
  color: var(--text-primary);
}

/* ================================================
   SECTIONS & GRIDS
   ================================================ */

.section {
  padding: 8rem 5%;
  width: 100%;
  position: relative;
}

/* Inner content container for sections - centers content while background extends full */
.section > .section-header,
.section > .grid-2,
.section > .grid-3,
.section > .grid-4,
.section > div:not(.testimonials-scroll-container):not(.section-full-bg) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Full-width background sections */
.section-highlight {
  background: var(--blue-subtle);
}

[data-theme="light"] .section-highlight {
  background: rgba(37, 99, 235, 0.04);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .section-title { font-size: 2.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================
   MOBILE MENU
   ================================================ */

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-blue);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: var(--blue-light);
  transform: scale(1.1);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-navbar-scrolled);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu.open {
  max-height: calc(100vh - 72px);
  opacity: 1;
  overflow-y: auto;
}

.mobile-nav-links {
  list-style: none;
  margin-bottom: 2rem;
}

.mobile-nav-links li {
  margin-bottom: 0.5rem;
}

.mobile-nav-links a {
  display: block;
  padding: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--blue-subtle);
  color: var(--primary-blue);
  transform: translateX(5px);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  /* Fix padding-top pour éviter que le contenu soit caché sous la navbar */
  .hero {
    padding-top: 200px !important;
  }
  
  /* Fix pour toutes les sections (Nos Produits, Par Secteur, Tarifs, Téléchargements, Contact) */
  .section {
    padding-top: 200px !important;
  }
  
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-title { font-size: 2rem; }
  
  /* ================================================
     HYBRID APPROACH: Smart 2-column layout
     ================================================ */
  
  /* 2 COLUMNS for simple/compact content */
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  
  /* 1 COLUMN for rich content (default) */
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  
  /* EXCEPTION: Solutions grid stays in 1 column (too much content) */
  .grid-2.solutions-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .solutions-grid .glass-card {
    padding: 2rem 1.5rem !important;
  }
  
  .solutions-grid .glass-card h3 {
    font-size: 1.25rem !important;
  }
  
  .solutions-grid .glass-card h4 {
    font-size: 0.9rem !important;
  }
  
  .solutions-grid .glass-card p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  .solutions-grid .glass-card ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem !important;
  }
  
  .solutions-grid .glass-card li {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  
  /* BUT: .grid-3 in 2 columns for better mobile UX (3x2 grid) */
  .grid-3 { 
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  /* EXCEPTION: Large content grids stay in 1 column */
  .grid-3.large-content-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .grid-3.large-content-grid .glass-card {
    padding: 2rem 1.5rem !important;
  }
  
  /* Compact .grid-3 cards */
  .grid-3 .glass-card {
    padding: 1.5rem 1rem !important;
  }
  
  .grid-3 .glass-card > div[style*="width: '70px'"] {
    width: 50px !important;
    height: 50px !important;
  }
  
  .grid-3 .glass-card h3 {
    font-size: 1rem !important;
    margin: 0.75rem 0 0.5rem !important;
  }
  
  .grid-3 .glass-card p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  
  /* BUT: 2 COLUMNS for small feature items */
  .features-grid-compact {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  .feature-item-small {
    padding: 1rem;
    text-align: center;
  }
  
  .feature-item-small i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .feature-item-small h4 {
    font-size: 0.85rem;
    margin: 0;
  }
  
  .hero-actions { flex-direction: column; }
  
  /* Hide desktop navigation */
  .desktop-nav { display: none !important; }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle { display: block; }
  .mobile-menu { display: block; }
  
  /* Mobile navbar padding */
  .navbar { padding: 1rem; }
  
  /* Mobile sections padding */
  .section { padding: 4rem 1.25rem; }
  
  /* Hero mobile adjustments */
  .hero { padding: 6rem 1rem 4rem; }
  
  /* Button text adjustments for small screens */
  .btn-text { font-size: 0.85rem; }
  
  /* Compact cards for better density */
  .glass-card {
    padding: 1.25rem;
  }
  
  .glass-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .glass-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  /* ================================================
     FONCTIONNALITÉS PAGE - MOBILE
     ================================================ */
  
  /* Filter buttons mobile */
  .filter-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .filter-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    min-width: auto;
  }
  
  /* Module cards mobile - KEEP 1 column for readability */
  .modules-grid {
    grid-template-columns: 1fr !important;
  }
  
  .module-card {
    padding: 1.25rem;
  }
  
  .module-card h3 {
    font-size: 1rem;
  }
  
  .module-card p {
    font-size: 0.85rem;
  }
  
  /* BUT: Module badges/icons can be 2 columns */
  .module-tags,
  .module-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Modal mobile */
  .modal-content {
    width: 95%;
    max-width: 95%;
    margin: 1rem;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-close {
    font-size: 1.75rem;
    padding: 0.5rem;
  }
  
  /* ================================================
     SOLUTIONS PAGE - MOBILE
     ================================================ */
  
  /* Solution cards mobile - KEEP 1 column for main cards */
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }
  
  .solution-card {
    padding: 1.5rem;
  }
  
  .solution-card h3 {
    font-size: 1.25rem;
  }
  
  .solution-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  
  /* BUT: Solution features list in 2 columns for better density */
  .solution-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .solution-features li {
    font-size: 0.75rem;
    padding: 0.3rem;
  }
  
  /* ================================================
     TARIFS PAGE - MOBILE
     ================================================ */
  
  /* Pricing cards mobile */
  .pricing-card {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .pricing-card h3 {
    font-size: 1.25rem;
  }
  
  .pricing-price {
    font-size: 2rem;
  }
  
  .pricing-period {
    font-size: 0.85rem;
  }
  
  .pricing-features li {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
  
  /* Comparison table mobile - horizontal scroll */
  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
  }
  
  .comparison-table {
    min-width: 600px;
    font-size: 0.75rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }
  
  /* Enterprise addon mobile */
  .enterprise-addon {
    padding: 1.5rem;
  }
  
  .enterprise-addon h3 {
    font-size: 1.25rem;
  }
  
  .enterprise-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* FAQ mobile */
  .faq-item {
    padding: 1rem;
  }
  
  .faq-item h4 {
    font-size: 1rem;
  }
  
  .faq-item p {
    font-size: 0.85rem;
  }
  
  /* ================================================
     TÉLÉCHARGEMENTS PAGE - MOBILE
     ================================================ */
  
  /* Download cards mobile */
  .download-card {
    padding: 1.5rem;
  }
  
  .download-card h3 {
    font-size: 1.1rem;
  }
  
  .download-icon {
    font-size: 2.5rem;
  }
  
  .download-card strong {
    font-size: 0.9rem;
  }
  
  .download-card p {
    font-size: 0.85rem;
  }
  
  .download-card h4 {
    font-size: 0.9rem;
  }
  
  .download-card li {
    font-size: 0.85rem;
  }
  
  /* Installation steps mobile */
  .install-step {
    padding: 1rem;
  }
  
  .install-step-number {
    font-size: 1.25rem;
    width: 35px;
    height: 35px;
  }
  
  .install-step h4 {
    font-size: 1rem;
  }
  
  .install-step p {
    font-size: 0.85rem;
  }
  
  /* ================================================
     CONTACT PAGE - MOBILE
     ================================================ */
  
  /* Contact form mobile */
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .contact-form-wrapper h3 {
    font-size: 1.25rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
  
  /* Contact info cards mobile */
  .contact-info-card {
    padding: 1.25rem;
  }
  
  .contact-info-card h4 {
    font-size: 1rem;
  }
  
  .contact-info-card p {
    font-size: 0.85rem;
  }
  
  .contact-icon {
    font-size: 1.75rem;
  }
  
  /* ================================================
     GENERAL MOBILE IMPROVEMENTS
     ================================================ */
  
  /* Cards spacing */
  .card {
    margin-bottom: 1rem;
  }
  
  /* Reduce badge sizes */
  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Improve button stacking */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Testimonials mobile - better spacing */
  .testimonial-card {
    min-width: 280px;
    padding: 1.25rem;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
  }
  
  /* Stats mobile - better fit */
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  /* Compact stats grid (500+ Entreprises, 2M+ Documents, etc.) - 2x2 grid */
  section .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  section .grid-4 .glass-card[style*="text-align: center"] {
    padding: 1.5rem 1rem !important;
  }
  
  section .grid-4 .glass-card i.fas {
    font-size: 2.5rem !important;
  }
  
  section .grid-4 .glass-card > div[style*="fontSize: '3rem'"] {
    font-size: 2rem !important;
  }
  
  section .grid-4 .glass-card > div[style*="fontSize: '1.2rem'"] {
    font-size: 0.9rem !important;
  }
  
  /* Features grid mobile */
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
  }
  
  .feature-card p {
    font-size: 0.85rem;
  }
  
  /* ================================================
     SMART 2-COLUMN EXCEPTIONS FOR SMALL ITEMS
     ================================================ */
  
  /* Small compact items benefit from 2 columns */
  .badges-grid,
  .certifications-grid,
  .partners-logos,
  .small-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  /* Compact feature items style */
  .compact-feature {
    text-align: center;
    padding: 1rem;
  }
  
  .compact-feature i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .compact-feature h4 {
    font-size: 0.85rem;
    font-weight: 600;
  }
  
  /* Footer mobile - modern */
  .footer-cta-area {
    padding: 4rem 5% 2.5rem;
  }
  
  .footer-cta-title {
    font-size: clamp(2.5rem, 12vw, 4rem) !important;
  }
  
  .footer-links-row {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 5%;
  }
  
  .footer-links-row .footer-link-dot {
    display: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1rem 5%;
  }
  
  .footer-bottom-right {
    justify-content: center;
  }
  
  /* CTA section mobile */
  .cta-section {
    padding: 2rem 1rem;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
  
  .cta-section p {
    font-size: 0.9rem;
  }
}

/* ================================================
   BACK TO TOP BUTTON
   ================================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-dark) 100%);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ================================================
   SECTION DIVIDERS (Mobile Enhancement)
   ================================================ */

.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

.section:first-child::before {
  display: none;
}


/* ================================================
   EXTRA SMALL MOBILE (< 375px)
   ================================================ */

@media (max-width: 375px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .btn { font-size: 0.85rem; padding: 0.75rem 1rem; }
  .filter-btn { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
  .modal-content { padding: 1rem; }
  .pricing-price { font-size: 1.75rem; }
  
  /* Adjust back to top button for small screens */
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.1rem;
  }
}

/* ================================================
   RTL MOBILE RESPONSIVENESS (Arabic)
   ================================================ */

@media (max-width: 768px) {
  /* RTL Mobile Menu */
  html[dir="rtl"] .mobile-menu {
    left: 0;
    right: auto;
    text-align: right;
  }
  
  html[dir="rtl"] .mobile-menu-toggle {
    margin-left: 0;
    margin-right: auto;
  }
  
  /* RTL Navbar Mobile */
  html[dir="rtl"] .navbar-content {
    flex-direction: row-reverse;
  }
  
  html[dir="rtl"] .logo {
    order: 2;
  }
  
  /* RTL Hero Mobile - Keep centered */
  html[dir="rtl"] .hero-content,
  html[dir="rtl"] .hero-title,
  html[dir="rtl"] .hero-subtitle {
    text-align: center;
  }
  
  html[dir="rtl"] .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  html[dir="rtl"] .hero-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* RTL Sections Mobile - Keep centered */
  html[dir="rtl"] .section-header,
  html[dir="rtl"] .section-title,
  html[dir="rtl"] .section-subtitle {
    text-align: center;
  }
  
  /* RTL Cards Mobile */
  html[dir="rtl"] .glass-card {
    text-align: right;
  }
  
  html[dir="rtl"] .glass-card li {
    flex-direction: row-reverse;
    text-align: right;
  }
  
  /* RTL Stats Banner Mobile */
  html[dir="rtl"] .stats-banner-grid {
    direction: rtl;
  }
  
  html[dir="rtl"] .stats-banner-item {
    text-align: center;
  }
  
  /* RTL Footer Mobile - Center on mobile */
  html[dir="rtl"] .modern-footer {
    text-align: center;
  }
  
  /* RTL Testimonials Mobile */
  html[dir="rtl"] .testimonial-card {
    text-align: right;
  }
  
  /* RTL Pricing Cards Mobile */
  html[dir="rtl"] .pricing-card,
  html[dir="rtl"] .glass-card {
    text-align: right;
  }
  
  /* RTL Download Cards Mobile */
  html[dir="rtl"] .download-card {
    text-align: right;
  }
  
  /* RTL Contact Form Mobile */
  html[dir="rtl"] .contact-form-wrapper {
    text-align: right;
  }
  
  html[dir="rtl"] input,
  html[dir="rtl"] textarea,
  html[dir="rtl"] select {
    text-align: right;
  }
  
  /* RTL Buttons Mobile */
  html[dir="rtl"] .btn {
    flex-direction: row-reverse;
  }
  
  /* RTL Back to Top - Left side for RTL */
  html[dir="rtl"] .back-to-top {
    right: auto;
    left: 1rem;
  }
  
  /* RTL Comparison Section Mobile */
  html[dir="rtl"] .comparison-section {
    direction: rtl;
  }
  
  /* RTL Solutions Grid Mobile */
  html[dir="rtl"] .solutions-grid {
    direction: rtl;
  }
  
  /* RTL Mobile Nav Links */
  html[dir="rtl"] .mobile-nav-links li {
    text-align: right;
  }
  
  html[dir="rtl"] .mobile-nav-links li a {
    justify-content: flex-end;
  }
}

/* RTL Extra Small Mobile */
@media (max-width: 375px) {
  html[dir="rtl"] .hero-title {
    font-size: 1.75rem;
  }
  
  html[dir="rtl"] .section-title {
    font-size: 1.5rem;
  }
  
  html[dir="rtl"] .btn {
    font-size: 0.8rem;
    padding: 0.7rem 0.9rem;
  }
}

/* ================================================
   COMPREHENSIVE MOBILE FIXES FOR ALL SECTIONS
   ================================================ */

@media (max-width: 768px) {
  /* ============ ACCUEIL PAGE ============ */
  
  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 120px 1rem 3rem !important;
  }
  
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.06em;
  }

  .hero-title .hero-title-line {
    display: block;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    padding: 0 0.5rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-stats-row {
    gap: 1rem !important;
  }

  .hero-stat-item div:first-child {
    font-size: 1.6rem !important;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  /* Stats Banner Mobile */
  .stats-banner {
    padding: 1.5rem 0.5rem;
  }
  
  .stats-banner-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  
  .stats-banner-number {
    font-size: 2rem !important;
  }
  
  .stats-banner-label {
    font-size: 0.7rem !important;
  }
  
  /* Marquee Mobile — match desktop weight: same font stack as body, larger type (was over-shrunk) */
  .marquee-section {
    padding: 0.35rem 0;
  }
  
  .marquee-item {
    font-size: clamp(2.85rem, 13vw, 5.25rem) !important;
    padding: 2rem 1.15rem !important;
    font-family: 'Sora', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55) !important;
  }

  [data-theme="light"] .marquee-item,
  body.light-mode .marquee-item {
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.35) !important;
  }
  
  /* Testimonials Mobile */
  .testimonials-scroll-container {
    padding: 1rem 0;
  }
  
  .testimonial-card {
    min-width: 280px !important;
    max-width: 280px !important;
    padding: 1.25rem !important;
  }
  
  .testimonial-card p {
    font-size: 0.85rem !important;
  }
  
  /* Features Grid Mobile */
  .grid-3 .glass-card {
    padding: 1.5rem 1rem !important;
  }
  
  .grid-3 .glass-card h3 {
    font-size: 1.1rem !important;
  }
  
  .grid-3 .glass-card p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  
  /* Comparison Scoreboard Mobile */
  .section [style*="gridTemplateColumns: '1fr auto 1fr'"],
  .section [style*="gridTemplateColumns: '1fr 120px 1fr'"] {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }
  
  /* ============ NOS PRODUITS PAGE ============ */
  
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }
  
  .solutions-grid .glass-card {
    padding: 1.5rem !important;
  }
  
  /* ============ PAR SECTEUR PAGE ============ */
  
  .par-secteur-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* ============ TARIFS PAGE ============ */
  
  /* Pricing Toggle Mobile */
  .pricing-toggle-wrapper {
    flex-direction: column !important;
    gap: 0.5rem;
  }
  
  /* Pricing Cards Mobile - 2 columns for better display */
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  
  .pricing-cards-grid .glass-card {
    padding: 0.75rem 0.5rem !important;
  }

  /* Même logique flex que desktop (CTA bas de carte) */
  .pricing-cards-grid .glass-card.pricing-card-package {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  
  /* Title (Package Name) */
  .pricing-cards-grid .glass-card h3 {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  /* Price */
  .pricing-cards-grid .glass-card [style*="fontSize: '2.75rem'"],
  .pricing-cards-grid .glass-card > div[style*="fontSize: '2.75rem'"] {
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  /* "DA /an /PC" text */
  .pricing-cards-grid .glass-card [style*="color: var(--gray-text)"] {
    font-size: 0.7rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Module badge */
  .pricing-cards-grid .glass-card [style*="borderRadius: '50px'"] {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.7rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* "Popular" badge - mobile : pleine largeur sous la rangée réservée */
  .pricing-cards-grid .pricing-card-popular-badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    padding: 0.22rem 0.5rem !important;
    font-size: 0.55rem !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
    display: inline-flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .pricing-cards-grid .pricing-card-popular-badge i {
    font-size: 0.55rem !important;
  }
  
  /* Features list */
  .pricing-cards-grid .glass-card .pricing-card-features {
    gap: 0.4rem !important;
    margin-bottom: 0 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
  
  .pricing-cards-grid .glass-card .pricing-card-features li {
    gap: 0.3rem !important;
    font-size: 0.65rem !important;
  }
  
  .pricing-cards-grid .glass-card .pricing-card-features li span {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
  }
  
  .pricing-cards-grid .glass-card .pricing-card-features li i {
    font-size: 0.65rem !important;
    margin-top: 0.1rem !important;
  }
  
  /* Idéal pour + bouton — bas de carte aligné */
  .pricing-cards-grid .glass-card .pricing-card-footer {
    gap: 0.75rem !important;
    margin-top: auto !important;
  }
  
  .pricing-cards-grid .glass-card .pricing-card-footer > div[style*="padding"] {
    padding: 0.5rem !important;
    font-size: 0.65rem !important;
    margin-bottom: 0 !important;
    border-radius: 8px !important;
    text-align: center !important;
  }

  .pricing-cards-grid .glass-card .pricing-card-footer > div strong {
    font-size: 0.65rem !important;
  }

  .pricing-cards-grid .glass-card .pricing-card-footer > div i {
    font-size: 0.65rem !important;
  }
  
  .pricing-cards-grid .glass-card .pricing-card-footer .btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    margin-top: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }

  html[dir="rtl"] .pricing-cards-grid .pricing-card-popular-badge {
    border-radius: 8px !important;
  }

  /* Plus de carte agrandie (évite désalignement) */
  
  .glass-card[style*="transform: scale"] {
    transform: none !important;
  }
  
  /* Pricing Mode Info Box */
  .pricing-mode-info {
    padding: 1rem !important;
    margin: 1rem 0 !important;
  }
  
  /* ============ TELECHARGEMENTS PAGE ============ */
  
  .download-cards-grid {
    grid-template-columns: 1fr !important;
  }
  
  .download-card {
    padding: 1.5rem !important;
  }
  
  .download-card h3 {
    font-size: 1.1rem !important;
  }
  
  /* ============ CONTACT PAGE ============ */
  
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }
  
  .contact-form-wrapper input,
  .contact-form-wrapper textarea,
  .contact-form-wrapper select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  /* ============ FOOTER (modern) ============ */
  
  .footer-cta-area {
    padding: 3rem 1rem 2rem;
  }
  
  .footer-links-row {
    padding: 1rem;
  }
  
  .footer-bottom {
    padding: 1rem;
  }
}

/* ================================================
   COMPARISON SCOREBOARD MOBILE SPECIFIC
   ================================================ */

@media (max-width: 600px) {
  /* Scoreboard Header */
  .section [style*="gridTemplateColumns"] > div[style*="fontSize: '2.5rem'"] {
    font-size: 1.5rem !important;
  }
  
  /* VS Circle */
  .section [style*="width: '80px'"] {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Score Numbers */
  .section [style*="fontSize: '5rem'"] {
    font-size: 3rem !important;
  }
  
  /* Match Rows - Stack vertically */
  .section [style*="gridTemplateColumns: '1fr 120px 1fr'"] {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    padding: 0.75rem !important;
  }
  
  .section [style*="gridTemplateColumns: '1fr 120px 1fr'"] > div {
    justify-content: center !important;
    padding: 0.5rem !important;
    flex-direction: column !important;
  }
  
  /* Winner Banner */
  .section [style*="background: 'linear-gradient(135deg, #10B981"] {
    padding: 1rem !important;
  }
  
  .section [style*="background: 'linear-gradient(135deg, #10B981"] span {
    font-size: 1rem !important;
  }
  
  .section [style*="background: 'linear-gradient(135deg, #10B981"] i {
    font-size: 1.25rem !important;
  }
}

/* ================================================
   HERO MODULES HORIZONTAL CAROUSEL
   ================================================ */
.hero-modules-carousel {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0 3rem;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.hero-modules-track {
  display: flex;
  gap: 1rem;
  animation: heroModulesScroll 60s linear infinite;
  width: max-content;
}

.hero-modules-carousel:hover .hero-modules-track {
  animation-play-state: paused;
}

@keyframes heroModulesScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Nos Modules (#nos-produits): same card UI as homepage carousel */
a.hero-module-card.modules-grid-card {
  width: 100%;
  min-height: 200px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

a.hero-module-card.modules-grid-card:link,
a.hero-module-card.modules-grid-card:visited {
  color: inherit;
}

.hero-module-card.modules-grid-card:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.65);
  outline-offset: 3px;
}

.hero-module-card.modules-grid-card:hover {
  transform: translateY(-4px);
}

.hero-module-card.modules-grid-card .hero-module-desc {
  flex: 1;
}

.hero-module-card.modules-grid-card .hero-module-tag {
  margin-top: auto;
  align-self: flex-start;
}

.hero-module-card {
  flex-shrink: 0;
  width: 220px;
  padding: 1.5rem 1.25rem 1.25rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  backdrop-filter: blur(12px);
}

.hero-module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-module-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.04), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-module-card:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 
    0 4px 25px rgba(59, 130, 246, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-module-card:hover::before {
  opacity: 1;
}

.hero-module-card:hover::after {
  left: 150%;
}

.hero-module-num {
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(59, 130, 246, 0.06);
  line-height: 1;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: -3px;
}

.hero-module-card:hover .hero-module-num {
  color: rgba(59, 130, 246, 0.12);
}

.hero-module-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #60A5FA;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero-module-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.hero-module-desc {
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-module-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #60A5FA;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

/* Light mode */
.light-mode .hero-module-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(59, 130, 246, 0.12);
}

.light-mode .hero-module-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}

.light-mode .hero-module-num {
  color: rgba(59, 130, 246, 0.06);
}

.light-mode .hero-module-card:hover .hero-module-num {
  color: rgba(59, 130, 246, 0.1);
}

.light-mode .hero-module-name {
  color: #1E293B;
}

.light-mode .hero-module-desc {
  color: #64748B;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-module-card {
    width: 180px;
    padding: 1.2rem 1rem 1rem;
  }
  .hero-module-card.modules-grid-card {
    width: 100%;
  }
  .hero-module-num {
    font-size: 3.5rem;
  }
  .hero-modules-track {
    animation-duration: 40s;
  }
}
