:root {
  color-scheme: dark;
  --violet: #e9c1ff;
  --blue: #8bcbff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090a12;
  color: #f5f5f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

.space {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, #090a1255, #090a1299 65%, #090a12),
    url("/assets/space.webp") center / cover;
  opacity: 0.55;
  pointer-events: none;
}

.halo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse at 50% 65%,
    #7858c220,
    transparent 55%
  );
  pointer-events: none;
}

header {
  padding: 42px 24px 20px;
  text-align: center;
}

header img {
  width: 220px;
  height: auto;
  max-width: 70vw;
}

main {
  width: 100%;
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 24px 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbb7ed2b;
  border-radius: 999px;
  background: #15151fbd;
  padding: 10px 15px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #d6d6e6;
}

.status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px #8bcbff80;
}

h1 {
  margin: 26px 0 20px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.055em;
}

h1 span {
  background: linear-gradient(100deg, var(--violet), var(--blue));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

main > p {
  margin: 0;
  color: #b8b7c8;
  line-height: 1.8;
  font-size: 16px;
}

.planet-scene {
  position: relative;
  width: 250px;
  height: 160px;
  margin: 35px 0 16px;
}

.planet {
  position: absolute;
  z-index: 2;
  left: 85px;
  top: 36px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 23%,
    #c0b0e6 0%,
    #615276 22%,
    #252231 43%,
    #0b0c14 72%
  );
  box-shadow:
    inset 3px 2px 5px #dec8ff66,
    0 0 50px #a58bfa16;
}

.ring {
  position: absolute;
  left: 9px;
  top: 47px;
  width: 230px;
  height: 65px;
  border: 1px solid #d9c3f3aa;
  border-radius: 50%;
  transform: rotate(-22deg);
  box-shadow: 0 0 15px #8bcbff33;
  pointer-events: none;
}

/* Parte trasera: pasa detrás del planeta */
.ring--back {
  z-index: 1;
  clip-path: inset(0 0 50% 0);
  opacity: 0.65;
}

/* Parte frontal: pasa sobre el planeta */
.ring--front {
  z-index: 3;
  clip-path: inset(50% 0 0 0);
}

main .closing {
  font-size: 12px;
  color: #8e8c9e;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 32px 36px;
  color: #828090;
  font-size: 11px;
  letter-spacing: 0.4px;
}

@media (max-width: 480px) {
  header {
    padding-top: 30px;
  }

  header img {
    width: 180px;
  }

  main {
    padding: 36px 20px 20px;
  }

  h1 {
    font-size: 43px;
  }

  main > p {
    max-width: 300px;
    font-size: 14px;
  }

  .desktop-break {
    display: none;
  }

  .planet-scene {
    margin-top: 25px;
  }

  footer {
    padding: 28px 24px;
    font-size: 10px;
  }
}

.satellite {
  position: absolute;
  z-index: 4;
  left: 210px;
  top: 32px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bfdfff;
  box-shadow: 0 0 16px #8bcbff85;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translate(-6px, 3px);
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .satellite {
    animation: none;
  }
}
