/* ═══════════════════════════════════════════════════════════════
   AstroPlatform Public Site — style.css
   Deep-space astrology theme: midnight navy + gold + violet
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --primary:      #7C3AED;
  --primary-dark: #5B21B6;
  --gold:         #F59E0B;
  --gold-light:   #FDE68A;
  --bg-dark:      #080614;
  --bg-mid:       #0F0A1E;
  --bg-card:      #150F2A;
  --bg-card2:     #1A1430;
  --text:         #F0EEFF;
  --text-muted:   #9B8EC4;
  --border:       rgba(255,255,255,0.08);
  --radius:       12px;
  --nav-h:        68px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-dark); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; border-radius: var(--radius); }

/* ── Starfield ──────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.4) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Utility ────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section   { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-mid); }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,6,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .star { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-links .btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
}
.nav-links .btn-nav:hover { background: var(--primary-dark); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.18) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '✦';
  position: absolute;
  font-size: 400px;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(124,58,237,0.06);
  pointer-events: none;
  font-family: serif;
}
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold), #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-cta-primary { background: var(--primary); color: #fff; }
.btn-cta-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,58,237,0.35); }
.btn-cta-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-cta-outline:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }

/* ── Features Grid ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Why Choose Us ──────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 0;
}
.why-points { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.why-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.why-check {
  width: 24px; height: 24px;
  background: rgba(124,58,237,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.why-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  min-height: 240px;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.testimonial-stars { color: var(--gold); font-size: 16px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 52px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Inter', sans-serif;
}
.faq-question:hover { color: #fff; }
.faq-chevron { font-size: 18px; transition: transform 0.25s; flex-shrink: 0; color: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
  position: relative;
  z-index: 1;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-family: 'Cinzel', serif; font-size: 20px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand .logo .star { color: var(--gold); }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: border-color 0.15s, background 0.15s;
}
.footer-social a:hover { border-color: var(--primary); background: rgba(124,58,237,0.1); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  position: relative;
  z-index: 1;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo .star { font-size: 44px; }
.auth-logo h1 { font-family: 'Cinzel', serif; font-size: 22px; margin-top: 10px; }
.auth-logo p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.form-label-pub { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.form-input-pub {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
.form-input-pub:focus { border-color: var(--primary); }
.form-input-pub::placeholder { color: var(--text-muted); }

.auth-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #FCA5A5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.auth-error.show { display: block; }
.auth-link { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.auth-link a { color: var(--gold); }

/* ── Loading ────────────────────────────────────────────────── */
.page-loading {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.4s;
}
.page-loading.hide { opacity: 0; pointer-events: none; }
.loading-star {
  font-size: 48px;
  animation: spin 3s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: 'Cinzel', serif; font-size: 16px; color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why-img { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 36px; }
  .nav-links a:not(.btn-nav) { display: none; }
}
