/* ===================================
   BilMart - Professional Landing Page
   =================================== */

/* --- CSS Variables --- */
:root {
  --primary: #2138a8;
  --primary-light: #3a5bbf;
  --primary-dark: #192d8a;
  --yellow: #FFC107;
  --yellow-dark: #E5AC00;
  --green: #22C55E;
  --purple: #8B5CF6;
  --orange: #F97316;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f1f5f9;
  --lighter: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-primary: 0 8px 30px rgba(33, 56, 168, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Tajawal', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

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

/* --- Text Utilities --- */
.text-yellow {
  color: var(--yellow);
}

.text-blue {
  color: var(--primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(33, 56, 168, 0.4);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* --- Store Buttons --- */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: var(--white);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.store-btn div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn small {
  font-size: 0.65rem;
  opacity: 0.8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.store-btn strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.store-btn.dark {
  background: var(--dark);
  color: var(--white);
}

/* --- Button Ripple Effect --- */
.btn .ripple, .store-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}


/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
  position: relative;
}

.preloader-floating {
  position: absolute;
  inset: -100px;
  pointer-events: none;
}

.preloader-floating span {
  position: absolute;
  left: var(--pl-x);
  top: var(--pl-y);
  font-size: 1.5rem;
  opacity: 0.15;
  animation: preloaderFloat 2s var(--pl-delay, 0s) ease-in-out infinite;
}

@keyframes preloaderFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

.preloader-logo-img {
  width: 120px;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

.preloader-bar {
  width: 120px;
  height: 4px;
  background: var(--light);
  border-radius: 4px;
  margin-top: 20px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--yellow));
  border-radius: 4px;
  animation: preloaderFill 1.5s ease-in-out forwards;
}

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

@keyframes preloaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo-img {
  height: 42px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-logo-img {
  height: 36px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
  transition: var(--transition);
}

.navbar.scrolled .nav-link {
  color: var(--dark);
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary);
  color: var(--white);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  background: var(--primary);
  color: var(--white);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-actions .btn {
  white-space: nowrap;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  margin-top: 70px;
  overflow: hidden;
  background: var(--dark);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.04);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Gradient Overlay */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(135deg, rgba(33,56,168,0.2) 0%, rgba(255,193,7,0.1) 50%, rgba(33,56,168,0.15) 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
  pointer-events: none;
}

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

/* Hero Floating Products */
.hero-floating-products {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.hero-float-item {
  position: absolute;
  left: var(--hf-left);
  top: var(--hf-top);
  font-size: var(--hf-size, 2rem);
  opacity: 0.35;
  animation: heroItemFloat 6s var(--hf-delay, 0s) ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

@keyframes heroItemFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-20px) rotate(10deg) scale(1.05); }
  50% { transform: translateY(-10px) rotate(-5deg) scale(0.98); }
  75% { transform: translateY(-25px) rotate(8deg) scale(1.02); }
}

/* Hero CSS Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: particleFloat 12s linear infinite;
}

.hero-particles::before {
  left: 20%;
  top: 80%;
  box-shadow:
    60px -40px 0 rgba(255,255,255,0.3),
    120px -80px 0 rgba(255,193,7,0.3),
    200px -20px 0 rgba(255,255,255,0.2),
    300px -60px 0 rgba(255,193,7,0.2),
    400px -100px 0 rgba(255,255,255,0.3),
    500px -30px 0 rgba(255,193,7,0.25);
}

.hero-particles::after {
  right: 15%;
  top: 90%;
  animation-delay: -6s;
  box-shadow:
    -50px -50px 0 rgba(255,255,255,0.25),
    -150px -90px 0 rgba(255,193,7,0.2),
    -250px -30px 0 rgba(255,255,255,0.3),
    -350px -70px 0 rgba(255,193,7,0.15),
    -450px -110px 0 rgba(255,255,255,0.2);
}

@keyframes particleFloat {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
}

.hero-slider:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-right {
  right: 24px;
}

.slider-arrow-left {
  left: 24px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Slider Progress Bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--primary));
  width: 0%;
  transition: width 0.1s linear;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

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

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

/* --- Stats Section --- */
.stats {
  padding: 30px 0 40px;
  position: relative;
  z-index: 3;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(33, 56, 168, 0.14);
}

.stat-card-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(33, 56, 168, 0.25);
  transition: all 0.4s ease;
}

.stat-card:hover .stat-card-icon {
  transform: scale(1.08) rotate(-5deg);
}

.stat-card-icon.icon-green {
  background: linear-gradient(135deg, var(--green), #16a34a);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
}

.stat-card-icon.icon-purple {
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.25);
}

.stat-card-icon.icon-yellow {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.3);
}

.stat-card-content {
  flex: 1;
}

.stat-card-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  display: inline;
  line-height: 1.2;
}

.stat-number.counting {
  animation: counterPop 0.3s ease;
}

@keyframes counterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--gray);
  font-weight: 500;
  margin-top: 2px;
}

/* --- Animated Background Shapes --- */
.animated-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.bg-circle-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -100px;
  right: -50px;
  animation: bgCircleFloat 15s ease-in-out infinite;
}

.bg-circle-2 {
  width: 200px;
  height: 200px;
  background: var(--yellow);
  bottom: -60px;
  left: -30px;
  animation: bgCircleFloat 18s ease-in-out infinite reverse;
}

.bg-circle-3 {
  width: 250px;
  height: 250px;
  background: var(--primary);
  top: 50%;
  left: -80px;
  animation: bgCircleFloat 20s ease-in-out infinite;
}

.bg-circle-4 {
  width: 180px;
  height: 180px;
  background: var(--yellow);
  top: 10%;
  right: -60px;
  animation: bgCircleFloat 16s ease-in-out infinite reverse;
}

@keyframes bgCircleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.bg-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(33,56,168,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: dotGridShift 30s linear infinite;
}

@keyframes dotGridShift {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* --- Section Dividers --- */
.section-divider {
  line-height: 0;
  margin-top: -1px;
  position: relative;
  z-index: 2;
}

.section-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.wave-divider-1 svg {
  animation: waveFloat 6s ease-in-out infinite;
}

.wave-divider-2 svg {
  animation: waveFloat 8s ease-in-out infinite reverse;
}

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

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(33, 56, 168, 0.1), rgba(33, 56, 168, 0.05));
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Features Section --- */
.features {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(33, 56, 168, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 193, 7, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* Modern Feature Cards */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 60%, rgba(33, 56, 168, 0.03) 100%);
  transition: var(--transition);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(33, 56, 168, 0.12);
  border-color: transparent;
}

.feature-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(33, 56, 168, 0.25);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(33, 56, 168, 0.35);
}

/* Icon Bounce on Reveal */
.feature-icon.revealed-icon,
.step-icon.revealed-icon {
  animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes iconBounce {
  0% { transform: scale(0.3) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  80% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.feature-icon.icon-green {
  background: linear-gradient(135deg, var(--green), #16a34a);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
}

.feature-card:hover .icon-green {
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

.feature-icon.icon-purple {
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.feature-card:hover .icon-purple {
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.35);
}

.feature-icon.icon-orange {
  background: linear-gradient(135deg, var(--orange), #ea580c);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
}

.feature-card:hover .icon-orange {
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.feature-card-text {
  flex: 1;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 0;
  background: var(--lighter);
  position: relative;
  overflow: hidden;
}

.steps-track {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps-line {
  position: absolute;
  top: 52px;
  left: 80px;
  right: 80px;
  height: 4px;
  background: rgba(33, 56, 168, 0.08);
  border-radius: 4px;
  z-index: 0;
  overflow: hidden;
}

.steps-line-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--yellow));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-line-fill.animated {
  width: 100%;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: relative;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(33, 56, 168, 0.12);
  border-color: transparent;
}

.step-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.step-badge {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(33, 56, 168, 0.3);
  transition: all 0.4s ease;
}

.step-card:hover .step-badge {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(33, 56, 168, 0.4);
}

.step-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(33, 56, 168, 0.25);
}

.step-card:hover .step-icon-wrap {
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(33, 56, 168, 0.35);
}

.step-icon-wrap.icon-green {
  background: linear-gradient(135deg, var(--green), #16a34a);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
}

.step-card:hover .icon-green {
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

.step-icon-wrap.icon-yellow {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
}

.step-card:hover .icon-yellow {
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4);
}

.step-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}

.step-card-desc {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Stagger step cards */
.steps-grid .step-card:nth-child(1) { transition-delay: 0.05s; }
.steps-grid .step-card:nth-child(2) { transition-delay: 0.15s; }
.steps-grid .step-card:nth-child(3) { transition-delay: 0.25s; }

/* --- Areas Section --- */
.areas {
  padding: 100px 0;
  background: linear-gradient(160deg, #1a2d7a 0%, #2138a8 40%, #1e3194 100%);
  position: relative;
  overflow: hidden;
}

.areas-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 193, 7, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(255, 193, 7, 0.06) 0%, transparent 40%);
}

.areas .section-tag {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
}

.areas .section-title {
  color: var(--white);
}

.areas .text-gradient {
  background: linear-gradient(135deg, #FFC107, #FFD54F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.areas .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* Enhanced Area Cards */
.area-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
  position: relative;
}

.area-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.area-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFC107;
  transition: var(--transition);
}

.area-card:hover .area-icon {
  background: #FFC107;
  color: #1a2d7a;
  transform: scale(1.1);
}

.area-card span {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.area-card:hover span {
  color: var(--white);
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-wave-top,
.cta-wave-bottom {
  line-height: 0;
  position: relative;
  z-index: 2;
}

.cta-wave-top {
  margin-bottom: -2px;
}

.cta-wave-bottom {
  margin-top: -2px;
}

.cta-inner {
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}

/* CTA Blobs */
.cta-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -50px;
  left: 10%;
  animation: blobMove 12s ease-in-out infinite;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.5);
  bottom: -30px;
  right: 15%;
  animation: blobMove 15s ease-in-out infinite reverse;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: var(--orange);
  top: 40%;
  left: 50%;
  animation: blobMove 18s ease-in-out infinite 3s;
}

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

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--dark-2);
  margin-bottom: 32px;
  line-height: 1.8;
}

.cta-img {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  animation: heroFloat 5s ease-in-out infinite;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-logo-text span {
  color: #FFC107;
  font-weight: 700;
  margin-right: 6px;
}

.footer-about {
  font-size: 0.92rem;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links-section h4,
.footer-contact h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: var(--gray-light);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--primary-light);
  padding-right: 8px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--gray-light);
  font-size: 0.92rem;
}

.contact-list a {
  color: var(--gray-light);
}

.contact-list a:hover {
  color: var(--primary-light);
}

.contact-list svg {
  color: var(--primary-light);
  min-width: 18px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.88rem;
  color: var(--gray);
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 900;
}

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

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

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

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

/* Advanced Scroll Reveal Variants */
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal-rotate {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed,
.scroll-reveal-scale.revealed,
.scroll-reveal-rotate.revealed {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1) rotate(0deg);
}

/* Hero Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeLeft 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger animation for area cards */
.areas-grid .area-card:nth-child(1) { transition-delay: 0.05s; }
.areas-grid .area-card:nth-child(2) { transition-delay: 0.1s; }
.areas-grid .area-card:nth-child(3) { transition-delay: 0.15s; }
.areas-grid .area-card:nth-child(4) { transition-delay: 0.2s; }
.areas-grid .area-card:nth-child(5) { transition-delay: 0.25s; }
.areas-grid .area-card:nth-child(6) { transition-delay: 0.3s; }
.areas-grid .area-card:nth-child(7) { transition-delay: 0.35s; }
.areas-grid .area-card:nth-child(8) { transition-delay: 0.4s; }
.areas-grid .area-card:nth-child(9) { transition-delay: 0.45s; }
.areas-grid .area-card:nth-child(10) { transition-delay: 0.5s; }
.areas-grid .area-card:nth-child(11) { transition-delay: 0.55s; }
.areas-grid .area-card:nth-child(12) { transition-delay: 0.6s; }

/* Feature cards stagger */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.05s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.15s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.25s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.35s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .slider-wrapper {
    aspect-ratio: 16 / 9;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

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

  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .cta-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps-line {
    display: none;
  }
}

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

  .hero-float-item {
    font-size: calc(var(--hf-size, 2rem) * 0.7);
    opacity: 0.15;
  }

  .bg-circle {
    display: none;
  }

  .cta-blobs .blob {
    filter: blur(40px);
    width: 150px;
    height: 150px;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 8px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 999;
  }

  .navbar-links.active {
    right: 0;
  }

  .navbar-links .nav-link {
    color: var(--dark);
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }

  .navbar-links .nav-link:hover,
  .navbar-links .nav-link.active {
    background: rgba(33, 56, 168, 0.08);
    color: var(--primary);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .navbar-actions .btn {
    display: none;
  }

  .slider-wrapper {
    aspect-ratio: 16 / 10;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    opacity: 1;
  }

  .slider-arrow-right { right: 12px; }
  .slider-arrow-left { left: 12px; }

  .slider-dots { bottom: 16px; gap: 8px; }
  .slider-dot { width: 10px; height: 10px; }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .feature-card {
    padding: 28px 22px;
    gap: 18px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
  }

  .feature-icon svg {
    width: 26px;
    height: 26px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px 16px;
    gap: 14px;
  }

  .stat-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
  }

  .stat-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-plus {
    font-size: 1.2rem;
  }

  .areas {
    padding: 60px 0;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .area-card {
    padding: 12px 14px;
    gap: 8px;
    border-radius: 10px;
  }

  .area-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
  }

  .area-icon svg {
    width: 16px;
    height: 16px;
  }

  .area-card span {
    font-size: 0.82rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
  }

  .step-card {
    padding: 28px 22px 24px;
  }

  .step-item {
    max-width: 100%;
  }

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

  .store-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .store-btn strong {
    font-size: 0.95rem;
  }
}

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

  .hero-desc {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .area-card {
    padding: 10px 12px;
  }

  .area-card span {
    font-size: 0.78rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* --- Mobile Menu Overlay --- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .floating-products,
  .hero-floating-products,
  .hero-particles,
  .animated-bg-shapes,
  .cta-blobs {
    display: none;
  }
}
