/* Astralogica — astralogica.app
   Palette grounded in the app: navy #162B3D, blue #3060A0, gold #FFB600,
   white four-point sparkle motif (matches the app icon). */

:root {
  --navy-900: #0d1925;
  --navy-800: #112233;
  --navy-700: #162b3d;
  --blue:     #3060a0;
  --blue-300: #6f9fda;
  --gold:     #ffb600;
  --ink:      #eaf1f9;
  --muted:    rgba(234, 241, 249, 0.62);
  --line:     rgba(234, 241, 249, 0.12);
  --card:     rgba(255, 255, 255, 0.035);
  --radius:   18px;
  --maxw:     1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(48, 96, 160, 0.40), transparent 60%),
    radial-gradient(900px 600px at 8% 8%, rgba(255, 182, 0, 0.10), transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-300); text-decoration: none; }
a:hover { color: #a9c8f0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---- decorative sparkles ---- */
.spark { fill: currentColor; display: block; }
.starfield { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.starfield .spark {
  position: absolute; color: #fff; opacity: 0.0;
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.10; transform: scale(0.9); }
  50%      { opacity: 0.55; transform: scale(1.05); }
}

/* ---- nav ---- */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: -0.01em; font-size: 1.08rem; }
.brand .spark { width: 22px; height: 22px; color: #fff; }
.nav .links a { color: var(--ink); opacity: 0.8; font-size: 0.95rem; }
.nav .links a:hover { opacity: 1; }

/* ---- hero ---- */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem;
  padding: 3.5rem 0 4rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 182, 0, 0.10);
  border: 1px solid rgba(255, 182, 0, 0.28);
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -0.025em;
  margin: 1.1rem 0 0.9rem; font-weight: 700;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue-300), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34ch; margin: 0 0 1.8rem; }
.cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); background: var(--card);
  padding: 0.55rem 0.95rem; border-radius: 999px;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 600; color: var(--navy-900); text-decoration: none;
  background: var(--gold); padding: 0.6rem 1.1rem; border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 182, 0, 0.25);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(255, 182, 0, 0.4); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---- chart wheel ---- */
.hero-art { display: flex; justify-content: center; }
.wheel { width: min(100%, 420px); height: auto; filter: drop-shadow(0 18px 50px rgba(48, 96, 160, 0.35)); }
.wheel .rotor { transform-origin: 200px 200px; animation: spin 140s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- features ---- */
.features {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem;
  padding-bottom: 4rem;
}
.card {
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(111, 159, 218, 0.45); background: rgba(255, 255, 255, 0.06); }
.card .ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  background: rgba(48, 96, 160, 0.25); border: 1px solid rgba(111, 159, 218, 0.35); margin-bottom: 0.85rem; }
.card .ic .spark { width: 15px; height: 15px; color: var(--gold); }
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---- footer ---- */
.foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line); padding: 1.8rem 0 2.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: 0.92rem;
}
.foot a { color: var(--ink); opacity: 0.8; }
.foot a:hover { opacity: 1; }

/* ---- support page ---- */
.page { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 1rem 0 4rem; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 1.5rem 0 0.4rem; }
.page .sub { color: var(--muted); margin: 0 0 2rem; font-size: 1.05rem; }
.panel {
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1rem 0;
}
.panel h2 { font-size: 1.05rem; margin: 0 0 0.5rem; color: var(--gold); letter-spacing: 0.01em; }
.panel p { margin: 0.55rem 0; color: var(--ink); }
.panel p strong { font-weight: 600; }
.mail { font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .wheel { width: min(82%, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  .wheel .rotor { animation: none; }
  .starfield .spark { animation: none; opacity: 0.22; }
}
