:root {
  --ebook-bg: #080b10;
  --ebook-paper: #ffffff;
  --ebook-ink: #111827;
  --ebook-muted: #5d6675;
  --ebook-line: #e7ecf3;
  --ebook-gold: #f5c542;
  --ebook-orange: #ff7a1a;
  --ebook-green: #1fbf75;
  --ebook-blue: #2764ff;
  --ebook-radius: 14px;
  --ebook-shadow: 0 24px 70px rgba(8, 11, 16, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ebook-ink);
  background: #f7f8fb;
}

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

a {
  color: inherit;
}

.ebook-page {
  overflow: hidden;
  background: #f7f8fb;
}

.ebook-container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.ebook-ticker {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
  background: var(--ebook-ink);
  color: #fff;
}

.ebook-ticker-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.72rem 0;
  animation: ebook-ticker 28s linear infinite;
}

.ebook-ticker span {
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.ebook-hero {
  position: relative;
  padding: clamp(44px, 6vw, 82px) 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(245, 197, 66, 0.22), transparent 32%),
    linear-gradient(135deg, #101827 0%, #0a0d13 55%, #1b120a 100%);
  color: #fff;
}

.ebook-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, #f7f8fb);
}

.ebook-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

.ebook-badge {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--ebook-gold);
  font-size: 0.88rem;
  font-weight: 850;
}

.ebook-hero h1,
.ebook-section h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

.ebook-hero h1 {
  max-width: 700px;
  font-size: clamp(2.65rem, 4.8vw, 4.55rem);
}

.ebook-subtitle,
.ebook-text {
  color: var(--ebook-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.65;
}

.ebook-subtitle {
  max-width: 650px;
  margin: 1rem 0 0;
  color: #dce5ef;
}

.ebook-checklist,
.ebook-list {
  display: grid;
  gap: 0.72rem;
  padding: 0;
  list-style: none;
}

.ebook-checklist {
  margin: 1rem 0 0;
  gap: 0.55rem;
}

.ebook-checklist li,
.ebook-list li {
  position: relative;
  padding-left: 1.65rem;
}

.ebook-checklist li {
  color: #f2f6fb;
  font-weight: 730;
}

.ebook-checklist li::before,
.ebook-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--ebook-green);
}

.ebook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.ebook-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.92rem 1.12rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ebook-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(8, 11, 16, 0.18);
}

.ebook-btn-primary {
  background: linear-gradient(135deg, var(--ebook-gold), var(--ebook-orange));
  color: #17110a;
}

.ebook-btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.ebook-micro {
  margin: 1rem 0 0;
  color: #b9c5d3;
  font-size: 0.92rem;
  font-weight: 750;
}

.ebook-cover-wrap {
  position: relative;
  margin: 0;
}

.ebook-cover {
  width: min(100%, 430px);
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.ebook-cover-wrap figcaption {
  position: absolute;
  right: 0;
  bottom: 8%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(8, 11, 16, 0.78);
  color: #fff;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.ebook-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.ebook-section-alt {
  background: #eef2f8;
}

.ebook-section h2 {
  max-width: 820px;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
}

.ebook-text {
  max-width: 850px;
}

.ebook-highlight {
  margin: 1.6rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--ebook-radius);
  border: 1px solid rgba(39, 100, 255, 0.14);
  background: var(--ebook-paper);
  box-shadow: var(--ebook-shadow);
}

.ebook-highlight p,
.ebook-highlight h3 {
  margin: 0;
}

.ebook-highlight-strong {
  border-color: rgba(245, 197, 66, 0.44);
  background: linear-gradient(135deg, #fff, #fff8e4);
}

.ebook-highlight-strong h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.ebook-card-grid,
.ebook-columns,
.ebook-split,
.ebook-price-box,
.ebook-test-grid {
  display: grid;
  gap: 1rem;
}

.ebook-card-grid,
.ebook-test-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.ebook-columns,
.ebook-split,
.ebook-price-box,
.ebook-author {
  grid-template-columns: repeat(2, 1fr);
}

.ebook-card,
.ebook-panel,
.ebook-test-grid figure,
.ebook-price-box {
  border: 1px solid var(--ebook-line);
  border-radius: var(--ebook-radius);
  background: var(--ebook-paper);
  box-shadow: var(--ebook-shadow);
}

.ebook-card,
.ebook-panel,
.ebook-test-grid figure {
  padding: clamp(1.2rem, 3vw, 1.65rem);
}

.ebook-card h3,
.ebook-panel h3 {
  margin: 0 0 0.65rem;
}

.ebook-card p,
.ebook-panel p,
.ebook-test-grid blockquote,
.ebook-test-grid figcaption {
  color: var(--ebook-muted);
}

.ebook-media-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ebook-media-row img {
  border-radius: var(--ebook-radius);
  box-shadow: var(--ebook-shadow);
}

.ebook-panel-warn {
  background: #fff6f0;
}

.ebook-author {
  display: grid;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
}

.ebook-author img {
  width: min(100%, 420px);
  border-radius: var(--ebook-radius);
  box-shadow: var(--ebook-shadow);
}

.ebook-buy {
  background: linear-gradient(135deg, #101827, #0b0e14);
  color: #fff;
}

.ebook-buy .ebook-text {
  color: #dbe4ef;
}

.ebook-price-box {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  color: var(--ebook-ink);
}

.ebook-price-label {
  margin: 0;
  color: var(--ebook-muted);
  font-weight: 850;
  text-transform: uppercase;
}

.ebook-price {
  margin: 0.2rem 0 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 950;
}

.ebook-price-old {
  margin: 0.35rem 0 1rem;
  color: #a0a8b4;
  font-size: 1.25rem;
  text-decoration: line-through;
}

.ebook-rating {
  display: inline-flex;
  gap: 0.5rem;
  color: var(--ebook-ink);
  font-weight: 850;
}

.ebook-rating span {
  color: var(--ebook-orange);
}

.ebook-guarantee,
.ebook-countdown-card {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f7f8fb;
}

.ebook-guarantee p {
  margin: 0.3rem 0 0;
  color: var(--ebook-muted);
}

.ebook-countdown {
  margin-bottom: 1rem;
}

.ebook-countdown-top {
  color: var(--ebook-orange);
  font-weight: 900;
}

.ebook-countdown-card p {
  margin: 0 0 0.4rem;
  color: var(--ebook-muted);
  font-weight: 850;
}

.ebook-countdown-card span,
.ebook-countdown-card small {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  font-weight: 950;
}

.ebook-btn-wide {
  width: 100%;
}

.ebook-test-grid figure {
  margin: 0;
}

.ebook-test-grid div {
  color: var(--ebook-orange);
  font-weight: 900;
}

.ebook-test-grid blockquote {
  margin: 0.8rem 0;
}

.ebook-test-grid figcaption {
  font-weight: 850;
}

.ebook-faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ebook-faq details {
  border: 1px solid var(--ebook-line);
  border-radius: 12px;
  background: #fff;
}

.ebook-faq summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 900;
}

.ebook-faq p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--ebook-muted);
}

.ebook-final {
  justify-content: center;
}

@keyframes ebook-ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 840px) {
  .ebook-hero-grid,
  .ebook-card-grid,
  .ebook-columns,
  .ebook-split,
  .ebook-price-box,
  .ebook-test-grid,
  .ebook-media-row,
  .ebook-author {
    grid-template-columns: 1fr;
  }

  .ebook-cover {
    width: min(88vw, 390px);
  }
}

@media (max-width: 560px) {
  .ebook-btn {
    width: 100%;
  }

  .ebook-cover-wrap figcaption {
    position: static;
    width: fit-content;
    margin: 0.8rem auto 0;
  }
}
