.intro__stage {
  perspective: 900px;
  transform-style: preserve-3d;
}

.info__title,
.info__description,
.info__btn {
  visibility: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.info__title .split-line,
.info__description .split-line {
  transform-style: preserve-3d;
  display: inline-block;
}

.info__btn-wrap {
  display: inline-block;
  perspective: 900px;
  transform-style: preserve-3d;
}

@keyframes floatyRock {
  0% {
    transform: rotate(-3deg) scale(1);
  }

  50% {
    transform: rotate(3deg) scale(1.05);
  }

  100% {
    transform: rotate(-3deg) scale(1);
  }
}

@keyframes mirrorFloatyRock {
  0% {
    transform: rotate(3deg) scale(1);
  }

  50% {
    transform: rotate(-3deg) scale(1.05);
  }

  100% {
    transform: rotate(3deg) scale(1);
  }
}

.intro__info-wrapper {
  position: relative;
  width: 100%;
  perspective: 500px;
  transform-style: preserve-3d;
}

.intro__info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  margin-top: 118px;
  pointer-events: none;
}

.intro__info.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro {
  position: relative;
  overflow: hidden;
}

.intro__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro__toggle {
  position: relative;
  display: inline-flex;
  background: #f3f5fb;
  border-radius: 40px;
  box-shadow: 0 0 4px 0 #d0dbff inset;
}

.intro__toggle-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  color: #0d1118;
  padding: 13px 24px;
  font-size: 16px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.intro__toggle-btn:not(.active):hover {
  background: #1629d6;
  color: #fff;
  box-shadow:
    0 -2px 8px 0 rgba(150, 154, 242, 0.8) inset,
    0 2px 8px 0 rgba(6, 6, 60, 0.3) inset;
}

.intro__toggle-btn.active {
  color: #fff;
}

.intro__toggle-btn.colored-bg {
  background: #06063c;
  box-shadow: 0 0 6px 0 #bec1f6 inset;
}

.intro__toggle-slider {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: #06063c;
  box-shadow: 0 0 6px 0 #bec1f6 inset;
  border-radius: 40px;
  transition: all 0.3s ease;
  z-index: 1;
}

.info__description {
  margin-top: 24px;
}

.info__btn {
  margin-top: 40px;
  transition: none;
}

.intro__card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    4px 12px 24px 0 rgba(44, 46, 53, 0.04),
    0 0 8px 0 rgba(70, 73, 78, 0.05);
  opacity: 0;
  z-index: 3;
}

.intro__container {
  position: relative;
  box-sizing: border-box;
}

.intro__card--left {
  position: absolute;
  bottom: 207px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  white-space: nowrap;
  color: #0d1118;
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0;
  box-sizing: border-box;

  animation: floatyRock 6s ease-in-out infinite;
  transform-origin: center bottom;
}

.intro__card--bottom {
  bottom: -80px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 121px;
  max-width: 121px;

  animation: mirrorFloatyRock 6s ease-in-out infinite;
  transform-origin: center bottom;
}

.intro__card--top {
  top: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  white-space: nowrap;
  color: #0d1118;
  box-sizing: border-box;

  animation: floatyRock 6s ease-in-out infinite;
  transform-origin: center bottom;
}

.intro__card--top p {
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0;
}

.intro__card--right {
  max-width: 288px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  padding: 32px 16px;
  box-sizing: border-box;
  animation: mirrorFloatyRock 6s ease-in-out infinite;
  transform-origin: center bottom;
}

.intro__banner-name p {
  color: #4f4f4f;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0;
}

.intro__banner-expect {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: #0d1118;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intro__banner-name-image img {
  border-radius: 50%;
  object-fit: cover;
  max-height: 56px;
  max-width: 56px;
  width: 100%;
  height: auto;
}

.intro__banner-name-image {
  display: flex;
  gap: 16px;
}

.intro__banner-name {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 8px;
}

.intro__card--bottom h2 {
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0;
  color: #1629d6;
}

.intro__card--bottom h2 em {
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0;
  color: #1629d6;
}

.intro__card--bottom p {
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0;
  color: #4f4f4f;
  text-align: left;
}

.intro__card--bottom h2 em {
  font-style: normal;
  vertical-align: top;
  display: inline-block;
  margin-left: 12px;
}

.info__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 668px;
  margin: 0 auto;
}

.info__description p {
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0;
  text-align: center;
  color: #4f4f4f;
}

.intro::before {
  content: "";
  position: absolute;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
  pointer-events: none;
  z-index: -1;
}

@media screen and (min-width: 1401px) {
  .intro__card--left {
    left: 40px;
  }

  .intro__card--bottom {
    left: 200px;
  }

  .intro__card--top {
    right: 270px;
  }

  .intro__card--right {
    right: 40px;
    bottom: 12px;
  }
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
  .intro__card--left {
    left: 20px;
  }

  .intro__card--bottom {
    left: 100px;
  }

  .intro__card--top {
    right: 135px;
  }

  .intro__card--right {
    right: 10px;
    bottom: 130px;
  }
}

@media screen and (max-width: 1200px) {
  .intro__card {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .intro {
    padding-top: 155px;
    padding-bottom: 171px;
  }

  .info__description p {
    font-size: 20px;
  }

  .intro__card--bottom h2 {
    font-size: 56px;
  }

  .intro {
    position: relative;
    overflow: hidden;
  }

  .intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 810px;

    background: linear-gradient(287.7deg, #ffffff 3.1%, #373cc2 50.99%);
    -webkit-mask: url("/wp-content/uploads/2025/09/Line-scaled.webp") no-repeat
      center/cover;
    mask: url("/wp-content/uploads/2025/09/Line-scaled.webp") no-repeat
      center/cover;

    z-index: 0;
    animation: fadeGradient 10s ease-in-out infinite alternate;
  }

  .intro::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 810px;

    background: linear-gradient(287.42deg, #373cc2 1.54%, #ffffff 30.25%);

    -webkit-mask: url("/wp-content/uploads/2025/09/Line-scaled.webp") no-repeat
      center/cover;
    mask: url("/wp-content/uploads/2025/09/Line-scaled.webp") no-repeat
      center/cover;

    opacity: 0;
    z-index: -1;
    animation: fadeGradient 5s ease-in-out infinite alternate-reverse;
  }

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

@media screen and (max-width: 768px) {
  .intro {
    padding-top: 144px;
    padding-bottom: 182px;
  }

  .intro__info {
    margin-top: 74px;
  }

  .info__description p br {
    display: none;
  }

  .info__description p {
    font-size: 18px;
  }

  .intro::before {
    width: 810px;
    height: 1440px;
    top: -448px;
    left: -270px;
    background-image: url("/wp-content/uploads/2025/11/Line.svg");
  }
}

@media screen and (max-width: 450px) {
  .info__btn {
    width: 100%;
  }
}
