/*
 * Página «Coming Soon» de muremastered.com mientras la web completa no se publica.
 * Mismo sistema de diseño que web/src/app/globals.css y el hero (web/src/components/home/hero.tsx):
 * cielo del cliente, auroras, malla, brasas y viñeta, con la paleta muestreada del logo.
 * Es estática a propósito (HTML + CSS + un script de brasas) para servirse desde Cloudflare sin servidor.
 */
@font-face {
  font-family: Cinzel;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/cinzel-latin.woff2') format('woff2');
}

:root {
  --abyss: #04060d;
  --steel-300: #a3aec7;
  --relic-300: #f6dda6;
  --relic-500: #e0b050;
  color-scheme: dark;
}

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

html, body { height: 100%; background: var(--abyss); }

body {
  font-family: Cinzel, 'Times New Roman', serif;
  color: var(--steel-300);
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Capa 1: el cielo del cliente S20 (login_back), con el velo del hero. */
.sky { position: absolute; inset: 0; z-index: -50; overflow: hidden; background: var(--abyss); }
.sky img {
  width: 100%; height: 100%; object-fit: cover; object-position: 38% 72%;
  animation: hero-breathe 32s ease-in-out infinite;
}
.sky::after {
  content: ''; position: absolute; inset: 0;
  /* El cielo entero se oscurece por igual (no una mancha detrás del texto), para que las letras se lean sobre las
     nubes claras; arriba algo más, por el cielo del propio cliente. */
  background: linear-gradient(180deg, rgba(4,6,13,.82) 0%, rgba(4,6,13,.70) 28%, rgba(4,6,13,.70) 100%);
}

/* En vertical, `cover` enseña la imagen entera de arriba abajo y su cielo superior es casi negro: se agranda
   la foto y se ancla abajo para que el tercio oscuro quede fuera, y el velo de arriba se aligera. */
@media (orientation: portrait) {
  .sky img { position: absolute; left: 0; bottom: 0; height: 122%; object-position: 34% 100%; }
  .sky::after {
    background: linear-gradient(180deg, rgba(4,6,13,.6) 0%, rgba(4,6,13,.70) 24%, rgba(4,6,13,.70) 100%);
  }
}

/* Capa 2: auroras. */
.auroras { position: absolute; inset: 0; z-index: -40; overflow: hidden; opacity: .45; }
.auroras span { position: absolute; border-radius: 9999px; filter: blur(40px); }
.a1 { left: -15%; top: 8%; width: 46rem; height: 46rem; background: radial-gradient(circle, rgba(74,99,216,.30), transparent 62%); animation: drift 26s ease-in-out infinite; }
.a2 { right: -12%; top: 22%; width: 40rem; height: 40rem; background: radial-gradient(circle, rgba(157,188,242,.20), transparent 60%); animation: drift-alt 34s ease-in-out infinite; }
.a3 { bottom: -18%; left: 28%; width: 34rem; height: 34rem; background: radial-gradient(circle, rgba(224,176,80,.14), transparent 62%); animation: drift 44s ease-in-out infinite reverse; }

/* Capa 3: malla de runas. */
.grid {
  position: absolute; inset: 0; z-index: -30; opacity: .25;
  background-image: linear-gradient(rgb(120 140 190 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(120 140 190 / .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

/* Capa 4: brasas (embers.js). */
.embers { position: absolute; inset: 0; z-index: -20; width: 100%; height: 100%; pointer-events: none; }

/* Capa 5: viñeta. */
.vignette { position: absolute; inset: 0; z-index: -10; background: radial-gradient(100% 80% at 50% 45%, transparent 45%, rgba(4,6,13,.6) 100%); }

.content { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.5rem 1.25rem; }

/* El logo en grande: es la página. También lo limita la altura (proporción 1,5), para que en un móvil
   apaisado «Coming Soon» quepa en pantalla sin desplazarse. */
.logo {
  width: min(clamp(19rem, 72vw, 56rem), calc((100svh - 10rem) * 1.5));
  min-width: 12rem;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 60px rgba(74,99,216,.35));
  animation: rise 1.2s cubic-bezier(.16,1,.3,1) both;
}

/* Bloque de texto bajo el logo. */
.tagline {
  margin-top: clamp(1rem, 4svh, 2.25rem);
  padding: 1.1rem clamp(.5rem, 4vw, 2.5rem) 1.2rem;
  display: flex; flex-direction: column; align-items: center;
}

/* Regla ornamental con rombo, como el rótulo de temporada del hero. */
.badge {
  display: flex; align-items: center; gap: 1rem;
  font-size: clamp(.85rem, 1.3vw, 1.25rem); font-weight: 700; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .34em;
  color: var(--relic-300);
  text-shadow: 0 1px 2px rgb(4 6 13 / .9);
  animation: rise 1.2s .25s cubic-bezier(.16,1,.3,1) both;
}
.badge .line { height: 1px; width: clamp(1.25rem, 6vw, 6rem); background: linear-gradient(90deg, transparent, rgb(224 176 80 / .7)); }
.badge .line.rev { background: linear-gradient(270deg, transparent, rgb(224 176 80 / .7)); }
.badge .gem { width: 7px; height: 7px; rotate: 45deg; background: var(--relic-500); box-shadow: 0 0 10px 1px rgb(224 176 80 / .6); }

/* Texto liso, no el degradado metálico: a este tamaño sus franjas oscuras (#7d8cb0) se comían las letras. */
.season {
  margin-top: .85rem;
  font-size: clamp(.8rem, 1.05vw, 1.05rem); font-weight: 700; white-space: nowrap;
  letter-spacing: .28em; text-transform: uppercase;
  color: #e4eaf6;
  text-shadow: 0 1px 2px rgb(4 6 13 / .9);
  animation: rise 1.2s .4s cubic-bezier(.16,1,.3,1) both;
}

/* Titular metálico de la web. */
.text-metal {
  background-image: linear-gradient(180deg, #ffffff 0%, #dfe7f7 28%, #93a2c4 52%, #f2f6ff 62%, #7d8cb0 82%, #c9d5ee 100%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

@keyframes drift { 0%,100% { translate: 0 0; opacity: .85; } 50% { translate: 5% -4%; opacity: 1; } }
@keyframes drift-alt { 0%,100% { translate: 0 0; opacity: .7; } 50% { translate: -6% 5%; opacity: 1; } }
@keyframes hero-breathe { 0%,100% { scale: 1.04; translate: 0 0; } 50% { scale: 1.1; translate: -1.2% -1%; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
