:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-block-size: 100%;
}

body {
  margin: 0;
}

.landing-page {
  position: relative;
  isolation: isolate;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  overflow: hidden;
  background-color: #071226;
  color: #ffffff;
}

.landing-page::before,
.landing-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("/assets/images/landing-night.webp?v=original90");
  background-position: center;
  background-repeat: no-repeat;
}

/* Ambient artwork fills only the space outside the sharp, complete image. */
.landing-page::before {
  z-index: -2;
  background-size: cover;
  filter: blur(24px) brightness(0.55);
  transform: scale(1.08);
}

/* Preserve the original aspect ratio and all of the illustration. */
.landing-page::after {
  z-index: -1;
  background-size: contain;
}

.landing-main {
  position: relative;
  z-index: 1;
  display: grid;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.launch-card {
  position: relative;
  display: grid;
  inline-size: min(72vw, 16rem);
  min-block-size: 6.25rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(246 219 170 / 24%);
  border-radius: 1.1rem;
  background:
    linear-gradient(145deg, rgb(22 39 70 / 72%), rgb(12 27 52 / 52%));
  box-shadow:
    0 1.5rem 3.5rem rgb(1 7 19 / 38%),
    0 0.45rem 1.2rem rgb(1 7 19 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 22%),
    inset 0 -1px 0 rgb(255 255 255 / 7%);
  -webkit-backdrop-filter: blur(12px) saturate(116%);
  backdrop-filter: blur(12px) saturate(116%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.launch-card::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 0.82rem;
  pointer-events: none;
}

.launch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgb(255 255 255 / 8%), transparent 35%, transparent 70%, rgb(245 199 117 / 6%));
}

.launch-card:hover {
  border-color: rgb(246 219 170 / 38%);
  box-shadow:
    0 1.75rem 3.8rem rgb(1 7 19 / 44%),
    0 0.6rem 1.45rem rgb(1 7 19 / 32%),
    inset 0 1px 0 rgb(255 255 255 / 26%),
    inset 0 -1px 0 rgb(255 255 255 / 8%);
  transform: translateY(-3px);
}

.launch-card:active {
  transform: translateY(-1px) scale(0.995);
}

.launch-card:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 5px;
}

.launch-card__title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1;
  text-shadow:
    0 0.2rem 0.8rem rgb(0 0 0 / 36%),
    0 0 1.6rem rgb(245 199 117 / 9%);
}

.landing-page .settings-button {
  background: rgb(15 31 58 / 66%);
  border-color: rgb(246 219 170 / 18%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
}

.landing-page .settings-button:hover {
  background: rgb(25 44 76 / 78%);
}

@media (max-width: 600px) {
  .launch-card {
    inline-size: min(70vw, 14.5rem);
    min-block-size: 5.75rem;
    border-radius: 1rem;
  }

  .launch-card::before {
    border-radius: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-card {
    transition-duration: 1ms;
  }
}
