/* #region HERO SECTION */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 196px;
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 883px;
    background: rgba(123, 47, 255, 0.2);
    filter: blur(248px);
    width: 883px;
    height: 852px;
  }
}

.hero__wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}

.hero__content {
  align-self: start;
  max-width: 490px;
  margin-top: 62px;
  z-index: 1;
}

.hero__title {
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero__desc {
  margin-bottom: 28px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
  min-width: 371px;

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0b005c;
    filter: blur(225px);
  }
}

.hero__man-img {
  max-height: 556px;
  filter: drop-shadow(0 0 20px rgba(100, 100, 255, 0.3));
}

.hero__features {
  align-self: end;
  flex-shrink: 0;
  margin-bottom: 63px;
  z-index: 1;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.features-list__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.features-list__text {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.24px;
  text-transform: capitalize;
  word-break: break-word;
}

@media (width < 1200px) {
  .hero {
    padding-top: 180px;
  }

  .hero__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hero__visual {
    grid-column: 1 span;
    grid-row: 2 span;
    margin-top: 80px;
    justify-content: flex-end;
  }
  .hero__content {
    margin-top: 0;
  }
  .hero__features {
    margin-bottom: 0;
    align-self: start;
  }
}

@media (width < 991px) {
  .hero__wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero__content {
    margin-bottom: 45px;
  }

  .hero__visual {
    order: 3;
    margin-top: 0;
  }
}
@media (width < 768px) {
  .hero {
    padding-top: 158px;
  }
  .features-list__text {
    font-size: 20px;
  }
}

/* #endregion HERO SECTION */

/* #region MARQUEE SECTION */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  padding-block: 34px;
  user-select: none;
  z-index: 2;

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }

  &::before {
    left: 0;
    background: linear-gradient(to right, #050510, transparent);
  }

  &::after {
    right: 0;
    background: linear-gradient(to left, #050510, transparent);
  }
}

.marquee__track {
  display: flex;
  width: fit-content;
  transition: none;
  will-change: transform;
}

.marquee__content-unit {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee__item {
  color: #c6c6c6;
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 22px;

  &.text-gradient {
    background: linear-gradient(90deg, #8a2be2, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.marquee__star {
  color: #6246b2;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

@media (width < 768px) {
  .marquee {
    &::before,
    &::after {
      display: none;
    }
  }
}

/* #endregion MARQUEE SECTION */

/* #region ABOUT CALCULATOR */
.about {
  padding-block: 150px;
}
.about__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.about__title {
  color: #fafafa;
  margin-bottom: 30px;
}
.about__desc {
  font-weight: 600;
  margin-bottom: 30px;
}
.about__img {
  position: relative;
  max-width: 500px;
  width: 100%;
  flex-shrink: 0;

  &::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 884px;
    height: 852px;
    z-index: -1;
    border-radius: 884px;
    background: rgba(123, 47, 255, 0.2);
    filter: blur(248px);
  }

  img {
    max-height: 508px;
    animation: levitation 5s infinite ease-in-out;
    filter: drop-shadow(0 15px 15px rgba(106, 76, 255, 0.3));
  }
}

.about__content {
  max-width: 591px;
  width: 100%;
}
.about__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;

  li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fafafa;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.5;
  }
}

.about__figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  text-align: center;
  flex-shrink: 0;

  span {
    background: radial-gradient(
      408% 48% at 50% 41%,
      #7664ff 0%,
      #5c4dcb 50%,
      #413697 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  &::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid #7664ff;
    width: 36px;
    height: 36px;
    rotate: -44deg;
    background: #312e3f;
    z-index: -1;
    translate: -50% -50%;
  }
}

@media (width < 1200px) {
  .about {
    padding-block: 120px;
  }
  .about__wrapper {
    gap: 32px;
  }
  .about__list {
    margin-bottom: 32px;
  }
}
@media (width < 991px) {
  .about {
    padding-block: 90px;
  }
  .about__wrapper {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .about__img {
    align-self: center;
  }
  .about__list {
    margin-bottom: 40px;
  }
}

@media (width < 768px) {
  .about__list {
    li {
      font-size: 18px;
    }
  }
}

/* #endregion ABOUT CALCULATOR */

/* #region ADVANTAGES SECTION  */
.advantages {
  padding-bottom: 150px;
}

.advantages__wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.advantages__content {
  max-width: 591px;
  width: 100%;
}

.advantages__title {
  color: #fafafa;
  margin-bottom: 30px;
}

.advantages__desc {
  font-weight: 600;
  margin-bottom: 30px;
}

.advantages__btn {
  max-width: 255px;
}

.advantages__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.advantages__item {
  display: flex;
  padding: 44px 40px;
  gap: 20px;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid #211943;
  background: #110d24;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;

  &:hover {
    background: #1a123f;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(17, 13, 36, 0.4);
    border-color: #4b3d8f;
  }
}

.advantages__item-top {
  display: flex;
  align-items: center;
  gap: 15px;

  h3 {
    color: #fafafa;
  }
}

.advantages__item-desc {
  font-size: 18px;
  font-weight: 500;
}

@media (width < 1200px) {
  .advantages {
    padding-bottom: 120px;
  }
  .advantages__list {
    gap: 25px 16px;
  }
  .advantages__item {
    min-height: 328px;
  }
  .advantages__item-top {
    h3 {
      font-size: 22px;
    }
  }
}

@media (width < 991px) {
  .advantages__wrapper {
    gap: 60px;
  }
  .advantages__list {
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 16px;
  }
  .advantages__item {
    min-height: 0;
    padding: 44px 20px;
  }
}

@media (width < 768px) {
  .advantages {
    padding-bottom: 90px;
  }
}

/* #endregion ADVANTAGES SECTION */

/* #region FAQ SECTION */
.faq {
  padding-block: 85px;
  background-color: var(--bg-second);
}
.faq__wrapper {
  display: flex;
  gap: 64px;
}

.faq__content {
  max-width: 458px;
  width: 100%;
}

.faq__title {
  margin-bottom: 30px;
  color: #fff;
}

.faq__desc {
  margin-bottom: 30px;
}

.faq__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 185px;
  width: 100%;
  border-radius: 24px;
  border: 1px solid #aeb1ff;
  padding: 8px 24px;
  color: #fff;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;

  &:hover {
    color: #b7a2ff;
    border-color: #7664ff;
    box-shadow: 0 0 10px #7664ff;
  }
}

.faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__accordion-item {
  border-radius: 8px;
  overflow: hidden;

  &.is-active {
    .faq__accordion-icon {
      transform: rotate(90deg);
    }

    .faq__accordion-content {
      grid-template-rows: 1fr;
      opacity: 1;
      margin-top: 8px;
      border-width: 1px;
    }

    .faq__accordion-header {
      color: #7664ff;
      border-color: #7664ff;
    }

    .faq__accordion-inner {
      padding-block: 22px;
    }
  }
}

.faq__accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 22px 27px;
  cursor: pointer;
  text-align: left;
  color: #b7a2ff;
  border-radius: 20px;
  border: 1px solid #211943;
  background: #080612;
  transition: color 0.3s, border-color 0.3s;

  &:hover {
    color: #7664ff;
    border-color: #7664ff;
  }
}

.faq__accordion-icon {
  flex-shrink: 0;
  transition: transform 0.3s, color 0.3s;

  &:hover {
    color: #7664ff;
  }
}

.faq__accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  border-radius: 20px;
  border: 0 solid #211943;
  background: #080612;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 0.3s, opacity 0.3s, margin 0.3s,
    border-width 0.3s;
}

.faq__accordion-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding-inline: 27px;
  padding-block: 0;
  transition: padding 0.3s;
}

@media (width < 1200px) {
  .faq__wrapper {
    flex-direction: column;
  }
}

@media (width < 768px) {
  .faq__accordion-header {
    padding: 22px 20px;
  }
  .faq__accordion-inner {
    padding-inline: 20px;
  }
}
/* #endregion FAQ SECTION */

/* #region CONTACT SECTION */
.contact {
  padding-block: 150px;
}
.contact__title {
  color: #fff;
  margin-bottom: 70px;
  text-align: center;
  text-transform: uppercase;
}
.contact__content {
  display: flex;
  gap: 15px;
}

.contact__img {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 448px;
  margin-inline: auto;

  &::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 735px;
    height: 710px;
    z-index: -1;
    border-radius: 735px;
    background: rgba(123, 47, 255, 0.2);
    filter: blur(248px);
  }

  img {
    filter: drop-shadow(0 15px 15px rgba(106, 76, 255, 0.3));
    animation: levitation 5s infinite ease-in-out;
  }
}

.contact__form-wrapper {
  flex-shrink: 0;
  max-width: 592px;
  width: 100%;
  padding: 60px 42px;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid #211943;
  background: #110d24;
}

.contact__form-title {
  color: #fafafa;
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact__title-highlight {
  color: #7664ff;
}

.contact__description {
  text-align: center;
  margin-bottom: 40px;
  color: #a0a0b8;
  font-size: 16px;
  line-height: 1.6;
}

.contact__message {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  animation: slideDown 0.3s ease;
}

.contact__message--visible {
  display: flex;
}

.contact__message--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.contact__message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.contact__message-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__message-content {
  flex: 1;
}

.contact__message-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__message-text {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.contact__message-close {
  flex-shrink: 0;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__input-wrapper {
  position: relative;
}

.contact__input {
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  color: #fafafa;
  border-radius: 10px;
  border: 1px solid #211943;
  background: #080612;
  outline: none;
  transition: border-color 0.3s, background-color 0.3s;

  &::placeholder {
    color: #fafafa;
  }

  &:hover {
    border-color: #6246b2;
  }

  &:focus {
    background: rgba(40, 40, 70, 0.9);
    border-color: #7664ff;
  }
}

.contact__input--error {
  border-color: #8c0002;

  &::placeholder {
    color: #8c0002;
  }

  &:focus {
    border-color: #8c0002;
  }
}

.contact__input--success {
  border-color: #22c55e;

  &:focus {
    border-color: #22c55e;
  }
}

.contact__checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.contact__checkbox {
  appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 2px;
  border: 1px solid #7664ff;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s, border-color 0.3s;

  &:hover {
    border-color: #a78bfa;
  }

  &:checked {
    background-color: #8b5cf6;
    border-color: #8b5cf6;

    &::after {
      content: "";
      position: absolute;
      left: 8px;
      top: 4px;
      width: 6px;
      height: 10px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }
  }
}

.contact__checkbox--error {
  border-color: #8c0002;
}

.contact__checkbox--success {
  border-color: #22c55e;
}

.contact__checkbox-label {
  font-size: 15px;
  color: #a0a0b8;
  cursor: pointer;
  user-select: none;
}

.contact__checkbox-link {
  color: #7664ff;
  text-decoration: none;
  transition: color 0.3s;

  &:hover {
    color: #a78bfa;
  }
}

.contact__submit {
  max-width: 100%;
  margin-top: 18px;
  padding-block: 16px;
  height: auto;

  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background-color: #646464;
  }
}

.contact__error-message {
  display: none;
  font-size: 13px;
  color: #8c0002;
  margin-top: 6px;
  padding-left: 4px;
}

.contact__error-message--visible {
  display: block;
}

@media (width < 991px) {
  .contact {
    padding-block: 90px;
  }
  .contact__title {
    margin-bottom: 60px;
  }
  .contact__content {
    justify-content: center;
  }
  .contact__img {
    display: none;
  }
  .contact__form-wrapper {
    padding: 60px 20px;
  }
}

/* #endregion CONTACT SECTION */
