/* ---------------------------------------------
   Nepal Unlocked — Coming Soon
   Palette: Himalayan dusk, sunrise-over-ridge glow
--------------------------------------------- */

:root {
  --bg-deep:      #0b1522;
  --bg-mid:       #14263b;

  --ridge-1:      #24405c;
  --ridge-2:      #1a3049;
  --ridge-3:      #101f32;

  --gold:         #e8a94a;
  --gold-soft:    rgba(232, 169, 74, 0.35);

  --text-primary: #f4efe4;
  --text-muted:   #9fb0c3;

  --flag-blue:    #4a7fa6;
  --flag-gold:    #e8a94a;
  --flag-red:     #b25a4a;
  --flag-green:   #6b9b6e;
  --flag-white:   #e9e4d8;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  background: var(--bg-deep);
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Sky */
.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg-deep) 0%,
    #101f33 42%,
    #17293f 68%,
    #1c3348 100%
  );
}

.glow {
  position: absolute;
  left: 50%;
  bottom: 22vh;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  transform: translate(-50%, 40%);
  background: radial-gradient(circle, var(--gold-soft) 0%, rgba(232,169,74,0) 68%);
  pointer-events: none;
}

/* Drifting mist */
.mist {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 14vh;
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, rgba(244,239,228,0.10), transparent);
  filter: blur(6px);
}

.mist--far  { bottom: 34vh; animation: drift 34s linear infinite; }
.mist--near { bottom: 20vh; height: 10vh; opacity: 0.35; animation: drift 22s linear infinite reverse; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(12%); }
}

/* Mountains */
.mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 58vh;
  will-change: transform;
}

.ridge { transition: transform 0.6s var(--ease); }
.ridge--1 { fill: var(--ridge-1); opacity: 0.9; }
.ridge--2 { fill: var(--ridge-2); }
.ridge--3 { fill: var(--ridge-3); }

/* Content */
.content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 6vw;
}

.title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  letter-spacing: 0.01em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s var(--ease) 0.15s forwards;
}

.divider {
  display: flex;
  gap: 10px;
  margin: 1.6rem 0 1.4rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

.divider span {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--flag-blue);
}
.divider span:nth-child(2) { background: var(--flag-white); }
.divider span:nth-child(3) { background: var(--flag-gold); }
.divider span:nth-child(4) { background: var(--flag-green); }
.divider span:nth-child(5) { background: var(--flag-red); }

.tagline {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s var(--ease) 0.7s forwards;
}

.tagline em {
  font-style: normal;
  color: var(--gold);
}

.status {
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  animation: rise 1s var(--ease) 1s forwards;
}

.status__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.trail {
  width: 140px;
  height: 14px;
}

.trail path {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 2.2s var(--ease) 1.3s forwards;
}

.status__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 560px) {
  .mountains { height: 46vh; }
  .glow { bottom: 16vh; }
  .status { margin-top: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .title, .divider, .tagline, .status, .trail path {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .mist { animation: none !important; }
  .ridge { transition: none !important; }
}