:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #101828;
  /*background: radial-gradient(circle at top, #f8fafc 0%, #eef2ff 55%, #e0f2fe 100%);*/
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3vw;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.actions a {
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.actions a.primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 18px 35px -25px rgba(79, 70, 229, 0.8);
}

.actions a.secondary {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.45);
  backdrop-filter: blur(5px);
}

.actions a:hover {
  transform: translateY(-2px);
}

main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /*padding: 4rem 5vw 5rem;*/
}

.hero {
  position: absolute;
  inset: 10% auto auto 7%;
  max-width: 420px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  color: rgba(15, 23, 42, 0.8);
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 18px 32px -22px rgba(15, 23, 42, 0.7);
}

.hero .cta:hover {
  transform: translateY(-2px);
}

.system-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100vw, 1024px);
  height: min(50vw, 1024px);
  max-height: 90vh;
}

.system {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transform: rotateX(75deg);
  width: 100%;
  height: 50%;
  max-height: inherit;
}

.star {
  width: 60vh;
  max-width: 520px;
  padding-bottom: 60vh;
  max-height: 520px;
  border-radius: 50%;
  position: relative;
  transform: rotateX(-75deg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
}

.planet {
  animation: orbit 5s linear infinite both;
  position: absolute;
  transform-style: preserve-3d;
}

.planet::after {
  content: "";
  display: block;
  width: 10vw;
  max-width: 120px;
  padding-bottom: 15vh;
  background-color: #e251ab;
  border-radius: 50%;
  position: relative;
  z-index: -1;
  top: 40vh;
  animation: spin 5s linear infinite both;
  box-shadow: inset -12px -10px 25px rgba(0, 0, 0, 0.25);
}

.planet.planet--2 {
  animation-duration: 10s;
}

.planet.planet--2::after {
  background-color: #c04591;
  top: auto;
  bottom: 100vh;
  width: 5vw;
  max-width: 60px;
  padding-bottom: 5vh;
  animation-duration: 10s;
}

.planet.planet--3 {
  animation-duration: 15s;
}

.planet.planet--3::after {
  background-color: #ee5374;
  top: auto;
  left: 70vh;
  width: 25vh;
  max-width: 180px;
  padding-bottom: 25vh;
  animation-duration: 15s;
}

.planet.planet--4 {
  animation-duration: 7s;
}

.planet.planet--4::after {
  background-color: #9e3977;
  top: auto;
  left: 120vh;
  width: 17vh;
  max-width: 140px;
  padding-bottom: 17vh;
  animation-duration: 7s;
}

.planet.planet--5 {
  animation-duration: 11s;
}

.planet.planet--5::after {
  background-color: #7c2d5e;
  top: 30vh;
  right: 90vh;
  width: 10vh;
  max-width: 80px;
  padding-bottom: 10vh;
  animation-duration: 11s;
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(30, 41, 59, 0.65);
}

@keyframes orbit {
  0% {
    transform: rotate(0deg);
    z-index: -1;
  }
  49.9% {
    z-index: -1;
  }
  50% {
    z-index: 2;
  }
  100% {
    transform: rotate(360deg);
    z-index: 2;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg) rotateX(-90deg);
  }
  100% {
    transform: rotate(-360deg) rotateX(-90deg);
  }
}

@media (max-width: 1024px) {
  header {
    padding: 1.25rem 5vw;
  }

  .hero {
    position: relative;
    inset: auto;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 640px;
  }

  .hero .cta {
    justify-content: center;
  }

  main {
    flex-direction: column;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  .actions {
    width: 100%;
    justify-content: center;
  }

  .actions a {
    flex: 1;
    text-align: center;
  }

  .system-wrapper {
    width: 100%;
    height: 70vh;
  }

  .star {
    width: 45vh;
    padding-bottom: 45vh;
  }
}
