/* ═══════════════════════════════════════════════════════
   TAARA — Global Stylesheet v2.0
   Dark immersive premium astrology aesthetic
   Mobile-first, fully responsive
═══════════════════════════════════════════════════════ */

/* ── Reset & Variables ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0B0F2E;
  --navy-deep:  #060920;
  --navy-card:  #111630;
  --navy-lift:  #161B3A;
  --gold:       #C9A84C;
  --gold-light: #E2C87A;
  --gold-dim:   #A08030;
  --lavender:   #B8A9D4;
  --rose:       #D4758A;
  --teal:       #4ABFB8;
  --white:      #FFFFFF;
  --off-white:  #F0EDE8;
  --grey:       #8A8FA8;
  --border:     rgba(201,168,76,0.18);
  --border-soft:rgba(255,255,255,0.07);
  --glass:      rgba(17,22,48,0.75);
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 8px 40px rgba(0,0,0,0.45);
  --shadow-gold:0 4px 24px rgba(201,168,76,0.18);
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Stars Canvas ─────────────────────────────────────── */
#stars-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.55;
}

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(6,9,32,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled { padding: 14px 48px; background: rgba(6,9,32,0.96); }

.nav-logo { display: flex; flex-direction: column; }
.nav-logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--gold); letter-spacing: 3px;
}
.nav-logo-sub {
  font-size: 10px; letter-spacing: 4px; color: var(--grey);
  text-transform: uppercase; margin-top: -2px;
}

.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.65);
  transition: var(--transition); letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--lavender);
  padding: 8px 18px; border-radius: 20px;
  font-size: 12px; letter-spacing: 1px;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  border: none; transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* CTA pulse animation */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 0 8px rgba(201,168,76,0.18); }
}
.btn-primary-lg {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  padding: 16px 36px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  border: none; transition: var(--transition);
  animation: pulse-glow 2.8s ease infinite;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,168,76,0.3);
}

/* ── Hamburger Mobile ─────────────────────────────────── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: 4px;
}
.nav-hamburger span {
  width: 22px; height: 2px; background: var(--gold);
  border-radius: 2px; transition: var(--transition);
}

/* ── Mobile Nav ───────────────────────────────────────── */
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--navy-deep);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 22px; color: var(--white); letter-spacing: 1px; }
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 24px; color: var(--grey); background: none; border: none;
}

/* ── Section Layout ───────────────────────────────────── */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section-sm { padding: 60px 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── Section Headers ──────────────────────────────────── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; width: 30px; height: 1px; background: var(--gold);
}
.section-title {
  font-size: clamp(30px, 4vw, 48px); font-weight: 700;
  color: var(--white); margin-bottom: 16px;
}
.section-sub {
  font-size: 16px; color: var(--grey); line-height: 1.7; max-width: 560px;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-sub { margin: 0 auto; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Gold divider ─────────────────────────────────────── */
.divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto; width: 80%; opacity: 0.4;
}

/* ── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 20px; text-transform: uppercase;
}
.badge-gold    { background: rgba(201,168,76,0.15); color: var(--gold);    border: 1px solid rgba(201,168,76,0.3); }
.badge-red     { background: rgba(212,117,138,0.15); color: var(--rose);   border: 1px solid rgba(212,117,138,0.3); }
.badge-teal    { background: rgba(74,191,184,0.12); color: var(--teal);    border: 1px solid rgba(74,191,184,0.25); }
.badge-popular { background: var(--gold); color: var(--navy-deep); border: none; font-weight: 700; }

/* ── Forms ────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--grey); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white); font-size: 14px;
  transition: var(--transition);
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }

.form-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Star rating ──────────────────────────────────────── */
.stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }

/* ── FOMO toast ───────────────────────────────────────── */
#fomo-toast {
  position: fixed; bottom: 24px; left: 24px; z-index: 2000;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  max-width: 320px;
  box-shadow: var(--shadow);
  transform: translateX(-200%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
#fomo-toast.show { transform: translateX(0); }
.fomo-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--lavender));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.fomo-text { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.4; }
.fomo-time { font-size: 11px; color: var(--grey); margin-top: 2px; }

/* ── Scroll animations ────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .section { padding: 70px 0; }
  .form-input-row { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-primary-lg { padding: 14px 24px; font-size: 14px; width: 100%; justify-content: center; }
}

/* ── Language Switcher ─────────────────────────────────── */
.lang-switcher {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 3px 4px; margin-right: 8px;
}
.lang-btn {
  padding: 3px 10px; border-radius: 16px; border: none;
  background: transparent; color: rgba(255,255,255,0.55);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.02em;
}
.lang-btn:hover { color: rgba(255,255,255,0.85); }
.lang-btn-active {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
}
