/* iSAVU — intro screen da homepage */
html.isavu-intro-pending,
html.isavu-intro-pending body {
  overflow: hidden;
}

#isavu-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(122, 205, 158, .18), transparent 38%),
    linear-gradient(145deg, #07150e 0%, #0c281a 52%, #123c28 100%);
  color: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity .58s cubic-bezier(.22, 1, .36, 1),
              visibility .58s linear;
}

html.isavu-intro-pending #isavu-intro {
  display: flex;
}

#isavu-intro::before,
#isavu-intro::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}

#isavu-intro::before {
  width: min(64vw, 760px);
  aspect-ratio: 1;
  left: -28vw;
  top: -38vw;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, .018),
    0 0 0 145px rgba(255, 255, 255, .014);
}

#isavu-intro::after {
  width: min(52vw, 620px);
  aspect-ratio: 1;
  right: -24vw;
  bottom: -31vw;
  border: 1px solid rgba(126, 211, 163, .11);
  box-shadow:
    0 0 0 60px rgba(126, 211, 163, .02),
    0 0 0 125px rgba(126, 211, 163, .015);
}

.isavu-intro-inner {
  position: relative;
  z-index: 1;
  width: min(88vw, 520px);
  padding: 32px 24px;
  text-align: center;
}

.isavu-intro-mark {
  display: block;
  width: clamp(72px, 8vw, 92px);
  height: auto;
  margin: 0 auto 20px;
  opacity: 0;
  transform: scale(.93);
  animation: isavuLogoIn .78s .08s cubic-bezier(.16, 1, .3, 1) forwards;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .24));
}

.isavu-intro-wordmark {
  display: block;
  width: clamp(180px, 34vw, 270px);
  height: auto;
  margin: 0 auto;
  opacity: 0;
  transform: scale(.965);
  animation: isavuLogoIn .78s .18s cubic-bezier(.16, 1, .3, 1) forwards;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .20));
}

.isavu-intro-line {
  width: 52px;
  height: 1px;
  margin: 22px auto 18px;
  background: linear-gradient(90deg, transparent, rgba(143, 224, 178, .95), transparent);
  opacity: 0;
  transform: scaleX(.4);
  animation: isavuLineIn .7s .42s cubic-bezier(.22, 1, .36, 1) forwards;
}

.isavu-intro-tagline {
  margin: 0;
  font-family: "DM Sans", "Inter", Arial, sans-serif;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  opacity: 0;
  transform: translateY(12px);
  animation: isavuTaglineIn .68s .48s cubic-bezier(.22, 1, .36, 1) forwards;
}

#isavu-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#isavu-intro.is-leaving .isavu-intro-inner {
  transform: scale(1.015);
  transition: transform .58s cubic-bezier(.22, 1, .36, 1);
}

@keyframes isavuLogoIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes isavuLineIn {
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes isavuTaglineIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .isavu-intro-inner { padding: 24px 20px; }
  .isavu-intro-mark { margin-bottom: 17px; }
  .isavu-intro-line { margin-top: 19px; margin-bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .isavu-intro-mark,
  .isavu-intro-wordmark,
  .isavu-intro-line,
  .isavu-intro-tagline {
    animation: none;
    opacity: 1;
    transform: none;
  }

  #isavu-intro,
  #isavu-intro.is-leaving .isavu-intro-inner {
    transition-duration: .25s;
  }
}
