:root {
  /* Primary */
  --orange-400: hsl(12, 88%, 59%);
  --blue-950: hsl(228, 39%, 23%);

  /* Neutral */
  --gray-950: hsl(233, 12%, 13%);
  --orange-50: hsl(13, 100%, 96%);
  --gray-50: hsl(0, 0%, 98%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.no-scroll {
  overflow: hidden;
}

body {
  background-color: var(--gray-50);
  font-family: "Be Vietnam Pro", sans-serif;
  p {
    color: hsl(226.67deg 5.52% 68.04%);
    line-height: 1.6;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--blue-950);
}
button {
  cursor: pointer;
  &:hover {
    opacity: 0.8;
  }
}
.container {
  position: relative;
  overflow-x: hidden;
}
header {
  padding: 1rem 2rem;
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  .cta-button {
    display: none;
  }
  .menu-toggle {
    border: none;
    background: none;
  }
  .menu-toggle.active {
    position: relative;
    z-index: 101;
  }
  nav {
    pointer-events: none;
    transform: translateY(-231px);
    opacity: 0;
    position: absolute;
    width: 100vw;
    left: 0;
    padding: 5rem 2rem;
    height: 100dvh;
    top: 0;
    background-image: linear-gradient(to bottom, #ffffff00, #00000063);
    transition: all 0.3s ease-in-out;
    z-index: 100;
    ul {
      background: white;
      text-align: center;
      padding: 2rem;
      border-radius: 8px;
      list-style: none;
      li {
        margin-bottom: 2rem;
        a {
          text-decoration: none;
          color: var(--blue-950);
          font-weight: 700;
        }
      }
    }
  }
  nav.open {
    transform: translateY(0);
    opacity: 1;
  }
}
.hero {
  text-align: center;
  padding: 2rem;
  position: relative;
  padding-bottom: 5rem;
  h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  p {
    margin-bottom: 1.5rem;
  }
  .cta-button {
    background-color: var(--orange-400);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    padding: 1rem 2rem;
    border-radius: 31px;
    color: white;
    font-weight: 700;
  }
  .bg-hero {
    width: 339px;
    position: absolute;
    bottom: 0px;
    left: 236px;
    z-index: -1;
    img {
      width: 100%;
    }
  }
}
.stats {
  padding: 1rem;
  img {
    width: 100%;
  }
}
.bg-header {
  position: absolute;
  top: -162px;
  right: -113px;
  z-index: -1;
  img {
    width: 418px;
  }
}
.features {
  text-align: center;
  padding: 2rem;
  h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  p {
    margin-bottom: 2rem;
  }

  .feature-number {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    background-color: var(--orange-50);
    border-radius: 30px 0 0 30px;
    margin-bottom: 1rem;
    p {
      background-color: var(--orange-400);
      padding: 0.6rem 2rem;
      border-radius: 50px;
      color: white;
      font-weight: 700;
      margin: 0;
    }
    &::before {
      content: "";
      width: 100vw;
      height: 100%;
      right: -34vw;
      z-index: -1;
      background-color: var(--orange-50);
      position: absolute;
    }
  }
  .feature-content {
    text-align: left;
  }
}
.testimonial {
  text-align: center;
  padding: 2rem;
  h2 {
    margin-bottom: 5rem;
    font-size: 2rem;
  }
  .cta-button {
    background-color: var(--orange-400);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    padding: 1rem 2rem;
    border-radius: 31px;
    color: white;
    font-weight: 700;
  }
}
.testimonial-card {
  width: 100%;
  touch-action: pan-y;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  padding-top: 3rem;
  user-select: none;
  transition: transform 0.3s ease-out;
}
.card-container {
  display: flex;
  overflow: hidden;
}
.testimonial-item {
  position: relative;
  padding: 2rem;
  min-height: 290px;
  flex: 0 0 100%;
  padding-top: 3rem;
  background-color: rgb(126 122 122 / 8%);
  margin-bottom: 2rem;
  transition: transform 0.3s ease-out;
  .testimonial-name {
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--blue-950);
  }
  .testimonial-avatar {
    position: absolute;
    top: -37px;
    left: 50%;
    transform: translateX(-50%);
    img {
      width: 70px;
    }
  }
}
.testimonial-item.active {
  z-index: 2;
  opacity: 1;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  .dot {
    width: 10px;
    height: 10px;
    border: 1px solid var(--orange-400);
    border-radius: 50%;
    margin: 0 0.2rem;
    cursor: pointer;
    &.active {
      background-color: var(--orange-400);
    }
  }
}
.cta-section {
  text-align: center;
  padding: 2rem;
  background-image: url(images/bg-simplify-section-mobile.svg);
  background-color: var(--orange-400);
  background-repeat: no-repeat;
  background-position: left;
  color: white;
  background-size: contain;
  h2 {
    font-size: 2.5rem;
    color: var(--gray-50);
    margin-bottom: 2rem;
  }
  .cta-button-white {
    background-color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    padding: 1rem 2rem;
    border-radius: 31px;
    color: var(--orange-400);
    font-weight: 700;
  }
}
footer {
  background-color: var(--gray-950);
  text-align: center;
  padding: 2rem;
  .email-signup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
    margin-bottom: 2rem;
    input {
      padding: 1rem 2rem;
      border-radius: 2rem;
      border: none;
    }
    p {
      grid-row: 2;
      color: red;
      font-size: 12px;
      visibility: hidden;
    }
    p.activo {
      visibility: visible;
    }
    button {
      background-color: var(--orange-400);
      border: none;
      padding: 1rem;
      border-radius: 10px;
      padding: 1rem 2rem;
      border-radius: 31px;
      color: white;
      font-weight: 700;
    }
  }
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    padding: 2rem;
    ul {
      list-style: none;
      li {
        margin-bottom: 1rem;
        a {
          color: hsl(226.67deg 5.52% 68.04%);
          font-size: 1rem;
          text-decoration: none;
          &:hover {
            color: var(--orange-400);
          }
        }
      }
    }
  }
  .social-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    a {
      img {
        width: 2rem;
        height: 2rem;
        cursor: pointer;

        &:hover {
          filter: invert(52%) sepia(47%) saturate(2111%) hue-rotate(331deg)
            brightness(96%) contrast(92%);
        }
      }
    }
  }
}
.footer-logo {
  margin-bottom: 2rem;
}
.copyright {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: hsl(226.67deg 5.52% 68.04%);
}
@media (min-width: 768px) {
  .bg-header {
    img {
      width: 100%;
    }
  }
  .bg-hero {
    display: none;
  }
}

@media (min-width: 62.5rem) {
  .header {
    padding-top: 1.5rem;
    .header-container {
      .menu-toggle {
        display: none;
      }
      .cta-button {
        display: block;
        background-color: var(--orange-400);
        border: none;
        padding: 1rem;
        border-radius: 10px;
        padding: 0.7rem 2rem;
        border-radius: 31px;
        color: white;
        font-weight: 700;
      }
    }
    a {
      display: flex;
    }

    nav {
      pointer-events: all !important;
      position: relative;
      opacity: 1;
      transform: none;
      width: auto;
      height: auto;
      padding: 0;
      background: none;
      ul {
        padding: 0;
        display: flex;
        gap: 3rem;
        background: none;
        li {
          margin-bottom: 0;
          a {
            cursor: pointer;
            &:hover {
              color: gray;
            }
          }
        }
      }
    }
  }
  .hero {
    gap: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    .bg-header {
      position: absolute;
      top: -170px;
      right: -125px;
      z-index: -1;
      img {
        width: 582px;
      }
    }
    .main-content {
      grid-column: 1;
      grid-row: 1;
      text-align: left;
      h1{
        font-size: 5rem;
      }
    }
    .stats {
      grid-column: 2;
    }
    .bg-hero {
      display: none;
    }
  }
  .features {
    gap: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    .feature-header {
      text-align: left;
    }
    h2{
      font-size: 4rem;
    }
    .feature-number {
      background: none;
      &::before {
        display: none;
      }
    }
    .feature-content {
      p {
        padding-left: 6.5rem;
      }
    }
  }
  .testimonial {
    .testimonial-card {
      display: flex;
      gap: 0.5rem;
      margin-left: calc(-50vw + 50%);
      .testimonial-item {
        flex: 0 0 34%;
      }
    }
  }
  .cta-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: center;
    background-image: url(images/bg-simplify-section-desktop.svg);
    .cta-button-white {
      width: 160px;
      justify-self: end;
    }
  }
  footer {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    .email-signup {
      grid-column: 3;
    }
    .footer-content {
      grid-row: 1/3;
    }
    .social-icons {
      grid-column: 1;
      grid-row: 2;
      justify-content: center;
    }
    .footer-logo {
      grid-column: 1;
      grid-row: 1;
    }
    .copyright {
      margin-top: 0;
    }
  }
  .testimonial-dots {
    display: none;
  }
  .card-container {
    overflow: visible;
  }
}
