@font-face {
  font-family: 'DM Sans';
  src: url('./loading-dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

#globa-pwa-launch {
  --bg-splash: #FBFDFF;
  --text-splash: #0A1118;
  --slogan-splash: #64748B;
  --accent-splash: #0284C7;
}

#globa-pwa-launch[data-theme='dark'] {
  --bg-splash: #0A1118;
  --text-splash: #F7F9FB;
  --slogan-splash: #94A3B8;
  --accent-splash: #38BDF8;
}

#globa-pwa-launch[hidden] {
  display: none;
}

#globa-pwa-launch {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px;
  background-color: var(--bg-splash);
  color: var(--text-splash);
  opacity: 1;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), visibility 400ms;
}

#globa-pwa-launch.globa-pwa-launch--leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#globa-pwa-launch .globa-splash-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#globa-pwa-launch .globa-splash-logo-container {
  position: relative;
  margin-bottom: 24px;
}

#globa-pwa-launch .globa-splash-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(21, 122, 101, 0.2));
  animation: float-splash 4s ease-in-out infinite;
}

#globa-pwa-launch .globa-splash-name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 5.4vw, 2.8rem);
  letter-spacing: 0.015em;
  line-height: 1.08;
  margin-bottom: 14px;
  color: rgba(114, 224, 158, 0.9);
  white-space: nowrap;
}

#globa-pwa-launch .globa-matrix-letter {
  display: inline-block;
  -webkit-text-stroke: 0.35px rgba(194, 255, 216, 0.82);
  text-shadow:
    0 0 1px rgba(224, 255, 235, 0.96),
    0 0 4px rgba(61, 220, 132, 0.54),
    0 0 10px rgba(21, 122, 101, 0.22);
}

#globa-pwa-launch .globa-matrix-space {
  width: 0.32em;
  flex: 0 0 0.32em;
}

#globa-pwa-launch .globa-splash-slogan {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  color: var(--slogan-splash);
  letter-spacing: 0.02em;
  max-width: 280px;
  line-height: 1.5;
}

#globa-pwa-launch .globa-splash-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#globa-pwa-launch .globa-splash-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 50px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-splash);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#globa-pwa-launch .globa-splash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-splash);
  animation: pulse-splash 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

#globa-pwa-launch .globa-splash-status[data-state='live'] .globa-splash-dot {
  background-color: #16A34A;
}

#globa-pwa-launch .globa-splash-status[data-state='offline'] .globa-splash-dot {
  background-color: #B42318;
  animation: none;
}

@keyframes float-splash {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-splash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  #globa-pwa-launch,
  #globa-pwa-launch * {
    animation: none !important;
    transition: none !important;
  }
}