:root {
  --bg: #0b1020;
  --bg-raised: #121a30;
  --text: #e8e6df;
  --muted: #9aa3b8;
  --moon: #e8e4d8;
  --accent: #c9b98a;
  --line: rgba(232, 230, 223, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent),
    radial-gradient(1px 1px at 28% 72%, #fff6 50%, transparent),
    radial-gradient(1.5px 1.5px at 44% 32%, #fff9 50%, transparent),
    radial-gradient(1px 1px at 63% 12%, #fff7 50%, transparent),
    radial-gradient(1px 1px at 78% 58%, #fff5 50%, transparent),
    radial-gradient(1.5px 1.5px at 88% 24%, #fff8 50%, transparent),
    radial-gradient(1px 1px at 18% 88%, #fff5 50%, transparent),
    radial-gradient(1px 1px at 55% 90%, #fff6 50%, transparent),
    radial-gradient(1px 1px at 94% 82%, #fff7 50%, transparent),
    radial-gradient(1px 1px at 6% 48%, #fff6 50%, transparent),
    radial-gradient(ellipse at 80% 0%, #1b2547 0%, transparent 60%);
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .brand {
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.15;
}

a { color: inherit; }

/* Header */
header { padding: 28px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 24px; font-size: 0.95rem; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 96px 0 120px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; margin-bottom: 24px; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 36px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--moon);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232, 228, 216, 0.2); }

.moon {
  width: 100%;
  max-width: 360px;
  justify-self: center;
  filter: drop-shadow(0 0 60px rgba(232, 228, 216, 0.18));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.lead { color: var(--muted); max-width: 620px; margin-bottom: 48px; font-size: 1.05rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.card .num { font-family: "Space Grotesk", sans-serif; color: var(--accent); font-size: 0.9rem; margin-bottom: 14px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { border-top: 2px solid var(--accent); padding-top: 18px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }

footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .moon { max-width: 220px; order: -1; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .moon { animation: none; }
  html { scroll-behavior: auto; }
}

/* Footer links */
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .footer-links { display: flex; gap: 20px; }

/* Long-form pages (privacy policy, terms of service) */
.prose { max-width: 720px; padding: 48px 0 96px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 12px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 20px; margin-bottom: 12px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent); }
