/* =====================================================
   LUNARIUM COIN - Landing Page CSS
   Aesthetic: Lunar Dark · Gold Accents · Cosmic
   ===================================================== */

:root {
  --bg-deep:    #050810;
  --bg-dark:    #080d18;
  --bg-card:    #0d1426;
  --bg-card2:   #111b30;
  --gold:       #C9A84C;
  --gold-light: #F0D080;
  --gold-dim:   #8a6e2a;
  --text:       #e8eaf0;
  --text-muted: #7a8499;
  --text-dim:   #4a5570;
  --border:     rgba(201,168,76,0.15);
  --border-dim: rgba(255,255,255,0.06);
  --glow-gold:  0 0 40px rgba(201,168,76,0.25);
  --radius:     12px;
  --radius-lg:  20px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- STARS CANVAS ---- */
#stars {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.gold-text {
  background: linear-gradient(135deg, #C9A84C, #F0D080, #C9A84C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.8rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-gold {
  background: linear-gradient(135deg, #C9A84C, #F0D080);
  color: #050810;
  box-shadow: 0 4px 24px rgba(201,168,76,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,168,76,.5); opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,168,76,.08); opacity: 1; }

.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1.5px solid var(--border-dim);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); opacity: 1; }

.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 7rem 0; position: relative; z-index: 1; }
.section-dark { background: rgba(5,8,16,.9); }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all .3s ease;
}
.navbar.scrolled {
  background: rgba(5,8,16,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  padding: .7rem 0;
}

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-moon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-moon svg { width: 100%; height: 100%; }
.logo-text { font-family: 'Cinzel', serif; font-size: .95rem; font-weight: 900; letter-spacing: .15em; color: var(--text); }
.logo-sub  { font-family: 'Cinzel', serif; font-size: .7rem; font-weight: 400; letter-spacing: .2em; color: var(--gold); margin-top: 2px; }

.nav-links { display: flex; gap: 2rem; list-style: none; margin-left: auto; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text-muted); letter-spacing: .02em; }
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem 4rem;
}

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.12), transparent 70%);
  top: -10%; left: -5%;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(60,80,160,.15), transparent 70%);
  bottom: 0; right: 10%;
}

.hero-content {
  max-width: 600px;
  position: relative; z-index: 2;
  margin-left: max(1.5rem, calc((100vw - 1200px) / 2));
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  background: rgba(201,168,76,.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 2rem; max-width: 520px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.stat-pill { display: flex; flex-direction: column; }
.stat-val { font-family: 'Cinzel', serif; font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.stat-lbl { font-size: .75rem; color: var(--text-muted); letter-spacing: .05em; }
.stat-sep { color: var(--text-dim); font-size: 1.5rem; }

/* ---- MOON ILLUSTRATION ---- */
.hero-moon {
  position: absolute; right: 5%; top: 50%;
  transform: translateY(-50%);
  width: min(500px, 45vw); height: min(500px, 45vw);
  pointer-events: none;
}

.moon-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(201,168,76,.18) 0%, transparent 65%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.1); }
}

.moon-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(201,168,76,.15);
  animation: ring-spin linear infinite;
}
.ring-1 { inset: 5%;  animation-duration: 20s; }
.ring-2 { inset: -5%; animation-duration: 30s; animation-direction: reverse; border-style: dashed; border-color: rgba(201,168,76,.08); }
.ring-3 { inset: -18%; animation-duration: 45s; border-color: rgba(201,168,76,.05); }

@keyframes ring-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.moon-sphere {
  position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4060, #0f1525 60%, #060a14);
  box-shadow: inset -15px -10px 40px rgba(0,0,0,.8), inset 10px 10px 30px rgba(201,168,76,.08), 0 0 60px rgba(201,168,76,.2);
  overflow: hidden;
}

.moon-crater {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.04), rgba(0,0,0,.3));
  border: 1px solid rgba(255,255,255,.04);
}
.c1 { width: 28%; height: 28%; top: 20%; left: 25%; }
.c2 { width: 18%; height: 18%; top: 50%; left: 55%; }
.c3 { width: 12%; height: 12%; top: 65%; left: 20%; }

.moon-shine {
  position: absolute; top: 8%; left: 8%;
  width: 30%; height: 30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.25) 0%, transparent 70%);
}

.moon-orbit {
  position: absolute; inset: 0; border-radius: 50%;
  animation: ring-spin 8s linear infinite;
}
.orbit-dot {
  position: absolute; top: 50%; left: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  transform: translateY(-50%);
}

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .75rem; color: var(--text-dim); letter-spacing: .1em;
  animation: fade-bob 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px; height: 36px; border: 1.5px solid var(--text-dim);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px; background: var(--gold);
  border-radius: 2px; animation: scroll-wheel 2s ease infinite;
}
@keyframes scroll-wheel { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(6px); opacity: .3; } }
@keyframes fade-bob { 0%,100% { opacity: .6; } 50% { opacity: 1; } }

/* ---- TICKER ---- */
.ticker-wrap {
  overflow: hidden; background: rgba(201,168,76,.06);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: .8rem 0; position: relative; z-index: 1;
}
.ticker-track {
  display: flex; gap: 0; white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-item { padding: 0 1.5rem; font-size: .82rem; font-weight: 500; color: var(--text-muted); letter-spacing: .04em; }
.ticker-item.sep { color: var(--gold); padding: 0 .5rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- ABOUT CARDS ---- */
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.about-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all .3s ease;
  opacity: 0; transform: translateY(30px);
}
.about-card.visible { opacity: 1; transform: translateY(0); }
.about-card:hover { border-color: var(--border); box-shadow: var(--glow-gold); transform: translateY(-4px); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.about-card h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.about-card p { color: var(--text-muted); font-size: .95rem; }

/* ---- STAKING ---- */
.staking-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; margin-top: 3rem;
}

.info-row {
  display: flex; gap: 1.2rem; align-items: flex-start;
  margin-bottom: 2rem; opacity: 0; transform: translateX(-20px); transition: all .4s ease;
}
.info-row.visible { opacity: 1; transform: translateX(0); }
.info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .2rem; }
.info-row strong { display: block; font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.info-row p { color: var(--text-muted); font-size: .9rem; }

.staking-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--glow-gold);
  opacity: 0; transform: translateY(20px); transition: all .4s ease .2s;
}
.staking-card.visible { opacity: 1; transform: translateY(0); }

.sc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-weight: 600; font-size: .9rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: glow-pulse 2s ease infinite; }
.sc-stat { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--border-dim); }
.sc-label { color: var(--text-muted); font-size: .9rem; }
.sc-value { font-weight: 600; font-size: .95rem; }
.sc-value.gold { color: var(--gold); }
.sc-divider { margin: .5rem 0; }
.sc-note { font-size: .78rem; color: var(--text-dim); margin-top: 1rem; font-style: italic; }

/* ---- MASTERNODE PLANS ---- */
.mn-plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.mn-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg); padding: 2rem;
  position: relative; transition: all .3s ease;
  opacity: 0; transform: translateY(20px);
}
.mn-card.visible { opacity: 1; transform: translateY(0); }
.mn-card:hover { transform: translateY(-4px); }
.mn-card.featured { border-color: var(--gold); box-shadow: var(--glow-gold); }
.mn-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #C9A84C, #F0D080);
  color: #050810; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  padding: .3rem 1rem; border-radius: 100px; white-space: nowrap;
}
.mn-tier { font-family: 'Cinzel', serif; font-size: .85rem; letter-spacing: .1em; color: var(--gold); margin-bottom: .5rem; }
.mn-price { font-size: 2.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.mn-price span { font-size: 3rem; }
.mn-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.mn-features li { font-size: .9rem; color: var(--text-muted); }
.mn-features li.muted { color: var(--text-dim); }

.mn-how { margin-top: 5rem; text-align: center; }
.mn-how h3 { font-size: 1.5rem; margin-bottom: 2.5rem; }
.steps {
  display: flex; align-items: flex-start; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
}
.step {
  flex: 1; min-width: 180px; max-width: 220px; text-align: center;
  opacity: 0; transform: translateY(20px); transition: all .4s ease;
}
.step.visible { opacity: 1; transform: translateY(0); }
.step-num {
  font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 900;
  color: var(--gold); margin-bottom: .5rem; line-height: 1;
}
.step strong { display: block; font-size: .95rem; margin-bottom: .4rem; }
.step p { font-size: .85rem; color: var(--text-muted); }
.step-arrow { color: var(--gold-dim); font-size: 1.5rem; padding-top: 2rem; flex-shrink: 0; }

/* ---- STATS GRID ---- */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg); padding: 2rem;
  text-align: center; transition: all .3s ease;
  opacity: 0; transform: translateY(20px);
}
.stat-card.visible { opacity: 1; transform: translateY(0); }
.stat-card:hover { border-color: var(--border); }
.stat-icon { font-size: 2rem; margin-bottom: 1rem; }
.stat-number { font-family: 'Cinzel', serif; font-size: 1.8rem; font-weight: 700; color: var(--gold); margin-bottom: .5rem; }
.stat-label { font-size: .85rem; color: var(--text-muted); }

/* ---- ROADMAP ---- */
.roadmap { max-width: 700px; margin: 3rem auto 0; position: relative; }
.roadmap::before {
  content: ''; position: absolute; left: 1.25rem; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, transparent, var(--border), var(--border), transparent);
}
.rm-item {
  display: flex; gap: 2rem; margin-bottom: 2.5rem;
  padding-left: .5rem; opacity: 0; transform: translateX(-20px); transition: all .4s ease;
}
.rm-item.visible { opacity: 1; transform: translateX(0); }
.rm-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--border-dim); border: 2px solid var(--bg-dark);
  margin-top: .5rem; position: relative; left: -4px;
  transition: all .3s ease;
}
.rm-item.done .rm-dot   { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.rm-item.active .rm-dot { background: var(--gold-light); box-shadow: 0 0 16px var(--gold-light); animation: glow-pulse 2s ease infinite; }
.rm-phase { font-size: .75rem; font-weight: 600; letter-spacing: .1em; color: var(--gold); margin-bottom: .3rem; text-transform: uppercase; }
.rm-item.done .rm-phase { color: var(--gold-dim); }
.rm-content h4 { font-size: 1.05rem; margin-bottom: .4rem; }
.rm-content p  { color: var(--text-muted); font-size: .9rem; }

/* ---- CTA SECTION ---- */
.cta-section { overflow: hidden; position: relative; }
.cta-orb {
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.1), transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-dark); border-top: 1px solid var(--border-dim);
  padding: 4rem 0 2rem; position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; }
.footer-col h4 { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: .9rem; margin-bottom: .5rem; }
.footer-col a:hover { color: var(--text); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border-dim); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .82rem; color: var(--text-dim); }
.disclaimer { font-style: italic; }

/* ---- ALERT ---- */
.alert {
  padding: .9rem 1.2rem; border-radius: var(--radius); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .7rem; font-size: .9rem;
}
.alert-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.alert-success .alert-icon { background: rgba(34,197,94,.2); color: #22c55e; }
.alert-error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-error   .alert-icon { background: rgba(239,68,68,.2); color: #ef4444; }
.alert-warning { background: rgba(234,179,8,.1); border: 1px solid rgba(234,179,8,.3); color: #fde047; }
.alert-info    { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero { text-align: center; padding-top: 7rem; flex-direction: column; justify-content: center; }
  .hero-content { margin-left: 0; margin: 0 auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-moon { display: none; }
  .staking-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { gap: .5rem; }
  .step-arrow { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .mn-plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
