/* با برق ما — Design System */

:root {
  --color-primary: #0c4a6e;
  --color-primary-light: #0369a1;
  --color-primary-dark: #082f49;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-green: #10b981;
  --color-green-light: #34d399;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --glow-blue: 0 0 40px rgba(14, 165, 233, 0.3);
  --glow-green: 0 0 40px rgba(16, 185, 129, 0.3);
  --glow-orange: 0 0 40px rgba(245, 158, 11, 0.3);
}

.dark {
  --color-surface: #0f172a;
  --color-surface-alt: #1e293b;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: background-color 0.3s, color 0.3s;
}

/* Hero background animation */
.hero-bg {
  background: linear-gradient(135deg, #082f49 0%, #0c4a6e 30%, #065f46 70%, #082f49 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Electric grid pattern */
.electric-grid {
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Glow effects */
.glow-blue { box-shadow: var(--glow-blue); }
.glow-green { box-shadow: var(--glow-green); }
.glow-orange { box-shadow: var(--glow-orange); }

/* Card hover lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Animated counter */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-animate {
  animation: countUp 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Step connector line */
.step-connector {
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-green), transparent);
  transform: translateY(-50%);
}

/* Phone mockup */
.phone-mockup {
  border: 3px solid #1e293b;
  border-radius: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(255,255,255,0.1);
}

/* Testimonial carousel */
.testimonial-slide {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-content.open {
  max-height: 500px;
}

/* Navbar blur */
.navbar-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Navbar scroll state */
#navbar .nav-logo-title { color: #fff; }
#navbar .nav-logo-sub { color: rgb(203 213 225); }
#navbar .nav-link { color: rgb(51 65 85); }
#navbar .nav-menu-btn { color: #fff; }

#navbar.nav-scrolled .nav-logo-title { color: rgb(15 23 42); }
.dark #navbar.nav-scrolled .nav-logo-title { color: #fff; }
#navbar.nav-scrolled .nav-logo-sub { color: rgb(100 116 139); }
#navbar.nav-scrolled .nav-menu-btn { color: rgb(51 65 85); }
.dark #navbar.nav-scrolled .nav-menu-btn { color: rgb(226 232 240); }

@media (min-width: 1024px) {
  #navbar .nav-logo-title { color: rgb(15 23 42); }
  .dark #navbar .nav-logo-title { color: #fff; }
  #navbar .nav-logo-sub { color: rgb(100 116 139); }
  #navbar .nav-menu-btn { color: rgb(51 65 85); }
}

/* Pulse animation for CTA */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}
.pulse-cta {
  animation: pulse-glow 2s infinite;
}

/* Logo lightning bolt */
.logo-bolt {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

/* Client marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 30s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-surface-alt); }
::-webkit-scrollbar-thumb { background: var(--color-primary-light); border-radius: 4px; }
