:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --space: #070514;
  --space-soft: #12082d;
  --cream: #fdf6e3;
  --soft: #e6e6d6;
  --violet: #705986;
  --violet-dark: #2c1652;
  --lime: #c9ff21;
  --blue: #497efa;
  --green: #238954;
  --ink: #2c1652;
  --radius-control: 12px;
  --radius-card: 18px;
  --shadow-phone: 0 30px 70px rgba(20, 9, 43, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--space);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--cream);
  background: var(--space);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(1400px, calc(100% - 80px));
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  transform: translateX(-50%);
}

.brand {
  width: max-content;
  color: var(--cream);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
}

.brand span {
  color: var(--lime);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 0.98rem;
  font-weight: 600;
}

.site-nav a,
.site-footer nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--lime);
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 58px;
  width: max-content;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(253, 246, 227, 0.74);
  border-radius: var(--radius-control);
  color: #fff;
  background: #050505;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--lime);
  box-shadow: 0 15px 42px rgba(0, 0, 0, 0.34);
}

.store-button img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.store-button span {
  display: grid;
  font-size: 0.68rem;
  line-height: 1.1;
}

.store-button strong {
  font-size: 1.2rem;
  line-height: 1.08;
}

.store-button--header {
  justify-self: end;
  min-height: 54px;
}

.hero {
  position: relative;
  min-height: 930px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 31%, rgba(108, 36, 180, 0.28), transparent 34%),
    radial-gradient(circle at 94% 14%, rgba(73, 126, 250, 0.17), transparent 18%),
    linear-gradient(145deg, #05040f 0%, #090519 52%, #11072b 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: -5%;
  bottom: -101px;
  left: -5%;
  height: 190px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--cream);
}

.hero__stars,
.launch__stars {
  position: absolute;
  inset: 0;
  opacity: 0.78;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(201, 255, 33, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(183, 133, 255, 0.92) 0 1px, transparent 1.8px);
  background-position: 0 0, 70px 40px, 19px 96px;
  background-size: 143px 151px, 193px 181px, 227px 211px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 92%, transparent);
}

.hero__content {
  position: relative;
  z-index: 5;
  width: min(1400px, calc(100% - 80px));
  min-height: 930px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(600px, 0.9fr) minmax(660px, 1.1fr);
  align-items: center;
  gap: 30px;
  padding: 132px 0 110px;
}

.hero__copy {
  align-self: center;
  max-width: 650px;
}

.hero h1,
.missions h2,
.launch h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(4rem, 5.25vw, 5rem);
  line-height: 0.97;
  text-wrap: balance;
}

.hero__copy > p {
  max-width: 590px;
  margin: 36px 0 0;
  color: rgba(253, 246, 227, 0.78);
  font-size: clamp(1.15rem, 1.55vw, 1.48rem);
  line-height: 1.62;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}

.store-button--hero {
  min-height: 75px;
  padding: 10px 22px 10px 10px;
  border-color: #a64cff;
  background: linear-gradient(145deg, #7c3fb2, #4e2679);
}

.store-button--hero img {
  width: 54px;
  height: 54px;
  border-radius: 11px;
}

.store-button--hero span {
  font-size: 0.8rem;
}

.store-button--hero strong {
  font-size: 1.58rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #b775ff;
  font-size: 1.02rem;
  font-weight: 600;
  text-underline-offset: 6px;
}

.text-link svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.text-link:hover svg,
.text-link:focus-visible svg {
  transform: translateX(4px);
}

.hero__art {
  position: relative;
  min-height: 650px;
  align-self: end;
}

.planet {
  position: absolute;
  z-index: 0;
  right: -10%;
  bottom: -90px;
  width: 106%;
  height: 330px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    linear-gradient(rgba(85, 42, 137, 0.17), rgba(49, 16, 89, 0.64)),
    repeating-conic-gradient(from 45deg, #251040 0 12.5%, #58307e 0 25%);
  box-shadow: 0 -22px 80px rgba(156, 63, 255, 0.38);
  transform: rotate(-2deg);
}

.hero__character {
  position: absolute;
  z-index: 1;
  right: 25%;
  bottom: 26px;
  width: 510px;
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.45));
}

.phone {
  position: relative;
  overflow: hidden;
  border: 7px solid #15131b;
  border-radius: 42px;
  background: #15131b;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 34px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.phone__speaker {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 50%;
  width: 35%;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: #111015;
  transform: translateX(-50%);
}

.phone > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone--hero {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 10px;
  width: 268px;
  aspect-ratio: 1206 / 2622;
  transform: rotate(2deg);
}

.missions {
  position: relative;
  z-index: 6;
  overflow: hidden;
  color: var(--ink);
  background: var(--cream);
}

.missions::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -5%;
  bottom: -94px;
  left: -5%;
  height: 180px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--violet);
}

.missions__inner {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 80px));
  min-height: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(650px, 1.03fr) minmax(570px, 0.97fr);
  align-items: center;
  gap: 40px;
  padding: 100px 0 120px;
}

.missions h2 {
  color: var(--violet-dark);
  font-size: clamp(3.35rem, 4.1vw, 4rem);
  line-height: 1;
}

.missions__intro {
  margin: 24px 0 54px;
  color: var(--violet);
  font-size: clamp(1.1rem, 1.5vw, 1.38rem);
  line-height: 1.5;
}

.mission-list {
  display: grid;
  gap: 0;
}

.mission {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 26px;
  min-height: 132px;
  padding: 21px 0;
  border-top: 1px solid rgba(112, 89, 134, 0.24);
}

.mission:last-child {
  border-bottom: 1px solid rgba(112, 89, 134, 0.24);
}

.mission img {
  width: auto;
  height: 82px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(44, 22, 82, 0.13));
}

.mission h3 {
  margin: 0;
  color: var(--violet-dark);
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.2;
}

.mission p {
  margin: 7px 0 0;
  color: var(--violet);
  font-size: 1rem;
  line-height: 1.5;
}

.missions__previews {
  position: relative;
  min-height: 650px;
}

.phone--mission {
  position: absolute;
  width: 298px;
  aspect-ratio: 1206 / 2622;
}

.phone--command {
  z-index: 2;
  right: 35%;
  bottom: 5px;
  transform: rotate(-4deg);
}

.phone--daily {
  z-index: 1;
  right: 1%;
  bottom: 26px;
  transform: rotate(5deg);
}

.missions__saucer {
  position: absolute;
  z-index: 4;
  right: 36%;
  bottom: -2px;
  width: 210px;
  filter: drop-shadow(0 24px 18px rgba(44, 22, 82, 0.2));
}

.launch {
  position: relative;
  z-index: 5;
  overflow: hidden;
  min-height: 650px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.09), transparent 36%),
    linear-gradient(145deg, #765e8e, #594172 52%, #3f295c);
}

.launch__stars {
  opacity: 0.32;
  mask-image: none;
}

.launch__content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 80px));
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 86px 0 70px;
  text-align: center;
}

.launch__icon {
  width: 184px;
  border-radius: 38px;
  box-shadow: 0 24px 55px rgba(28, 10, 51, 0.35);
}

.launch h2 {
  font-size: clamp(3.4rem, 5.4vw, 5.6rem);
  line-height: 0.98;
}

.launch__content > p {
  max-width: 610px;
  margin: 24px 0 28px;
  color: rgba(253, 246, 227, 0.88);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}

.launch__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.store-button--launch {
  min-height: 68px;
}

.launch__saucer {
  position: absolute;
  right: -95px;
  bottom: 72px;
  width: 240px;
  filter: drop-shadow(0 24px 20px rgba(28, 10, 51, 0.36));
  transform: rotate(5deg);
}

.site-footer {
  min-height: 122px;
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  color: rgba(253, 246, 227, 0.84);
}

.site-footer nav {
  display: flex;
  gap: 34px;
}

.site-footer p {
  justify-self: end;
  margin: 0;
}

.brand--footer {
  font-size: 1.45rem;
}

.legal-page {
  background:
    radial-gradient(circle at 80% 8%, rgba(112, 89, 134, 0.3), transparent 28%),
    var(--space);
}

.site-header--legal {
  position: relative;
  left: auto;
  transform: none;
}

.site-header--legal .site-nav {
  justify-self: end;
}

.legal-main {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 68px 0 100px;
}

.legal-hero {
  padding: 52px 0 44px;
  border-bottom: 1px solid rgba(253, 246, 227, 0.16);
}

.legal-eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-summary {
  max-width: 750px;
  margin: 26px 0 0;
  color: rgba(253, 246, 227, 0.78);
  font-size: 1.15rem;
  line-height: 1.7;
}

.legal-updated {
  margin: 22px 0 0;
  color: rgba(253, 246, 227, 0.58);
  font-size: 0.92rem;
}

.legal-content {
  display: grid;
  gap: 44px;
  padding-top: 52px;
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 48px;
}

.legal-section h2 {
  margin: 0;
  color: var(--lime);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

.legal-copy {
  color: rgba(253, 246, 227, 0.8);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-copy p {
  margin: 0 0 18px;
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

.legal-copy ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-copy li + li {
  margin-top: 12px;
}

.legal-copy strong {
  color: var(--cream);
}

.legal-copy a {
  color: var(--lime);
  text-underline-offset: 4px;
}

.legal-note {
  padding: 20px 22px;
  border: 1px solid rgba(201, 255, 33, 0.24);
  border-radius: var(--radius-card);
  background: rgba(201, 255, 33, 0.06);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero__content {
    grid-template-columns: minmax(460px, 0.9fr) minmax(500px, 1.1fr);
  }

  .hero__character {
    right: 15%;
  }

  .missions__inner {
    grid-template-columns: minmax(500px, 0.96fr) minmax(460px, 1.04fr);
    gap: 30px;
  }

  .phone--mission {
    width: 260px;
  }

  .launch__icon {
    width: 180px;
  }

  .launch__saucer {
    display: none;
  }
}

@media (max-width: 1000px) {
  .site-header,
  .hero__content,
  .missions__inner,
  .launch__content,
  .site-footer {
    width: min(100% - 40px, 700px);
  }

  .store-button--header {
    min-height: 48px;
  }

  .store-button--header img {
    width: 34px;
    height: 34px;
  }

  .store-button--header strong {
    font-size: 1rem;
  }

  .hero {
    min-height: 1160px;
  }

  .hero__content {
    min-height: 1160px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 30px;
    padding-top: 145px;
  }

  .hero__copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 13vw, 5.3rem);
  }

  .hero__copy > p {
    margin-inline: auto;
  }

  .hero__actions {
    align-items: center;
  }

  .hero__art {
    min-height: 570px;
  }

  .hero__character {
    right: 23%;
  }

  .phone--hero {
    right: 8%;
  }

  .missions__inner {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .missions__copy {
    text-align: center;
  }

  .mission {
    text-align: left;
  }

  .missions__previews {
    min-height: 660px;
  }

  .phone--command {
    right: 46%;
  }

  .phone--daily {
    right: 9%;
  }

  .launch__content {
    gap: 32px;
  }

  .launch__icon {
    width: 150px;
    border-radius: 32px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    display: none;
  }

  .site-header--legal {
    width: min(100% - 40px, 980px);
  }
}

@media (max-width: 590px) {
  .site-header {
    min-height: 78px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .store-button--header {
    min-height: 42px;
    padding: 5px 10px 5px 5px;
  }

  .store-button--header img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .store-button--header span {
    font-size: 0;
  }

  .store-button--header strong {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 1050px;
  }

  .hero__content {
    min-height: 1050px;
    padding-top: 116px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 4.5rem);
  }

  .hero__copy > p {
    margin-top: 25px;
    font-size: 1.08rem;
    line-height: 1.52;
  }

  .store-button--hero strong {
    font-size: 1.36rem;
  }

  .hero__art {
    min-height: 480px;
  }

  .hero__character {
    right: 13%;
    bottom: 10px;
    width: 400px;
  }

  .phone--hero {
    right: -3%;
    width: 205px;
  }

  .missions__inner {
    padding-top: 58px;
  }

  .missions h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .missions__intro {
    margin-bottom: 34px;
  }

  .mission {
    grid-template-columns: 68px 1fr;
    gap: 15px;
  }

  .mission img {
    height: 68px;
  }

  .mission h3 {
    font-size: 1.22rem;
  }

  .mission p {
    font-size: 0.93rem;
  }

  .missions__previews {
    min-height: 520px;
  }

  .phone--mission {
    width: 205px;
    border-width: 5px;
    border-radius: 32px;
  }

  .phone--command {
    right: 43%;
  }

  .phone--daily {
    right: -2%;
  }

  .missions__saucer {
    right: 27%;
    width: 150px;
  }

  .launch {
    min-height: 700px;
  }

  .launch__content {
    min-height: 700px;
    gap: 30px;
    padding-block: 76px;
    text-align: center;
  }

  .launch__icon {
    width: 148px;
  }

  .launch h2 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .store-button--launch {
    margin-inline: auto;
  }

  .site-footer {
    min-height: 160px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 17px;
    padding-block: 28px;
  }

  .legal-main {
    padding: 28px 0 72px;
  }

  .legal-hero {
    padding: 36px 0;
  }

  .legal-summary {
    font-size: 1.02rem;
  }

  .legal-content {
    gap: 40px;
    padding-top: 42px;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
