* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #1f3556;
  background: #e9f1fb;
}

.landing-shell {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.landing-hero {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.landing-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: min(100%, 34rem);
  max-width: 100%;
  text-align: center;
}

.landing-title {
  margin: 0;
  color: #1f6fd1;
  max-width: 100%;
  font-size: clamp(2.45rem, 11vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: balance;
}

.landing-features {
  position: relative;
  width: 100%;
  min-height: 4.25rem;
  --landing-feature-transition-duration: 900ms;
}

.landing-features__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.15rem 0.25rem 0;
  color: #33547f;
  font-size: clamp(0.98rem, 2.1vw, 1.08rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translateY(0.35rem);
  transition:
    opacity var(--landing-feature-transition-duration) ease,
    transform var(--landing-feature-transition-duration) ease;
  will-change: opacity, transform;
}

.landing-features__item[data-active="true"] {
  opacity: 1;
  transform: translateY(0);
}

.landing-features__item[data-exiting="true"] {
  opacity: 0;
  transform: translateY(-0.35rem);
}

.landing-loader {
  display: grid;
  gap: 0.72rem;
  width: min(100%, 21rem);
  padding: 0.95rem 1rem 1rem;
  border: 1px solid rgba(111, 149, 206, 0.32);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(31, 53, 86, 0.1);
}

.landing-loader__label,
.landing-loader__fallback {
  margin: 0;
}

.landing-loader__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: #1b57ab;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.landing-loader__dots {
  display: inline-flex;
  gap: 0.18rem;
}

.landing-loader__dots span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: currentColor;
  animation: landing-loader-dot 1.2s ease-in-out infinite;
  opacity: 0.3;
}

.landing-loader__dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.landing-loader__dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.landing-loader__track {
  position: relative;
  width: 100%;
  height: 0.82rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(27, 87, 171, 0.12);
  box-shadow: inset 0 0 0 1px rgba(111, 149, 206, 0.28);
}

.landing-loader__fill {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(77, 137, 226, 0.92) 0%, rgba(27, 87, 171, 0.98) 100%);
  animation: landing-loader-fill var(--landing-loader-duration) linear forwards;
}

.landing-loader__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 80%);
  animation: landing-loader-shimmer 1.7s ease-in-out infinite;
}

.landing-loader__fallback a {
  color: #1b57ab;
  font-weight: 700;
  text-decoration: none;
}

.landing-loader__fallback a:hover,
.landing-loader__fallback a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .landing-hero {
    padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    background-position: center center;
  }

  .landing-hero__content {
    width: min(100%, 19rem);
    gap: 0.85rem;
  }

  .landing-title {
    font-size: clamp(2.4rem, 14vw, 3.8rem);
    line-height: 0.96;
  }

  .landing-features__item {
    font-size: 0.94rem;
  }

  .landing-loader {
    width: min(100%, 17.6rem);
    padding: 0.88rem 0.88rem 0.92rem;
  }

  .landing-loader__label {
    font-size: 0.94rem;
  }
}

@media (max-width: 430px) {
  .landing-hero__content {
    width: 100%;
    gap: 0.75rem;
  }

  .landing-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .landing-features__item {
    font-size: 0.89rem;
    line-height: 1.32;
  }

  .landing-loader {
    width: min(100%, 16rem);
    gap: 0.65rem;
    padding: 0.82rem 0.8rem 0.88rem;
  }

  .landing-loader__label {
    font-size: 0.9rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .landing-loader__dots span,
  .landing-loader__fill,
  .landing-loader__fill::after {
    animation: none;
  }

  .landing-loader__fill {
    transform: scaleX(1);
  }
}

@keyframes landing-loader-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes landing-loader-shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes landing-loader-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-0.12rem);
  }
}
