/* Visitor page only: gradient background, logo, orbit scene, CTA, legal */

/* Lock viewport: no scroll on mobile or desktop */
html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  text-align: center;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(180deg, #000000 0%, #0f0f0f 35%, #1a1a1a 70%, #252525 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' result='n'/%3E%3CfeColorMatrix in='n' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 100% 100%, 200px 200px;
}

.logo-wrap {
  margin-bottom: 24px;
}

.logo-wrap img {
  max-width: 180px;
  height: auto;
  display: block;
}

.orbit-scene {
  width: min(300px, 88vw);
  height: min(300px, 88vw);
  position: relative;
  margin: 0 auto 32px;
  perspective: 800px;
  perspective-origin: 50% 50%;
}

/* Single 3D space: Earth in the center */
.orbit-scene-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* Earth: 3D sphere in the center, slow spin so it feels like a globe */
.earth-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36%;
  transform: translate(-50%, -50%) translateZ(0);
  pointer-events: none;
}

.earth-sphere {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: earth-spin 40s linear infinite;
  box-shadow:
    0 0 30px rgba(100, 150, 255, 0.15),
    inset -15px -15px 30px rgba(0, 0, 0, 0.3);
}

.earth-sphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes earth-spin {
  to { transform: rotateY(360deg); }
}

.cta {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 16px 24px;
  background: #fff;
  color: #000;
  font-family: 'Public Pixel', sans-serif;
  font-size: 1rem;
  text-align: center;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 16px;
}

.legal {
  font-size: 0.75rem;
  color: #888;
  max-width: 320px;
  line-height: 1.4;
}

.legal a {
  color: #aaa;
  text-decoration: underline;
}

.legal a:hover {
  color: #fff;
}

@media (min-width: 600px) {
  body {
    padding: 40px 24px 48px;
  }

  .logo-wrap img {
    max-width: 220px;
  }

  .orbit-scene {
    width: min(360px, 70vw);
    height: min(360px, 70vw);
    margin-bottom: 40px;
  }

  .earth-wrap { width: 36%; }

  .cta {
    max-width: 360px;
    padding: 18px 28px;
    font-size: 1.05rem;
  }
}

@media (min-width: 900px) {
  .orbit-scene {
    width: min(400px, 44vw);
    height: min(400px, 44vw);
  }
}
