:root {
  --bg-top: #fdf3f7;
  --bg-bottom: #e6ecff;
  --card: rgba(255, 255, 255, 0.75);
  --ink: #2b2a4c;
  --muted: #5d5b7e;
  --moon: #ffd66b;
  --blush: #ff9fb5;
  --badge-bg: #ffe9a8;
  --badge-ink: #6b4e00;
  --star: #b9b4e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #1b1a36;
    --bg-bottom: #2b2a4c;
    --card: rgba(255, 255, 255, 0.06);
    --ink: #2b2a4c;
    --text: #f3f1ff;
    --muted: #c4c1e6;
    --badge-bg: #3d3a6b;
    --badge-ink: #ffe9a8;
    --star: #fff6d5;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text, var(--ink));
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  text-align: center;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 40px 28px 36px;
  box-shadow: 0 20px 50px rgba(43, 42, 76, 0.12);
}

.moon { animation: float 5s ease-in-out infinite; margin-bottom: 8px; }

h1 {
  font-size: clamp(2.2rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 6px;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}

.badge {
  display: inline-block;
  margin: 24px 0 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.lead { color: var(--muted); line-height: 1.6; }

footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Estrelas */
.sky { position: fixed; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--star);
  animation: twinkle 3s ease-in-out infinite;
}
.s1 { top: 10%; left: 12%; }
.s2 { top: 18%; left: 80%; animation-delay: .6s; }
.s3 { top: 35%; left: 6%;  animation-delay: 1.2s; width: 4px; height: 4px; }
.s4 { top: 70%; left: 88%; animation-delay: .3s; }
.s5 { top: 82%; left: 15%; animation-delay: 1.8s; width: 4px; height: 4px; }
.s6 { top: 8%;  left: 55%; animation-delay: 2.1s; width: 4px; height: 4px; }
.s7 { top: 55%; left: 94%; animation-delay: 1s; width: 3px; height: 3px; }
.s8 { top: 90%; left: 60%; animation-delay: 2.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes twinkle {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

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