/* ============================================================
   QISMET — celestial editorial system
   Restraint · precision · champagne gold on cool ink
   Display: Fraunces · UI/labels: Inter
   ============================================================ */

:root {
  --ink: #0a0a12;
  --ink-2: #0d0d17;
  --panel: #111120;
  --panel-2: #14142399;

  --gold: #d8c495;
  --gold-hi: #f0e6cf;
  --gold-deep: #a4854e;
  --amethyst: #8a78c4;

  --text: #ece7dc;
  --muted: #928d9c;
  --faint: #605c6e;

  --line: rgba(216, 196, 150, 0.14);
  --line-2: rgba(216, 196, 150, 0.30);

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-d: "Fraunces", "GFS Baskerville", Georgia, serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 45% at 50% -6%, rgba(138, 120, 196, 0.10), transparent 70%),
    radial-gradient(70% 50% at 50% 108%, rgba(216, 196, 150, 0.06), transparent 70%),
    linear-gradient(180deg, #0a0a12 0%, #0c0c16 55%, #090910 100%);
}
#stars { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.7; }

::selection { background: rgba(216, 196, 150, 0.22); color: #fff; }

/* ---------- primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-b); font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin: 0;
}
.kicker::before { content: ""; width: 30px; height: 1px; background: var(--gold-deep); }
.kicker.center::after { content: ""; width: 30px; height: 1px; background: var(--gold-deep); }

h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; color: var(--text); font-optical-sizing: auto; }
.gold-text { color: var(--gold-hi); }

.section { padding: 130px 0; position: relative; }
.section-head { max-width: 620px; margin: 0 auto 72px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 20px 0 18px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.rule { height: 1px; border: 0; background: var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-b); font-weight: 550; font-size: 0.9rem;
  padding: 13px 24px; border-radius: 8px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-gold { color: #17130a; background: var(--gold); }
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn-ghost { color: var(--gold-hi); background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(216, 196, 150, 0.05); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 20px 0; transition: padding 0.35s var(--ease), background 0.35s, border-color 0.35s; }
.site-header.scrolled { padding: 11px 0; background: rgba(10, 10, 18, 0.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--font-d); font-weight: 600; font-size: 1.24rem; letter-spacing: 0.18em; color: var(--gold-hi); }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links .link { color: var(--text); text-decoration: none; font-size: 0.88rem; opacity: 0.72; transition: 0.25s; }
.nav-links .link:hover { opacity: 1; color: var(--gold-hi); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 150px 0 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; width: 100%; }
.hero-copy { max-width: 560px; }
.hero-copy h1 {
  font-size: clamp(3.2rem, 8vw, 5.4rem); font-weight: 600; letter-spacing: 0.1em;
  color: var(--gold-hi); margin: 22px 0 0; line-height: 1;
}
.hero-copy .tagline { font-family: var(--font-d); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: var(--text); margin: 18px 0 20px; }
.hero-copy .sub { color: var(--muted); font-size: 1.05rem; max-width: 480px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; gap: 40px; flex-wrap: wrap; }
.hero-meta span { display: flex; flex-direction: column; gap: 2px; }
.hero-meta b { color: var(--gold-hi); font-weight: 500; font-family: var(--font-d); font-size: 1.5rem; line-height: 1; }
.hero-meta small { color: var(--faint); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* framed astrolabe instrument */
.hero-figure { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(160deg, rgba(20, 20, 34, 0.5), rgba(10, 10, 18, 0.2)); display: grid; place-items: center; }
.hero-figure::before, .hero-figure::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--line-2); }
.hero-figure::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hero-figure::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.hero-figure .corner-tr { position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border: 1px solid var(--line-2); border-left: 0; border-bottom: 0; }
.hero-figure .corner-bl { position: absolute; bottom: 12px; left: 12px; width: 12px; height: 12px; border: 1px solid var(--line-2); border-right: 0; border-top: 0; }
.astrolabe { width: 82%; aspect-ratio: 1; }
.astrolabe .ring-outer { transform-origin: 200px 200px; animation: spin 240s linear infinite; }
.astrolabe .ring-inner { transform-origin: 200px 200px; animation: spin 180s linear infinite reverse; }
.astrolabe .ring-mid { transform-origin: 200px 200px; animation: spin 360s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-ind { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--gold); opacity: 0.5; }

/* ---------- readings grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card { background: var(--ink); padding: 34px 28px; transition: background 0.3s; position: relative; }
.card:hover { background: var(--panel); }
.card .ic { width: 34px; height: 34px; margin-bottom: 22px; color: var(--gold); stroke-width: 1.3; }
.card h3 { font-size: 1.12rem; font-weight: 500; margin-bottom: 10px; color: var(--gold-hi); }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.card .chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.card .chip svg { width: 11px; height: 11px; }
.card .chip.free { color: var(--amethyst); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.step .n { font-family: var(--font-d); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 16px; display: block; }
.step h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 12px; color: var(--gold-hi); }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.showcase .txt h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 20px 0 20px; }
.showcase .txt > p { color: var(--muted); font-size: 1.02rem; margin-bottom: 30px; }
.showcase ul { list-style: none; display: grid; gap: 16px; }
.showcase li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); font-size: 0.98rem; }
.showcase li svg { flex: 0 0 auto; color: var(--gold); margin-top: 4px; width: 16px; height: 16px; }
.phones { display: flex; justify-content: center; gap: 20px; }
.phone { width: 210px; border-radius: 26px; overflow: hidden; background: #05040a; border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.phone img { width: 100%; display: block; }
.phone.p1 { transform: translateY(20px); }
.phone.p2 { transform: translateY(-10px); }

/* ---------- tarot ---------- */
.tarot-stage { display: flex; justify-content: center; align-items: flex-end; gap: 28px; perspective: 1600px; }
.tcard { width: clamp(170px, 21vw, 220px); border-radius: 14px; transition: transform 0.5s var(--ease); transform-style: preserve-3d; }
.tcard img { width: 100%; display: block; }
.tcard.t-l { transform: rotate(-5deg) translateY(20px); }
.tcard.t-r { transform: rotate(5deg) translateY(20px); }
.tcard.t-c { transform: translateY(-8px); }
.tcard:hover { transform: translateY(-14px) rotate(0deg) scale(1.03) !important; z-index: 5; }
.tarot-caption { text-align: center; margin-top: 44px; color: var(--muted); font-family: var(--font-d); font-style: italic; font-size: 1.1rem; }

/* ---------- guides ---------- */
.guides { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.guide { background: var(--ink); text-align: center; padding: 38px 18px 32px; transition: background 0.3s; }
.guide:hover { background: var(--panel); }
.guide .medallion { width: 84px; height: 84px; margin: 0 auto 20px; }
.guide h4 { font-family: var(--font-d); font-size: 1.02rem; font-weight: 500; color: var(--gold-hi); margin-bottom: 8px; }
.guide p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; text-align: center; }
.stat .num { font-family: var(--font-d); font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 500; color: var(--gold-hi); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 0.8rem; margin-top: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-family: var(--font-b); font-size: 1.02rem; font-weight: 500; padding: 26px 4px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: color 0.25s; }
.qa button:hover { color: var(--gold-hi); }
.qa .plus { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.qa .plus::before, .qa .plus::after { content: ""; position: absolute; background: var(--gold); transition: transform 0.3s var(--ease); }
.qa .plus::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.qa .plus::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.qa.open .plus::after { transform: scaleY(0); }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.qa .ans p { padding: 0 4px 26px; color: var(--muted); max-width: 620px; }

/* ---------- cta ---------- */
.cta-band { text-align: center; padding: 100px 40px; border: 1px solid var(--line); border-radius: 6px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../images/wide.png") center/cover; opacity: 0.14; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,18,0.4), rgba(10,10,18,0.85)); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 18px; color: var(--gold-hi); }
.cta-band p { color: var(--muted); max-width: 480px; margin: 0 auto 34px; font-size: 1.02rem; }

/* ---------- footer ---------- */
.site-footer { padding: 72px 0 44px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 50px; flex-wrap: wrap; }
.foot-brand { max-width: 300px; }
.foot-brand .flogo { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.foot-brand .flogo img { width: 30px; height: 30px; border-radius: 7px; }
.foot-brand .flogo span { font-family: var(--font-d); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.16em; color: var(--gold-hi); }
.foot-brand p { color: var(--muted); font-size: 0.86rem; }
.foot-links { display: flex; gap: 64px; }
.foot-links h5 { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.foot-links a { display: block; color: var(--muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 11px; transition: 0.25s; }
.foot-links a:hover { color: var(--gold-hi); }
.foot-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 0.8rem; }
.foot-bottom .tag { font-family: var(--font-d); font-style: italic; color: var(--muted); }
.disclaimer { text-align: center; color: var(--faint); font-size: 0.78rem; margin-top: 26px; max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }

/* ---------- back to top ---------- */
.to-top { position: fixed; bottom: 28px; right: 28px; width: 42px; height: 42px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line-2); color: var(--gold); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: 0.35s; z-index: 40; }
.to-top:hover { border-color: var(--gold); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- legal page ---------- */
.legal-hero { padding: 170px 0 50px; text-align: center; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--gold-hi); }
.legal-hero .updated { color: var(--muted); font-size: 0.85rem; margin-top: 16px; letter-spacing: 0.05em; }
.legal-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 60px; padding-bottom: 110px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc h5 { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.toc a { display: block; color: var(--muted); text-decoration: none; font-size: 0.88rem; padding: 7px 0 7px 16px; border-left: 1px solid var(--line); transition: 0.25s; }
.toc a:hover, .toc a.active { color: var(--gold-hi); border-left-color: var(--gold); }
.legal-body { max-width: 720px; }
.legal-body .doc { border-top: 1px solid var(--line); padding: 40px 0; }
.legal-body h2 { font-size: 1.7rem; margin-bottom: 12px; color: var(--gold-hi); }
.legal-body h3 { font-size: 1.05rem; color: var(--gold-hi); margin: 32px 0 10px; font-family: var(--font-b); font-weight: 600; }
.legal-body p, .legal-body li { color: var(--muted); margin-bottom: 12px; font-size: 0.96rem; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.legal-body a:hover { color: var(--gold-hi); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .guides { grid-template-columns: repeat(5, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-figure { max-width: 440px; margin: 0 auto; width: 100%; order: -1; }
  .hero-copy { max-width: 100%; text-align: center; margin: 0 auto; }
  .kicker { justify-content: center; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-meta span { align-items: center; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(76vw, 300px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 40px; background: rgba(10, 10, 18, 0.97); backdrop-filter: blur(20px); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.4s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links .link { font-size: 1.05rem; }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; background: none; border: 1px solid var(--line-2); border-radius: 8px; color: var(--gold-hi); cursor: pointer; z-index: 70; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .showcase { grid-template-columns: 1fr; gap: 50px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .legal-wrap { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; }
}
@media (max-width: 540px) {
  .section { padding: 90px 0; }
  .grid { grid-template-columns: 1fr; }
  .guides { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .tarot-stage { gap: 4px; }
  .tcard.t-l, .tcard.t-r { display: none; }
  .tcard.t-c { transform: none; width: 62%; }
  .phones { flex-direction: column; align-items: center; }
  .phone.p1, .phone.p2 { transform: none; }
  .foot-links { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
