.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../../assets/hero/hero-bg.png") center / cover no-repeat;
  animation: hero-bg-in 1.2s ease both;
}

.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 24%,
    transparent 52%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
}

.hero__title {
  max-width: 32rem;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__sub {
  max-width: 27rem;
  margin-top: 1.1rem;
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero__cta,
.hero__ghost {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: filter 0.2s ease, border-color 0.2s ease;
}

.hero__cta {
  background: var(--accent);
  color: #06130a;
}

.hero__ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(244, 244, 245, 0.28);
}

@media (hover: hover) {
  .hero__cta:hover {
    filter: brightness(0.88);
  }

  .hero__ghost:hover {
    border-color: rgba(244, 244, 245, 0.6);
  }
}

/* Load animation */
@keyframes hero-bg-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title,
.hero__sub,
.hero__actions {
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__title {
  animation-delay: 0.45s;
}

.hero__sub {
  animation-delay: 0.55s;
}

.hero__actions {
  animation-delay: 0.65s;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .hero__title,
  .hero__sub,
  .hero__actions {
    animation: none;
  }
}

@media (max-width: 48rem) {
  .hero__bg {
    background-position: 72% center;
  }

  .hero__fade {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.45) 34%,
      transparent 62%
    );
  }
}
