/* ============ Карта скажет — Landing ============ */
:root {
  --bg: #0a0618;
  --bg-2: #120a28;
  --surface: #1a1035;
  --surface-2: #221542;
  --violet: #8b5cf6;
  --violet-bright: #a855f7;
  --lavender: #c4b5fd;
  --gold: #e6c878;
  --gold-soft: #f0ddb0;
  --text: #ece7f8;
  --text-muted: #a99cc9;
  --border: rgba(167, 139, 250, 0.16);
  --glow: rgba(139, 92, 246, 0.35);
  --radius: 20px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 96px 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: 0.01em; }
h1, h2 { color: #fff; }
p { color: var(--text-muted); }

/* ---------- Starfield ---------- */
#stars { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }

/* ---------- Orbs ---------- */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: -1;
}
.hero-orb--a { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(139,92,246,.5), transparent 65%); }
.hero-orb--b { width: 420px; height: 420px; bottom: -140px; left: -120px; background: radial-gradient(circle, rgba(168,85,247,.35), transparent 65%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-bright) 100%);
  color: #fff; box-shadow: 0 10px 30px -8px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--lavender); background: rgba(139,92,246,.08); }
.btn-lg { padding: 17px 34px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(10, 6, 24, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(167,139,250,.12);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { color: var(--gold); font-size: 22px; }
.brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { padding: 10px 22px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 110px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.eyebrow {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 12px; font-weight: 600; color: var(--lavender);
}
.eyebrow.center { text-align: center; }
.hero-title { font-size: clamp(40px, 7vw, 78px); max-width: 900px; }
.hero-title span {
  background: linear-gradient(120deg, var(--lavender), var(--violet-bright) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 620px; font-size: 18px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; gap: 48px; list-style: none; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-family: var(--font-display); font-size: 40px; color: var(--gold); font-weight: 600; }
.hero-stats span { font-size: 13px; color: var(--text-muted); }

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(30px, 4.5vw, 46px); text-align: center; margin: 12px 0 48px; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(196,181,253,.4); box-shadow: 0 20px 50px -20px var(--glow); }
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(139,92,246,.16), rgba(230,200,120,.06));
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px -14px var(--glow);
}
.feature-icon svg { width: 27px; height: 27px; }
.feature-card h3 { font-size: 24px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; }

/* ---------- How it works ---------- */
.how { background: radial-gradient(ellipse at top, rgba(139,92,246,.12), transparent 60%); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 30px; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; color: var(--gold);
  border: 1px solid rgba(230,200,120,.4); background: rgba(230,200,120,.06);
  box-shadow: 0 0 30px -6px rgba(230,200,120,.35);
}
.step h3 { font-size: 24px; margin-bottom: 8px; }
.how-cta { text-align: center; margin-top: 48px; }

/* ---------- Decks ---------- */
.decks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.deck-card {
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, border-color .25s ease;
}
.deck-card:hover { transform: translateY(-5px); border-color: rgba(196,181,253,.4); }
.deck-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.deck-card h3 { font-size: 28px; }
.deck-badge {
  font-size: 12px; padding: 4px 12px; border-radius: 100px;
  background: rgba(139,92,246,.16); color: var(--lavender); white-space: nowrap;
}
.text-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ---------- Encyclopedia cross-CTA ---------- */
.encyclopedia { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.encyclopedia-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(120deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border); border-radius: 28px; padding: 56px;
}
.encyclopedia-text h2 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 16px; }
.encyclopedia-text p { margin-bottom: 26px; }
.encyclopedia-art { display: flex; align-items: center; justify-content: center; position: relative; height: 240px; }
.tarot-card-fan { position: relative; width: 220px; height: 240px; }
.tcard {
  position: absolute; width: 120px; height: 200px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  background: linear-gradient(160deg, #2a1850, #150a2e); border: 1px solid var(--border);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
}
.tcard-1 { left: 0; top: 30px; transform: rotate(-14deg); color: var(--gold); }
.tcard-2 { left: 55px; top: 8px; transform: rotate(0); color: var(--lavender); z-index: 2; }
.tcard-3 { left: 110px; top: 30px; transform: rotate(14deg); color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(196,181,253,.4); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--lavender); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; font-size: 15px; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 100px 0; text-align: center; }
.final-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-cta h2 { font-size: clamp(30px, 5vw, 50px); }
.final-cta p { font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 64px 0 48px; }
.footer-brand .brand-name { font-size: 28px; }
.footer-brand p { margin-top: 12px; font-size: 14px; max-width: 260px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--lavender); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-small { font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 22px 0 30px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .decks-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .encyclopedia-inner { grid-template-columns: 1fr; padding: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .hero-stats { gap: 24px; }
  .section { padding: 64px 0; }
}
