.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--navy-950);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide-bg {
  position: absolute;
  inset: 0;
}

/* Slide backgrounds */
.hero__slide--1 .hero__slide-bg {
  background: url('../assets/A.avif') center center / cover no-repeat;
}

.hero__slide--2 .hero__slide-bg {
  background: url('../assets/C.avif') center center / cover no-repeat;
}

.hero__slide--3 .hero__slide-bg {
  background: url('../assets/D.avif') center center / cover no-repeat;
}

/* Gradient overlay — heavier at bottom-left for text readability */
.hero__slide--1 .hero__slide-bg::after,
.hero__slide--2 .hero__slide-bg::after,
.hero__slide--3 .hero__slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 14, 30, 0.92) 0%, rgba(8, 14, 30, 0.6) 35%, rgba(8, 14, 30, 0.15) 65%, rgba(8, 14, 30, 0.08) 100%),
    linear-gradient(to right, rgba(8, 14, 30, 0.4) 0%, transparent 60%);
}

/* Decorative dot grid */
.hero__slide-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 1;
}

/* Hero content — bottom-left in LTR, bottom-right in RTL via logical properties */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--white);
  margin-inline-start: clamp(1.5rem, 5vw, 5rem);
  margin-inline-end: auto;
  padding-bottom: calc(var(--space-20) + var(--space-8));
  text-align: start;
}

/* Decorative accent line above badge */
.hero__badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--amber-400);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-full);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(245, 158, 11, 0.18);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.hero__title {
  color: var(--white);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__title .highlight {
  color: var(--amber-400);
  position: relative;
}

.hero__desc {
  color: var(--slate-300);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-start;
}

.hero__actions .btn {
  min-width: 180px;
  text-align: center;
}

/* Responsive hero */
@media (max-width: 767px) {
  .hero__content {
    max-width: 100%;
    padding-bottom: calc(var(--space-16) + var(--space-10));
  }

  .hero__title {
    font-size: var(--font-size-2xl);
  }

  .hero__desc {
    font-size: var(--font-size-base);
  }

  .hero__actions {
    gap: var(--space-3);
  }

  .hero__actions .btn--lg {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
  }
}

/* Hero controls */
.hero__controls {
  position: absolute;
  bottom: var(--space-10);
  left: 0;
  right: 0;
  z-index: 3;
}

.hero__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-base), width var(--transition-base);
  padding: 0;
}

.hero__dot.active {
  background-color: var(--amber-400);
  transform: scale(1);
  width: 28px;
  border-radius: 5px;
}

.hero__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  display: none;
  justify-content: space-between;
  padding: 0 var(--space-6);
  pointer-events: none;
}

.hero__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.hero__arrow:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero__arrow svg {
  width: 20px;
  height: 20px;
}

/* Page hero (non-slider) */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  padding: calc(80px + var(--space-20)) 0 var(--space-20);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.page-hero p {
  color: var(--slate-300);
  font-size: var(--font-size-lg);
  max-width: 600px;
  line-height: var(--line-height-relaxed);
}

.page-hero .hero__badge {
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--font-size-5xl);
  }

  .hero__arrows {
    display: flex;
  }

  .page-hero {
    padding: calc(80px + var(--space-24)) 0 var(--space-24);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--font-size-6xl);
  }
}
