@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --black: #090707;
  --red: #e0090c;
  --red-deep: #a6070a;
  --white: #f5f1ee;
  --muted: #d0c9c5;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--sans); }
a { color: inherit; }

.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(920px, 100svh);
  padding: clamp(5rem, 11vw, 9.5rem) max(7.5%, calc((100vw - 1440px) / 2));
  overflow: hidden;
  border-bottom: 1px solid rgba(224, 9, 12, .72);
  background: #090707;
}
.hero__backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url('assets/livro-importacao.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
  animation: backdrop-in 1.5s ease-out both;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 4, .92) 0%, rgba(5, 4, 4, .82) 34%, rgba(5, 4, 4, .25) 69%, rgba(5, 4, 4, .05) 100%),
    linear-gradient(0deg, rgba(5, 4, 4, .34), transparent 34%, rgba(5, 4, 4, .14));
}
.hero__content { width: min(760px, 57%); padding-block: 4rem; }
.hero__eyebrow, .eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .23em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero__title, .author__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.1vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-wrap: balance;
}
.accent { color: var(--red); }
.hero__description {
  max-width: 630px;
  margin: 1.55rem 0 2.4rem;
  color: #ece6e1;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1.45;
}
.button {
  position: relative;
  display: inline-flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 1rem 2rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: linear-gradient(110deg, #f30b10, #b8060a);
  box-shadow: 0 12px 38px rgba(117, 0, 3, .25), inset 0 1px 0 rgba(255,255,255,.2);
  color: white;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.05vw, 1.75rem);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.button::before {
  content: '';
  position: absolute;
  top: -80%;
  left: -45%;
  width: 28%;
  height: 260%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transition: left .65s ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(224, 9, 12, .32); filter: brightness(1.08); }
.button:hover::before { left: 125%; }
.button span { font-family: var(--sans); font-size: .9em; }
.hero__button { min-width: min(100%, 490px); }
.checkout-hint { min-height: 1.2em; margin: .65rem 0 0; color: #f1c7c5; font-size: .8rem; }
.hero__bottomline { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: rgba(255,255,255,.16); }
.scroll-cue { position: absolute; right: 6%; bottom: 2.1rem; width: 30px; height: 48px; border: 1px solid rgba(255,255,255,.55); border-radius: 30px; }
.scroll-cue span { position: absolute; top: 9px; left: 50%; width: 4px; height: 8px; border-radius: 4px; background: var(--red); animation: scroll-dot 1.6s ease-in-out infinite; }

.author {
  position: relative;
  isolation: isolate;
  min-height: 1040px;
  padding: clamp(23rem, 34vw, 35rem) 7.5% 6.5rem;
  overflow: hidden;
  background: #050505;
}
.author__photo, .author__shade { position: absolute; z-index: -2; inset: 0; }
.author__photo {
  background-image: url('assets/kleber-boaventura.png');
  background-position: center 34%;
  background-size: cover;
  transform: scale(1.02);
}
.author__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,4,4,.04) 0%, rgba(5,4,4,.02) 23%, rgba(5,4,4,.66) 48%, #050505 79%),
    linear-gradient(90deg, rgba(5,4,4,.26), transparent 52%, rgba(5,4,4,.3));
}
.author__content { max-width: 1100px; margin: 0 auto; text-align: center; }
.author__content .eyebrow { margin-bottom: .8rem; }
.author__title { font-size: clamp(2.45rem, 4.15vw, 4.15rem); }
.author__intro {
  max-width: 990px;
  margin: 1.55rem auto 3.25rem;
  color: #e8e2de;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.43rem);
  line-height: 1.48;
  text-wrap: pretty;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.stat-card {
  --delay: 0ms;
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.8rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(224, 9, 12, .88);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(42,39,39,.93), rgba(27,25,25,.96));
  box-shadow: 0 18px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
  text-align: center;
  transition: transform .7s cubic-bezier(.2,.75,.25,1), border-color .35s ease, box-shadow .35s ease;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -35%;
  left: -85%;
  width: 48%;
  height: 170%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), rgba(255,255,255,.38), transparent);
  opacity: 0;
  pointer-events: none;
}
.stat-card.is-visible::after { animation: light-sweep 1.35s ease-out calc(var(--delay) + 380ms) both; }
.stat-card:hover { transform: translateY(-7px) scale(1.015); border-color: #ff262a; box-shadow: 0 22px 55px rgba(116,0,3,.22); }
.stat-card__value { color: var(--red); font-family: var(--serif); font-size: clamp(2.1rem, 3.5vw, 3.45rem); letter-spacing: .015em; line-height: 1.1; text-transform: uppercase; }
.stat-card p { margin: .7rem 0 0; color: #f0ece9; font-family: var(--serif); font-size: clamp(1rem, 1.55vw, 1.35rem); line-height: 1.25; }
.author__button { margin-top: 2.15rem; min-width: min(100%, 460px); }
.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-height: 88px;
  padding: 1rem 7.5%;
  border-top: 1px solid rgba(224,9,12,.45);
  background: #090707;
  color: #aaa19c;
  font-size: .8rem;
  letter-spacing: .04em;
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer p span { color: var(--red); padding-inline: .25rem; }
.site-footer__mark { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font-family: var(--serif); }
.back-to-top { position: absolute; right: 7.5%; color: #c7bfba; font-size: 1.3rem; text-decoration: none; }

.reveal { opacity: 0; filter: blur(9px); transform: translate3d(0, 34px, 0); transition: opacity .85s ease, filter .85s ease, transform .85s cubic-bezier(.2,.75,.25,1); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
.reveal-on-load { opacity: 0; filter: blur(8px); transform: translateY(24px); animation: text-arrive .9s cubic-bezier(.2,.75,.25,1) forwards; }
.reveal-on-load--second { animation-delay: .12s; }
.reveal-on-load--third { animation-delay: .27s; }
.reveal-on-load--fourth { animation-delay: .42s; }

@keyframes text-arrive { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes backdrop-in { from { opacity: .55; transform: scale(1.055); } to { opacity: 1; transform: scale(1.015); } }
@keyframes light-sweep { 0% { left: -85%; opacity: 0; } 18% { opacity: .9; } 100% { left: 145%; opacity: 0; } }
@keyframes scroll-dot { 0%,100% { transform: translate(-50%, 0); opacity: .5; } 55% { transform: translate(-50%, 12px); opacity: 1; } }

@media (min-width: 1500px) {
  .hero { padding-right: max(7.5%, calc((100vw - 1440px) / 2)); }
}
@media (max-width: 900px) {
  .hero { min-height: 820px; padding-inline: 6%; }
  .hero__backdrop { background-position: 57% center; }
  .hero__content { width: min(690px, 74%); }
  .author { min-height: 960px; padding-inline: 6%; }
  .author__photo { background-position: 52% 31%; }
  .stat-card { min-height: 205px; border-radius: 28px; }
}
@media (max-width: 640px) {
  .hero { min-height: 790px; align-items: flex-end; padding: 8rem 7% 6rem; }
  .hero__backdrop { background-position: 68% center; }
  .hero::before { background: linear-gradient(90deg, rgba(5,4,4,.78), rgba(5,4,4,.42) 70%, rgba(5,4,4,.15)), linear-gradient(0deg, rgba(5,4,4,.9), transparent 70%); }
  .hero__content { width: 100%; padding-block: 0; }
  .hero__eyebrow, .eyebrow { font-size: .65rem; letter-spacing: .19em; }
  .hero__title { font-size: clamp(2.65rem, 12vw, 4rem); }
  .hero__description { max-width: 440px; margin: 1.2rem 0 1.7rem; font-size: 1.12rem; }
  .button { min-height: 60px; padding: .85rem 1.25rem; font-size: 1.13rem; }
  .hero__button, .author__button { width: 100%; }
  .scroll-cue { right: 7%; bottom: 1.15rem; transform: scale(.78); transform-origin: bottom right; }
  .author { min-height: auto; padding: 24rem 7% 4.5rem; }
  .author__photo { background-position: 53% top; background-size: auto 570px; background-repeat: no-repeat; background-color: #050505; }
  .author__shade { background: linear-gradient(180deg, rgba(5,4,4,.04) 0, rgba(5,4,4,.08) 240px, rgba(5,4,4,.84) 410px, #050505 560px); }
  .author__title { font-size: clamp(2.2rem, 9vw, 3.25rem); }
  .author__intro { margin: 1.2rem 0 2rem; font-size: 1.06rem; line-height: 1.52; }
  .stats { grid-template-columns: 1fr; gap: .8rem; }
  .stat-card { min-height: 155px; border-radius: 24px; padding: 1.25rem; }
  .stat-card__value { font-size: 2.55rem; }
  .stat-card p { margin-top: .4rem; font-size: 1.1rem; }
  .author__button { margin-top: 1.5rem; }
  .site-footer { min-height: 76px; padding-inline: 7%; font-size: .68rem; }
  .back-to-top { right: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-on-load { opacity: 1; filter: none; transform: none; }
}
