.hero-section {
  /* Navbar free-trial link finishes ~1.72s (1.27s delay + 0.45s) */
  --hero-animate-start: 1.75s;
  /* Scroll-indicator enter: start + 1.12s delay + 0.45s duration */
  --hero-animate-end: 2.85s;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

@keyframes hero-badge-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  65% {
    transform: scale(1.01);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-slide-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

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

@keyframes hero-scroll-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero-content {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.1));
  opacity: 0;
  animation: hero-badge-pop 0.5s cubic-bezier(0.34, 1.45, 0.64, 1) var(--hero-animate-start) forwards;
}

.hero-badge-dot {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.hero-badge-ping {
  position: absolute;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: #4ade80;
  opacity: 0.75;
  animation: hero-badge-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--hero-animate-start) + 0.5s);
}

.hero-badge-core {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #22c55e;
}

@keyframes hero-badge-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-badge-text {
  font-size: 0.875rem;
  color: #d1d5db;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1.05;
  opacity: 0;
  animation: hero-slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--hero-animate-start) + 0.28s) forwards;
}

.hero-title-white {
  color: #fff;
}

.hero-title-gradient {
  background: linear-gradient(to right, #22d3ee, #67e8f9, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  font-size: 1.5rem;
  line-height: 1.35;
  color: #9ca3af;
  opacity: 0;
  animation: hero-slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--hero-animate-start) + 0.52s) forwards;
}

.hero-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: min(100%, 28rem);
  margin: 0 0 2.5rem;
}

.hero-btn-primary,
.hero-btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 3.5rem;
  padding: 1rem 2rem;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
}

.hero-btn-primary {
  color: #000;
  background: linear-gradient(to right, #06b6d4, #22d3ee);
  cursor: pointer;
  opacity: 0;
  animation: hero-slide-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--hero-animate-start) + 0.78s) forwards;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn-primary:hover {
  background: linear-gradient(to right, #22d3ee, #67e8f9);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

.hero-btn-discord {
  color: #22d3ee;
  text-decoration: none;
  background: transparent;
  border-color: #06b6d4;
  opacity: 0;
  animation: hero-slide-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--hero-animate-start) + 0.94s) forwards;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-btn-discord:hover {
  border-color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 4.6875rem;
  left: 50%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  opacity: 0;
  animation:
    hero-scroll-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--hero-animate-start) + 1.12s) forwards,
    hero-scroll-bounce 2s ease-in-out calc(var(--hero-animate-start) + 1.57s) infinite;
}

.hero-scroll-indicator button {
  display: flex;
  border: none;
  background: transparent;
  color: #6b7280;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.hero-scroll-indicator button:hover {
  opacity: 1;
}

.hero-scroll-indicator.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator.is-restoring {
  visibility: visible;
  pointer-events: auto;
  animation:
    hero-scroll-restore 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    hero-scroll-bounce 2s ease-in-out 0.45s infinite;
}

.hero-scroll-indicator.is-dismissed {
  pointer-events: none;
  animation: hero-scroll-dismiss 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-scroll-indicator.is-dismissed.is-hidden {
  visibility: hidden;
}

.hero-scroll-indicator svg {
  width: 2rem;
  height: 2rem;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-0.625rem);
  }
}

@keyframes hero-scroll-dismiss {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  to {
    opacity: 0;
    transform: translateX(-50%) translateY(0.5rem);
  }
}

@keyframes hero-scroll-restore {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Hidden below desktop nav breakpoint (see base.css). */
@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-title,
  .hero-subtitle,
  .hero-btn-primary,
  .hero-btn-discord,
  .hero-scroll-indicator {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .hero-scroll-indicator {
    transform: translateX(-50%);
  }

  .hero-badge-ping {
    animation: none;
  }

  .hero-scroll-indicator.is-active,
  .hero-scroll-indicator.is-restoring {
    opacity: 1;
    animation: none;
    transform: translateX(-50%);
  }

  .hero-scroll-indicator.is-dismissed {
    opacity: 0;
    animation: none;
  }

  .hero-scroll-indicator.is-dismissed.is-hidden {
    visibility: hidden;
  }
}
