:root {
  --bg: #08040e;
  --panel: rgba(255,255,255,.055);
  --panel-border: rgba(255,255,255,.10);
  --purple: #7c3cff;
  --purple-2: #a76bff;
  --orange: #ffad1f;
  --text: #ffffff;
  --muted: #bcb6c8;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

.splash {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  isolation: isolate;
}

.grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

.ambient {
  position: absolute;
  width: 56vw;
  height: 56vw;
  max-width: 650px;
  max-height: 650px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .28;
  z-index: -2;
  animation: float 8s ease-in-out infinite;
}
.ambient-one { background: var(--purple); top: -20%; left: -14%; }
.ambient-two { background: var(--orange); right: -25%; bottom: -28%; animation-delay: -4s; opacity: .14; }

.splash-card {
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px 30px;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 30px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: rise .75s cubic-bezier(.2,.8,.2,1) both;
}

.logo-wrap {
  position: relative;
  width: min(90%, 350px);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.logo-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,60,255,.52), transparent 68%);
  filter: blur(10px);
  animation: pulse 2.2s ease-in-out infinite;
}
.logo {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.38));
  animation: logoIn .95s cubic-bezier(.16,1,.3,1) both;
}

.copy { margin-top: 8px; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 800;
  color: var(--orange);
}
h1 {
  margin: 0;
  font-size: clamp(32px, 8vw, 47px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
h1 span {
  background: linear-gradient(90deg, #fff 0%, #c8a9ff 48%, #ffbf4f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtext {
  max-width: 350px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.loader-block { margin-top: 28px; }
.loader { display: flex; justify-content: center; gap: 7px; height: 10px; }
.loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-2), var(--orange));
  animation: bounce 1s infinite ease-in-out;
}
.loader span:nth-child(2) { animation-delay: .14s; }
.loader span:nth-child(3) { animation-delay: .28s; }
#loadingText {
  margin: 10px 0 0;
  font-size: 12px;
  color: #8f889d;
}

footer {
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  color: #777080;
  font-size: 11px;
  letter-spacing: .03em;
}
.secure-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72e89a;
  box-shadow: 0 0 12px rgba(114,232,154,.7);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes logoIn {
  from { opacity: 0; transform: scale(.78) rotate(-2deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(.86); opacity: .48; }
  50% { transform: scale(1.12); opacity: .82; }
}
@keyframes bounce {
  0%, 70%, 100% { transform: translateY(0); opacity: .45; }
  35% { transform: translateY(-6px); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(18px,20px,0); }
}

@media (max-width: 480px) {
  .splash-card {
    padding: 30px 18px 26px;
    border-radius: 28px;
  }
  .logo-wrap { width: 96%; }
  .logo-glow { width: 150px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
