/* Tarot Divinatoire — Design System */
:root {
  --bg-deep: #0a0612;
  --bg-card: #14102a;
  --bg-elevated: #1d1840;
  --gold: #d4af37;
  --gold-soft: #e8c558;
  --purple: #7c3aed;
  --purple-soft: #a78bfa;
  --text: #f4f0ff;
  --text-muted: #b8b3cc;
  --border: rgba(212, 175, 55, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at top, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.font-sans { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.font-display { font-family: 'Cinzel', serif; }

/* Stars background */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 80% 10%, rgba(212,175,55,0.6), transparent),
    radial-gradient(1px 1px at 40% 90%, white, transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(167,139,250,0.8), transparent),
    radial-gradient(1px 1px at 10% 60%, white, transparent),
    radial-gradient(2px 2px at 50% 20%, rgba(255,255,255,0.5), transparent);
  background-size: 100% 100%;
  opacity: 0.6;
  animation: twinkle 8s infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.4; } 100% { opacity: 0.8; } }

/* Container & nav */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }

.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}
.nav-links a:hover { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a0d28;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212, 175, 55, 0.5); }
.btn-secondary {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text);
  border-color: var(--purple);
}
.btn-secondary:hover { background: rgba(124, 58, 237, 0.3); }
.btn-ghost { color: var(--text-muted); padding: 0.5rem 1rem; }
.btn-ghost:hover { color: var(--gold); }
.btn-large { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--gold-soft);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f4f0ff 0%, var(--gold-soft) 50%, var(--purple-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 2.5rem;
  display: flex; gap: 2rem; justify-content: center; align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

/* Sections */
section { padding: 4rem 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  color: var(--gold-soft);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { color: var(--gold-soft); margin-bottom: 0.75rem; font-size: 1.3rem; }
.feature-card p { color: var(--text-muted); line-height: 1.6; font-size: 1rem; }

/* Pricing */
.pricing-section { background: linear-gradient(180deg, transparent 0%, rgba(20, 16, 42, 0.6) 100%); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 880px;
  margin: 3rem auto 0;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative;
  text-align: center;
  display: flex; flex-direction: column;
}
.pricing-card.popular {
  border-color: var(--gold);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.15);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a0d28;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pricing-card h3 { color: var(--gold-soft); font-size: 1.5rem; margin-bottom: 0.5rem; }
.price-tag { margin: 1.5rem 0; }
.price-tag .amount {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
}
.price-tag .currency { font-size: 1.5rem; vertical-align: super; color: var(--gold-soft); }
.price-tag .period { color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.95rem; }
.pricing-features { list-style: none; padding: 0; text-align: left; margin: 2rem 0; flex: 1; }
.pricing-features li {
  padding: 0.6rem 0;
  display: flex; gap: 0.75rem; align-items: flex-start;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}
.pricing-features li::before {
  content: '✦'; color: var(--gold-soft);
  font-size: 1rem; flex-shrink: 0; margin-top: 2px;
}
.pricing-card .btn { width: 100%; }
.pricing-savings {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--gold-soft);
  margin-top: 0.5rem;
}

/* Tarot card visual */
.tarot-card-visual {
  width: 220px; height: 360px;
  background: linear-gradient(145deg, #2a1f4a 0%, #14102a 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  margin: 2rem auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3), 0 0 40px rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s ease;
}
.tarot-card-visual:hover { transform: rotateY(180deg); }
.tarot-card-image {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  font-family: 'Cormorant Garamond', serif;
}
.testimonial-stars { color: var(--gold); margin-bottom: 1rem; font-size: 1.1rem; }
.testimonial blockquote { font-style: italic; color: var(--text); line-height: 1.6; margin-bottom: 1rem; font-size: 1.1rem; }
.testimonial cite { color: var(--text-muted); font-style: normal; font-family: 'Inter', sans-serif; font-size: 0.9rem; }

/* FAQ */
.faq-grid { max-width: 820px; margin: 3rem auto 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--gold-soft);
  font-family: 'Inter', sans-serif;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.5rem; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}

/* Cards grid (78 tarot cards page) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.card-tile:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15); }
.card-tile img {
  width: 100%; aspect-ratio: 0.6;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.card-tile .card-name {
  font-family: 'Cinzel', serif;
  color: var(--gold-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Forms */
.form-wrap { max-width: 440px; margin: 4rem auto; padding: 2.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; }
.form-wrap h1 { color: var(--gold-soft); font-size: 1.75rem; margin-bottom: 0.5rem; text-align: center; }
.form-wrap .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2rem; font-family: 'Inter', sans-serif; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--gold);
}
.form-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.form-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.form-link a { color: var(--gold); text-decoration: none; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 6, 18, 0.6);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: var(--gold-soft); font-size: 0.9rem; margin-bottom: 1rem; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { color: var(--text-muted); text-decoration: none; font-family: 'Inter', sans-serif; font-size: 0.9rem; }
.footer ul li a:hover { color: var(--gold); }
.footer-brand p { color: var(--text-muted); font-family: 'Cormorant Garamond', serif; font-size: 1rem; line-height: 1.6; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

/* Reading interpretation panel */
.reading-panel {
  max-width: 760px;
  margin: 2rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}
.reading-panel h2 {
  color: var(--gold-soft);
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}
.reading-panel .interpretation {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive nav (mobile) */
.mobile-toggle { display: none; background: transparent; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .pricing-card.popular { transform: none; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  z-index: 100;
  display: flex; flex-direction: column; gap: 0.75rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  font-family: 'Inter', sans-serif;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.cookie-banner .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
}
.btn-accept { background: var(--gold); color: #1a0d28; font-weight: 600; }
.btn-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
