/* Candle Foreseer Technology — Coming Soon */

:root {
  /* Color medido directamente del fondo de assets/logo.png para que no haya costura */
  --bg-navy: #020722;
  --bg-navy-dark: #01040f;
  --blue: #2196f3;
  --gold: #ff9800;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-navy);
  /* El primer 40% del radio mantiene el color plano del fondo del logo (evita costura);
     solo se oscurece sutilmente hacia las esquinas, lejos del logo. */
  background-image: radial-gradient(circle at center, var(--bg-navy) 0%, var(--bg-navy) 40%, var(--bg-navy-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  width: 100%;
  max-width: 780px;
}

.logo {
  max-width: 640px;
  width: 90%;
  height: auto;
  opacity: 0;
  animation: fade-in 1.4s ease-out forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Barra de carga indeterminada (no representa progreso real).
   Deliberadamente pequeña: el protagonismo visual es del logo. */
.loading-bar {
  margin-top: 28px;
  width: 100%;
  max-width: 160px;
  height: 3px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.loading-bar__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background-image: linear-gradient(90deg, var(--blue), var(--gold));
  animation: loading-slide 1.8s ease-in-out infinite;
}

@keyframes loading-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

.title {
  margin-top: 28px;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 480px) {
  .logo {
    width: 95%;
    max-width: 360px;
  }

  .loading-bar {
    max-width: 120px;
  }

  .title {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .loading-bar__fill {
    animation: none;
    opacity: 1;
  }
}
