.welcome-intro[hidden] { display: none; }
.welcome-intro {
  position: fixed; inset: 0; z-index: 10; overflow: auto;
  display: grid; place-items: center; padding: 28px;
  background: radial-gradient(ellipse at 15% 15%, #d2f3ed, transparent 65%),
    linear-gradient(135deg, #f8fcff, #dcecfb);
  animation: welcome-out .6s ease 2.8s forwards;
}
.welcome-intro::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, #71d5cc70, transparent 45%),
    radial-gradient(ellipse at 70% 60%, #8bb9ff60, transparent 45%);
  animation: welcome-aurora 5s ease-in-out infinite alternate;
}
.welcome-intro::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: -290px -160px 3px #fff, 260px -120px 2px #67b9d1,
    -220px 90px 2px #69c5af, 310px 130px 3px #fff,
    -100px -230px 2px #fff, 140px 210px 2px #7bb4e1,
    70px -180px 3px #8dca72, -310px 200px 2px #fff;
  animation: welcome-particles 3.4s ease-out both;
}
.welcome-content { position: relative; z-index: 1; width: min(100%, 700px); text-align: center; }
.welcome-eyebrow { color: #387985; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.welcome-logos { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); margin: 32px 0; }
.welcome-logo {
  position: relative; isolation: isolate;
  display: grid; place-items: center; width: clamp(110px, 30vw, 240px); height: clamp(110px, 30vw, 200px);
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  padding: 24px; border: 1px solid #fff; border-radius: 28px;
  background: #ffffffc9; box-shadow: 0 18px 50px #19324d12;
  animation: welcome-in .9s cubic-bezier(.2,.8,.2,1) both;
}
.welcome-logo:last-child { animation-delay: .2s; background: transparent; border-color: transparent; box-shadow: none; }
.welcome-logo img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; }
.welcome-logo:first-child {
  background: linear-gradient(145deg, #fff, #f3fcff);
  box-shadow: 0 18px 50px #19324d12, 0 0 45px #45c9c64d;
}
.welcome-logo:first-child::before {
  content: ""; position: absolute; inset: -12px; z-index: -1;
  border-radius: 36px; border: 1px solid #65bbb966; pointer-events: none;
  animation: welcome-halo 2.4s ease-in-out infinite;
}
.welcome-logo:first-child::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, #ffffffb3 48%, transparent 65%);
  background-size: 300% 100%; pointer-events: none;
  animation: welcome-shine 2.4s .3s ease-in-out both;
}
.welcome-logo:first-child img {
  animation: welcome-logo-reveal 1.1s cubic-bezier(.16,1,.3,1) both,
    welcome-float 2.6s 1.1s ease-in-out infinite;
}
.welcome-divider { width: 1px; height: 64px; background: #87bcc9; }
.welcome-title { margin: 0; color: #19324d; font-size: clamp(25px, 5vw, 40px); font-weight: 700; animation: welcome-in .9s .35s both; }
.welcome-subtitle { margin: 12px 0 26px; color: #526e82; animation: welcome-in .9s .5s both; }
.welcome-line { width: 110px; height: 3px; margin: auto; border-radius: 3px; background: linear-gradient(90deg, #00a9bd, #1a73e8); transform-origin: left; animation: welcome-progress 2.8s ease-out both; }
.welcome-skip {
  width: auto; min-height: 44px; margin-top: 30px; padding: 10px 20px;
  background: transparent; color: #365e76; border: 1px solid #9dbdcd; border-radius: 24px; font-size: 14px;
}
.welcome-skip:hover { background: #fff; }
.welcome-skip:focus-visible { outline: 3px solid #1a73e8; outline-offset: 4px; }
@keyframes welcome-in { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes welcome-out { to { opacity: 0; visibility: hidden; } }
@keyframes welcome-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes welcome-logo-reveal {
  from { opacity: 0; transform: translateY(18px) scale(.8) rotate(-5deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes welcome-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes welcome-halo { 0%, 100% { opacity: .4; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes welcome-shine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes welcome-aurora { from { transform: translate(-2%, -2%) rotate(-5deg); } to { transform: translate(2%, 2%) rotate(5deg); } }
@keyframes welcome-particles { from { opacity: 0; transform: translateY(45px) scale(.85); } 30% { opacity: .9; } to { opacity: 0; transform: translateY(-70px) scale(1.15); } }
@media (max-width: 420px) { .welcome-logo { padding: 16px; border-radius: 20px; } .welcome-logos { gap: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .welcome-intro, .welcome-intro *, .welcome-intro::before, .welcome-intro::after,
  .welcome-logo::before, .welcome-logo::after { animation: none; }
}
