/* ============================================
   Lunar Option Digital Services — Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --navy: #0a0f1e;
  --navy2: #111827;
  --moon: #c8b8f5;
  --moon2: #a48ae0;
  --gold: #f0c96b;
  --gold2: #d4a832;
  --white: #f5f3ff;
  --muted: #8b8fa8;
  --card: #13192e;
  --border: rgba(200,184,245,0.15);
  --border-hover: rgba(200,184,245,0.4);
}

html { scroll-behavior: smooth; }

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

/* STARFIELD */
.stars {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(200,184,245,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(200,184,245,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 10%, rgba(240,201,107,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 35%, rgba(200,184,245,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 80%, rgba(200,184,245,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 15%, rgba(240,201,107,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 55%, rgba(200,184,245,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 85%, rgba(200,184,245,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 90%, rgba(240,201,107,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 45%, rgba(200,184,245,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 70%, rgba(200,184,245,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 15% 50%, rgba(240,201,107,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 5%, rgba(200,184,245,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 40%, rgba(200,184,245,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 44% 75%, rgba(200,184,245,0.35) 0%, transparent 100%);
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 6%;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--white); text-decoration: none;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--moon2), var(--gold2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.logo span { color: var(--moon); }

nav ul { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
nav ul a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; letter-spacing: 0.03em;
}
nav ul a:hover, nav ul a.active { color: var(--moon); }

.nav-cta {
  background: linear-gradient(135deg, var(--moon2), var(--gold2)) !important;
  color: #fff !important; padding: 0.5rem 1.2rem !important;
  border-radius: 6px; font-weight: 600 !important;
}

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--moon2), var(--gold2));
  color: #fff; border: none;
  padding: 0.85rem 2rem; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--white); padding: 0.85rem 2rem;
  border-radius: 8px; font-size: 1rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, transform 0.2s;
  background: transparent; font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { border-color: var(--moon); transform: translateY(-2px); }

/* SECTION STYLES */
section { position: relative; z-index: 1; }

.section-label {
  display: inline-block;
  color: var(--moon); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted); max-width: 540px;
  font-size: 1rem; line-height: 1.7; font-weight: 300;
}

.container { max-width: 1100px; margin: 0 auto; padding: 5rem 6%; }

.glow-line {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--moon2), var(--gold2));
  border-radius: 2px; margin: 1rem 0 1.5rem;
}

/* CARD BASE */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

/* STATS STRIP */
.stats-strip {
  display: flex; justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(19,25,46,0.6);
  position: relative; z-index: 1;
}
.stat { padding: 2rem 3rem; text-align: center; border-right: 1px solid var(--border); flex: 1; min-width: 150px; }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--gold); }
.stat-label { color: var(--muted); font-size: 0.8rem; margin-top: 4px; font-weight: 400; }

/* FORM STYLES */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.78rem; color: var(--muted); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(19,25,46,0.8);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 0.85rem 1rem;
  color: var(--white); font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s; outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--moon2); }
.form-group select option { background: var(--navy2); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* SUCCESS/ERROR MESSAGES */
.alert { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; display: none; }
.alert.success { background: rgba(29,158,117,0.15); border: 1px solid rgba(29,158,117,0.4); color: #5dcaa5; }
.alert.error { background: rgba(216,90,48,0.15); border: 1px solid rgba(216,90,48,0.4); color: #f0997b; }
.alert.show { display: block; }

/* PAGE HERO (non-index pages) */
.page-hero {
  padding: 10rem 6% 5rem;
  text-align: center;
  position: relative; z-index: 1;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 1rem;
}
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto; font-weight: 300; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 6%;
  position: relative; z-index: 1;
  background: rgba(10,15,30,0.95);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2rem;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-top: 0.8rem; font-weight: 300; max-width: 260px; }
.footer-col h4 { font-size: 0.78rem; color: var(--moon); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 300; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--moon); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { color: var(--muted); font-size: 0.82rem; font-weight: 300; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); font-weight: 700; }
.footer-logo span { color: var(--moon); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.fade-up { animation: fadeUp 0.8s ease both; }
.fade-up-1 { animation: fadeUp 0.8s 0.1s ease both; }
.fade-up-2 { animation: fadeUp 0.8s 0.2s ease both; }
.fade-up-3 { animation: fadeUp 0.8s 0.3s ease both; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,15,30,0.98); padding: 1.5rem 6%; gap: 1.2rem; border-bottom: 1px solid var(--border); }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stat { min-width: 130px; padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 3.5rem 5%; }
}
