/* ===========================================================
   LUMEN — Light and Stone
   =========================================================== */

:root {
  --color-bg: #0a0e1a;
  --color-bg-alt: #0f1526;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-border: rgba(255, 255, 255, 0.09);

  --color-teal: #3fcdba;
  --color-teal-soft: #bff4ea;
  --color-lavender: #a99be0;
  --color-coral: #f2926f;

  --color-gold: #e8a83a;
  --color-green: #8fbf5a;
  --color-purple: #b06aaa;

  --color-text: #f4f6fb;
  --color-text-muted: #a7add0;
  --color-text-faint: #6d7392;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;

  --container-w: 1160px;
  --radius: 14px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 0.6em; }
p { margin: 0 0 1em; color: var(--color-text-muted); }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-teal);
  color: #04211d; padding: 0.75em 1.2em; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-teal);
  margin: 0 0 0.9em;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 720px;
}
.section-title--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--color-teal-soft); outline-offset: 3px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--color-teal) 0%, #2a9c8f 100%);
  color: #04211d;
  box-shadow: 0 8px 24px rgba(63, 205, 186, 0.28);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(63, 205, 186, 0.4); }

.btn--secondary {
  background: linear-gradient(135deg, var(--color-green) 0%, #6ea23f 100%);
  color: #0e1a06;
}

.btn--tertiary {
  background: linear-gradient(135deg, var(--color-purple) 0%, #8a4d85 100%);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-surface-border);
  color: var(--color-text);
}
.btn--ghost:hover { border-color: var(--color-teal); color: var(--color-teal-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-surface-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand__logo {
  height: 34px;
  width: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
/* Aparece solo cuando ya se ha pasado el hero, para no ver
   nunca este logo a la vez que el logo grande del parallax
   (clase añadida por JS en main.js). */
.site-header.is-past-hero .brand__logo {
  opacity: 1;
  pointer-events: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}
.nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--color-text); }
.nav__cta {
  color: #04211d !important;
  background: var(--color-teal);
  padding: 0.55em 1.2em;
  border-radius: 999px;
  font-weight: 500;
}
.nav__cta:hover { color: #04211d; opacity: 0.9; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
.lang-switch button {
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-switch button:hover { color: var(--color-text); }
.lang-switch button.is-active {
  color: var(--color-text);
  background: var(--color-surface-border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--color-text);
  margin: 0 auto; transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(10px);
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border-bottom: 1px solid var(--color-surface-border);
  }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--color-surface-border); }
  .nav__cta { margin-top: 14px; text-align: center; }
  .lang-switch { margin: 14px 0 0; }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* 30px más que la pantalla para que el bloque siguiente
     empiece un poco más abajo y se vea algo más de la capa
     del personaje (parallax-1-figure). Ajusta a gusto. */
  min-height: calc(100svh + 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a1420;
}
.hero__parallax {
  position: absolute;
  /* Sangrado extra en los 4 lados: las capas se desplazan tanto
     por el scroll como por la oscilación (X e Y), así que el
     recorte de cada capa tiene que quedar siempre fuera del
     viewport, nunca visible en los bordes. */
  inset: -6% -6%;
}
.hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-top: 90px;
  /* Sube o baja el bloque (logo + texto + botones) sin
     alterar el centrado vertical del hero. Más negativo = más arriba. */
  transform: translateY(-90px);
}
.hero__logo {
  width: min(560px, 78vw);
  margin: 0 auto 1.4em;
  filter: drop-shadow(0 0 40px rgba(63, 205, 186, 0.35));
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  color: #fff;
  max-width: 560px;
  margin: 0 auto 1.8em;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ---------- World / Lore ---------- */
.world {
  padding: 120px 0;
  background: #000000;
}
.world__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.world__art img {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.world__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; }

@media (max-width: 860px) {
  .world__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Trailer ---------- */
.trailer {
  padding: 100px 0;
  background: #000000;
}
.trailer__frame {
  max-width: var(--container-w);
  margin: 0 auto;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  background: #000;
}
.video-embed__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.video-embed__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-embed__play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--color-teal); color: #04211d; }
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.trailer__note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-faint);
  margin-top: 18px;
}
.trailer__note code {
  background: var(--color-surface);
  padding: 0.15em 0.5em;
  border-radius: 4px;
}

/* ---------- Sequence ---------- */
.sequence {
  position: relative;
  /* Altura real fijada por JS (ver SEQUENCE_CONFIG.scrollLengthVh
     en main.js, que es donde se controla la velocidad de scroll).
     Este valor solo es el fallback antes de que cargue el JS. */
  height: 260vh;
  background: #000000;
}
.sequence__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sequence__frames {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sequence__frame {
  position: absolute;
  width: min(94vw, 900px);
  height: 88svh;
  object-fit: contain;
  opacity: 0;
  /* Sin transición: cambio de frame instantáneo (es una secuencia
     de fotogramas, no un fundido entre imágenes distintas). */
}
.sequence__frame.is-active { opacity: 1; }
.sequence__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  padding-top: 60px;
  background: linear-gradient(to top, #000000 24%, transparent);
}

/* ---------- Signup ---------- */
.signup { padding: 120px 0; background: var(--color-bg); }
.signup__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.signup-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
}
.signup-card--gold { border-top-color: var(--color-gold); }
.signup-card--green { border-top-color: var(--color-green); }
.signup-card--purple { border-top-color: var(--color-purple); }

.signup-card h3 { color: #fff; font-size: 1.35rem; }
.signup-card p { flex-grow: 1; }

.signup-form { display: flex; flex-direction: column; gap: 12px; }
.signup-form input {
  width: 100%;
  padding: 0.85em 1em;
  border-radius: 10px;
  border: 1px solid var(--color-surface-border);
  background: rgba(255,255,255,0.04);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}
.signup-form input::placeholder { color: var(--color-text-faint); }
.signup-form input:focus-visible { outline: 2px solid var(--color-teal-soft); outline-offset: 2px; }

.signup-card__feedback {
  min-height: 1.4em;
  font-size: 0.85rem;
  color: var(--color-teal-soft);
  margin: 10px 0 0;
}
.signup-card__discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-decoration: none;
}
.signup-card__discord:hover { color: #fff; }

@media (max-width: 960px) {
  .signup__grid { grid-template-columns: 1fr; }
}

/* ---------- Features ---------- */
.features { padding: 120px 0; background: var(--color-bg-alt); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: left;
}
.feature-card__icon {
  font-size: 1.6rem;
  color: var(--color-teal);
  margin-bottom: 14px;
}
.feature-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: 16px;
}
.feature-card h3 { color: #fff; font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.5em; }
.feature-card p { font-size: 0.92rem; margin: 0; }

.features__note, .roadmap__note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-faint);
  margin-top: 36px;
}

@media (max-width: 960px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ---------- Roadmap ---------- */
.roadmap { padding: 120px 0; background: #000000; }
.roadmap__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.roadmap__art img {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.roadmap__list {
  max-width: 480px;
  margin: 40px 0 0;
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--color-surface-border);
}
@media (max-width: 860px) {
  .roadmap__grid { grid-template-columns: 1fr; gap: 36px; }
  .roadmap__art { order: -1; }
}
.roadmap__item {
  position: relative;
  padding: 0 0 40px 28px;
}
.roadmap__item:last-child { padding-bottom: 0; }
.roadmap__marker {
  position: absolute;
  left: -34.5px; top: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-text-faint);
}
.roadmap__item.is-done .roadmap__marker { background: var(--color-teal); border-color: var(--color-teal); }
.roadmap__item.is-active .roadmap__marker {
  background: var(--color-teal);
  border-color: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(63, 205, 186, 0.2);
}
.roadmap__stage { color: #fff; font-weight: 500; margin: 0 0 0.2em; }
.roadmap__date { font-size: 0.85rem; color: var(--color-text-faint); margin: 0; }

/* ---------- Press / Contact ---------- */
.press { padding: 120px 0; background: var(--color-bg-alt); }
.press__contact {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.press h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.press__email {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--color-teal-soft);
}
.press__email:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0;
  background: #05070d;
  border-top: 1px solid var(--color-surface-border);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer__logo { height: 22px; opacity: 0.8; }
.site-footer__social { display: flex; gap: 20px; }
.site-footer__social a { text-decoration: none; color: var(--color-text-muted); font-size: 0.88rem; }
.site-footer__social a:hover { color: #fff; }
.site-footer__legal {
  width: 100%;
  font-size: 0.78rem;
  color: var(--color-text-faint);
  margin: 0;
  text-align: center;
  border-top: 1px solid var(--color-surface-border);
  padding-top: 20px;
}
.site-footer__legal a { color: var(--color-text-faint); text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
