/* ── Shared theme + layout for astrocaddy.app ───────────────────────────
   Used by every page on the marketing/legal site so they share the same
   starfield background, font stack, color tokens, nav, and footer. */

:root {
  --bg: #0D0B1F;
  --surface: #1A1830;
  --surface-2: #221F3D;
  --border: #2A2550;
  --text: #FFFFFF;
  --dim: #8899AA;
  --accent: #7C3AED;
  --accent-soft: rgba(124, 58, 237, 0.15);
  --accent-light: #C4B5FD;
  --gold: #D4AF37;
  --red: #FF6B6B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Animated starfield canvas; fixed in place behind everything */
#starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
#starfield::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 700px at 75% -5%,  rgba(124,58,237,0.18), transparent 60%),
    radial-gradient(900px 700px at 5% 110%, rgba(124,58,237,0.12), transparent 65%);
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 18px; letter-spacing: 0.2px;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.8), 0 0 24px rgba(124,58,237,0.4);
}
nav .links a {
  color: var(--dim); text-decoration: none;
  margin-left: 22px; font-size: 14px; font-weight: 500;
  transition: color 0.15s ease;
}
nav .links a:hover { color: var(--text); }

/* ── Body type ───────────────────────────────────────────────────── */
h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
  margin: 24px 0 12px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 17px;
  margin: 22px 0 8px;
  font-weight: 600;
}
p, li { color: var(--dim); font-size: 16px; }
strong { color: var(--text); }
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Common content widgets ──────────────────────────────────────── */
.meta {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 6px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 24px 0;
}
.card p:last-child { margin-bottom: 0; }

/* Content wrapper for long-read pages (legal docs, support) */
.doc {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  text-align: center;
  color: var(--dim); font-size: 13px;
  margin-top: 64px;
}
footer a {
  color: var(--dim); margin: 0 10px;
  text-decoration: none; transition: color 0.15s ease;
}
footer a:hover { color: var(--text); }
footer .copy { margin-top: 14px; opacity: 0.7; }

