:root {
  color-scheme: dark;
  --night: #071526;
  --night-deep: #04101f;
  --card: #48cfc4;
  --card-shadow: rgba(0, 0, 0, 0.28);
  --ink: #09233a;
  --muted-ink: #174b59;
  --lime: #365f00;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 50% 0%, #102946 0, var(--night) 42%, var(--night-deep) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 4rem);
}

.welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  width: min(100%, 980px);
  min-height: 490px;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid rgba(196, 255, 242, 0.35);
  border-radius: 2.25rem;
  background: linear-gradient(135deg, #51d8ca 0%, var(--card) 62%, #34b7b5 100%);
  box-shadow: 0 2rem 5rem var(--card-shadow);
}

.welcome-copy,
.planet-stage { min-width: 0; }

.welcome-copy { position: relative; z-index: 1; max-width: 32rem; }

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted-ink);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--lime);
  font-size: clamp(3rem, 8vw, 6.1rem);
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-wrap: balance;
}

.intro {
  max-width: 28rem;
  margin: 2rem 0 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 560;
  line-height: 1.65;
}

.planet-stage { display: grid; place-items: center; min-height: 280px; }
.planet { display: block; width: min(100%, 360px); max-width: 100%; overflow: visible; }
.planet-halo { fill: #d4ffff; opacity: 0.16; }
.orbit-line { fill: none; stroke: #d4ffff; stroke-width: 2; stroke-dasharray: 5 9; opacity: 0.72; }
.planet-body { transform-origin: 174px 158px; animation: float 7s ease-in-out infinite; }
.moon { transform-origin: 174px 158px; animation: orbit 13s linear infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .page-shell { padding: 1rem; }
  .welcome-card { grid-template-columns: 1fr; min-height: auto; padding: 2.5rem 1.5rem 1.25rem; border-radius: 1.75rem; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); overflow-wrap: anywhere; }
  .planet-stage { min-height: 220px; margin-top: 1rem; }
  .planet { width: min(100%, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
