:root {
  --landing-space: #020306;
  --landing-gold: #d4af37;
  --landing-gold-light: #ffe36d;
  --landing-white: #ffffff;
  --landing-muted: #d6d6d6;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body.landing-page {
  overflow: hidden;
  background: var(--landing-space);
  color: var(--landing-white);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.landing-stage {
  position: relative;
  isolation: isolate;

  width: 100vw;
  min-height: 100svh;

  display: grid;
  place-items: center;

  overflow: hidden;

  padding: 40px;
}

/* =========================================================
   SPACE AND EARTH
========================================================= */

.landing-space,
.landing-stars,
.landing-nebula,
.landing-earth {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-space {
  z-index: -5;

  background:
    linear-gradient(
      90deg,
      rgba(2, 8, 20, 0.94),
      rgba(2, 8, 20, 0.18)
    ),
    radial-gradient(
      circle at 50% 44%,
      rgba(50, 105, 190, 0.22),
      transparent 38%
    ),
    #020306;
}

.landing-stars {
  z-index: -4;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.88) 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.25) 1px,
      transparent 1.5px
    );

  background-size:
    46px 46px,
    83px 83px;

  background-position:
    0 0,
    22px 28px;

  opacity: 0.24;

  animation: landingStarsMove 90s linear infinite;
}

.landing-nebula {
  inset: -25%;
  z-index: -3;

  background:
    radial-gradient(
      circle at 50% 44%,
      rgba(64, 130, 255, 0.18),
      transparent 25%
    ),
    radial-gradient(
      circle at 64% 38%,
      rgba(212, 175, 55, 0.1),
      transparent 26%
    );

  filter: blur(58px);

  animation: landingNebulaPulse 10s ease-in-out infinite alternate;
}

.landing-earth {
  inset: auto;
  left: 50%;
  top: 50%;

  width: min(68vw, 730px);
  aspect-ratio: 1;

  transform: translate(-50%, -50%);
  transform-origin: center;

  border-radius: 50%;

  background:
    url("../assets/images/earth.jpg")
    center / cover
    no-repeat;

  box-shadow:
    inset -80px -45px 120px rgba(0, 0, 0, 0.48),
    0 0 45px rgba(80, 160, 255, 0.34),
    0 0 110px rgba(35, 95, 190, 0.18);

  animation:
    landingEarthRotate 120s linear infinite,
    landingEarthGlow 8s ease-in-out infinite alternate;
}

/* =========================================================
   FLAGS
========================================================= */

.flag-orbit {
  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;
}

.flag {
  position: absolute;
  left: var(--x);
  top: var(--y);

  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1;

  transform: translate(-50%, -50%);

  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.72))
    drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));

  animation: landingFlagFloat 8s ease-in-out infinite;
  animation-delay: var(--delay);
}

/* =========================================================
   HERO
========================================================= */

.landing-content {
  position: relative;
  z-index: 6;

  width: min(760px, 92vw);

  text-align: center;
}

.landing-logo {
  width: clamp(112px, 12vw, 172px);
  height: clamp(112px, 12vw, 172px);

  display: block;

  margin: 0 auto 10px;

  object-fit: contain;

  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 34px rgba(212, 175, 55, 0.36));
}

.landing-title {
  margin: 0;

  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-indent: 0.12em;

  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.26),
    0 0 52px rgba(50, 105, 190, 0.24);
}

.landing-motto {
  margin: 18px 0 0;

  color: var(--landing-gold-light);

  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
}

.landing-sub {
  max-width: 680px;

  margin: 16px auto 0;

  color: var(--landing-muted);

  font-size: 1.04rem;
  line-height: 1.65;
}

.enter-button {
  min-height: 56px;

  display: inline-flex;
  align-items: center;

  margin-top: 28px;
  padding: 0 32px;

  color: #111111;
  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      var(--landing-gold-light),
      var(--landing-gold)
    );

  font-weight: 950;

  box-shadow:
    0 0 30px rgba(212, 175, 55, 0.3);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.enter-button:hover {
  transform: translateY(-4px);

  box-shadow:
    0 0 48px rgba(212, 175, 55, 0.52);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes landingStarsMove {
  to {
    background-position:
      520px 920px,
      545px 950px;
  }
}

@keyframes landingNebulaPulse {
  from {
    opacity: 0.58;
    transform: scale(1);
  }

  to {
    opacity: 0.92;
    transform: scale(1.05);
  }
}

@keyframes landingEarthRotate {
  from {
    transform:
      translate(-50%, -50%)
      rotate(0deg);
  }

  to {
    transform:
      translate(-50%, -50%)
      rotate(360deg);
  }
}

@keyframes landingEarthGlow {
  from {
    filter: brightness(0.92);
  }

  to {
    filter: brightness(1.06);
  }
}

@keyframes landingFlagFloat {
  0%,
  100% {
    transform:
      translate(-50%, -50%)
      translateY(0)
      rotate(-2deg);
  }

  50% {
    transform:
      translate(-50%, -50%)
      translateY(-15px)
      rotate(3deg);
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 680px) {
  .landing-stage {
    padding: 24px;
  }

  .landing-earth {
    width: min(112vw, 520px);
  }

  .landing-logo {
    width: 108px;
    height: 108px;
  }

  .landing-title {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .landing-sub {
    font-size: 0.95rem;
  }

  .flag {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-stars,
  .landing-nebula,
  .landing-earth,
  .flag {
    animation: none;
  }
}
