:root {
  --bg: #070d18;
  --bg-raised: #0e1a30;
  --bg-glow: #15294d;
  --gold: #d3ab62;
  --gold-bright: #ecd49b;
  --gold-dim: #a07f42;
  --text: #c8d2e2;
  --text-dim: #8c99af;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.container.narrow { width: min(720px, 90vw); }
.center { text-align: center; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--gold-bright);
  line-height: 1.1;
}

a { color: var(--gold); }

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, var(--bg-glow) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(243, 178, 74, 0.07), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  width: min(1100px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-cover {
  position: relative;
}

.hero-cover img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  /* drop-shadow follows the book's alpha contour (3D mockup PNG) */
  filter:
    drop-shadow(0 24px 38px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 50px rgba(211, 171, 98, 0.14));
  animation: cover-float 7s ease-in-out infinite;
}

/* detached ground shadow that breathes opposite the float */
.hero-cover::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -38px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 70%);
  filter: blur(12px);
  animation: cover-shadow 7s ease-in-out infinite;
}

@keyframes cover-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes cover-shadow {
  0%, 100% { transform: scaleX(1); opacity: 0.85; }
  50%      { transform: scaleX(0.94); opacity: 0.55; }
}

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.byline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  margin: 1rem 0 1.75rem;
}

.hero-lede {
  max-width: 34em;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  color: #1a1206;
  box-shadow: 0 4px 24px rgba(211, 171, 98, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 36px rgba(211, 171, 98, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(211, 171, 98, 0.4);
  color: var(--gold);
}

.btn-ghost:hover { border-color: var(--gold); background: rgba(211, 171, 98, 0.06); }

/* ===== Sections ===== */

.section { padding: 7rem 0; }

.label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.75rem;
}

.section p + p { margin-top: 1.25rem; }

.section-lede {
  max-width: 44em;
  color: var(--text-dim);
  margin-bottom: 3.5rem;
}

/* ===== Honesty contract ===== */

.contract-list {
  list-style: none;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(211, 171, 98, 0.18);
}

.contract-list li {
  display: flex;
  align-items: baseline;
  gap: 1.75rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(211, 171, 98, 0.18);
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold-bright);
}

.contract-list .num {
  font-size: 1rem;
  color: var(--gold-dim);
  min-width: 1.5em;
  letter-spacing: 0.1em;
}

/* ===== Elements grid ===== */

.section-elements {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, var(--bg-raised) 0%, transparent 70%),
    var(--bg);
}

.elements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.element {
  padding: 2rem 1.5rem;
  background: rgba(21, 41, 77, 0.38);
  border: 1px solid rgba(211, 171, 98, 0.12);
  border-radius: 4px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.element:hover {
  border-color: rgba(211, 171, 98, 0.4);
  transform: translateY(-3px);
}

.element svg {
  width: 42px;
  height: 42px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.element h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.element p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===== About / quote ===== */

blockquote {
  margin-top: 2.5rem;
  padding-left: 1.75rem;
  border-left: 2px solid var(--gold-dim);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--gold-bright);
}

/* ===== Author ===== */

.section-author {
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, var(--bg-raised) 0%, transparent 70%),
    var(--bg);
}

/* ===== Final CTA ===== */

.section-cta {
  position: relative;
  padding: 9rem 0;
  background: radial-gradient(ellipse 50% 60% at 50% 45%, rgba(243, 178, 74, 0.1) 0%, transparent 65%), var(--bg);
}

.cta-flame svg {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 18px rgba(243, 178, 74, 0.6));
  animation: flicker 3.2s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { transform: scale(1); opacity: 1; }
  30%       { transform: scale(1.04) rotate(-1deg); opacity: 0.92; }
  60%       { transform: scale(0.97) rotate(1deg); opacity: 0.97; }
}

.section-cta p { color: var(--text-dim); margin-bottom: 2.25rem; }

/* ===== Footer ===== */

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(211, 171, 98, 0.12);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ===== Reveal on scroll (no-JS safe: starts visible, JS opts in) ===== */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cta-flame svg { animation: none; }
  .hero-cover img, .hero-cover::after { animation: none; }
}

/* ===== Responsive ===== */

@media (max-width: 820px) {
  .hero { padding: 4rem 0; min-height: 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-cover { max-width: 300px; margin: 0 auto; }
  .hero-lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .section { padding: 4.5rem 0; }
  .contract-list li { font-size: 1.15rem; gap: 1.1rem; }
  blockquote { font-size: 1.25rem; }
}
