/* ─── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  --ink:        #12121E;
  --surface:    #1A1A2C;
  --surface-2:  #20203A;
  --cream:      #F5EDD6;
  --gold:       #F5C742;
  --gold-dim:   #B8922A;
  --ash:        #6B6B8A;
  --border:     rgba(245, 199, 66, 0.18);
  --glow:       rgba(245, 199, 66, 0.07);

  --font-display: 'Cinzel Decorative', serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --container: 1100px;
  --radius:    8px;
  --transition: 0.25s ease;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

ul { list-style: none; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(245, 199, 66, 0.35);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 237, 214, 0.35);
}
.btn-outline:hover {
  border-color: var(--cream);
  opacity: 1;
}

.btn-sm {
  font-size: 0.72rem;
  padding: 9px 18px;
  background: transparent;
  color: var(--gold);
  border-color: var(--border);
}
.btn-sm:hover { border-color: var(--gold); opacity: 1; }

/* Greyed-out "coming soon" state */
.btn-soon {
  background: transparent;
  color: var(--ash);
  border-color: rgba(107, 107, 138, 0.3);
  cursor: default;
  pointer-events: none;
}
.btn-soon:hover { transform: none; box-shadow: none; }

/* ─── Section shared ──────────────────────────────────────────────────────── */

section { padding-block: 96px; }

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 56px;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 18px;
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled {
  background: rgba(18, 18, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 140px 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 30%, rgba(245, 199, 66, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 15%, rgba(245, 199, 66, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  padding-inline: 24px;
}

.hero-candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
}

/* Light pool under candle */
.hero-candle::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(245, 199, 66, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.candle-flame {
  position: relative;
  width: 26px;
  height: 50px;
  background: radial-gradient(
    ellipse at 50% 90%,
    #fffff2 0%,
    #fff7a0 18%,
    #f5c742 42%,
    #e87820 68%,
    rgba(190, 30, 0, 0.45) 88%,
    transparent 100%
  );
  border-radius: 50% 50% 35% 35% / 62% 62% 38% 38%;
  transform-origin: 50% 100%;
  animation: candle-flicker 2.2s ease-in-out infinite;
  box-shadow:
    0 0 14px 6px  rgba(245, 199, 66, 0.75),
    0 0 40px 14px rgba(230, 130, 20, 0.40),
    0 0 90px 30px rgba(230, 90,  0,  0.15);
}

.candle-flame-core {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(255,255,245,1) 0%, rgba(255,255,210,0.5) 60%, transparent 100%);
  border-radius: 50%;
  animation: candle-core-pulse 1.1s ease-in-out infinite alternate;
}

.candle-wick {
  width: 2px;
  height: 12px;
  background: linear-gradient(to top, #3a2010, #1a0800);
  border-radius: 1px;
}

.candle-wax {
  width: 52px;
  height: clamp(80px, 14vw, 110px);
  background: linear-gradient(
    to right,
    #7a5a18 0%,
    #c49a30 14%,
    #f5c742 34%,
    #fde98a 50%,
    #f5c742 66%,
    #c49a30 86%,
    #7a5a18 100%
  );
  border-radius: 4px 4px 3px 3px;
}

@keyframes candle-flicker {
  0%   { transform: scaleX(1)    scaleY(1)    rotate(0deg);    }
  7%   { transform: scaleX(0.93) scaleY(1.05) rotate(-2.5deg); }
  16%  { transform: scaleX(1.05) scaleY(0.96) rotate( 1.5deg); }
  25%  { transform: scaleX(0.96) scaleY(1.07) rotate(-1.2deg); }
  36%  { transform: scaleX(1.04) scaleY(0.97) rotate( 2.2deg); }
  47%  { transform: scaleX(0.94) scaleY(1.05) rotate(-1.8deg); }
  58%  { transform: scaleX(1.05) scaleY(0.96) rotate( 1.0deg); }
  69%  { transform: scaleX(0.96) scaleY(1.04) rotate(-1.5deg); }
  80%  { transform: scaleX(1.02) scaleY(0.98) rotate( 1.8deg); }
  91%  { transform: scaleX(0.95) scaleY(1.04) rotate(-2.0deg); }
  100% { transform: scaleX(1)    scaleY(1)    rotate(0deg);    }
}

@keyframes candle-core-pulse {
  0%   { opacity: 0.80; transform: translateX(-50%) scale(0.88); }
  100% { opacity: 1.00; transform: translateX(-50%) scale(1.18); }
}

.hero-title {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  color: var(--gold);
  letter-spacing: 0.04em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--cream);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: -8px;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--cream);
  opacity: 0.75;
  max-width: 520px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

/* ─── Showcase ────────────────────────────────────────────────────────────── */

.showcase {
  padding-block: 0 96px;
}

.showcase-figure {
  margin: 0;
}

.showcase-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(245, 199, 66, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(245, 199, 66, 0.06);
  max-width: 860px;
  margin-inline: auto;
}

.showcase-img {
  width: 100%;
  display: block;
}

figcaption {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: center;
  margin-top: 16px;
}

/* ─── How it works ────────────────────────────────────────────────────────── */

.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}

.how-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
}

.how-item h3 {
  font-size: 1rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.how-item p {
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.65;
  font-weight: 300;
}

/* ─── Features ────────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
}

.feature:hover { background: var(--surface-2); }

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.feature h3 {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.feature p {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.65;
  font-weight: 300;
}

/* ─── Chapters ────────────────────────────────────────────────────────────── */

.chapters {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.chapters-table {
  max-width: 560px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chapter-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  padding: 14px 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.chapter-row:last-child { border-bottom: none; }
.chapter-row:not(.chapter-row--head):hover { background: var(--surface-2); }

.chapter-row--head {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  background: rgba(0, 0, 0, 0.2);
}

.chapter-row--free {
  color: var(--cream);
  background: rgba(245, 199, 66, 0.04);
  border-left: 2px solid var(--gold);
}

.chapter-row--free em {
  font-style: normal;
  font-size: 0.58rem;
  color: var(--ink);
  background: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
  display: inline-block;
  line-height: 1.6;
}

.chapter-row--locked {
  opacity: 0.55;
}

.chapter-row--locked span:first-child::after {
  content: ' 🔒';
  font-size: 0.7em;
  opacity: 0.6;
}

/* ─── Pricing ─────────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin-inline: auto;
}

.pricing-grid--single {
  max-width: 380px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card--muted {
  opacity: 0.55;
}

.pricing-platform {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}

.pricing-price span {
  font-size: 0.85rem;
  color: var(--ash);
  letter-spacing: 0.05em;
}

.pricing-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-list li {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.75;
  font-weight: 300;
  padding-left: 16px;
  position: relative;
}

.pricing-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.pricing-list strong { color: var(--gold); font-weight: 700; }

/* ─── Email signup ────────────────────────────────────────────────────────── */

.notify {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(245, 199, 66, 0.06) 0%, transparent 70%),
    var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.notify-inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.notify-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
}

.notify-desc {
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.7;
  font-weight: 300;
}

.notify-form { width: 100%; }

.notify-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.notify-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.notify-input::placeholder { color: var(--ash); }

.notify-input:focus {
  border-color: var(--gold);
  background: rgba(245, 199, 66, 0.06);
}

.notify-legal {
  font-size: 0.8rem;
  color: var(--ash);
  margin-top: 10px;
  text-align: center;
}

.notify-legal a { color: var(--ash); text-decoration: underline; }
.notify-legal a:hover { color: var(--gold); }

.notify-success {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding: 20px;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--ash);
}

.footer-links a:hover { color: var(--cream); opacity: 1; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--ash);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  section { padding-block: 64px; }

  .hero { padding-block: 100px 64px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }

  .notify-row { flex-direction: column; }
  .notify-row .btn { max-width: none; width: 100%; }

  .chapter-row { grid-template-columns: 1fr auto; }
  .chapter-row span:nth-child(2) { display: none; }
  .chapter-row--head span:nth-child(2) { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { flex-direction: column; gap: 8px; }
}
