* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body, html {
  height: 100%;
  overflow-x: hidden;
}

/* Startup Screen Container */
.startup-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.startup-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Background media stack: video fills frame, image sits above it, then fades away */
.bg-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* Fullscreen Background Video */
#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback still image: sits above the video, dissolves once video is live */
#bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 3.2s ease;
}

.startup-screen.video-live #bg-image {
  opacity: 0;
}

/* Logo */
.startup-logo {
  width: 96px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Dark Overlay for Contrast */
.video-overlay {
  position: absolute;
  inset: 0;
  /* Vertical gradient: darker at the bottom where the tagline/buttons sit,
     lighter toward the top so the logo/media stay visible */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: -1;
}

/* Foreground Text & Buttons */
.startup-content {
  text-align: center;
  color: #ffffff;
  padding: 2rem;
  max-width: 600px;
}

.startup-content h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.startup-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

button {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

.primary-btn {
  background: #830202;
  color: #ffffff;
  font-weight: 600;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

/* Main App Area */
.main-app {
  padding: 3rem;
}
