/* StellarArcana — публичный сайт. База + лендинг + правовые страницы. */
:root {
  --bg: #0b0921;
  --bg2: #1a1340;
  --bg3: #2a1f57;
  --gold: #e7c45a;
  --gold-2: #b9962e;
  --text: #f3f1fb;
  --dim: #b3acd6;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(20, 16, 48, 0.55);
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: radial-gradient(1200px 800px at 80% -10%, #3a2a78 0%, transparent 55%),
              radial-gradient(900px 700px at 0% 0%, #2a1f57 0%, transparent 50%),
              linear-gradient(165deg, var(--bg), var(--bg2) 60%, #120d33);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; letter-spacing: .3px; }
a { color: var(--gold); text-decoration: none; }

/* мерцающие звёзды на фоне */
.stars, .stars2 {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: repeat;
}
.stars {
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 220px 50px, #d8cffc, transparent),
    radial-gradient(1px 1px at 300px 160px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80px 200px, #fff, transparent);
  background-size: 360px 260px;
  opacity: .5; animation: twinkle 6s ease-in-out infinite alternate;
}
.stars2 {
  background-image:
    radial-gradient(1px 1px at 50px 60px, var(--gold), transparent),
    radial-gradient(1px 1px at 180px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 260px 40px, var(--gold), transparent);
  background-size: 320px 220px; opacity: .35;
  animation: twinkle 5s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: .25 } to { opacity: .6 } }
@media (prefers-reduced-motion: reduce) { .stars, .stars2 { animation: none } }

.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 14px; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(95deg, var(--gold-2), var(--gold));
  color: #1b1330; box-shadow: 0 10px 30px rgba(231, 196, 90, .28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(231, 196, 90, .42); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- хедер ---------- */
.nav {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; margin: 0 auto; padding: 18px 20px;
}
.logo { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; color: var(--text); }
.logo b { color: var(--gold); font-weight: 700; }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; text-align: center; padding: 36px 20px 30px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--hero-img, none) center/cover no-repeat;
  opacity: .55; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 92%);
}
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(231,196,90,.35); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 22px; background: rgba(231,196,90,.06);
}
.hero h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.05; margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .lead { color: var(--dim); font-size: clamp(16px, 2.4vw, 20px); max-width: 640px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { min-width: 230px; }
.hero-note { color: var(--dim); font-size: 13px; margin-top: 18px; }

/* ---------- веер карт ---------- */
.fan { display: flex; justify-content: center; align-items: flex-end; margin: 40px auto 0; height: 230px; perspective: 1200px; }
.fan img {
  width: 132px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; margin: 0 -26px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); border: 1px solid rgba(231,196,90,.35);
  transform-origin: bottom center; transition: transform .35s ease, margin .35s ease;
  background: #160f3a;
}
.fan img:nth-child(1) { transform: rotate(-16deg) translateY(22px); }
.fan img:nth-child(2) { transform: rotate(-8deg) translateY(6px); }
.fan img:nth-child(3) { transform: rotate(0deg) translateY(-4px); z-index: 3; }
.fan img:nth-child(4) { transform: rotate(8deg) translateY(6px); }
.fan img:nth-child(5) { transform: rotate(16deg) translateY(22px); }
.fan:hover img { margin: 0 -10px; }
.fan img:hover { transform: translateY(-18px) rotate(0) scale(1.05); z-index: 5; }

/* ---------- секции ---------- */
section { position: relative; z-index: 1; padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 42px); margin-bottom: 12px; }
.section-head h2 .accent { color: var(--gold); }
.section-head p { color: var(--dim); font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; backdrop-filter: blur(8px); transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(231,196,90,.4); }
.feature .ico { font-size: 30px; margin-bottom: 12px; display: block; }
.feature h3 { font-size: 22px; margin-bottom: 8px; color: var(--text); }
.feature p { color: var(--dim); font-size: 15px; }

/* CTA-полоса */
.cta-band {
  background: linear-gradient(120deg, rgba(231,196,90,.12), rgba(122,90,200,.14));
  border: 1px solid rgba(231,196,90,.3); border-radius: 26px; padding: 48px 28px; text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 12px; }
.cta-band p { color: var(--dim); font-size: 17px; max-width: 560px; margin: 0 auto 26px; }

/* бесплатно / шаги */
.free-badge {
  display: inline-flex; gap: 8px; align-items: center; background: rgba(231,196,90,.12);
  border: 1px solid rgba(231,196,90,.35); color: var(--gold); border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: 15px;
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s); font-family: 'Cormorant Garamond', serif; font-size: 40px;
  color: var(--gold); opacity: .5; font-weight: 700; display: block; margin-bottom: 6px;
}
.step h3 { font-size: 19px; margin-bottom: 6px; color: var(--text); }
.step p { color: var(--dim); font-size: 14px; }

/* дисклеймер / футер */
.disclaimer { background: rgba(231,196,90,.07); border: 1px solid rgba(231,196,90,.22); border-radius: 14px; padding: 18px; color: var(--dim); font-size: 14px; }
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 50px; color: var(--dim); font-size: 13px; }
footer a { color: var(--gold); }
footer .foot-links { margin-top: 10px; }

/* ---------- правовые страницы (оферта/политика) ---------- */
.legal { max-width: 820px; padding-top: 30px; padding-bottom: 60px; }
.legal h1 { font-size: 34px; margin: 6px 0 4px; }
.legal h2 { margin-top: 28px; font-size: 22px; color: var(--gold); }
.legal h3 { margin-top: 18px; font-size: 17px; color: var(--text); }
.legal p, .legal li { color: var(--dim); font-size: 15px; margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 22px; }
.note { color: var(--dim); font-size: 13px; margin-top: 10px; }
.back { display: inline-block; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
td.price { text-align: right; color: var(--gold); white-space: nowrap; }

/* reveal-анимация при скролле */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; min-width: 0; }
  .nav .logo { font-size: 20px; }
  .fan { height: 180px; }
  .fan img { width: 100px; margin: 0 -22px; }
  section { padding: 44px 0; }
  .cta-band { padding: 36px 20px; }
}
