/* ============================================
   Rekindle — Landing Page Styles
   Brand: Rekindle (from FXphoenix)
   Design system inherited from FXphoenix
   ============================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color — inherited from FXphoenix */
  --charcoal: #0a0908;
  --charcoal-warm: #14110f;
  --charcoal-soft: #1c1814;
  --cream: #f5e6d3;
  --ash: #8a7b6e;
  --crimson-deep: #6b1d24;
  --crimson-ember: #c41e3a;
  --gold: #d4a574;
  --gold-bright: #e8c39e;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--cream);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--gold-bright); }

img, svg { max-width: 100%; height: auto; display: block; }

::selection { background: var(--crimson-ember); color: var(--cream); }

/* ---------- AMBIENT BACKGROUND ---------- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--gold);
  animation: twinkle 4s ease-in-out infinite;
  opacity: 0.6;
}
.star.s2 { width: 1px; height: 1px; opacity: 0.4; animation-duration: 6s; }
.star.s3 { width: 3px; height: 3px; opacity: 0.7; animation-duration: 5s; box-shadow: 0 0 6px var(--gold-bright); }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.ember {
  position: absolute;
  bottom: -20px;
  width: 4px;
  height: 4px;
  background: var(--crimson-ember);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--crimson-ember), 0 0 16px var(--gold);
  animation: rise 18s linear infinite;
  opacity: 0;
}

@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

/* ---------- LAYOUT ---------- */
.page {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container--narrow { max-width: 720px; }
.text-center { text-align: center; }

/* ---------- NAVIGATION ---------- */
.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark { width: 36px; height: 42px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.brand-name .accent { color: var(--gold); font-style: italic; }

.endorser {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  margin-left: 0.5rem;
}
.endorser strong { color: var(--gold); font-weight: 500; }

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  position: relative;
}

.hero-content {
  max-width: 760px;
  text-align: center;
  animation: fadeUp 1.2s var(--transition-slow);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-mark {
  width: 88px;
  height: 105px;
  margin: 0 auto var(--space-md);
  animation: emberFlicker 4s ease-in-out infinite;
}

@keyframes emberFlicker {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 16px rgba(212, 165, 116, 0.4)); }
  50% { opacity: 0.92; transform: scale(1.03); filter: drop-shadow(0 0 24px rgba(212, 165, 116, 0.6)); }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--ash);
  margin-bottom: 2.5rem;
}
.hero-tagline .sep { color: var(--gold); margin: 0 0.5rem; }

/* ---------- WAITLIST FORM ---------- */
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.25rem;
  background: rgba(245, 230, 211, 0.04);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 2px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-base);
}
.waitlist-input:focus {
  outline: none;
  border-color: var(--gold);
}
.waitlist-input::placeholder { color: var(--ash); }

.waitlist-button {
  padding: 0.9rem 1.75rem;
  background: var(--crimson-ember);
  border: 1px solid var(--crimson-ember);
  border-radius: 2px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-base);
}
.waitlist-button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

.waitlist-fineprint {
  font-size: 0.8rem;
  color: var(--ash);
  margin-top: 1rem;
  font-style: italic;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--space-xl) var(--space-md);
  position: relative;
}
.section--soft {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-warm) 50%, var(--charcoal) 100%);
  border-top: 1px solid rgba(212, 165, 116, 0.08);
  border-bottom: 1px solid rgba(212, 165, 116, 0.08);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 1rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream);
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-title .accent { color: var(--gold); font-style: italic; }

.section-lede {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-style: italic;
  color: var(--ash);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- PROSE ---------- */
.prose {
  max-width: 680px;
  margin: 0 auto;
}
.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cream);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.prose p.lead {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-bright);
  margin-bottom: 2.5rem;
  text-align: center;
  line-height: 1.5;
  opacity: 1;
}
.prose em { color: var(--gold); font-style: italic; }
.prose strong { color: var(--cream); font-weight: 500; }

.pullquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.4;
  padding: 2rem 1.5rem;
  border-left: 2px solid var(--crimson-ember);
  margin: 3rem 0;
  background: rgba(196, 30, 58, 0.03);
}

/* ---------- PRACTICE GRID (How it works) ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 4rem auto 0;
}

.practice {
  padding: 2rem;
  border: 1px solid rgba(212, 165, 116, 0.15);
  background: rgba(245, 230, 211, 0.02);
  transition: all var(--transition-base);
  position: relative;
}
.practice:hover {
  border-color: rgba(212, 165, 116, 0.4);
  background: rgba(245, 230, 211, 0.04);
  transform: translateY(-2px);
}

.practice-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.practice-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.practice-desc {
  color: var(--cream);
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- MURAL PREVIEW ---------- */
.mural-section {
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  position: relative;
  overflow: hidden;
}

.mural-preview {
  max-width: 600px;
  margin: 3rem auto 0;
  aspect-ratio: 4 / 3;
  background: var(--charcoal-warm);
  border: 1px solid rgba(212, 165, 116, 0.2);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.mural-stars {
  position: absolute;
  inset: 0;
}
.mural-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--gold);
  opacity: 0;
  animation: muralLight 6s ease-in-out infinite;
}

@keyframes muralLight {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.8; }
}

.mural-caption {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ash);
  font-size: 0.95rem;
}

/* ---------- ENDORSER BLOCK ---------- */
.endorser-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}
.endorser-block .section-eyebrow { margin-bottom: 1rem; }
.endorser-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.endorser-block h2 .accent { color: var(--gold); font-style: italic; }
.endorser-block p {
  color: var(--cream);
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.endorser-block a.read-more {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: all var(--transition-base);
}
.endorser-block a.read-more:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background: radial-gradient(ellipse at center, var(--charcoal-warm) 0%, var(--charcoal) 70%);
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--cream);
  margin: 1rem 0 1.5rem;
  line-height: 1.15;
}
.final-cta h2 .accent { color: var(--gold); font-style: italic; }
.final-cta-lede {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ash);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}
.final-cta-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-top: 2rem;
  opacity: 0.8;
}
.final-cta-tagline .sep { color: var(--crimson-ember); margin: 0 0.4rem; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid rgba(212, 165, 116, 0.1);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: var(--charcoal);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-blurb {
  color: var(--ash);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--ash);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}
.footer-col a:hover { color: var(--cream); }

.footer-base {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 165, 116, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ash);
  font-style: italic;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .site-nav { flex-direction: column; gap: 1rem; padding: 1rem; }
  .endorser { margin: 0; }
  .hero { min-height: 80vh; padding: 2rem 1.5rem 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .practice-grid { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-base { flex-direction: column; gap: 0.5rem; text-align: center; }
  .waitlist-form { flex-direction: column; }
  .waitlist-button { width: 100%; }
}
