:root {
  color-scheme: dark;

  --bg: #090806;
  --bg-soft: #110d08;
  --surface: rgba(24, 18, 11, 0.88);

  --text: #f3e7d2;
  --text-soft: #c4b49a;
  --text-muted: #887b68;

  --gold: #e9ad43;
  --gold-soft: #f3c76d;
  --gold-dark: #94560f;

  --line: rgba(233, 173, 67, 0.22);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial,
    sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --container: 1180px;
  --book-y: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(232, 162, 45, 0.11),
      transparent 25%
    ),
    linear-gradient(180deg, #080806 0%, #0c0906 52%, #090806 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
}

a,
button {
  font: inherit;
}

::selection {
  background: var(--gold-soft);
  color: #1b1106;
}

.ambient-light,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-light {
  z-index: -2;
  background:
    radial-gradient(
      circle at 85% 18%,
      rgba(241, 176, 62, 0.08),
      transparent 22%
    ),
    radial-gradient(
      circle at 30% 68%,
      rgba(141, 76, 14, 0.04),
      transparent 34%
    );
}

.grain {
  z-index: 30;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
  padding: 70px 0;
}

.hero__copy {
  max-width: 540px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1 {
  margin: 0 0 28px;
  max-width: 620px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6.2vw, 6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero__lead,
.hero__rules {
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
}

.hero__lead {
  color: var(--text-soft);
}

.hero__rules {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.65vw, 1.42rem);
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 180ms ease;
}

.scroll-link:hover,
.scroll-link:focus-visible {
  color: var(--gold-soft);
}

.scroll-link__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(233, 173, 67, 0.48);
  border-radius: 999px;
  color: var(--gold);
}

.hero__visual {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}

.hero__door-light {
  position: absolute;
  right: -2%;
  top: 10%;
  width: 42%;
  height: 78%;
  background: linear-gradient(
    90deg,
    rgba(240, 177, 58, 0.05),
    rgba(248, 194, 82, 0.7)
  );
  box-shadow:
    0 0 80px rgba(236, 163, 43, 0.32),
    0 0 170px rgba(236, 163, 43, 0.16);
  opacity: 0.72;
}

.book {
  position: relative;
  z-index: 2;
  width: min(67%, 400px);
  margin-right: 11%;
  transform:
    perspective(1500px)
    rotateY(-7deg)
    translateY(var(--book-y));
  filter: drop-shadow(0 38px 50px rgba(0, 0, 0, 0.55));
  transition: transform 160ms linear;
}

.book img {
  border-radius: 3px 12px 12px 3px;
}

.chapter {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 24px;
}

.chapter__inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
}

.chapter__inner--narrow {
  position: relative;
  width: min(100%, 780px);
  grid-template-columns: 1fr;
}

.chapter__marker {
  position: absolute;
  left: -38px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--gold-dark) 20%,
    var(--gold-dark) 80%,
    transparent
  );
}

.chapter__marker::after {
  content: "";
  position: sticky;
  top: 50vh;
  display: block;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(233, 173, 67, 0.72);
}

.chapter__copy {
  max-width: 680px;
}

.chapter__copy p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.chapter__strong {
  margin-top: 38px !important;
  color: var(--text) !important;
  font-weight: 650;
}

.chapter__headline {
  color: var(--gold-soft) !important;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.7rem) !important;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.chapter__headline--soft {
  color: var(--text) !important;
}

.chapter__headline--center {
  max-width: 760px;
  margin: 70px auto 0 !important;
  text-align: center;
}

.chapter__accent {
  margin-top: 42px !important;
  color: var(--gold) !important;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.7vw, 2.5rem) !important;
  line-height: 1.2;
}

.chapter__pause {
  margin-top: 45px !important;
  color: var(--gold-soft) !important;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
}

.chapter__image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
}

.chapter__image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
  transition: transform 700ms ease;
}

.chapter__image:hover img {
  transform: scale(1.025);
}

.chapter--image-left .chapter__image {
  order: 1;
}

.chapter--image-left .chapter__copy {
  order: 2;
}

.chapter--door {
  min-height: 72svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.chapter__background {
  position: absolute;
  inset: 0;
  margin: 0;
}

.chapter__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 6, 0.96) 0%,
      rgba(8, 8, 6, 0.73) 48%,
      rgba(8, 8, 6, 0.18) 100%
    );
}

.chapter__inner--door {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr;
}

.chapter--door .chapter__copy {
  max-width: 650px;
}

.chapter--final-message {
  padding-bottom: 140px;
}

.purchase {
  position: relative;
  overflow: hidden;
  padding: 90px 24px 35px;
}

.purchase__light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 62% 28%,
      rgba(231, 151, 29, 0.17),
      transparent 30%
    ),
    linear-gradient(180deg, transparent, rgba(74, 39, 6, 0.11));
}

.purchase__card {
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid rgba(233, 173, 67, 0.26);
  border-radius: 24px;
  background: linear-gradient(
    115deg,
    rgba(20, 17, 12, 0.96),
    rgba(38, 27, 13, 0.86)
  );
  box-shadow:
    0 45px 120px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 235, 196, 0.05);
}

.purchase__cover {
  margin: 0;
}

.purchase__cover img {
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.58);
}

.purchase__label {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.price {
  margin: 0 0 22px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  line-height: 1;
}

.price span {
  color: var(--text-soft);
  font-size: 0.48em;
  letter-spacing: 0.08em;
}

.cta-button {
  width: min(100%, 480px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-radius: 9px;
  padding: 17px 23px;
  background: linear-gradient(135deg, #f4c66b, #e5a437);
  color: #1a1107;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 14px 36px rgba(218, 146, 31, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 20px 44px rgba(218, 146, 31, 0.38);
}

.purchase__delivery {
  margin-top: 20px;
}

.purchase__delivery p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.purchase__delivery p:first-child {
  color: var(--text-soft);
}

.footer {
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
  margin: 35px auto 0;
  text-align: center;
}

.footer p {
  margin: 0;
  color: rgba(196, 180, 154, 0.42);
  font-size: 0.72rem;
}

.notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  width: min(calc(100% - 34px), 430px);
  padding: 13px 17px;
  border: 1px solid rgba(233, 173, 67, 0.25);
  border-radius: 9px;
  background: rgba(14, 10, 7, 0.96);
  color: var(--text);
  text-align: center;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 850ms cubic-bezier(0.2, 0.72, 0.22, 1),
    transform 850ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__visual {
    min-height: 520px;
  }

  .book {
    width: min(58%, 360px);
    margin: 0;
  }

  .hero__door-light {
    right: 10%;
    width: 35%;
  }

  .chapter__inner {
    grid-template-columns: 1fr;
  }

  .chapter--image-left .chapter__image,
  .chapter--image-left .chapter__copy {
    order: initial;
  }

  .chapter__image {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .hero__inner {
    width: min(calc(100% - 34px), var(--container));
    padding: 58px 0 40px;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  .hero__visual {
    min-height: 410px;
  }

  .book {
    width: min(72%, 310px);
  }

  .hero__door-light {
    right: -3%;
    width: 45%;
    height: 74%;
  }

  .chapter {
    padding: 65px 17px;
  }

  .chapter__marker {
    display: none;
  }

  .chapter__headline,
  .chapter__accent {
    font-size: 2.1rem !important;
  }

  .chapter--door {
    min-height: 620px;
  }

  .chapter__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(8, 8, 6, 0.35) 0%,
        rgba(8, 8, 6, 0.82) 58%,
        rgba(8, 8, 6, 0.95) 100%
      );
  }

  .chapter--door .chapter__inner {
    align-self: flex-end;
  }

  .purchase {
    padding-inline: 16px;
  }

  .purchase__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .purchase__cover {
    width: min(48%, 185px);
    margin: 0 auto;
  }

  .cta-button {
    margin: 0 auto;
  }
}

@media (max-width: 430px) {
  .eyebrow {
    font-size: 0.66rem;
  }

  h1 {
    font-size: 3.4rem;
  }

  .chapter__copy p {
    font-size: 1rem;
  }

  .chapter__headline,
  .chapter__accent {
    font-size: 1.95rem !important;
  }

  .price {
    font-size: 3rem;
  }

  .purchase__card {
    padding: 24px 19px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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