/* Hero section */
.hero {
  display: grid;
  grid-column: 1 / -1;
  gap: 24px;
  text-align: center;
  align-items: center;
  justify-items: center;
  margin-top: env(safe-area-inset-top);
}

/* Hero content */
.hero-content {
  display: inherit;
  gap: 24px;
}

/* Hero rating */
.hero-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero describe */
.hero-describe {
  display: inherit;
  gap: 16px;
}

.hero-describe .hero-title {
  line-height: 100%;
  font-size: 27px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-title .hero-rotating {
  position: relative;
  display: inline-block;
  height: 40px;
  line-height: 100%;        
  overflow: hidden;         
  isolation: isolate;       
  z-index: 1;
}

.hero-title .hero-rotating span {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(100%);
  animation: headlineCycle 9s infinite;
}

.hero-title .hero-rotating span:nth-child(1) {
  animation-delay: 0s;
}
.hero-title .hero-rotating span:nth-child(2) {
  animation-delay: 3s;
}
.hero-title .hero-rotating span:nth-child(3) {
  animation-delay: 6s;
}

@keyframes headlineCycle {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  5% {
    opacity: 1;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  35% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.hero-describe p {
  margin: 0;
  color: var(--text-text-secondary-color);
}

/* Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero-buttons a {
  width: 100%;
  max-width: var(--btn-width);
}

/* Media (video) */
.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media video {
  z-index: -6;
}

.hero-video {
  max-width: 239px;
  max-height: 425px;
}

/* Tablet */
@media (min-width: 768px) {
  .hero {
    grid-column: 1 / 12;
    gap: 32px;
  }

  .hero-describe .hero-title {
    font-size: 32px;
  }

  .hero-buttons {
    margin-top: 8px;
    flex-direction: row;
    justify-content: center;
  }

  .hero-buttons a {
    flex: 1;
  }

  .hero-video {
    max-width: 332px;
    max-height: 590px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero {
    grid-column: 2 / 12;
    gap: 40px;
  }

  .hero-describe .hero-title {
    font-size: 48px;
  }

  .hero-title .hero-rotating {
    height: 48px;
  }

  .hero-describe {
    gap: 24px;
  }

  .hero-buttons {
    justify-content: center;
    margin-top: 16px;
  }

  .hero-buttons a {
    max-width: var(--btn-l-width);
    height: var(--btn-l-height);
    border-radius: var(--btn-l-radius);
  }
}

/* Desktop+ */
@media (min-width: 1440px) {
  .hero {
    grid-column: 3 / 11;
  }
}
