/* THE GHOST — dark spectral luxury */

:root {
  --bg: #08080d;
  --bg-2: #0e0e17;
  --text: #f2f2f7;
  --muted: #9a9aad;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.04);
  --v: #a78bfa;
  --c: #67e8f9;
  --grad: linear-gradient(100deg, #a78bfa 0%, #7dd3fc 60%, #67e8f9 100%);

  /* legacy aliases (used by inline styles on apply/thanks) */
  --paper: var(--bg);
  --paper-deep: #131320;
  --ink: var(--text);
  --ink-soft: var(--muted);
  --ink-line: var(--line);
  --oxblood: var(--v);
  --night: var(--bg-2);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --text-size: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
  --section-pad: clamp(4.5rem, 3rem + 6vw, 9rem);
  --edge: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--text-size);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}
/* spectral aurora */
body::before {
  content: '';
  position: fixed; inset: -20% -10% auto;
  height: 90vh;
  background:
    radial-gradient(42% 55% at 22% 28%, rgba(167, 139, 250, 0.16), transparent 70%),
    radial-gradient(38% 50% at 78% 18%, rgba(103, 232, 249, 0.10), transparent 70%),
    radial-gradient(30% 40% at 55% 70%, rgba(167, 139, 250, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
body > * { position: relative; z-index: 1; }

h1, h2, h3 { font-weight: 500; line-height: 1.05; margin: 0 0 0.6em; letter-spacing: -0.03em; }
p { margin: 0 0 1em; }
a { color: inherit; }
::selection { background: rgba(167, 139, 250, 0.35); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}
.eyebrow-light { color: var(--muted); background: none; -webkit-background-clip: initial; background-clip: initial; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}
.btn-lg { padding: 1.05em 2.2em; font-size: 0.95rem; }
.btn-ink, .btn-paper {
  background: var(--grad);
  color: #07070c;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.25);
}
.btn-ink:hover, .btn-ink:focus-visible, .btn-paper:hover, .btn-paper:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(167, 139, 250, 0.5), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.btn-ghost { background: var(--glass); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--v);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.2);
}
.btn:active { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--edge);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 13, 0.65);
  backdrop-filter: blur(14px);
}
.wordmark { font-family: var(--serif); font-style: italic; font-size: 1.35rem; letter-spacing: 0.01em; }
.site-head nav { display: flex; gap: 2rem; }
.site-head nav a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color 150ms ease;
}
.site-head nav a:hover { color: var(--text); }
@media (max-width: 760px) { .site-head nav { display: none; } }

/* ---------- hero ---------- */
.hero {
  padding: var(--section-pad) var(--edge) calc(var(--section-pad) * 0.8);
  max-width: 72rem;
}
.hero h1 {
  font-size: clamp(3rem, 1.4rem + 7.5vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: 36em; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

/* ---------- seance (demo chat) ---------- */
.seance { padding: 0 var(--edge) var(--section-pad); }
.seance-frame {
  max-width: 46rem; margin: 0 auto;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(140deg, rgba(167,139,250,0.5), rgba(103,232,249,0.2), rgba(255,255,255,0.06)) border-box;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(167, 139, 250, 0.08);
}
.seance-head h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
}
.seance-head p { color: var(--muted); max-width: 34em; }
.chat-log { min-height: 220px; padding: 1.2rem 0; display: flex; flex-direction: column; gap: 0.9rem; }
.msg { max-width: 85%; padding: 0.75em 1.1em; font-size: 0.94rem; line-height: 1.55; border-radius: 16px; }
.msg-user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-right-radius: 4px;
  font-family: var(--mono); font-size: 0.8rem;
}
.msg-ghost {
  align-self: flex-start;
  background: rgba(167, 139, 250, 0.09);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.msg-ghost.typing::after { content: '▍'; animation: blink 0.8s steps(1) infinite; color: var(--v); }
@keyframes blink { 50% { opacity: 0; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: 1rem; }
.chip {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  background: var(--glass); color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1em; cursor: pointer;
  transition: all 160ms ease;
}
.chip:hover, .chip:focus-visible { color: var(--text); border-color: var(--v); box-shadow: 0 0 16px rgba(167, 139, 250, 0.25); }
.chat-input { display: flex; gap: 0.6rem; }
.chat-input input {
  flex: 1; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text); font-family: var(--mono); font-size: 0.84rem;
  padding: 0.85em 1.3em; outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.chat-input input:focus { border-color: var(--v); box-shadow: 0 0 20px rgba(167, 139, 250, 0.2); }
.chat-input .btn-ink { padding: 0.85em 1.6em; }
.seance-note { margin: 1.4rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted); }

/* ---------- problem ---------- */
.problem { padding: 0 var(--edge) var(--section-pad); }
.problem-cols {
  max-width: 68rem; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line); padding-top: var(--section-pad);
}
.problem .drop {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.25;
}
.problem-cols > p:last-child { color: var(--muted); align-self: end; }
.problem-cols strong { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .problem-cols { grid-template-columns: 1fr; } }

/* ---------- how ---------- */
.how { padding: 0 var(--edge) var(--section-pad); max-width: 74rem; margin: 0 auto; }
.how h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 2.5rem; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.steps li {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem 1.5rem 2rem;
  backdrop-filter: blur(6px);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.steps li:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(167, 139, 250, 0.12);
}
.step-num {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 1.3rem; margin: 0.7rem 0 0.5rem; font-weight: 500; letter-spacing: -0.02em; }
.steps p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.steps em { color: var(--text); font-style: normal; font-weight: 500; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- gets ---------- */
.gets { padding: 0 var(--edge) var(--section-pad); max-width: 74rem; margin: 0 auto; }
.gets h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 2rem; }
.gets-list { list-style: none; margin: 0; padding: 0; }
.gets-list li {
  display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; gap: 1rem 3rem;
  padding: 1.9rem 1rem;
  border-top: 1px solid var(--line);
  border-radius: 12px;
  transition: background 200ms ease;
}
.gets-list li:hover { background: var(--glass); }
.gets-list h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.6rem; margin: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gets-list p { color: var(--muted); margin: 0; max-width: 42em; }
@media (max-width: 700px) { .gets-list li { grid-template-columns: 1fr; } }

/* ---------- guarantee ---------- */
.guarantee {
  position: relative;
  padding: var(--section-pad) var(--edge);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(167, 139, 250, 0.12), transparent 70%),
    var(--bg-2);
}
.guarantee h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.guarantee p { max-width: 42em; margin: 0 auto; color: var(--muted); }
.guarantee strong { color: var(--text); font-weight: 500; }

/* ---------- price ---------- */
.price { padding: var(--section-pad) var(--edge); display: grid; place-items: center; }
.price-card {
  max-width: 30rem; width: 100%;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(150deg, rgba(167,139,250,0.6), rgba(103,232,249,0.25), rgba(255,255,255,0.05)) border-box;
  border: 1px solid transparent;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 100px rgba(167, 139, 250, 0.1);
}
.price-card h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.6rem; }
.price-num {
  font-size: clamp(3.6rem, 3rem + 2.4vw, 5.4rem);
  font-weight: 600; letter-spacing: -0.05em;
  margin: 0.05em 0 0.4em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-card ul { list-style: none; padding: 0; margin: 0 0 2rem; color: var(--muted); font-size: 0.93rem; }
.price-card li { padding: 0.55em 0; border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: none; }
.price-note { margin-top: 1.4rem; font-size: 0.85rem; font-family: var(--serif); font-style: italic; color: var(--muted); }

/* ---------- faq ---------- */
.faq { padding: 0 var(--edge) var(--section-pad); max-width: 46rem; margin: 0 auto; }
.faq h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.15rem 0; font-size: 1.1rem; font-weight: 400;
  list-style: none; position: relative; padding-right: 2rem;
  transition: color 150ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); color: var(--v);
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--v); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; max-width: 40em; }

/* ---------- final ---------- */
.final { padding: 0 var(--edge) var(--section-pad); text-align: center; }
.final h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.8rem);
  margin-bottom: 1.8rem;
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--edge) 3rem;
  display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: baseline;
}
.site-foot p { font-size: 0.85rem; color: var(--muted); max-width: 44em; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .btn, .steps li, .chip, .msg-ghost.typing::after { transition: none; animation: none; }
}
