/* ===== Base ===== */
:root {
  --bg: #0b1020;
  --bg-soft: #121a33;
  --ink: #f4f1e8;
  --ink-soft: #c7c2b4;
  --gold: #e8c87a;
  --gold-soft: #f2dca0;
  --line: rgba(232, 200, 122, 0.18);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

/* ===== Reading progress ===== */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232,200,122,0.10), transparent 55%),
    linear-gradient(180deg, #0b1020 0%, #0d1430 100%);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,200,122,0.12), transparent 65%);
  filter: blur(40px);
  top: -120px; left: 50%;
  transform: translateX(-50%);
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(30px); }
}

.hero-inner { position: relative; z-index: 2; max-width: 820px; }

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 1s 0.1s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 32px;
  background: linear-gradient(180deg, #fff, var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: rise 1.1s 0.25s forwards;
}

.hero-verse {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 48px;
  opacity: 0;
  animation: rise 1.2s 0.45s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  opacity: 0;
  animation: rise 1.2s 0.65s forwards;
}
.hero-cta:hover {
  background: var(--gold);
  color: #0b1020;
  transform: translateY(-2px);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Section titles ===== */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
  color: var(--ink);
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 56px;
  font-size: 1.05rem;
}

/* ===== Breakdown ===== */
.breakdown { padding: 120px 0; }

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.phrase-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(30px);
}
.phrase-card.in {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1), opacity 0.6s ease;
}
.phrase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,200,122,0.45);
  box-shadow: var(--shadow);
}

.phrase-num {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.phrase-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.25;
}
.phrase-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ===== Translations ===== */
.translations {
  padding: 120px 0;
  background: linear-gradient(180deg, #0b1020, #0d1430);
}

.translation-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}
.tab:hover { color: var(--ink); border-color: rgba(232,200,122,0.4); }
.tab.active {
  background: var(--gold);
  color: #0b1020;
  border-color: var(--gold);
}

.translation-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  line-height: 1.5;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  transition: opacity 0.4s ease;
}
.translation-cite {
  text-align: center;
  margin-top: 24px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ===== Reflection ===== */
.reflection { padding: 120px 0; }
.reflection-body p {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.reflection-body em { color: var(--gold); font-style: normal; }

/* ===== Prayer ===== */
.prayer { padding: 60px 0 120px; }
.prayer-card {
  background: linear-gradient(160deg, rgba(232,200,122,0.08), rgba(232,200,122,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 44px;
  text-align: center;
}
.prayer-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  margin-bottom: 22px;
  color: var(--gold);
}
.prayer-card p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-verse {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-soft);
  margin-bottom: 10px;
}
.footer-meta { color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.06em; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .phrase-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .prayer-card { padding: 40px 26px; }
}