/* SETO 1.0.87 · Startup Splash
   Rein visuelles Overlay. Die App initialisiert parallel im Hintergrund. */
#seto-splash {
  --splash-bg-space: #060913;
  --splash-cyan: #00f0ff;
  --splash-magenta: #ff007a;
  --splash-purple: #a855f7;
  --splash-gold: #ffb703;
  --splash-slate-card: rgba(15, 23, 42, 0.75);
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #f8fafc;
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  perspective: 1000px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
  isolation: isolate;
}

html[data-seto-intro="skip"] #seto-splash,
#seto-splash[hidden] {
  display: none !important;
}

#seto-splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#seto-splash .stage-3d {
  position: relative;
  width: min(320px, calc(100vw - 24px));
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

#seto-splash .radar-ring {
  position: absolute;
  width: min(280px, calc(100vw - 48px));
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.25);
  transform-style: preserve-3d;
  transform: rotateX(65deg) translateZ(-40px);
  animation: setoSpinRadar 6s linear infinite;
}

#seto-splash .radar-ring::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--splash-cyan);
  border-bottom-color: var(--splash-magenta);
  filter: drop-shadow(0 0 10px var(--splash-cyan));
}

#seto-splash .letters-matrix {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  transform-style: preserve-3d;
}

#seto-splash .card-3d {
  width: 64px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: var(--splash-slate-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateZ(300px) rotateX(45deg) rotateY(-30deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: setoCardFlyIn 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

#seto-splash .glyph {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  transform: translateZ(20px);
}

#seto-splash .word {
  margin-top: 6px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  transform: translateZ(10px);
}

#seto-splash .card-s {
  border-color: rgba(0, 240, 255, 0.5);
  color: var(--splash-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
  animation-delay: 0.15s;
}

#seto-splash .card-e {
  border-color: rgba(255, 183, 3, 0.5);
  color: var(--splash-gold);
  box-shadow: 0 0 25px rgba(255, 183, 3, 0.25);
  animation-delay: 0.35s;
}

#seto-splash .card-t {
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--splash-purple);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
  animation-delay: 0.55s;
}

#seto-splash .card-o {
  border-color: rgba(255, 0, 122, 0.5);
  color: var(--splash-magenta);
  box-shadow: 0 0 25px rgba(255, 0, 122, 0.25);
  animation-delay: 0.75s;
}

#seto-splash .brand-glow-title {
  position: relative;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 0 0 30px var(--splash-cyan);
  opacity: 0;
  transform: translateY(15px) translateZ(10px);
  animation: setoTitleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

#seto-splash .brand-glow-title::after {
  content: "";
  position: absolute;
  left: -10%;
  top: 0;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: translateX(-150%);
  animation: setoLightFlare 1.2s ease 1.7s;
  pointer-events: none;
}

#seto-splash .brand-pillars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #94a3b8;
  opacity: 0;
  transform: translateY(10px);
  animation: setoSubtitleReveal 0.8s ease 1.5s forwards;
}

#seto-splash .brand-pillars .dot {
  color: var(--splash-magenta);
  font-size: 0.9rem;
}

#seto-splash .cyber-loader {
  position: relative;
  width: 180px;
  height: 3px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

#seto-splash .cyber-loader-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--splash-cyan), var(--splash-magenta));
  box-shadow: 0 0 10px var(--splash-cyan);
  animation: setoLoadProgress 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes setoSpinRadar {
  from { transform: rotateX(65deg) rotateZ(0deg) translateZ(-40px); }
  to { transform: rotateX(65deg) rotateZ(360deg) translateZ(-40px); }
}

@keyframes setoCardFlyIn {
  0% { opacity: 0; transform: translateZ(300px) rotateX(50deg) rotateY(-30deg) scale(0.6); }
  70% { transform: translateZ(20px) rotateX(-10deg) rotateY(10deg) scale(1.08); }
  100% { opacity: 1; transform: translateZ(0) rotateX(0) rotateY(0) scale(1); }
}

@keyframes setoTitleReveal {
  to { opacity: 1; transform: translateY(0) translateZ(10px); }
}

@keyframes setoLightFlare {
  to { transform: translateX(150%); }
}

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

@keyframes setoLoadProgress {
  0% { width: 0; }
  50% { width: 60%; }
  100% { width: 100%; }
}

@media (max-width: 350px) {
  #seto-splash .letters-matrix { gap: 7px; }
  #seto-splash .card-3d { width: 58px; height: 84px; }
  #seto-splash .brand-pillars { gap: 4px; font-size: 0.61rem; letter-spacing: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  #seto-splash .radar-ring,
  #seto-splash .card-3d,
  #seto-splash .brand-glow-title,
  #seto-splash .brand-glow-title::after,
  #seto-splash .brand-pillars,
  #seto-splash .cyber-loader-bar {
    animation: none !important;
  }
  #seto-splash .card-3d,
  #seto-splash .brand-glow-title,
  #seto-splash .brand-pillars { opacity: 1; transform: none; }
  #seto-splash .cyber-loader-bar { width: 100%; }
  #seto-splash { transition-duration: 0.15s; }
}
