.hero {
  padding-top: 30px;
  padding-bottom: var(--spacing-xl, 2rem);
  overflow: hidden;
  text-align: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md, 1rem);
  width: 100%;
}

.hero__welcome {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs, 0.5rem);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-blue, #1a1a2e);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-blue, #1a1a2e);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.2s;
  max-width: 700px;
}

.hero__description {
  font-size: 1.25rem;
  color: var(--secondary-purple, #4A63F6);
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.4s;
}

.hero__title .color-primary {
  color: #112D4E;
}

.hero__title .color-secondary {
  color: #112D4E;
}

.btn--hero {
  background-color: var(--white, #ffffff);
  color: var(--navy-blue, #1a1a2e);
  font-size: 1.125rem;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.6s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn--hero:hover {
  background-color: var(--off-white, #f8f9fa);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn--large {
  min-width: 200px;
}

.hero__download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.8s;
  scroll-margin-top: 4.5rem;
}

/* تجنّب إطار التركيز الافتراضي عند الانتقال عبر الرابط #app-download */
.hero__download:focus {
  outline: none;
}

.hero__download-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-blue, #1a1a2e);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.hero__download-label::before {
  content: '';
  display: block;
  width: 120px;
  height: 1px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.15), transparent);
}

.hero__download-label::after {
  content: '';
  display: block;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.15), transparent);
}

.hero__store-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-badge img {
  height: 38px;
  width: auto;
  display: block;
  max-width: none;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.hero__image {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero__app-preview {
  width: 100%;
  height: auto;
}

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

@media (max-width: 1024px) {
  .hero {
    padding-top: 15px;
  }

  .hero__title {
    font-size: 2.75rem;
  }
  
  .hero__description {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 10px;
  }

  .hero__content {
    gap: 0;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__image {
    max-width: 400px;
    margin-top: -10px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }
  
  .hero__description {
    font-size: 1rem;
  }
  
  .hero__welcome {
    font-size: 1.1rem;
  }
  
  .btn--hero {
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }

  .store-badge img {
    height: 34px;
  }

  .hero__image {
    margin-top: -20px;
  }
}