/* ═══════════════════════════════════════════════════════
   ETYMA — Landing Page Styles
   Palette & typography mirroring the game exactly
   ═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --void:        #05060f;
  --deep:        #0a0d1a;
  --ink:         #0f1326;
  --bg-desc:     #0d0f1e;
  --gold:        #c9a84c;
  --gold-dim:    #8a6d2f;
  --gold-bright: #f0cc6e;
  --gold-glow:   rgba(201, 168, 76, 0.18);
  --ivory:       #e8e0cc;
  --ivory-dim:   #a09880;
  --copper:      #b06a3a;
  --star-warm:   #f5d78e;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-title:   'Cinzel', serif;
  --font-body:    'Lato', sans-serif;

  --radius:      12px;
  --nav-h:       64px;
  --section-pad: clamp(64px, 8vw, 120px);
  --inner-w:     1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }


/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.top-nav.scrolled {
  background: rgba(5, 6, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(201, 168, 76, 0.12);
}

.nav-logo-link { display: flex; align-items: center; }
.nav-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(1.1);
  transition: opacity 0.2s;
}
.nav-logo-img:hover { opacity: 0.8; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.lang-sep { color: var(--gold-dim); }

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ivory-dim);
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 4px 6px;
  transition: color 0.2s;
}
.lang-btn:hover { color: var(--gold-bright); }
.lang-btn.active { color: var(--gold); }


/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    url('images/cielo_background01.jpg') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(5,6,15,0.25) 0%, rgba(5,6,15,0.72) 100%);
  z-index: 1;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 60px);
  gap: 20px;
  animation: heroRise 1.2s ease forwards;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-logo {
  width: clamp(200px, 40vw, 520px);
  height: auto;
}

/* App icon — rounded corners matching store standard (~22% of size) */
.app-icon {
  border-radius: 22%;
  flex-shrink: 0;
  display: block;
}

.app-icon--sm {
  width: 64px;
  height: 64px;
  box-shadow:
    0 0 18px rgba(201, 168, 76, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.55);
}

.app-icon--lg {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  box-shadow:
    0 0 28px rgba(201, 168, 76, 0.5),
    0 6px 24px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  color: var(--ivory);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(5,6,15,0.8);
  max-width: 680px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--ivory-dim);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(5,6,15,0.9);
  max-width: 560px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 36px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.18em;
  border-radius: 40px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  text-transform: uppercase;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--void);
  box-shadow: 0 0 32px rgba(201, 168, 76, 0.4);
}

.hero-cta-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(201, 168, 76, 0.5);
  font-size: 22px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 0.9; }
}


/* ═══════════════════════════════════════════════════════
   DESCRIPTION
   ═══════════════════════════════════════════════════════ */
#description {
  background:
    url('images/background_texture_fortext01.jpg') center center / cover fixed;
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}

#description::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}

#description::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}

.desc-inner {
  max-width: var(--inner-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.desc-text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--ivory-dim);
  line-height: 1.85;
}

.desc-text p { margin-bottom: 1.2em; }
.desc-text p:last-child { margin-bottom: 0; }

.desc-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1.25;
  text-align: center;
  padding: 32px;
  border-left: none;
  position: relative;
}

.desc-quote::before,
.desc-quote::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin: 20px auto;
}


/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════ */
#how-it-works {
  background: var(--void);
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
}

.section-inner {
  max-width: var(--inner-w);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.step-connector {
  flex-shrink: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.2), rgba(201,168,76,0.5), rgba(201,168,76,0.2));
  margin-top: 28px;
  align-self: flex-start;
}

.step-star {
  margin-bottom: 20px;
}

.step-star img {
  width: 52px;
  height: 52px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.6));
  animation: starPulse 3s ease-in-out infinite;
}

.step:nth-child(3) .step-star img { animation-delay: 1s; }
.step:nth-child(5) .step-star img { animation-delay: 2s; }

@keyframes starPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(201,168,76,0.4)); }
  50%       { filter: drop-shadow(0 0 16px rgba(201,168,76,0.9)); }
}

.step-title {
  font-family: var(--font-title);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step-desc {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--ivory-dim);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════
   QUOTES
   ═══════════════════════════════════════════════════════ */
#quotes {
  background:
    url('images/background_texture_fortext01.jpg') center center / cover fixed;
  padding: clamp(80px, 14vw, 160px) clamp(20px, 5vw, 60px);
  position: relative;
}

#quotes::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.25), transparent);
}

.quotes-stage {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 44px);
}

.quote-main {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  color: #c9a84c;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.quote-secondary {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  color: #9a9fbb;
  line-height: 1.7;
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════
   SCREENSHOTS
   ═══════════════════════════════════════════════════════ */
#screenshots {
  background: var(--void);
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
}

.phone-mockup {
  flex-shrink: 0;
}

/* Alternate phones: center ones float up slightly */
.phone-mockup:nth-child(2),
.phone-mockup:nth-child(3) {
  transform: translateY(-24px);
}

.phone-mockup img {
  display: block;
  width: clamp(140px, 16vw, 200px);
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(201, 168, 76, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-mockup img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(201, 168, 76, 0.14);
}


/* ═══════════════════════════════════════════════════════
   DOWNLOAD
   ═══════════════════════════════════════════════════════ */
#download {
  background:
    url('images/background_texture_fortext01.jpg') center center / cover fixed;
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  position: relative;
}

#download::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}

.download-inner {
  text-align: center;
}

.download-subtitle {
  font-family: var(--font-body);
  color: var(--ivory-dim);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  letter-spacing: 0.06em;
  margin-top: -40px;
  margin-bottom: 48px;
}

.store-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.gplay-badge-img {
  height: 60px;
  width: auto;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}

#gplay-link:hover .gplay-badge-img {
  opacity: 0.85;
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════════════════════════ */
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: var(--void);
  line-height: 0;
}

.divider-svg {
  width: clamp(160px, 30vw, 280px);
  height: auto;
  display: block;
}

/* Dividers that sit between a baúl section and a void section keep the void bg */
#description + .section-divider,
#quotes + .section-divider {
  background: var(--void);
}

/* Divider before description inherits hero bottom color */
#hero + .section-divider {
  background: var(--void);
}


/* ═══════════════════════════════════════════════════════
   LUMEN CHARACTER
   ═══════════════════════════════════════════════════════ */
.hero-lumen {
  position: absolute;
  bottom: 0;
  right: clamp(4%, 8vw, 12%);
  height: clamp(180px, 36vh, 320px);
  width: auto;
  z-index: 2;
  opacity: 0.72;
  filter: drop-shadow(0 0 24px rgba(201, 168, 76, 0.45));
  animation: lumenFloat 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lumenFloat {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 20px rgba(201,168,76,0.35));
  }
  50% {
    transform: translateY(-14px);
    filter: drop-shadow(0 0 38px rgba(201,168,76,0.7));
  }
}

/* Hide on very small screens so it doesn't crowd the text */
@media (max-width: 480px) {
  .hero-lumen { display: none; }
}



/* ═══════════════════════════════════════════════════════
   SCREENSHOT CAPTIONS
   ═══════════════════════════════════════════════════════ */
.phone-mockup figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}


/* ═══════════════════════════════════════════════════════
   TERMS SECTION
   ═══════════════════════════════════════════════════════ */
#terms {
  background: #070d16;
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  border-top: 1px solid rgba(201,168,76,0.08);
}


/* ═══════════════════════════════════════════════════════
   iOS PARALLAX FALLBACK
   background-attachment: fixed doesn't work on iOS Safari
   ═══════════════════════════════════════════════════════ */
.ios #description,
.ios #quotes,
.ios #download {
  background-attachment: scroll;
}


/* ═══════════════════════════════════════════════════════
   PRIVACY
   ═══════════════════════════════════════════════════════ */
#privacy {
  background: var(--void);
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
}

.privacy-inner {
  max-width: 760px;
  margin: 0 auto;
}

.privacy-body {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.2vw, 0.96rem);
  color: var(--ivory-dim);
  line-height: 1.85;
}

.privacy-body .privacy-date {
  font-style: italic;
  color: var(--gold-dim);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.privacy-body h3 {
  display: none; /* title handled by section-title */
}

.privacy-body h4 {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 28px 0 8px;
}

.privacy-body p {
  margin-bottom: 0.6em;
}

.privacy-body a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: border-color 0.2s;
}

.privacy-body a:hover {
  border-color: var(--gold);
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
#footer {
  background: var(--void);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 48px clamp(20px, 5vw, 60px) 40px;
}

.footer-inner {
  max-width: var(--inner-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.55;
  filter: brightness(1.2);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-sep {
  color: var(--gold-dim);
  font-size: 12px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(160,152,128,0.45);
  letter-spacing: 0.08em;
}


/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════════════════════ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease calc(var(--delay, 0s)),
              transform 0.65s ease calc(var(--delay, 0s));
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .desc-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .desc-quote {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    padding: 24px;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step-connector {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(201,168,76,0.2), rgba(201,168,76,0.5), rgba(201,168,76,0.2));
    margin: 0;
    align-self: center;
  }

  .step { max-width: 360px; padding: 0 16px; }

}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --nav-h: 56px; }

  .nav-logo-img { height: 22px; }

  .hero-logo { width: clamp(160px, 70vw, 280px); }

  .screenshots-grid {
    gap: 12px;
  }

  .phone-frame {
    width: clamp(110px, 28vw, 150px);
    height: clamp(220px, 56vw, 300px);
    border-radius: 22px;
  }

  .phone-mockup:nth-child(2),
  .phone-mockup:nth-child(3) {
    transform: none;
  }

  /* On mobile, show 2 phones per row */
  .screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
  }

  .phone-mockup img {
    width: clamp(120px, 38vw, 170px);
  }

  .gplay-badge-img { height: 52px; }

  .footer-links { gap: 8px; }
}

@media (max-width: 420px) {
  .store-buttons {
    flex-direction: column;
    align-items: center;
  }
}
