@import url('https://cdn.jsdelivr.net/npm/reset-css@5.0.2/reset.min.css');

/* base */
@import './base/variables.css';
@import './base/z-indexes.css';
@import './base/fonts.css';
@import './base/typography.css';
@import './base/animations.css';

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-400);
  font-family: 'IBM Plex Sans', serif;
  color: var(--text-75);
  font-style: normal;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

.container {
  padding: 0 20px;
}

/* util classes */
.u-gold-gradient-text {
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* page styles */
.onboarding {
  position: relative;
  max-width: var(--app-container-width);
  margin: 0 auto;
  padding: 45px 0 26px;

  .the-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;

    .sign-in {
      display: flex;
      align-items: center;

      .sign-in__label {
        margin-right: 10px;
        border-radius: 8px;
        color: var(--text-50);
      }

      .sign-in__link {
        display: block;
        padding: 10px 16px;
        border: 2px solid var(--gray-200);
        border-radius: 8px;
        color: var(--text-25);
      }
    }
  }

  .hero {
    position: relative;
    margin-bottom: 32px;

    &::before {
      content: '';
      z-index: var(--z-index-negative);
      position: absolute;
      right: 50%;
      transform: translateX(50%);

      display: block;
      width: 60.53%;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
      opacity: 0.4;
      background: linear-gradient(156deg, #566ff3 11.51%, #6853e8 42.53%, #ab59ff 87.72%);
      filter: blur(72px);
    }

    .hero__title {
      margin-bottom: 16px;
      text-align: center;

      .u-gold-gradient-text {
        display: block;
        bottom: 8px;
      }
    }

    .hero__video {
      --horizontal-padding: 27px;

      position: relative;
      padding: 0 var(--horizontal-padding);

      video {
        border-radius: 12px;
        border: 1px solid var(--Button-Chat, #143edd);
        box-shadow: 0px 0px 20px 0px rgba(119, 68, 247, 0.4);

        @media (min-width: 320px) {
          min-height: 400px;
        }
        @media (min-width: 375px) {
          min-height: 496px;
        }
        @media (min-width: 425px) {
          min-height: 584px;
        }
        @media (min-width: 480px) {
          min-height: 682px;
        }
      }

      .sound-button {
        position: absolute;
        right: calc(var(--horizontal-padding) + 10px);
        bottom: 10px;
        background: var(--bg-400);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        border: none;
        cursor: pointer;

        .on-icon {
          display: none;
        }
      }

      .sound-button--on {
        .on-icon {
          display: block;
        }

        .off-icon {
          display: none;
        }
      }
    }
  }

  .benefits {
    .benefits__title {
      margin-bottom: 24px;
    }

    .list {
      margin-bottom: 24px;
      .list__item {
        display: flex;
        align-items: center;
        position: relative;
        margin-bottom: 8px;
        color: var(--text-25);

        &::before {
          content: '';
          display: block;
          width: 18px;
          height: 18px;
          margin-right: 6px;
          background: url('../icons/gold-checkmark.svg') center center/cover no-repeat;
        }
      }
    }
  }

  .stars-decoration {
    .stars-decoration__star {
      position: absolute;
      display: block;
      width: 32px;
      height: 32px;
      animation: star-fade 6s linear infinite alternate;

      &:nth-last-of-type(1) {
        top: 0.76%;
        left: 21px;
      }
      &:nth-last-of-type(2) {
        top: 18.93%;
        right: 21px;
      }
      &:nth-last-of-type(3) {
        top: 37.01%;
        left: 4px;
      }
    }
  }

  .footer {
    position: sticky;
    bottom: 0;
    padding: 5px 0 15px;
    background-color: var(--bg-400);
    box-shadow: var(--bg-400) 0px -20px 15px;

    .buttons {
      button {
        width: 100%;
        cursor: pointer;

        &:not(:last-of-type) {
          margin-bottom: 8px;
        }
      }

      .buttons__purple {
        padding: 16px 5px;
        background: var(--blue-purple-gradient);
        border: none;
        border-radius: 8px;

        text-transform: uppercase;
        color: var(--text-25);
        transition: all 0.25s ease;
        animation: pulse 1.5s infinite alternate;

        &:hover {
          box-shadow: 0px 12px 16px 0px #21214233;
        }
      }
    }
  }
}
