/* ==========================================================================
   Psychic Visions AI — Global Styles
   Typography, buttons, utility classes, and base page structure.
   ========================================================================== */

/* ── Page wrapper (sits above starfield) ──────────────────── */
.page {
  position: relative;
  z-index: var(--z-content);
}

/* ── Typography ───────────────────────────────────────────── */
/* Eyebrow label */
.eyebrow {
  display: inline-block;
  color: var(--color-gold-light);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Section headings */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: var(--color-white);
  margin: var(--space-sm) 0 var(--space-md);
}

/* Section sub-heading (for legal pages) */
.section-subheading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin: var(--space-xl) 0 var(--space-sm);
}

/* Body lead */
.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  max-width: 48ch;
}

/* Tiny disclaimer text */
.text-tiny {
  font-size: 0.8rem;
  color: var(--color-dim);
}

/* Gold gradient text effect */
.text-gradient {
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    var(--color-gold-light) 50%,
    var(--color-gold) 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

/* Gold primary CTA */
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light) 50%, var(--color-gold));
  color: var(--color-bg);
  border-color: rgba(245, 215, 122, 0.4);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(245, 215, 122, 0.4);
}

/* Ghost outline */
.btn-ghost {
  background: transparent;
  border-color: rgba(212, 168, 67, 0.35);
  color: var(--color-gold-light);
}

.btn-ghost:hover {
  background: rgba(212, 168, 67, 0.08);
  border-color: var(--color-gold-light);
}

/* Violet secondary */
.btn-violet {
  background: var(--color-purple);
  border-color: var(--color-violet);
  color: var(--color-white);
  box-shadow: var(--shadow-violet);
}

.btn-violet:hover {
  background: var(--color-violet);
  box-shadow: 0 0 48px rgba(155, 77, 202, 0.4);
}

/* ── Section layout ───────────────────────────────────────── */
.section {
  position: relative;
  padding: var(--space-3xl) var(--section-pad-x);
}

.section-header {
  text-align: center;
  max-width: var(--content-narrow);
  margin: 0 auto var(--space-3xl);
}

.section-copy {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Card base ────────────────────────────────────────────── */
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    150deg,
    rgba(20, 14, 36, 0.93),
    rgba(26, 14, 48, 0.67)
  );
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 215, 122, 0.35);
  box-shadow: var(--shadow-md),
              0 0 32px rgba(212, 168, 67, 0.06);
}

/* Card icon container */
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(245, 215, 122, 0.2);
  color: var(--color-gold-light);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

/* ── Grid utilities ───────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-lg);
  max-width: var(--content-max);
  margin: 0 auto;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Content wrapper ──────────────────────────────────────── */
.content-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
}

.content-wrapper--narrow {
  max-width: var(--content-narrow);
}

/* ── Starfield canvas layer ───────────────────────────────── */
.starfield-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-stars);
  pointer-events: none;
}
