.hero {
  background: var(--background-light);
  padding-top: 120px;
  
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: relative;
  border-radius: 0px;
  margin: 10px;
  background: var(--background-light);

  /* padding: 180px 160px; */
  /* min-height: 1193px; */
  /* padding: 100px 160px 127px; */
  padding: 60px 40px;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  margin-bottom: 56px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.26;
  color: var(--text-primary);
  margin-bottom: 30px;
  max-width: 990px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 30px;
  text-align: center;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.26;
  color: var(--text-secondary);
  max-width: 658px;
  margin: 0 auto 60px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 56px;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 5;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #eaeaea;
  border-radius: 59px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-primary);
}

.badge-icon {
  width: 21px;
  height: 21px;
}

/* Container: centers and limits max width */
.hero-images-slider {
  position: relative;
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  margin-top: 0px;
}

.hero-images {
  overflow: hidden;
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.hero-images-track {
  display: flex;
  transition: transform 0.5s;
  will-change: transform;
}

.hero-images .app-screenshot {
  min-width: 25%;
  object-fit: contain;
  height: 600px;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  height: 60px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-arrow.prev {
  left: -20px; /* Move arrow just outside the slider area */
}

.hero-slider-arrow.next {
  right: -20px; /* Move arrow just outside the slider area */
}

@media (max-width: 900px) {
  .hero-images-slider,
  .hero-images {
    width: 100%;
    max-width: 100%;
  }
  .hero-slider-arrow.prev {
    left: 0;
  }
  .hero-slider-arrow.next {
    right: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
  }
  
  .hero-background {
    padding: 40px 25px;
    margin: 5px;
  }
  
  .hero-images {
    width: 400px;
  }
  .hero-images .app-screenshot {
    min-width: 100% !important;
    height: 400px;
  }
}

.hero-images-swiper .swiper-pagination {
  bottom: 10px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}
.hero-images-swiper .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  margin: 0 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: background 0.2s;
}
.hero-images-swiper .swiper-pagination-bullet-active {
  background: #ff4d4f;
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
  .hero-images-swiper .swiper-pagination {
    margin-bottom: 60px !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  .hero-badges {
    margin-top: 20px !important;
    margin-bottom: 40px !important;
    position: relative !important;
    z-index: 5 !important;
  }
}

@media (max-width: 768px) {
  @supports (-webkit-appearance: none) {
    .hero-images-swiper .swiper-pagination {
      margin-bottom: 50px !important;
    }
    
    .hero-badges {
      margin-top: 30px !important;
      margin-bottom: 40px !important;
    }
  }
}
@media (max-width: 768px) {
  .hero-images-swiper .swiper-pagination {
    bottom: 5px;
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
    padding: 0 20px;
    margin-bottom: 10px;
    margin-top: 5px;
    position: relative;
    z-index: 10;
  }
  .hero-images-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    display: inline-block;
  }
  .hero-images-swiper .swiper-pagination-bullet-active {
    background: #ff4d4f;
  }
}

.hero-images-swiper .swiper-wrapper {
  /* Swiper handles horizontal flex automatically */
}

.hero-images-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  /* No width or margin here, let Swiper handle it */
}

.hero-images-swiper .app-screenshot {
  width: 100%;
  height: 600px;
  object-fit: contain;
  display: block;
}

/* Landscape orientation - bigger banners */
@media (orientation: landscape) and (min-width: 769px) {
  .hero-images-swiper .app-screenshot {
    height: 700px;
  }
  
  .hero-images-slider {
    width: 1200px;
  }
}

@media (max-width: 900px) {
  .hero-images-swiper .app-screenshot {
    height: 350px;
  }
}

