@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/archivo-black.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/manrope-400.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/manrope-500.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/manrope-600.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/manrope-700.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/manrope-800.ttf") format("truetype");
}

:root {
  --night: #061225;
  --night-deep: #030b17;
  --navy: #0a2448;
  --blue: #0c53a6;
  --blue-bright: #2b80ff;
  --sky: #7fc1ff;
  --sun: #ffd438;
  --sun-deep: #ffae18;
  --paper: #f5f1e8;
  --white: #fffdf6;
  --muted: #aab8cb;
  --line: rgba(255, 255, 255, 0.12);
  --ink-line: rgba(6, 18, 37, 0.14);
  --display: "Archivo Black", Impact, sans-serif;
  --body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background: var(--night);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p,
blockquote,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  color: var(--night);
  background: var(--sun);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--night);
  background: var(--sun);
  border-radius: 8px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--sun), var(--sun-deep));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-number {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-number::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: end;
  margin-bottom: 64px;
}

.section-heading h2,
.inside h2,
.audiences h2,
.author h2,
.professional-note h2,
.faq h2,
.closing h2 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-heading > p,
.inside__intro > p:last-child,
.author__copy > p,
.closing__copy > p {
  color: #45536a;
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
}

.site-header {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100vw - 32px));
  min-height: 66px;
  margin-top: 14px;
  padding: 8px 10px 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(4, 14, 29, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition:
    background 240ms ease,
    box-shadow 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 11, 23, 0.93);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.42);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand strong {
  color: var(--sun);
  font-weight: 800;
}

.brand__spark {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--sun);
  border-radius: 50%;
}

.brand__spark::before,
.brand__spark::after {
  position: absolute;
  inset: 44% auto auto 50%;
  width: 10px;
  height: 2px;
  background: var(--sun);
  content: "";
  transform-origin: left;
}

.brand__spark::before {
  transform: rotate(-40deg);
}

.brand__spark::after {
  transform: rotate(40deg);
}

.main-nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 30px);
  align-items: center;
}

.main-nav > a:not(.header-purchase) {
  color: #c2ccda;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.main-nav > a:not(.header-purchase):hover {
  color: var(--white);
}

.header-purchase {
  padding: 11px 18px;
  color: var(--night);
  background: var(--sun);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.header-purchase:hover {
  background: #ffe36c;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  min-height: 100svh;
  padding: 140px max(24px, calc((100vw - 1180px) / 2)) 110px;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(7, 33, 70, 0.2), transparent 45%),
    radial-gradient(circle at 72% 48%, rgba(24, 104, 225, 0.16), transparent 34%),
    var(--night-deep);
}

.hero__grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero__glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
}

.hero__glow--blue {
  right: -8vw;
  bottom: -25vw;
  width: 68vw;
  height: 68vw;
  background: radial-gradient(circle, rgba(20, 112, 255, 0.34), transparent 66%);
}

.hero__glow--sun {
  top: -34vw;
  left: -28vw;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(255, 202, 36, 0.13), transparent 64%);
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  font-size: 0.95rem;
}

.hero h1 {
  max-width: 520px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 2.6vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1::after {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.08em;
  background: var(--sun);
  border-radius: 50%;
  content: "";
}

.hero__lead {
  max-width: 680px;
  margin-top: 30px;
  color: #bac6d8;
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
}

.hero__lead strong {
  color: var(--white);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    background 220ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--sun {
  color: var(--night-deep);
  background: linear-gradient(135deg, #ffe14f, var(--sun-deep));
  box-shadow: 0 15px 42px rgba(255, 183, 24, 0.18);
}

.button--sun:hover {
  box-shadow: 0 18px 50px rgba(255, 183, 24, 0.3);
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  color: #dbe5f2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.95rem;
  font-weight: 700;
}

.marketplace-note {
  max-width: 600px;
  margin-top: 18px;
  color: #7f8da3;
  font-size: 0.85rem;
}

.hero__facts {
  display: flex;
  gap: clamp(24px, 4vw, 54px);
  margin-top: 46px;
}

.hero__facts > div {
  position: relative;
  padding-left: 17px;
}

.hero__facts > div::before {
  position: absolute;
  inset: 4px auto 4px 0;
  width: 2px;
  background: var(--blue-bright);
  content: "";
}

.hero__facts dt {
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
}

.hero__facts dd {
  margin-top: 6px;
  color: #8593a8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__visual {
  position: relative;
  min-height: min(1000px, 84svh);
}

.book-stage {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: min(1000px, 66vw, 84svh, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(41, 128, 255, 0.25), transparent 58%),
    rgba(10, 36, 72, 0.24);
  transform: translate(-50%, -50%);
}

.book-stage::before,
.book-stage::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.book-stage::before {
  inset: -42px;
}

.book-stage::after {
  inset: 48px;
}

.book {
  position: relative;
  z-index: 2;
  width: min(760px, 50vw, 56svh);
  perspective: 1000px;
  transform: rotate(3deg);
}

.book img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 2px 10px 10px 2px;
  box-shadow:
    0 44px 70px rgba(0, 0, 0, 0.58),
    -12px 8px 0 #081a35,
    -16px 11px 22px rgba(0, 0, 0, 0.4);
  transform: rotateY(-7deg);
}

.book::after {
  position: absolute;
  z-index: -1;
  right: -16%;
  bottom: -7%;
  width: 105%;
  height: 18%;
  background: rgba(0, 0, 0, 0.46);
  border-radius: 50%;
  filter: blur(25px);
  content: "";
}

.book__spine {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: 8%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(255, 255, 255, 0.04));
  border-radius: 3px 0 0 3px;
  transform: translateX(-1px) rotateY(-7deg);
}

.book-stage__orbit {
  position: absolute;
  z-index: 4;
  inset: -10px;
  animation: orbit 24s linear infinite;
}

.book-stage__orbit span {
  position: absolute;
  padding: 7px 12px;
  color: #c9d7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 17, 34, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: counter-orbit 24s linear infinite;
}

.book-stage__orbit span:nth-child(1) {
  top: 7%;
  left: 12%;
}

.book-stage__orbit span:nth-child(2) {
  top: 46%;
  right: -5%;
}

.book-stage__orbit span:nth-child(3) {
  bottom: 6%;
  left: 12%;
}

.book-stage__caption {
  position: absolute;
  right: -6%;
  bottom: -1%;
  z-index: 5;
  width: 200px;
  padding: 16px;
  color: var(--night);
  background: var(--sun);
  border-radius: 12px 12px 12px 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  transform: rotate(-3deg);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #657389;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll span {
  display: inline-block;
  width: 2px;
  height: 32px;
  background: linear-gradient(var(--sun), transparent);
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes counter-orbit {
  to {
    transform: rotate(-360deg);
  }
}

/* ---------- oferta no hero (preço visível: pedido do Paulo 27/07) ---------- */
.hero__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 34px;
  margin-top: 30px;
}

.hero__price {
  display: grid;
  gap: 2px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 212, 56, 0.5);
  border-radius: 14px;
  background: rgba(255, 212, 56, 0.08);
}

.hero__price-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.75);
}

.hero__price-value {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--sun);
}

.hero__price-note {
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.72);
}

/* ---------- logo oficial da capa no lugar do wordmark (pedido do Paulo 27/07) ---------- */
.brand__logo {
  display: block;
  width: auto;
  height: 44px; /* proporcao travada pelo height: nunca esticar (regra da casa) */
}

.brand--footer .brand__logo {
  height: 52px;
}

@media (max-width: 640px) {
  .brand__logo {
    height: 36px;
  }
}

/* ============================================================
   Loader de entrada: logo carimba, barra corre, cortina revela.
   Personalidade Energetic: ease-out-expo, overshoot curto.
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background: var(--night);
  transition: transform 520ms cubic-bezier(0.3, 0, 1, 1), visibility 0s 520ms;
}

/* camada ambiente: mesmo glow azul do hero */
.loader__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 62% 38%, rgba(31, 79, 160, 0.35), transparent 70%),
    radial-gradient(420px 300px at 30% 68%, rgba(255, 212, 56, 0.08), transparent 70%);
  animation: loader-breathe 2.2s ease-in-out infinite alternate;
}

.loader__logo {
  position: relative;
  width: min(340px, 64vw);
  height: auto;
  opacity: 0;
  animation: loader-stamp 560ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.45));
}

.loader__bar {
  position: relative;
  width: min(200px, 40vw);
  height: 3px;
  overflow: hidden;
  border-radius: 100px;
  background: rgba(245, 241, 232, 0.14);
  opacity: 0;
  animation: loader-fade 300ms ease-out 480ms forwards;
}

.loader__bar span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sun);
  transform: translateX(-100%);
  animation: loader-run 1s cubic-bezier(0.4, 0, 0.2, 1) 520ms forwards;
}

@keyframes loader-stamp {
  0%   { opacity: 0; transform: scale(1.35); }
  62%  { opacity: 1; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes loader-run {
  to { transform: translateX(0); }
}

@keyframes loader-fade {
  to { opacity: 1; }
}

@keyframes loader-breathe {
  to { opacity: 0.6; }
}

/* trava o scroll enquanto a cena roda */
.is-loading {
  overflow: hidden;
}

/* cortina sobe (saida acelerada) e libera a pagina */
.is-loaded .loader {
  visibility: hidden;
  transform: translateY(-100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .loader__glow,
  .loader__bar,
  .loader__bar span {
    animation: none;
  }
  .loader__logo {
    animation: none;
    opacity: 1;
  }
  .loader {
    transition: opacity 240ms ease, visibility 0s 240ms;
  }
  .is-loaded .loader {
    transform: none;
    opacity: 0;
  }
}
