/*
  boot.css, the "Jaspr OS starting…" splash
  ---------------------------------------------------------------------------
  A quick, tasteful boot screen that paints on first frame (the markup is
  inline in index.html). boot.js fades it out with .is-done once the desktop
  is ready; it is also click/Esc/Space skippable.
*/

.os-boot {
  position: fixed;
  inset: 0;
  z-index: 1000000; /* above everything during boot */
  display: grid;
  place-items: center;
  /* A soft orange glow near the top over a deep navy fall-off. Uses fixed
     hex (not theme tokens) so the boot screen looks identical before the
     theme is applied. */
  background:
    radial-gradient(120% 90% at 50% 22%, rgba(255, 122, 26, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #0d1830, #05080f);
  color: #eaf0fa;
  transition: opacity 400ms var(--os-ease-out), visibility 400ms;
}

.os-boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.os-boot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(-4%);
}

.os-boot__logo {
  /* Gentle breathing pulse while loading. */
  animation: os-boot-pulse 1.6s var(--os-ease-out) infinite;
  filter: drop-shadow(0 8px 24px rgba(255, 122, 26, 0.28));
}

@keyframes os-boot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}

.os-boot__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.os-boot__status {
  font-size: 13px;
  color: var(--os-text-muted);
  min-height: 1em;
}

.os-boot__bar {
  width: 220px;
  height: 4px;
  border-radius: var(--os-radius-pill);
  background: var(--os-ink-08);
  overflow: hidden;
  margin-top: 4px;
}

.os-boot__bar-fill {
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--os-orange), var(--os-orange-bright));
  transition: width 500ms var(--os-ease-out);
}

.os-boot__skip {
  margin-top: 10px;
  font-size: 11px;
  color: var(--os-text-dim);
  letter-spacing: 0.4px;
}

/* Respect reduced-motion: kill the pulse for users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  .os-boot__logo { animation: none; }
}
