/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  /* Color Palette - Premium Dark Blue Theme */
  --bg-deep: #070c19;          /* Deepest blue background */
  --bg-surface: #0b132b;       /* Surface/header/footer dark blue */
  --bg-surface-elev: #1c2541;  /* Elevated elements */
  
  --primary-accent: #3a86ff;   /* Vibrant blue brand color */
  --primary-glow: rgba(58, 134, 255, 0.15);
  --secondary-accent: #00b4d8; /* Cyan highlight */
  
  --text-primary: #f8f9fa;     /* Crisp white text */
  --text-secondary: #a2a8d3;   /* Slate/gray-blue text */
  --text-muted: #6c757d;       /* Muted text */
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(58, 134, 255, 0.4);
  
  /* Fonts */
  --font-sans: 'Vazirmatn', Tahoma, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASICS
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elev);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-accent);
}

/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: #2a75ec;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 134, 255, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-accent);
  background: rgba(58, 134, 255, 0.1);
  border: 1px solid rgba(58, 134, 255, 0.2);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

/* ==========================================
   HEADER STYLING
   ========================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(11, 19, 43, 0.85); /* Glassmorphic dark blue */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-normal);
}

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

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-image {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 2rem;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-accent);
  transition: width var(--transition-fast);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================
   MAIN HERO CONTENT
   ========================================== */
.main-content {
  flex: 1;
}

.hero-section {
  position: relative;
  padding: 8rem 2rem 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

.hero-container {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  z-index: 1;
}

.hero-copy {
  text-align: right;
}

.hero-section h1 {
  font-size: 4rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 30%, #a2a8d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 0 2.5rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
}

.hero-phone-slider {
  position: relative;
  width: min(100%, 300px);
  height: 535px;
  justify-self: center;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.42));
}

.phone-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  border: 8px solid #111827;
  border-radius: 40px;
  background: #111827;
  pointer-events: none;
  transform: translateX(22px) scale(0.96);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.phone-slide::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 50%;
  width: 34%;
  height: 24px;
  border-radius: 16px;
  background: #111827;
  transform: translateX(-50%);
}

.phone-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

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

.phone-slider-dots {
  position: absolute;
  z-index: 2;
  left: -1.6rem;
  right: auto;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform: translateY(-50%);
}

.phone-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.phone-slider-dot.is-active {
  background: var(--secondary-accent);
  transform: scale(1.45);
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.content-section {
  padding: 6rem 2rem;
}

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

.section-heading {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading .badge,
.contact-panel .badge {
  margin-bottom: 1rem;
}

.section-heading h2,
.contact-panel h2 {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-heading p,
.contact-panel p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-section {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-surface));
  border-top: 1px solid var(--border-light);
}

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

.feature-card,
.pricing-card {
  background: rgba(28, 37, 65, 0.55);
  border: 1px solid var(--border-light);
  border-radius: 16px;
}

.feature-card {
  padding: 2rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  color: var(--secondary-accent);
  background: rgba(0, 180, 216, 0.1);
  font-size: 1.35rem;
}

.feature-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-section {
  background: var(--bg-surface);
}

.pricing-card {
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pricing-carousel {
  max-width: 940px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  min-height: 430px;
}

.carousel-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  background: rgba(28, 37, 65, 0.58);
}

.carousel-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.carousel-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.carousel-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2.75rem;
}

.carousel-card-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.65rem;
}

.carousel-card-content > p:not(.plan-name):not(.plan-price) {
  color: var(--text-secondary);
}
}

.plan-name {
  color: var(--secondary-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.plan-price {
  margin: 0.75rem 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.plan-price span {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width var(--transition-fast), background var(--transition-fast);
}

.carousel-dot.is-active {
  width: 28px;
  border-radius: 8px;
  background: var(--primary-accent);
}

.contact-section {
  background: var(--bg-deep);
}

.product-slider-section {
  max-width: 1440px;
}

.product-slider {
  overflow: hidden;
  padding: 0.75rem 0 1.25rem;
}

.product-slider-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-slide {
  flex: 0 0 260px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.product-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.product-slider-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
}

.product-slider-button:hover {
  border-color: var(--primary-accent);
  background: var(--primary-accent);
}

.product-slider-dots {
  display: flex;
  gap: 0.5rem;
}

.product-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.product-slider-dot.is-active {
  background: var(--primary-accent);
  transform: scale(1.35);
}

/* ==========================================
   FOOTER STYLING
   ========================================== */
.app-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 4rem 2rem;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.footer-logo-image {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-contact {
  text-align: right;
}

.footer-address {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 500;
}

.footer-address-desc {
  margin-top: 0.5rem;
   font-size: 1rem;
   font-weight: 500;
}

.footer-phone {
  color: var(--text-primary);
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

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

@media (max-width: 600px) {
  .header-container {
    padding: 1rem;
  }
  
  .nav-menu {
    display: none; /* Can build a mobile menu overlay if interactive */
  }
  
  .hero-section {
    padding: 5rem 1rem 6rem;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }

  .hero-phone-slider {
    width: 240px;
    height: 430px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .content-section {
    padding: 4rem 1rem;
  }

  .section-heading h2,
  .contact-panel h2 {
    font-size: 2rem;
  }

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

  .carousel-track {
    min-height: 610px;
  }

  .carousel-card {
    grid-template-columns: 1fr;
  }

  .carousel-card img {
    min-height: 220px;
    height: 220px;
  }

  .carousel-card-content {
    padding: 1.75rem;
  }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

}
