/* ========================================================================
   Mystic Circle — Celestial Noir
   Midnight navy · gold · starlight — dark, premium, mystical
   ===================================================================== */
:root {
  --navy-900: #0a0c26;
  --navy-800: #0d1030;
  --navy-700: #15184110;
  --navy-card: #161a40;
  --navy-card-2: #1c2050;
  --bg-grad-2: #211a52;

  --gold: #c9a227;
  --gold-light: #e8c66a;
  --gold-soft: rgba(232, 198, 106, 0.14);

  --purple: #7a6fd0;
  --purple-light: #a99ef0;
  --purple-soft: rgba(122, 111, 208, 0.16);

  --text: #f4f1ff;
  --text-soft: #b9b6d8;
  --text-dim: #8884ad;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 12px 30px -16px rgba(0, 0, 0, 0.7);
  --glow-gold: 0 0 30px -6px rgba(232, 198, 106, 0.5);

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 85% -8%, rgba(122, 111, 208, 0.35), transparent 60%),
    radial-gradient(800px 500px at -5% 8%, rgba(201, 162, 39, 0.18), transparent 55%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900) 70%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Starfield overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 80% 60%, rgba(232,198,106,0.7), transparent),
    radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 90% 35%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 12% 60%, rgba(169,158,240,0.7), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.4), transparent);
  background-repeat: repeat;
  background-size: 100% 100%;
  opacity: 0.7;
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.85; } }

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1rem; color: var(--text-soft); }
a { color: var(--gold-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 14px;
}
.gold-text {
  background: linear-gradient(100deg, var(--gold), var(--gold-light), var(--purple-light), var(--gold));
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 250% center; } }

.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 60ch; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem;
  padding: 13px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--gold), var(--gold-light));
  color: #2a210a; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); color: #2a210a; box-shadow: var(--glow-gold); }
.btn-purple { background: linear-gradient(120deg, var(--purple), var(--purple-light)); color: #fff; }
.btn-purple:hover { transform: translateY(-2px); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 16, 48, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.96rem; position: relative; }
.nav-links a:hover { color: var(--gold-light); }
.nav-links a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width 0.25s;
}
.nav-links a.navlink:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10, 12, 38, 0.98); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav-links .btn { margin: 14px 24px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-serif); font-size: 2rem; color: var(--gold-light); font-weight: 600; }
.hero-stat .lbl { font-size: 0.85rem; color: var(--text-dim); }

.orb { position: absolute; border-radius: 50%; filter: blur(12px); opacity: 0.5; animation: float 9s ease-in-out infinite; }
.orb-1 { width: 100px; height: 100px; background: var(--gold-soft); top: 12%; right: 8%; }
.orb-2 { width: 70px; height: 70px; background: var(--purple-soft); bottom: 16%; left: 4%; animation-delay: 1.5s; }
.orb-3 { width: 44px; height: 44px; background: rgba(232,198,106,0.3); top: 40%; left: 46%; animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-22px) translateX(10px); } }

.hero-visual { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.crystal {
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), var(--purple) 45%, var(--navy-800) 100%);
  box-shadow: var(--shadow), var(--glow-gold), inset 0 0 60px rgba(255,255,255,0.25);
  position: relative; animation: float 7s ease-in-out infinite;
}
.crystal::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; color: var(--gold-light); }
.ring { position: absolute; border: 1px dashed var(--purple-light); border-radius: 50%; opacity: 0.45; }
.ring-1 { inset: 4%; animation: spin 30s linear infinite; }
.ring-2 { inset: -8%; animation: spin 46s linear infinite reverse; border-color: var(--gold-light); }

/* ---------- Reader card ---------- */
.reader-card { overflow: hidden; display: flex; flex-direction: column; }
.reader-photo { position: relative; aspect-ratio: 4/5; background: var(--navy-card-2); overflow: hidden; display: block; }
.reader-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.reader-card:hover .reader-photo img { transform: scale(1.05); }
.reader-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,38,0.6), transparent 45%);
}
.reader-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.reader-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--text); }
.reader-tag { font-size: 0.85rem; color: var(--text-soft); min-height: 2.4em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-light); font-weight: 500; border: 1px solid var(--line); }
.chip-gold { background: var(--gold-soft); color: var(--gold-light); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: rgba(10,12,38,0.75); color: var(--text); border: 1px solid var(--line-strong);
  backdrop-filter: blur(4px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.online { background: #3ddc97; animation: pulse 1.8s infinite; }
.dot.busy { background: #ff9e40; }
.dot.away { background: #ffcd56; }
.dot.offline { background: #8884ad; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,151,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}

.stars { color: var(--gold-light); letter-spacing: 1px; font-size: 0.95rem; }
.rating-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-soft); flex-wrap: wrap; }
.rating-num { font-weight: 700; color: var(--text); }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--text); }
.field .hint { font-weight: 400; color: var(--text-dim); font-size: 0.82rem; }
.input, .textarea, .select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 1rem; color: var(--text);
  background: rgba(255,255,255,0.04); transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.select option { background: var(--navy-800); color: var(--text); }
.textarea { min-height: 140px; resize: vertical; }
.error-text { color: #ff8585; font-size: 0.82rem; margin-top: 6px; }

/* ---------- Steps ---------- */
.step { text-align: center; padding: 30px 22px; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.5rem;
  color: #2a210a; background: linear-gradient(120deg, var(--gold), var(--gold-light)); box-shadow: var(--glow-gold);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, body::before { animation: none !important; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--text-soft); padding: 56px 0 28px; margin-top: 40px; border-top: 1px solid var(--line); }
.footer h4 { color: var(--text); font-size: 1.05rem; margin-bottom: 14px; }
.footer a { color: var(--text-soft); }
.footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.84rem; color: var(--text-dim);
}

/* ---------- Misc ---------- */
.tag-pill { display: inline-block; font-size: 0.78rem; padding: 5px 14px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-light); font-weight: 600; border: 1px solid var(--line); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.prose p { font-size: 1.06rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul { color: var(--text-soft); padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.note { background: var(--gold-soft); border: 1px solid rgba(232,198,106,0.35); color: var(--gold-light); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; }
.note strong { color: var(--text); }
.success-banner { background: rgba(61,220,151,0.12); border: 1px solid rgba(61,220,151,0.4); color: var(--text); padding: 18px 22px; border-radius: var(--radius); display: flex; gap: 14px; align-items: flex-start; }

.gradient-cta { background: linear-gradient(120deg, rgba(122,111,208,0.25), rgba(232,198,106,0.18)); border: 1px solid var(--line-strong); }
.tile-icon { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-card), var(--navy-card-2)); display: grid; place-items: center; font-size: 2.4rem; color: var(--gold-light); border-bottom: 1px solid var(--line); }
.feature-icon { font-size: 1.8rem; }

details.card { padding: 18px 22px; }
details.card summary { cursor: pointer; font-weight: 600; font-family: var(--font-serif); font-size: 1.15rem; color: var(--text); list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::before { content: "✦ "; color: var(--gold-light); }
details.card[open] summary { color: var(--gold-light); }

.breadcrumb { margin-bottom: 22px; font-size: 0.9rem; }

/* hidden util for JS filtering */
[hidden] { display: none !important; }
