/* =============================================
   ECO-FLOW — Premium CSS
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;

  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  --dark-900: #0a0f1e;
  --dark-800: #0d1424;
  --dark-700: #111827;
  --dark-600: #1f2937;
  --dark-500: #374151;

  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;

  --white: #ffffff;

  --gradient-primary: linear-gradient(135deg, #0d1424 0%, #0f2a1a 50%, #0a1f12 100%);
  --gradient-green: linear-gradient(135deg, #22c55e, #14b8a6);
  --gradient-hero: linear-gradient(135deg, #050d10 0%, #0a1f12 40%, #071a24 100%);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
  --shadow-green: 0 8px 30px rgba(34,197,94,0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-primary: 'Inter', sans-serif;
  --font-arabic: 'Noto Sans Arabic', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--dark-700);
  line-height: 1.7;
  overflow-x: hidden;
}
body[data-lang="ar"] {
  font-family: var(--font-arabic);
  direction: rtl;
}
body[data-lang="ar"] .nav-links { direction: rtl; }
body[data-lang="ar"] .hero-content { text-align: right; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-padding { padding: 100px 0; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark-900);
  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; }
.preloader-logo {
  font-size: 2.5rem; font-weight: 900; letter-spacing: -1px;
  margin-bottom: 20px;
}
.preloader-logo .logo-eco { color: var(--white); }
.preloader-logo .logo-flow { color: var(--green-500); }
.preloader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.preloader-progress {
  height: 100%; width: 0;
  background: var(--gradient-green);
  border-radius: var(--radius-full);
  animation: loadProgress 2s ease forwards;
}
@keyframes loadProgress { to { width: 100%; } }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 2px 40px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(34,197,94,0.1);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-green);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
  box-shadow: var(--shadow-green);
}
.logo-icon.small { width: 30px; height: 30px; font-size: 0.8rem; }
.logo-text { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.5px; }
.logo-text .eco { color: var(--white); }
.logo-text .flow { color: var(--green-400); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--green-400);
  background: rgba(34,197,94,0.1);
}

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

.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem; font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  background: none; border: none;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--green-500);
  color: white;
}

.btn-outline-nav {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
  transition: var(--transition);
}
.btn-outline-nav:hover {
  border-color: var(--green-400);
  color: var(--green-400);
}
.btn-primary-nav {
  background: var(--gradient-green);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-green);
}
.btn-primary-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(34,197,94,0.4);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(34,197,94,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(14,184,166,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(59,130,246,0.07) 0%, transparent 60%);
}
.hero-particles {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
}
.hero-wave svg { width: 100%; height: 200px; }

.hero-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding-top: 40px; padding-bottom: 80px;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green-400);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-green);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 700;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(34,197,94,0.45); }
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 600;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.btn-hero-outline:hover { border-color: var(--green-400); color: var(--green-400); background: rgba(34,197,94,0.08); }

.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.83rem;
}
.trust-item i { color: var(--green-400); }

/* Dashboard Mockup */
.hero-visual { position: relative; }
.dashboard-mockup {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,197,94,0.1);
}
.mockup-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mockup-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.mockup-title { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-left: 8px; }
.mockup-body { padding: 20px; }

.mock-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mock-stat-card {
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex; gap: 10px; align-items: center;
}
.mock-stat-card.green { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.2); }
.mock-stat-card.blue { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.2); }
.mock-stat-card.orange { background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.2); }
.mock-stat-icon { font-size: 1.3rem; }
.mock-stat-card.green .mock-stat-icon { color: var(--green-400); }
.mock-stat-card.blue .mock-stat-icon { color: var(--blue-400); }
.mock-stat-card.orange .mock-stat-icon { color: #fb923c; }
.mock-stat-info { display: flex; flex-direction: column; }
.mock-stat-info .mock-num { font-size: 1.2rem; font-weight: 800; color: white; }
.mock-stat-info p { font-size: 0.68rem; color: rgba(255,255,255,0.5); margin-top: 1px; }

.mock-chart-area {
  display: flex; align-items: flex-end; gap: 8px;
  height: 90px; padding: 10px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.mock-chart-bar {
  flex: 1;
  background: rgba(34,197,94,0.15);
  border-radius: 4px 4px 0 0;
  height: var(--h);
  position: relative;
  transition: var(--transition);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
}
.mock-chart-bar.active { background: rgba(34,197,94,0.5); }
.mock-chart-bar:hover { background: rgba(34,197,94,0.4); }
.mock-chart-bar span { font-size: 0.55rem; color: rgba(255,255,255,0.4); }

.mock-activity { display: flex; flex-direction: column; gap: 8px; }
.mock-activity-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; color: rgba(255,255,255,0.55);
}
.activity-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.activity-dot.green { background: var(--green-400); }
.activity-dot.blue { background: var(--blue-400); }
.activity-dot.orange { background: #fb923c; }

/* Float cards */
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  color: white; font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: floatCard 3s ease-in-out infinite alternate;
}
.float-card i { color: var(--green-400); }
.float-card-1 { top: 10%; left: -15%; animation-delay: 0s; }
.float-card-2 { bottom: 20%; right: -10%; animation-delay: 1.5s; }
@keyframes floatCard {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

/* Scroll arrow */
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s ease infinite;
  transition: var(--transition);
}
.hero-scroll a:hover { border-color: var(--green-400); color: var(--green-400); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Logos Band ---------- */
.logos-band {
  background: var(--gray-100);
  padding: 32px 0;
  overflow: hidden;
}
.logos-text {
  text-align: center;
  font-size: 0.8rem; color: var(--gray-400);
  font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 20px;
}
.logos-track { overflow: hidden; }
.logos-slide {
  display: flex; gap: 48px; align-items: center;
  animation: scrollLogos 20s linear infinite;
  width: max-content;
}
.logo-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--gray-400); font-weight: 700; font-size: 0.9rem;
  white-space: nowrap; opacity: 0.6;
  transition: var(--transition);
}
.logo-item:hover { opacity: 1; color: var(--green-600); }
.logo-item i { font-size: 1.1rem; }
@keyframes scrollLogos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-700);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px;
  border: 1px solid var(--green-100);
}
.section-tag.light {
  background: rgba(34,197,94,0.12);
  color: var(--green-400);
  border-color: rgba(34,197,94,0.2);
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--dark-700);
  margin-bottom: 16px;
}
.section-header.light .section-title { color: white; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header.light .section-subtitle { color: rgba(255,255,255,0.65); }

/* ---------- About Section ---------- */
.about-section { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-img-wrapper {
  position: relative;
  height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.about-circle-1 {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
  animation: pulseCircle 3s ease-in-out infinite;
}
.about-circle-2 {
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  border: 1.5px dashed rgba(34,197,94,0.3);
  animation: rotateCircle 20s linear infinite;
}
.about-main-img {
  width: 160px; height: 160px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(34,197,94,0.35);
  position: relative; z-index: 2;
}
.about-icon-big { font-size: 4rem; color: white; }
.about-badge-1, .about-badge-2 {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  z-index: 3;
}
.about-badge-1 { top: 10%; right: 0; }
.about-badge-2 { bottom: 10%; left: 0; }
.about-badge-1 i, .about-badge-2 i { color: var(--green-500); font-size: 1.2rem; }
.about-badge-1 strong, .about-badge-2 strong { display: block; font-weight: 800; color: var(--dark-700); }
.about-badge-1 span, .about-badge-2 span { font-size: 0.75rem; color: var(--gray-500); }
@keyframes pulseCircle {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes rotateCircle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about-content h3 {
  font-size: 1.2rem; font-weight: 800; margin-bottom: 16px;
  color: var(--dark-700);
}
.problem-list { margin-bottom: 30px; }
.problem-list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--gray-500); font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.problem-list li i { color: #ef4444; flex-shrink: 0; }
.about-solution { margin-bottom: 30px; }
.about-solution p { color: var(--gray-500); line-height: 1.8; }
.about-goals {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.goal-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.goal-icon {
  width: 38px; height: 38px;
  background: var(--gradient-green);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem; flex-shrink: 0;
}
.goal-item p { font-size: 0.85rem; font-weight: 600; color: var(--dark-600); }

/* ---------- Services Section ---------- */
.services-section {
  background: linear-gradient(180deg, #f8fffe 0%, var(--white) 100%);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-green);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card.featured {
  background: linear-gradient(135deg, #0d1424, #0f2a1a);
  border-color: rgba(34,197,94,0.2);
  color: white;
}
.service-card.featured::before { opacity: 1; }
.service-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--gradient-green);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
}
.service-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-icon-wrap.green { background: rgba(34,197,94,0.12); color: var(--green-500); }
.service-icon-wrap.blue { background: rgba(59,130,246,0.12); color: var(--blue-500); }
.service-icon-wrap.purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.service-icon-wrap.orange { background: rgba(249,115,22,0.12); color: #f97316; }
.service-icon-wrap.teal { background: rgba(20,184,166,0.12); color: var(--teal-500); }
.service-icon-wrap.red { background: rgba(239,68,68,0.12); color: #ef4444; }
.service-card h3 {
  font-size: 1.1rem; font-weight: 800;
  margin-bottom: 10px;
  color: inherit;
}
.service-card.featured h3 { color: white; }
.service-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 16px; }
.service-card.featured p { color: rgba(255,255,255,0.65); }
.service-features { margin-bottom: 20px; }
.service-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; padding: 5px 0;
  color: var(--gray-500);
}
.service-card.featured .service-features li { color: rgba(255,255,255,0.7); }
.service-features li i { color: var(--green-500); font-size: 0.75rem; flex-shrink: 0; }
.service-link {
  font-size: 0.85rem; font-weight: 700;
  color: var(--green-600);
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.service-card.featured .service-link { color: var(--green-400); }
.service-link:hover { gap: 10px; }

/* ---------- How It Works ---------- */
.how-section { background: var(--gray-100); }
.steps-container {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.steps-line {
  position: absolute;
  top: 50px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--green-400), var(--teal-400));
  z-index: 0;
}
.step-item {
  text-align: center; position: relative; z-index: 1;
}
.step-number {
  font-size: 0.7rem; font-weight: 800; color: var(--green-500);
  letter-spacing: 1px; margin-bottom: 8px;
}
.step-icon {
  width: 76px; height: 76px;
  background: white;
  border: 3px solid var(--green-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--green-500);
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.step-item:hover .step-icon {
  background: var(--gradient-green);
  color: white; border-color: transparent;
  transform: scale(1.1);
  box-shadow: var(--shadow-green);
}
.step-content h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--dark-700); }
.step-content p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

/* ---------- Stats Section ---------- */
.stats-section {
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}
.stats-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(34,197,94,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 50%, rgba(20,184,166,0.08) 0%, transparent 60%);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 20px; position: relative; z-index: 1;
}
.stat-card {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 36px 20px;
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2);
  transform: translateY(-4px);
}
.stat-icon { font-size: 1.8rem; color: var(--green-400); margin-bottom: 12px; }
.stat-num {
  font-size: 2.4rem; font-weight: 900; color: white;
  display: inline-block;
}
.stat-plus { font-size: 1.4rem; font-weight: 800; color: var(--green-400); display: inline; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* ---------- Target Section ---------- */
.target-section { background: var(--white); }
.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.target-card {
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  transition: var(--transition);
}
.target-card.enterprise {
  background: linear-gradient(135deg, var(--green-50), #e0fdf4);
  border: 1px solid var(--green-100);
}
.target-card.collector {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
}
.target-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.target-icon {
  width: 70px; height: 70px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.enterprise .target-icon { background: var(--gradient-green); color: white; }
.collector .target-icon { background: linear-gradient(135deg, var(--blue-500), #6366f1); color: white; }
.target-card h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 12px; color: var(--dark-700); }
.target-card p { color: var(--gray-500); margin-bottom: 24px; line-height: 1.7; }
.target-card ul { margin-bottom: 32px; }
.target-card ul li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.92rem; color: var(--dark-600);
}
.enterprise ul li i { color: var(--green-500); }
.collector ul li i { color: var(--blue-500); }
.target-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.95rem;
  background: var(--gradient-green);
  color: white;
  transition: var(--transition);
  box-shadow: var(--shadow-green);
}
.collector-btn {
  background: linear-gradient(135deg, var(--blue-500), #6366f1);
  box-shadow: 0 8px 30px rgba(59,130,246,0.3);
}
.target-btn:hover { transform: translateY(-2px); }

/* ---------- Map Section ---------- */
.map-section { background: var(--gray-100); }
.map-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}
#ecoflow-map {
  height: 520px;
  z-index: 1;
}
.map-legend {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 500;
}
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 500; }
.legend-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.legend-dot.green { background: #22c55e; }
.legend-dot.blue { background: #3b82f6; }
.legend-dot.orange { background: #f97316; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: white; }
.testimonials-swiper { padding-bottom: 50px !important; }
.testimonial-card {
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 36px;
  height: 100%;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.testi-stars { color: #fbbf24; margin-bottom: 16px; font-size: 0.9rem; }
.testi-text { color: var(--gray-500); line-height: 1.8; font-style: italic; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 48px; height: 48px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
}
.testi-author strong { display: block; font-weight: 800; color: var(--dark-700); }
.testi-author span { font-size: 0.8rem; color: var(--gray-500); }
.swiper-button-prev, .swiper-button-next {
  color: var(--green-500) !important;
}
.swiper-pagination-bullet-active {
  background: var(--green-500) !important;
}

/* ---------- Pricing ---------- */
.pricing-section { background: var(--gray-100); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.pricing-card.popular {
  background: linear-gradient(135deg, #0d1424, #0f2a1a);
  border-color: rgba(34,197,94,0.3);
  transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-6px); }
.pricing-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-green);
  color: white; font-size: 0.75rem; font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-header { margin-bottom: 28px; }
.pricing-header h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 12px; }
.pricing-card.popular .pricing-header h3 { color: white; }
.pricing-price { margin-bottom: 8px; }
.price-amount { font-size: 2rem; font-weight: 900; color: var(--green-600); }
.pricing-card.popular .price-amount { color: var(--green-400); }
.price-currency { font-size: 0.9rem; color: var(--gray-500); margin-left: 4px; }
.pricing-header p { font-size: 0.88rem; color: var(--gray-500); }
.pricing-card.popular .pricing-header p { color: rgba(255,255,255,0.55); }
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}
.pricing-card.popular .pricing-features li { border-color: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); }
.pricing-features li i.fa-check { color: var(--green-500); }
.pricing-features li i.fa-times { color: var(--gray-300); }
.pricing-features li.disabled { opacity: 0.5; }
.pricing-btn {
  display: block; text-align: center;
  padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.95rem;
  border: 1.5px solid var(--green-500);
  color: var(--green-600);
  transition: var(--transition);
}
.pricing-btn:hover { background: var(--green-50); }
.pricing-btn.popular-btn {
  background: var(--gradient-green);
  color: white; border-color: transparent;
  box-shadow: var(--shadow-green);
}
.pricing-btn.popular-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(34,197,94,0.4); }

/* ---------- Contact Section ---------- */
.contact-section { background: white; }
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 50px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px;
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--gradient-green);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
}
.contact-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; color: var(--dark-600); }
.contact-card p { font-size: 0.9rem; color: var(--gray-500); }
.contact-social { display: flex; gap: 12px; margin-top: 8px; }
.social-link {
  width: 42px; height: 42px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
}
.social-link:hover { background: var(--gradient-green); color: white; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--dark-600); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--dark-700);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gradient-green);
  color: white; padding: 15px 36px;
  border-radius: var(--radius-full);
  font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
  align-self: flex-start;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(34,197,94,0.45); }

/* ---------- Footer ---------- */
.footer { background: var(--dark-900); color: white; }
.footer-top { padding: 72px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer-logo span { font-size: 1.3rem; font-weight: 900; }
.footer-logo .eco { color: white; }
.footer-logo .flow { color: var(--green-400); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--green-500); border-color: var(--green-500); color: white; }
.footer-links h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; color: white; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
  font-size: 0.87rem; color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--green-400); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom i { color: #ef4444; }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  background: var(--gradient-green);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow-green);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Particles ---------- */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ---------- Auth Pages ---------- */
.auth-page {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  position: relative;
}
.auth-page .hero-gradient {
  position: absolute; inset: 0; pointer-events: none;
}
.auth-container {
  width: 100%; max-width: 500px;
  position: relative; z-index: 2;
}
.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  backdrop-filter: blur(20px);
}
.auth-header { text-align: center; margin-bottom: 36px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.auth-logo .logo-icon { width: 50px; height: 50px; font-size: 1.2rem; }
.auth-logo-text { font-size: 1.7rem; font-weight: 900; }
.auth-logo-text .eco { color: white; }
.auth-logo-text .flow { color: var(--green-400); }
.auth-title { font-size: 1.5rem; font-weight: 900; color: white; margin-bottom: 8px; }
.auth-subtitle { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form-group { display: flex; flex-direction: column; gap: 6px; }
.auth-form-group label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.auth-input-wrap { position: relative; }
.auth-input-wrap i.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.3); font-size: 0.9rem;
}
.auth-input-wrap input, .auth-input-wrap select {
  width: 100%; padding: 13px 14px 13px 40px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: white; font-size: 0.92rem; font-family: inherit;
  outline: none; transition: var(--transition);
}
.auth-input-wrap input::placeholder { color: rgba(255,255,255,0.25); }
.auth-input-wrap input:focus, .auth-input-wrap select:focus {
  border-color: var(--green-400);
  background: rgba(34,197,94,0.06);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.auth-input-wrap select option { background: var(--dark-800); color: white; }
.btn-auth {
  width: 100%; padding: 15px;
  background: var(--gradient-green);
  color: white; font-weight: 700; font-size: 1rem;
  border: none; border-radius: var(--radius-full);
  cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-green);
  margin-top: 8px;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(34,197,94,0.45); }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.25); font-size: 0.82rem; margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
}
.auth-link { text-align: center; font-size: 0.88rem; color: rgba(255,255,255,0.5); }
.auth-link a { color: var(--green-400); font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }
.auth-back { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.auth-back a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.55); font-size: 0.85rem;
  transition: var(--transition);
}
.auth-back a:hover { color: var(--green-400); }
.role-select {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 4px;
}
.role-option {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center; cursor: pointer;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
}
.role-option.selected {
  border-color: var(--green-400);
  background: rgba(34,197,94,0.1);
  color: var(--green-400);
}
.role-option i { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.role-option span { font-size: 0.82rem; font-weight: 600; }

/* ---------- Notification toast ---------- */
.toast {
  position: fixed; bottom: 80px; right: 30px;
  background: var(--dark-700);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transform: translateX(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid var(--green-500);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast i { color: var(--green-400); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrapper { height: 260px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-container { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--dark-900); flex-direction: column; align-items: center; justify-content: center; gap: 24px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 1000; }
  .btn-outline-nav, .btn-primary-nav { display: none; }
  .hero-container { gap: 30px; }
  .hero-title { font-size: 2rem; }
  .float-card-1, .float-card-2 { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-container { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .target-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-padding { padding: 60px 0; }
  .about-goals { grid-template-columns: 1fr; }
  .auth-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .mock-stats-row { grid-template-columns: 1fr; }
}

/* ---------- Custom Leaflet marker colors ---------- */
.custom-marker-green { filter: hue-rotate(90deg); }
.custom-marker-blue { filter: hue-rotate(200deg); }
.custom-marker-orange { filter: hue-rotate(30deg); }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Leaflet dark theme override */
.leaflet-tile { filter: brightness(0.9) contrast(1.05); }
