/* ================================================================
   LACUNA ASTRO — Index Page Styles
   Depends on: assets/css/style.css
================================================================ */

/* ── Section wrapper (index uses <section> elements) ── */
section { position: relative; z-index: 1; padding: 100px 6%; }

/* ── Home Hero — two-column layout ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 48px; padding: 120px 8% 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(108,63,197,.18) 0%, transparent 70%);
}
.hero-left {
  flex: 1 1 0; min-width: 0; max-width: 520px;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.hero-left .btn-group { justify-content: flex-start; margin-top: 36px; }
.hero-left .hero-tag  { margin-bottom: 20px; align-self: flex-start; }
.hero h1 {
  font-family: 'Cinzel', serif; font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold2) 0%, var(--lavender) 60%, var(--violet) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted);
  margin: 0 0 4px;
}
.hero-right {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
/* Canvas sized purely by CSS — no JS resize needed */
#cosmicWheel {
  width: clamp(300px, 40vw, 480px);
  height: clamp(300px, 40vw, 480px);
  filter: drop-shadow(0 0 40px rgba(108,63,197,0.35));
}

/* ── Mobile / tablet — hide wheel, centre text block ── */
@media (max-width: 1024px) {
  .hero {
    position: relative;
    height: 100vh;
    min-height: unset;
    padding: 0;
    gap: 0;
  }
  .hero-right { display: none; }

  /* absolute centre — works on every device height */
  .hero-left {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 48px);
    max-width: 560px;
    align-items: center;
    text-align: center;
  }
  .hero-left .hero-tag  { align-self: center; }
  .hero-left .btn-group { justify-content: center; }
  .hero-left p          { margin-left: auto; margin-right: auto; }
}

/* ── About ── */
.about {
  background: linear-gradient(to right, rgba(108,63,197,.08), transparent);
  border-top: 1px solid rgba(108,63,197,.15);
  border-bottom: 1px solid rgba(108,63,197,.15);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; max-width: 1100px; margin: 0 auto;
}
.about-content p { color: var(--muted); margin-top: 20px; }
.about-glyph { display: flex; justify-content: center; align-items: center; }
.mandala {
  width: 280px; height: 280px;
  border: 1px solid rgba(196,168,245,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mandala::before {
  content: '☽ ✦ ☾';
  font-size: 2.5rem; color: var(--gold);
  animation: counter-spin 40s linear infinite;
}
@keyframes counter-spin { to { transform: rotate(-360deg); } }
.mandala-inner {
  position: absolute; width: 180px; height: 180px;
  border: 1px solid rgba(196,168,245,.1); border-radius: 50%;
}

/* ── Features ── */
.features { background: var(--dark); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-top: 60px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.feature-card {
  background: linear-gradient(135deg, rgba(108,63,197,.1), rgba(28,21,50,.6));
  border: 1px solid rgba(196,168,245,.12);
  border-radius: 20px; padding: 36px 28px; text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196,168,245,.3);
  box-shadow: 0 0 40px rgba(108,63,197,.2);
}
.feature-icon { font-size: 2.8rem; margin-bottom: 18px; display: block; }
.feature-card h3 { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--gold); margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .9rem; }

/* ── Courses CTA ── */
.courses-cta {
  background: linear-gradient(135deg, rgba(108,63,197,.2), rgba(155,89,232,.1));
  border-top: 1px solid rgba(108,63,197,.2); border-bottom: 1px solid rgba(108,63,197,.2);
  text-align: center;
}
.courses-cta h2 {
  font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white); margin-bottom: 16px;
}
.courses-cta p { color: var(--muted); margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.course-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 48px; }
.course-pill {
  background: rgba(108,63,197,.15); border: 1px solid rgba(196,168,245,.2);
  color: var(--lavender); padding: 8px 20px; border-radius: 20px; font-size: .85rem;
}

/* ── Pricing ── */
.pricing { background: var(--deep); }
.pricing-note {
  background: rgba(232,201,106,.08); border: 1px solid rgba(232,201,106,.2);
  border-radius: 12px; padding: 16px 24px; margin: 40px auto 60px;
  max-width: 700px; font-size: .88rem; color: var(--muted); text-align: center;
}
.pricing-note a { color: var(--gold); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.plan-card {
  background: linear-gradient(160deg, rgba(28,21,50,.9), rgba(15,11,28,.9));
  border: 1px solid rgba(196,168,245,.12); border-radius: 24px; padding: 40px 28px;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196,168,245,.3);
  box-shadow: 0 0 50px rgba(108,63,197,.25);
}
.plan-card.featured {
  border-color: rgba(232,201,106,.4);
  background: linear-gradient(160deg, rgba(108,63,197,.25), rgba(28,21,50,.9));
  box-shadow: 0 0 40px rgba(108,63,197,.3);
}
.plan-badge {
  display: inline-block; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  background: var(--gold); color: #0a0612;
  padding: 4px 14px; border-radius: 20px; font-weight: 700;
  margin-bottom: 16px; width: fit-content;
}
.plan-name { font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 6px; }
.plan-price { font-size: 1.55rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; white-space: nowrap; }
.plan-price span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan-note { font-size: .8rem; color: var(--muted); margin-bottom: 24px; font-style: italic; }
.plan-features { list-style: none; margin-bottom: 32px; flex: 1; }
.plan-features li {
  padding: 7px 0; color: var(--muted); font-size: .88rem;
  border-bottom: 1px solid rgba(196,168,245,.07);
  display: flex; gap: 10px;
}
.plan-features li::before { content: '✦'; color: var(--violet); flex-shrink: 0; }
.plan-btn {
  display: block; text-align: center; padding: 13px; border-radius: 50px;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: all .2s; letter-spacing: .5px;
}
.plan-btn-outline { border: 1px solid rgba(196,168,245,.3); color: var(--lavender); }
.plan-btn-outline:hover { border-color: var(--lavender); background: rgba(196,168,245,.06); }
.plan-btn-filled {
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff; box-shadow: 0 0 20px rgba(108,63,197,.3);
}
.plan-btn-filled:hover { box-shadow: 0 0 40px rgba(108,63,197,.5); }
.plan-btn-gold { background: linear-gradient(135deg, #c9973a, var(--gold)); color: #0a0612; }

/* ── Stats ── */
.stats {
  background: linear-gradient(135deg, rgba(108,63,197,.10), rgba(10,6,18,0));
  border-top: 1px solid rgba(108,63,197,.2);
  border-bottom: 1px solid rgba(108,63,197,.2);
  padding: 70px 6%;
}
.stats-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 860px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(28,21,50,.7), rgba(15,11,28,.8));
  border: 1px solid rgba(196,168,245,.12);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 0 60px rgba(108,63,197,.12);
}
.stat-item {
  flex: 1; text-align: center; padding: 0 24px;
}
.stat-icon {
  font-size: 1.8rem; margin-bottom: 12px; display: block;
  filter: drop-shadow(0 0 8px rgba(232,201,106,.4));
}
.stat-num {
  font-family: 'Cinzel', serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700;
  background: linear-gradient(135deg, var(--gold2), var(--lavender));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.stat-label {
  color: var(--muted); font-size: .78rem; margin-top: 8px;
  text-transform: uppercase; letter-spacing: 2px;
}
.stat-divider {
  width: 1px; height: 80px; flex-shrink: 0;
  background: linear-gradient(to bottom, transparent, rgba(196,168,245,.3), transparent);
}

/* ── App download ── */
.app-section { background: var(--dark); text-align: center; }
.app-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.app-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 14px 24px;
  text-decoration: none; color: var(--white); transition: all .2s;
  width: 180px; justify-content: center;
}
.app-badge:hover { background: rgba(108,63,197,.15); border-color: rgba(196,168,245,.3); }
.app-badge-icon { font-size: 2rem; }
.app-badge-text { text-align: left; }
.app-badge-text small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.app-badge-text strong { font-size: 1rem; }

/* ── Contact ── */
.contact { background: var(--deep); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1000px; margin: 0 auto; }
.contact-info h2 { font-family: 'Cinzel', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(108,63,197,.2); border: 1px solid rgba(196,168,245,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-item-text strong { display: block; color: var(--gold); font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.contact-item-text a { color: var(--muted); text-decoration: none; }
.contact-item-text a:hover { color: var(--lavender); }
.contact-social { display: flex; gap: 12px; margin-top: 36px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(108,63,197,.15); border: 1px solid rgba(196,168,245,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  text-decoration: none; transition: all .2s;
}
.social-btn:hover { background: rgba(108,63,197,.4); border-color: var(--violet); }
.contact-form-side { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.contact-form-side h3 { font-family: 'Cinzel', serif; color: var(--lavender); font-size: 1.2rem; }
.contact-form-side p { color: var(--muted); font-size: .9rem; }
.wa-link {
  display: flex; align-items: center; gap: 12px;
  background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.25);
  color: #25d366; padding: 16px 24px; border-radius: 14px;
  text-decoration: none; font-weight: 600; transition: all .2s;
}
.wa-link:hover { background: rgba(37,211,102,.15); }
.wa-link span { font-size: 1.5rem; }

/* ── Footer (index full version) ── */
footer { padding: 60px 6% 30px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  max-width: 1100px; margin: 0 auto 40px;
}
.footer-brand .nav-logo { font-size: 1.2rem; display: block; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .88rem; }
.footer-col h4 { font-family: 'Cinzel', serif; font-size: .95rem; color: var(--gold); margin-bottom: 18px; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: var(--lavender); }
.footer-bottom {
  text-align: center; padding-top: 30px; border-top: 1px solid rgba(196,168,245,.08);
  color: var(--muted); font-size: .82rem; max-width: 1100px; margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { flex-direction: column; padding: 36px 24px; gap: 32px; }
  .stat-divider { width: 80px; height: 1px;
    background: linear-gradient(to right, transparent, rgba(196,168,245,.3), transparent); }
  .about-glyph { display: none; }
}
