/* ─── Moonmoth — Hollow Fern Studio ─── */
/* Witchy aesthetic: dark midnight, gold, dried rose, cream */

:root {
  --bg-deep: #0d0a1a;
  --bg: #1a1035;
  --bg-surface: #231946;
  --gold: #c9a84c;
  --gold-light: #e2c988;
  --gold-dim: rgba(201,168,76,0.3);
  --rose: #c47a8a;
  --cream: #f4ede4;
  --cream-dim: rgba(244,237,228,0.65);
  --cream-muted: rgba(244,237,228,0.35);
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Nunito', sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(196,122,138,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M30 30l1-1 1 1-1 1-1-1zm0-6l1-1 1 1-1 1-1-1zm0 12l1-1 1 1-1 1-1-1z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-title span {
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  width: 160px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
}
.divider-symbol {
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ── GRIMOIRE MOCKUP ── */
.grimoire-preview {
  margin: 2.5rem 0;
  position: relative;
}

.grimoire-mockup {
  display: inline-block;
  background: linear-gradient(160deg, #2a1a4a 0%, #1a1035 50%, #231946 100%);
  border: 1px solid var(--gold-dim);
  border-radius: 4px 12px 12px 4px;
  padding: 2rem 2.5rem;
  max-width: 320px;
  width: 100%;
  box-shadow:
    -4px 0 0 #0d0a1a,
    -6px 0 0 var(--gold-dim),
    0 20px 60px rgba(0,0,0,0.6);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.grimoire-mockup::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 12px;
  background: linear-gradient(to right, rgba(201,168,76,0.1), transparent);
}

.grimoire-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

.grimoire-sub {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  display: block;
  margin-bottom: 1.5rem;
}

.grimoire-sections {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.g-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--cream-dim);
}

.g-section-icon {
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.55rem;
}

.g-section-icon svg { width: 9px; height: 9px; fill: var(--gold); }

/* waxing/waning indicator dots */
.moon-dots {
  display: flex;
  gap: 2px;
  align-items: center;
}
.dot-filled { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.dot-empty { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--gold-dim); }

.grimoire-edition {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  color: var(--cream-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid var(--gold-dim);
  padding-top: 1rem;
}

/* floating decorative marks around mockup */
.grimoire-float {
  position: absolute;
  color: var(--gold-dim);
  font-family: var(--font-display);
  font-size: 1.2rem;
  pointer-events: none;
  user-select: none;
}
.grimoire-float-1 { top: -10px; right: -20px; transform: rotate(12deg); }
.grimoire-float-2 { bottom: -15px; left: -15px; transform: rotate(-8deg); font-size: 0.9rem; }

/* ── PRICE BADGE ── */
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  background: var(--bg-surface);
  border: 1px solid var(--gold-dim);
  border-radius: 40px;
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-light);
}
.price-label {
  font-size: 0.75rem;
  color: var(--cream-muted);
  letter-spacing: 0.1em;
}

/* ── CTA BUTTON ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--gold);
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* ── FEATURES ROW ── */
.features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--gold);
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }

.feature h3 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.feature p {
  font-size: 0.8rem;
  color: var(--cream-muted);
  line-height: 1.5;
}

/* ── WHAT'S INSIDE ── */
.inside-section {
  padding: 4rem 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section-header p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--cream);
  line-height: 1.2;
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.page-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s;
}
.page-card:hover { border-color: var(--gold); }

.page-card-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.page-card-icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; }

.page-card h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.page-card p {
  font-size: 0.78rem;
  color: var(--cream-muted);
  line-height: 1.5;
}

/* ── COMPATIBILITY ── */
.compat-section {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--gold-dim);
  max-width: 700px;
  margin: 0 auto;
}
.compat-section h2 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.compat-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.compat-logo {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--cream-muted);
  border: 1px solid var(--gold-dim);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--gold-dim);
  margin-top: 2rem;
}
.site-footer p {
  font-size: 0.72rem;
  color: var(--cream-muted);
  letter-spacing: 0.08em;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { padding: 3rem 1.5rem 2rem; }
  .features-row { gap: 1.5rem; }
  .pages-grid { grid-template-columns: 1fr; }
  .compat-logos { gap: 1.5rem; }
}