/* Boot splash — WealthWise Suite cinematic logo reveal */

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

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter/Inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter/Inter-600.woff2") format("woff2");
}

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

.loader-wrapper {
  position: relative;
  display: block;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #000;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app-boot-splash.loader-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  height: 100%;
  opacity: 1;
  transition: opacity 0.55s ease;
  background: #000;
}

.loader-main {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  box-sizing: border-box;
}

.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .loader-brand {
    gap: 1.15rem;
  }
}

.loader-logo-mount {
  /* Mobile-first: compact mark like a native splash */
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ww-splash-logo {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  opacity: 0;
}

.ww-splash-strokes .ww-splash-stroke {
  fill: none;
  stroke: #fff;
  vector-effect: non-scaling-stroke;
}

.ww-splash-fills .ww-splash-fill {
  fill: #fff;
}

.loader-title {
  margin: 0;
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
}

.loader-progress {
  width: 7.5rem;
  max-width: 42vw;
  margin-top: 0.15rem;
  opacity: 0;
}

.loader-progress-track {
  position: relative;
  height: 1.5px;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
}

.loader-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

@media (min-width: 768px) {
  .loader-progress {
    width: 9rem;
  }

  .loader-progress-track {
    height: 2px;
  }
}

.loader-spinner {
  display: none;
}

.loader-footer {
  position: absolute;
  right: 0;
  bottom: 48px;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 24px;
  color: rgba(243, 243, 238, 0.55);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

.loader-footer-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

.loader-dev-replay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  pointer-events: auto;
}

.loader-dev-replay:hover {
  background: rgba(255, 255, 255, 0.12);
}

#app-boot-splash.is-dev-replay .loader-dev-replay {
  display: inline-flex;
}

@media (min-width: 480px) {
  .loader-logo-mount {
    width: 5.5rem;
    height: 5.5rem;
  }
}

@media (min-width: 768px) {
  .loader-logo-mount {
    width: 7.25rem;
    height: 7.25rem;
  }
}

@media (min-width: 1024px) {
  .loader-logo-mount {
    width: 8rem;
    height: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ww-splash-logo {
    opacity: 1;
  }
}
