/* ==========================================================================
   E2X 사전예약 랜딩 (다크 고정)
   - legal.css 위에 얹어서 사용. footer는 legal.css 스타일 재사용.
   - 컨셉: 심우주 별하늘 아래, 블랙홀 사건의 지평선 위에 떠 있는 E2X 워드마크
   ========================================================================== */

@font-face {
  font-family: "Zen Dots";
  src: url("/assets/fonts/ZenDots-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

body.landing {
  background: #040409;
  color: #e9e9ec;
  overflow-x: hidden;
}

/* ------------------------------ 히어로 ------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px clamp(140px, 22svh, 240px);
  overflow: hidden;
  isolation: isolate;
}

/* 별하늘: 두 레이어, 뒤 레이어만 느리게 깜빡임 */
.stars,
.stars--far {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-repeat: repeat;
  pointer-events: none;
}

.stars {
  background-image:
    radial-gradient(1.2px 1.2px at 22% 28%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(1px 1px at 68% 14%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(1.4px 1.4px at 84% 46%, rgba(210, 225, 255, 0.8), transparent 100%),
    radial-gradient(1px 1px at 8% 64%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1.1px 1.1px at 45% 52%, rgba(230, 238, 255, 0.65), transparent 100%);
  background-size: 420px 420px;
}

.stars--far {
  background-image:
    radial-gradient(0.8px 0.8px at 12% 18%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(0.8px 0.8px at 55% 38%, rgba(255, 255, 255, 0.4), transparent 100%),
    radial-gradient(0.7px 0.7px at 78% 72%, rgba(200, 215, 255, 0.45), transparent 100%),
    radial-gradient(0.9px 0.9px at 33% 82%, rgba(255, 255, 255, 0.35), transparent 100%);
  background-size: 260px 260px;
  animation: twinkle 7s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.35; }
  to   { opacity: 0.9; }
}

/* 사건의 지평선: 거대한 원의 상단 아크만 화면 하단에 노출 */
.horizon {
  position: absolute;
  left: 50%;
  top: calc(100% - clamp(70px, 11svh, 130px));
  width: max(240vw, 900px);
  max-width: 2400px;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: -1;
  background: #020206;
  border: 1px solid rgba(190, 214, 255, 0.55);
  box-shadow:
    0 -2px 14px rgba(170, 200, 255, 0.55),
    0 -18px 60px rgba(100, 140, 255, 0.30),
    0 -60px 180px rgba(80, 100, 255, 0.16);
}

/* 지평선 위로 퍼지는 강착원반 빛 (숨쉬기) */
.horizon-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42svh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    62% 105% at 50% 100%,
    rgba(90, 130, 255, 0.22),
    rgba(120, 90, 255, 0.09) 45%,
    transparent 72%
  );
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

/* ------------------------------ 워드마크 ------------------------------ */

.wordmark {
  font-family: "Zen Dots", "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 18vw, 110px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0;
  text-shadow:
    0 0 18px rgba(150, 180, 255, 0.35),
    0 0 60px rgba(110, 140, 255, 0.25);
  -webkit-box-reflect: below 6px
    linear-gradient(transparent 58%, rgba(255, 255, 255, 0.16));
  animation:
    reveal 1s cubic-bezier(0.2, 0.6, 0.2, 1) both,
    drift 7s ease-in-out 1s infinite;
}

/* 블러 해제 진입: 앱의 "블러 → 원본 공개" 메커니즘을 그대로 */
@keyframes reveal {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(10px) scale(1.03);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ------------------------------ 카피 ------------------------------ */

.hero-copy {
  margin: clamp(36px, 6svh, 56px) 0 0;
  font-size: clamp(21px, 5.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f2f2f5;
  animation: fadeUp 0.8s ease 0.25s both;
}

.hero-copy strong {
  color: #ffffff;
  border-bottom: 2px solid rgba(150, 180, 255, 0.55);
  padding-bottom: 1px;
}

.hero-date {
  margin: clamp(20px, 4svh, 32px) 0 0;
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ff5a63;
  animation: fadeUp 0.8s ease 0.4s both;
}

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

/* ------------------------------ 스토어 버튼 ------------------------------ */

.store-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 320px);
  margin-top: clamp(32px, 5svh, 48px);
  animation: fadeUp 0.8s ease 0.55s both;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

.store-btn:active {
  transform: scale(0.98);
}

.store-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ------------------------------ footer 다크 톤 정리 ------------------------------ */

.landing .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

/* ------------------------------ 데스크톱 튜닝 ------------------------------ */

@media (min-width: 768px) {
  .wordmark {
    font-size: clamp(110px, 12vw, 160px);
  }

  .hero-copy {
    font-size: clamp(28px, 2.6vw, 36px);
  }

  .hero-date {
    font-size: 16px;
  }

  /* 넓은 화면에서 지평선 곡률을 완만하게 — 행성 지평선처럼 */
  .horizon {
    width: max(180vw, 1600px);
  }

  .horizon-glow {
    height: 46svh;
  }
}

/* ------------------------------ 모션 최소화 ------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .hero-copy,
  .hero-date,
  .store-btns,
  .stars--far,
  .horizon-glow {
    animation: none;
  }
}
