/*
 * Orbite website, home page: the hero and its live preview, the frame of the sections, and the nova at the bottom,
 * under the call that the game is coming. The sections themselves are in sections.css. Colours carry the game's meaning: gold for PARFAIT, cyan for SUPER, mint for a guide on
 * target and for EASY, orange for MEDIUM, red for HARD, violet for ÉTERNEL.
 */
.landing main {
  position: relative;
  z-index: 1;
  /* Floating planets, glows and tilted phones may reach past the sides of the window: never a sideways scroll.
     hidden first, for the browsers that do not know clip (Safari before 16). */
  overflow-x: hidden;
  overflow-x: clip;
}

/* ------------------------------------------------------------------------------------------------- Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas:
    "pitch device"
    "cta device";
  align-items: center;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) var(--pad-r) clamp(64px, 10vh, 120px) var(--pad-l);
}
.hero-pitch {
  grid-area: pitch;
  align-self: end;
}
.hero-device {
  grid-area: device;
  position: relative;
  justify-self: center;
  width: min(100%, 330px);
}
.hero-cta {
  grid-area: cta;
  align-self: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 15px 8px 11px;
  background: rgba(42, 27, 92, 0.8);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  color: var(--cyan);
  font: 400 0.8rem/1 var(--f-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pips {
  display: inline-flex;
  gap: 4px;
}
.pips i {
  width: 10px;
  height: 10px;
  border: 2.5px solid var(--tint, currentColor);
  border-radius: 50%;
}
.eyebrow .pips i {
  border: 2px solid var(--ink);
}
.eyebrow .pips i:nth-child(1) {
  background: var(--mint);
}
.eyebrow .pips i:nth-child(2) {
  background: var(--orange);
}
.eyebrow .pips i:nth-child(3) {
  background: var(--danger);
}

.logo {
  margin: 0 0 4px -3%;
}
.logo img {
  width: min(106%, 620px);
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(8, 3, 34, 0.5));
}

.tagline {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 1.15rem + 2.5vw, 3.1rem);
  line-height: 1.1;
}

.lede {
  max-width: 34ch;
  margin: 0;
  color: var(--body);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
}

/* The live preview, in a phone with a glow behind it and two planets floating around. */
.hero-device::before {
  content: "";
  position: absolute;
  inset: -18% -40%;
  z-index: 0;
  background:
    radial-gradient(closest-side, rgba(255, 77, 141, 0.38), transparent 70%) 60% 70% / 70% 60% no-repeat,
    radial-gradient(closest-side, rgba(123, 92, 255, 0.45), transparent 72%) 40% 30% / 80% 70% no-repeat;
  pointer-events: none;
}
.phone--live {
  z-index: 1;
}
.phone--live canvas {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.phone--live[data-state="live"] canvas {
  opacity: 1;
}

.float {
  position: absolute;
  z-index: 0;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(8, 3, 34, 0.55));
  animation: float 7s ease-in-out infinite;
}
.float--gold {
  top: -7%;
  right: -30%;
  width: 40%;
}
.float--mint {
  bottom: 6%;
  left: -30%;
  width: 30%;
  animation-delay: -3.2s;
  animation-duration: 8.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-14px) rotate(5deg);
  }
}

/* "Coming soon" on the two stores: no link yet, so nothing that looks like a button. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store {
  display: grid;
  gap: 3px;
  min-width: 200px;
  padding: 12px 22px 14px 18px;
  background: #0f0928;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow:
    0 6px 0 var(--ink),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}
.store-kicker {
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 600;
}
.store-kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(255, 228, 94, 0.22);
}
.store-name {
  color: var(--text);
  font: 400 1.4rem/1.1 var(--f-display);
  letter-spacing: 0.01em;
}
.cta-note {
  margin: 16px 0 0;
  color: var(--mute);
  font-size: 0.95rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------------------------- Sections */
.how,
.tiers,
.seasons,
.more,
.soon {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 136px) var(--pad-r) 0 var(--pad-l);
}

.section-title {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  line-height: 1.06;
  text-wrap: balance;
}
.section-lede {
  max-width: 52ch;
  margin: 0 0 26px;
  color: var(--body);
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------------------------- Coming soon, and the nova */
.soon {
  position: relative;
  padding-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
}
.soon-moon {
  width: 88px;
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 16px rgba(8, 3, 34, 0.55));
  animation: float 6s ease-in-out infinite;
}
.soon-title {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 1.5rem + 5vw, 5.4rem);
  line-height: 1;
}
.soon-lede {
  max-width: 40ch;
  margin: 0 auto 28px;
  color: var(--body);
  font-size: 1.15rem;
  text-wrap: balance;
}
.soon .stores {
  justify-content: center;
}

.nova {
  position: relative;
  height: clamp(120px, 14vw, 200px);
  pointer-events: none;
}
.nova::before {
  content: "";
  position: absolute;
  inset: -220px 0 0;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 46, 126, 0.5), rgba(255, 46, 126, 0) 72%);
  animation: glow 4s ease-in-out infinite;
}
.nova svg {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
}
.nova path {
  fill: url(#nova-fill);
}

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

/* The footer stands in the nova: ink on its hottest pink. */
.landing .foot {
  background: var(--nova);
  color: var(--ink);
}

/* -------------------------------------------------------------------------------------------- Phones */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "pitch"
      "device"
      "cta";
    justify-items: center;
    padding-top: 18px;
    text-align: center;
  }
  .logo {
    margin: 0 0 2px;
  }
  .logo img {
    width: min(100%, 520px);
    margin: 0 auto;
  }
  .lede {
    margin: 0 auto;
  }
  .hero-device {
    width: min(72vw, 300px);
    margin-top: 8px;
  }
  .hero-cta {
    display: grid;
    justify-items: center;
  }
  .stores {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  /* The stores below already name the two phones. */
  .eyebrow-more {
    display: none;
  }
  .store {
    min-width: 0;
    flex: 1 1 200px;
  }
  .float--gold {
    right: -20%;
    width: 34%;
  }
  .float--mint {
    left: -20%;
    width: 26%;
  }
}
