:root {
  --bg: #0b0b0b;
  --surface: #11100f;
  --surface-raised: #191816;
  --line: rgba(255, 255, 255, 0.1);
  --text: #fffaf1;
  --muted: #aaa6a0;
  --accent: #f59e0b;
  --accent-hot: #ff8a00;
  --green: #55d98b;
  --display: "Archivo Black", sans-serif;
  --body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-noise {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.032;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding:
    max(64px, env(safe-area-inset-top))
    env(safe-area-inset-right)
    max(28px, env(safe-area-inset-bottom))
    env(safe-area-inset-left);
}

.download-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 54px clamp(28px, 6vw, 78px) 46px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 28%),
    rgba(16, 15, 14, 0.94);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.download-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.card-glow {
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  left: -80px;
  top: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 76, 65, 0.66), rgba(245, 158, 11, 0.1) 37%, transparent 70%);
  filter: blur(10px);
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto 55px;
  text-align: center;
  animation: rise-in 0.7s ease-out both;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}

.amazon-mark {
  position: relative;
  width: 100px;
  height: 41px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1.3px;
}

.amazon-mark svg {
  position: absolute;
  width: 72px;
  left: 13px;
  bottom: -2px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.edition-badge {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1a1918;
  color: #f7f3ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6.4vw, 82px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 em,
h1 span {
  display: block;
  color: var(--accent);
  font-style: normal;
}

h1 span {
  margin-top: 7px;
  font-size: 0.72em;
  letter-spacing: -0.035em;
}

.subheadline {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.83fr) minmax(390px, 1.17fr);
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
}

.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 590px;
  perspective: 1100px;
  animation: rise-in 0.8s 0.12s ease-out both;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-one {
  width: 420px;
  height: 420px;
}

.orbit-two {
  width: 335px;
  height: 490px;
  border-color: rgba(255, 255, 255, 0.07);
  transform: rotate(28deg);
}

.book-shadow {
  position: absolute;
  width: 310px;
  height: 70px;
  bottom: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  filter: blur(22px);
  transform: rotate(-4deg);
}

.book {
  position: relative;
  width: 300px;
  height: 445px;
  transform: rotateY(-12deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.book-stage:hover .book {
  transform: rotateY(-4deg) rotateZ(0) translateY(-8px);
}

.book::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  right: -14px;
  width: 18px;
  height: calc(100% - 7px);
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(90deg, #e9e1ce 0, #e9e1ce 2px, #bdb29d 3px);
  transform: rotateY(28deg);
  transform-origin: left;
}

.book-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 38px 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px 8px 8px 4px;
  background: #eee9dc;
  color: #1b1a18;
  box-shadow: 25px 28px 70px rgba(0, 0, 0, 0.48);
}

.book-spine {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 15px;
  overflow: hidden;
  background: #d9d2c0;
  color: #25231f;
  transform: translateZ(2px);
}

.book-spine span {
  position: absolute;
  left: 2px;
  bottom: 26px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.book-kicker {
  display: block;
  max-width: 150px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.book-cover h2 {
  position: relative;
  z-index: 2;
  margin: 14px 0 16px;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.atom-grid {
  display: grid;
  grid-template-columns: repeat(5, 17px);
  gap: 4px;
  width: max-content;
  margin: 26px 0 29px 88px;
  transform: rotate(-9deg);
}

.atom-grid span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #df8105;
  box-shadow: inset -3px -3px 4px rgba(108, 55, 0, 0.25);
}

.atom-grid span:nth-child(3n + 1) {
  transform: translateY(5px);
}

.atom-grid span:nth-child(4n) {
  background: #bf6900;
  transform: translateY(-4px);
}

.book-cover p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.book-cover strong {
  position: absolute;
  right: 28px;
  bottom: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.format-tag {
  position: absolute;
  right: 5%;
  bottom: 88px;
  padding: 9px 13px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  background: rgba(20, 18, 15, 0.9);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.conversion-panel {
  animation: rise-in 0.8s 0.2s ease-out both;
}

.features {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  background: rgba(11, 11, 11, 0.72);
}

.check-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.feature-row p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0;
  font-size: 14px;
}

.feature-row strong {
  color: #f4f1eb;
}

.feature-row span:last-child {
  color: var(--muted);
}

.access-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 19, 18, 0.78);
}

.access-bar small {
  display: block;
  margin-bottom: 3px;
  color: #77736e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-copy strong,
.price-copy strong {
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(85, 217, 139, 0.1);
  animation: pulse 2s infinite;
}

.price-copy {
  padding-left: 22px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.price-copy div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.price-copy s {
  color: #77736e;
  font-size: 12px;
}

.scarcity-card {
  padding: 21px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.015));
}

.scarcity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scarcity-header p {
  margin: 0;
  color: #bbb7b0;
}

.scarcity-header strong,
.scarcity-header span {
  color: var(--accent);
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #292622;
}

.progress-fill {
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97202, #ffb21a);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.45);
  transform: scaleX(0);
  transform-origin: left;
}

.progress-fill.is-animated {
  animation: claim-progress 1.3s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-100%);
  animation: progress-shine 2.4s 1.7s infinite;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 27px 1fr;
  align-items: center;
  gap: 11px;
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: #28241f;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: #aaa6a0;
  font-size: 12px;
  line-height: 1.45;
}

.steps strong {
  color: #f0ece5;
  text-transform: uppercase;
}

.cta-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  margin-top: 16px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 20px 24px;
  background: linear-gradient(105deg, #df7800, #f59e0b 52%, #ffb11b);
  box-shadow: 0 13px 35px rgba(245, 158, 11, 0.2), inset 0 1px rgba(255, 255, 255, 0.4);
  color: #17100a;
  cursor: pointer;
  font-family: var(--body);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 220%;
  left: -80px;
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(24deg);
  transition: transform 0.6s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.3), inset 0 1px rgba(255, 255, 255, 0.45);
  filter: saturate(1.1);
}

.cta-button:hover::before {
  transform: translateX(650px) rotate(24deg);
}

.cta-button:active {
  transform: translateY(1px) scale(0.99);
}

.cta-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.cta-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  color: #77736e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.security-note svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.action-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.download-toast {
  position: fixed;
  z-index: 10;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 14px;
  width: min(430px, calc(100vw - 32px));
  width: min(430px, calc(100dvw - 32px));
  top: max(22px, env(safe-area-inset-top));
  left: 50%;
  padding: 16px 18px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  background: rgba(39, 38, 36, 0.97);
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -18px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.download-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .download-toast {
    background: #272624;
  }
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2cc66d;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.toast-label {
  display: block;
  margin-bottom: 4px;
  color: #85827e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.download-toast p {
  margin: 0;
  color: #d4d0ca;
  font-size: 13px;
  line-height: 1.45;
}

.download-toast strong {
  color: white;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(85, 217, 139, 0.1);
}

footer {
  padding: 20px 0 0;
  color: #5d5954;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes claim-progress {
  to { transform: scaleX(1); }
}

@keyframes progress-shine {
  0%, 45% { transform: translateX(-100%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(85, 217, 139, 0.1); }
  50% { box-shadow: 0 0 0 8px rgba(85, 217, 139, 0); }
}

@media (max-width: 850px) {
  .page-shell {
    width: min(700px, calc(100% - 28px));
    padding-top: max(44px, env(safe-area-inset-top));
  }

  .download-card {
    padding-inline: clamp(22px, 6vw, 48px);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .book-stage {
    min-height: 540px;
  }

  .card-glow {
    left: 50%;
    top: 390px;
    transform: translateX(-50%);
  }

  .format-tag {
    right: 16%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 18px);
    padding-top: max(22px, env(safe-area-inset-top));
  }

  .download-card {
    padding: 38px 17px 32px;
    border-radius: 22px;
  }

  .brand-row {
    margin-bottom: 25px;
  }

  .hero-copy {
    margin-bottom: 30px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 54px);
  }

  .subheadline {
    font-size: 14px;
    line-height: 1.65;
  }

  .book-stage {
    min-height: 410px;
    margin: -14px 0;
  }

  .book {
    width: 252px;
    height: 374px;
  }

  .book-cover {
    padding: 32px 28px 25px;
  }

  .book-cover h2 {
    font-size: 40px;
  }

  .atom-grid {
    grid-template-columns: repeat(5, 14px);
    gap: 4px;
    margin: 21px 0 23px 72px;
  }

  .atom-grid span {
    width: 14px;
    height: 14px;
  }

  .orbit-one {
    width: 330px;
    height: 330px;
  }

  .orbit-two {
    width: 270px;
    height: 390px;
  }

  .book-shadow {
    width: 250px;
    bottom: 30px;
  }

  .format-tag {
    right: 4%;
    bottom: 54px;
  }

  .feature-row {
    align-items: flex-start;
    padding: 15px;
  }

  .feature-row p {
    display: block;
  }

  .feature-row p span {
    display: block;
    margin-top: 2px;
  }

  .access-bar {
    padding-inline: 14px;
  }

  .price-copy {
    padding-left: 14px;
  }

  .status-copy strong,
  .price-copy strong {
    font-size: 11px;
  }

  .scarcity-header {
    align-items: flex-start;
    font-size: 9px;
  }

  .scarcity-header p {
    max-width: 180px;
  }

  .cta-button {
    min-height: 56px;
    padding-inline: 14px;
  }

  .download-toast {
    grid-template-columns: 42px minmax(0, 1fr) 8px;
    gap: 11px;
    width: min(400px, calc(100vw - 20px));
    width: min(400px, calc(100dvw - 20px));
    top: max(12px, env(safe-area-inset-top));
    padding: 14px;
  }

  .avatar {
    width: 42px;
    height: 42px;
  }

  .download-toast p {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .download-card {
    padding-inline: 14px;
  }

  .eyebrow {
    gap: 7px;
    letter-spacing: 0.14em;
  }

  .eyebrow span {
    width: 18px;
  }

  .access-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .price-copy {
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .price-copy div {
    justify-content: flex-start;
  }

  .scarcity-header {
    display: grid;
  }

  .book-stage {
    min-height: 380px;
  }
}

@media (hover: none) {
  .book-stage:hover .book,
  .cta-button:hover {
    transform: none;
  }

  .cta-button:hover::before {
    transform: rotate(24deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .progress-fill {
    transform: scaleX(1);
  }
}
