/* ============================================================
   bootscreen.css — Mac-style boot screen
   macOS Desktop Website
   ============================================================ */

/* Desktop hidden until JS reveals it (set inline by bootscreen.js) */
#macos-desktop {
  transition: opacity 0.65s ease;
}

/* ── Boot screen overlay ─────────────────────────────────────── */
#macos-bootscreen {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity 0.65s ease;
}

/* ── Apple logo ──────────────────────────────────────────────── */
.boot-apple-logo {
  opacity: 0;
  animation: boot-logo-in 0.6s ease 0.3s forwards;
}

@keyframes boot-logo-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Progress bar ────────────────────────────────────────────── */
.boot-progress-track {
  width: 148px;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}

#boot-progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  transition: width 1.0s cubic-bezier(0.25, 0.1, 0.15, 1);
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .boot-apple-logo {
    animation: none;
    opacity: 1;
  }
  #boot-progress-bar {
    transition: width 0.3s linear;
  }
  #macos-desktop,
  #macos-bootscreen {
    transition: none;
  }
}
