/* ── Reset & base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  height: 100%;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #0a1628;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* ── Preloader (3s) ──────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1628;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: min(280px, 70vw);
  animation: preloaderLogoIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.preloader__logo {
  width: min(200px, 55vw);
  height: auto;
  opacity: 0.95;
}

.preloader__bar {
  width: 100%;
  height: 2px;
  background: rgba(210, 160, 71, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.preloader__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #d2a047;
  border-radius: 2px;
  animation: preloaderProgress 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes preloaderLogoIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderProgress {
  from { width: 0; }
  to   { width: 100%; }
}

body.is-loaded .section-video__player {
  animation: videoReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Full-viewport scroll snap */
.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ── Section 1: Fullscreen video ─────────────────────────── */
.section-video {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.section-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
}

@keyframes videoReveal {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide native controls in supporting browsers */
.section-video__player::-webkit-media-controls {
  display: none !important;
}

.section-video__player--mobile {
  display: none;
}

@media (max-width: 768px) {
  .section-video__player--desktop {
    display: none;
  }

  .section-video__player--mobile {
    display: block;
  }
}

/* Scroll hint */
.section-video__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.4s ease;
  animation: hintFadeIn 1s ease 1.2s both;
}

.section-video__scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.section-video__scroll-hint-icon {
  display: block;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(210, 160, 71, 0.85);
  border-radius: 12px;
  position: relative;
}

.section-video__scroll-hint-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: #d2a047;
  border-radius: 50%;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes hintFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%      { opacity: 0.3; transform: translateY(10px); }
}

/* ── Scroll-triggered animations ─────────────────────────── */
.animate {
  opacity: 0;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate[data-animate="fade-up"] {
  transform: translateY(28px);
}

.animate[data-animate="fade-down"] {
  transform: translateY(-24px);
}

.animate[data-delay="1"] { transition-delay: 0.15s; }
.animate[data-delay="2"] { transition-delay: 0.3s; }
.animate[data-delay="3"] { transition-delay: 0.45s; }

.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA subtle pulse after reveal */
.section-launch__cta.is-visible {
  animation: ctaGlow 2.8s ease-in-out 0.9s infinite;
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(210, 160, 71, 0); }
  50%      { box-shadow: 0 0 24px 2px rgba(210, 160, 71, 0.25); }
}

/* ── Section 2: Launching soon ───────────────────────────── */
.section-launch {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a1628;
  background-image: url("assets/LNPH_Deck_Main%20Color%20Cover.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 1.5rem 4rem;
}

.section-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.15) 0%,
    rgba(10, 22, 40, 0) 40%,
    rgba(10, 22, 40, 0.2) 100%
  );
  pointer-events: none;
  animation: overlayPulse 6s ease-in-out infinite alternate;
}

@keyframes overlayPulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

.section-launch__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
  height: 100%;
  gap: 2.5rem;
}

/* Brand / logo */
.section-launch__brand {
  flex-shrink: 0;
}

.section-launch__logo {
  display: block;
  width: min(320px, 72vw);
  height: auto;
  margin: 0 auto;
}

/* Main content */
.section-launch__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.section-launch__headline {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #ffffff;
}

/* CTA button */
.section-launch__cta {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background-color: #d2a047;
  color: #ffffff;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.section-launch__cta:hover,
.section-launch__cta:focus-visible {
  background-color: #c0903a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(210, 160, 71, 0.35);
  outline: none;
}

.section-launch__cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(210, 160, 71, 0.45);
}

/* Footer */
.section-launch__footer {
  flex-shrink: 0;
  margin-top: auto;
}

.section-launch__copyright {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

/* ── Cursor follow ─────────────────────────────────────────── */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor__dot,
.cursor__ring,
.cursor__glow {
  position: fixed;
  top: 0;
  left: 0;
  will-change: transform;
  pointer-events: none;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d2a047;
  box-shadow: 0 0 12px rgba(210, 160, 71, 0.6);
  z-index: 3;
}

.cursor__ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(210, 160, 71, 0.55);
  z-index: 2;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              background 0.35s ease;
}

.cursor__glow {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(210, 160, 71, 0.14) 0%,
    rgba(210, 160, 71, 0.04) 45%,
    transparent 70%
  );
  z-index: 1;
  transition: width 0.45s ease, height 0.45s ease, opacity 0.35s ease;
}

.cursor.cursor--hover .cursor__ring {
  width: 52px;
  height: 52px;
  border-color: rgba(210, 160, 71, 0.85);
  background: rgba(210, 160, 71, 0.08);
}

.cursor.cursor--hover .cursor__dot {
  width: 4px;
  height: 4px;
  opacity: 0.85;
}

.cursor.cursor--hover .cursor__glow {
  width: 160px;
  height: 160px;
  opacity: 1.2;
}

body.has-cursor,
body.has-cursor * {
}

body.is-loading .cursor {
  display: none;
}

@media (pointer: coarse) {
  .cursor {
    display: none !important;
  }

  body.has-cursor,
  body.has-cursor * {
    cursor: auto !important;
  }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .preloader__bar-fill {
    animation-duration: 0.01s;
  }

  .preloader__inner {
    animation: none;
  }

  .section-video__player,
  .section-video__scroll-hint,
  .section-launch::before,
  .animate,
  .section-launch__cta.is-visible {
    animation: none !important;
    transition: none !important;
  }

  .animate {
    opacity: 1;
    transform: none;
  }

  .section-video__scroll-hint-icon::after {
    animation: none;
  }

  .cursor {
    display: none !important;
  }

  body.has-cursor,
  body.has-cursor * {
    cursor: auto !important;
  }
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 480px) {
  .section-launch {
    padding: 2.5rem 1.25rem 3rem;
  }

  .section-launch__inner {
    gap: 2rem;
  }

  .section-launch__content {
    gap: 1.75rem;
  }

  .section-launch__cta {
    padding: 0.8rem 1.75rem;
    font-size: 0.9rem;
  }

  .section-video__scroll-hint {
    bottom: 1.5rem;
  }
}
