html.dark {
  --cta-background-color: rgba(0, 0, 25, 0.8);
}

html.light {
  --cta-background-color: var(--light-blue);
}

section.hero {
  background: url('/assets/images/background/wave.svg') no-repeat center center;
  background-size: 500% 100%;
  animation: heroShift 40s ease-out forwards;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.4);
}

div.cta {
  background-color: var(--cta-background-color);
  max-width: 60ch;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  opacity: 0;
  animation: fadeInCta 1.5s ease forwards;
}

div.cta h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

div.cta .lead {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

div.cta a.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: rgb(20, 120, 223);
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

div.cta a.cta-button:hover {
  background-color: var(--accent-color);
}

ul.cta-products {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(200px);
  animation: fadeInProducts 1.5s ease forwards;
  list-style-type: none;
}


ul.cta-products li a {
  color: var(--text-color);
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  background-color: var(--cta-background-color);

  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;

  padding: var(--padding);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;

}

ul.cta-products li a:hover {
  color: white;
  background-color: var(--accent-color);
}

@keyframes heroShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInCta {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInProducts {
  0% {
    transform: translateY(200px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 950px) {
  main > section {
    width: 90vw;
    margin: 50px 0;
  }
  article section.hero {
    flex-direction: column;
    gap: 1rem;
  }
  ul.cta-products {
    flex-direction: column;
    gap: .7rem;
  }
  ul.cta-products li a {
    width: 500px;
}

@media (max-width: 550px) {
  ul.cta-products li a {
    width: 325px;
  }
}
