@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Inter-Bold.ttf") format("truetype");
}

:root {
  --splash-primary: #155dfc;
  --splash-bg: #f8f8f8;
  --splash-card: #ffffff;
  --splash-text: #0f172b;
  --splash-text-secondary: #4a5565;
  --splash-orbit: 200px;
  --splash-logo-wrap: 104px;
  --splash-logo: 54px;
  --splash-orbit-radius: 84px;
  --splash-gap-1: 36px;
  --splash-gap-2: 10px;
  --splash-gap-3: 32px;
  --splash-title: 24px;
  --splash-subtitle: 16px;
  --splash-bar-w: 240px;
  --splash-bar-h: 5px;
  --splash-pad-x: 32px;
  --splash-shadow-blur: 32px;
  --splash-shadow-spread: 3px;
  --splash-line-height: 1.2;
  --splash-dot-1: 14px;
  --splash-dot-2: 12.4px;
  --splash-dot-3: 10.8px;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--splash-bg);
}

flt-glass-pane,
flutter-view,
flt-scene-host,
flt-semantics-host,
canvas {
  background-color: var(--splash-bg) !important;
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 var(--splash-pad-x);
  background-color: var(--splash-bg);
  color-scheme: light;
  opacity: 1;
  transition: opacity 200ms ease-out;
  pointer-events: none;
}

#splash.splash--hide {
  opacity: 0;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  text-align: center;
}

.splash-orbit {
  position: relative;
  width: var(--splash-orbit);
  height: var(--splash-orbit);
}

.splash-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--splash-orbit-radius) * 2);
  height: calc(var(--splash-orbit-radius) * 2);
  margin-left: calc(var(--splash-orbit-radius) * -1);
  margin-top: calc(var(--splash-orbit-radius) * -1);
  border: 2px solid rgba(21, 93, 252, 0.18);
  border-radius: 50%;
  box-sizing: border-box;
}

.splash-dots {
  position: absolute;
  inset: 0;
  animation: splash-orbit 2.2s linear infinite;
}

.splash-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background-color: var(--splash-primary);
  transform-origin: center;
}

.splash-dot--1 {
  width: var(--splash-dot-1);
  height: var(--splash-dot-1);
  margin: calc(var(--splash-dot-1) / -2) 0 0 calc(var(--splash-dot-1) / -2);
  transform: rotate(0deg) translateX(var(--splash-orbit-radius));
  opacity: 0.85;
  animation: splash-dot-pulse 2.2s ease-in-out infinite;
}

.splash-dot--2 {
  width: var(--splash-dot-2);
  height: var(--splash-dot-2);
  margin: calc(var(--splash-dot-2) / -2) 0 0 calc(var(--splash-dot-2) / -2);
  transform: rotate(120deg) translateX(var(--splash-orbit-radius));
  opacity: 0.7;
  animation: splash-dot-pulse 2.2s ease-in-out infinite 0.35s;
}

.splash-dot--3 {
  width: var(--splash-dot-3);
  height: var(--splash-dot-3);
  margin: calc(var(--splash-dot-3) / -2) 0 0 calc(var(--splash-dot-3) / -2);
  transform: rotate(240deg) translateX(var(--splash-orbit-radius));
  opacity: 0.55;
  animation: splash-dot-pulse 2.2s ease-in-out infinite 0.7s;
}

.splash-logo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--splash-logo-wrap);
  height: var(--splash-logo-wrap);
  margin-left: calc(var(--splash-logo-wrap) / -2);
  margin-top: calc(var(--splash-logo-wrap) / -2);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--splash-card);
  border-radius: 50%;
  box-shadow: 0 0 var(--splash-shadow-blur) var(--splash-shadow-spread)
    rgba(21, 93, 252, 0.16);
}

.splash-logo {
  width: var(--splash-logo);
  height: var(--splash-logo);
  display: block;
  object-fit: contain;
}

.splash-title {
  margin: var(--splash-gap-1) 0 0;
  color: var(--splash-text);
  font-size: var(--splash-title);
  font-weight: 700;
  line-height: var(--splash-line-height);
}

.splash-subtitle {
  margin: var(--splash-gap-2) 0 0;
  color: var(--splash-text-secondary);
  font-size: var(--splash-subtitle);
  font-weight: 400;
  line-height: var(--splash-line-height);
}

.splash-bar {
  position: relative;
  width: var(--splash-bar-w);
  height: var(--splash-bar-h);
  margin-top: var(--splash-gap-3);
  overflow: hidden;
  border-radius: 999px;
  background-color: rgba(21, 93, 252, 0.12);
}

.splash-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  border-radius: 999px;
  background-color: var(--splash-primary);
  animation: splash-bar 1.6s ease-in-out infinite;
}

@keyframes splash-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes splash-dot-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes splash-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(340%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #splash {
    transition: none;
  }

  .splash-dots,
  .splash-dot--1,
  .splash-dot--2,
  .splash-dot--3,
  .splash-bar-fill {
    animation: none;
  }

  .splash-bar-fill {
    left: 32.5%;
    width: 35%;
    transform: none;
  }
}
