html, body {
  overflow-x: hidden;
}
body {
  font-family: 'Inter', sans-serif;
}

/* Textura de água-viva no header — camadas decorativas, sem competir com o conteúdo */
.jelly-bg {
  isolation: isolate;
}
.jelly {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}
.jelly-a {
  width: 15rem;
  top: -3rem;
  right: -4rem;
  transform: rotate(8deg);
}
#header > *:not(.jelly) {
  z-index: 1;
}

/* Água-viva em relevo no fundo claro — mesma cor do fundo, só um tom mais escuro, tipo baixo-relevo */
.jelly-emboss {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  background-color: rgba(18, 49, 140, 0.055);
  -webkit-mask-image: url('../img/jellyfish.png');
  mask-image: url('../img/jellyfish.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.jelly-emboss-livro {
  width: 20rem;
  height: 20rem;
  top: -2rem;
  right: -6rem;
  -webkit-mask-position: right top;
  mask-position: right top;
}
#livro > *:not(.jelly-emboss) {
  position: relative;
  z-index: 1;
}

/* Água-viva em relevo sobre o azul escuro da seção "sobre" — mesmo princípio, tom claro em vez de escuro */
.jelly-emboss-light {
  background-color: rgba(255, 255, 255, 0.1);
}
.jelly-emboss-sobre {
  width: 13rem;
  height: 13rem;
  top: -1.5rem;
  left: -2.5rem;
  -webkit-mask-position: left top;
  mask-position: left top;
}

/* Contagem regressiva da pré-venda */
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  min-width: 4rem;
  padding: 0.5rem 0.25rem;
  backdrop-filter: blur(2px);
}
.countdown-box span {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-box small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* Card do livro — leve zoom no hover para dar vida ao link principal */
.book-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.book-card:hover {
  transform: translateY(-2px) scale(1.01);
}
.book-card:active {
  transform: scale(0.99);
}
.book-cover {
  transition: transform 0.2s ease;
}
.book-card:hover .book-cover {
  transform: rotate(0deg) scale(1.03);
}

/* CTA do livro — brilho pulsante + shimmer pra chamar atenção pro prazo da pré-venda */
.book-card span {
  position: relative;
  overflow: hidden;
  animation: cta-pulse 2.2s ease-in-out infinite;
}
.book-card span::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: cta-shimmer 2.6s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 49, 140, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(18, 49, 140, 0); }
}
@keyframes cta-shimmer {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}

/* Botões de link sobre a foto — pilula translúcida, some no fundo escuro */
.link-btn-dark {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  padding: 0.55rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.link-btn-dark:hover {
  background: #FFFFFF;
  color: #12318C;
  transform: translateY(-1px);
}
.link-btn-dark:active {
  transform: scale(0.98);
}

/* Botões de link estilo bio — pilha vertical minimalista */
.link-btn {
  display: block;
  text-align: center;
  background: #FFFFFF;
  color: #12318C;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid #12318C;
  box-shadow: 0 2px 10px rgba(18, 49, 140, 0.08);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.link-btn:hover {
  background: #12318C;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(18, 49, 140, 0.25);
}
.link-btn:active {
  transform: scale(0.98);
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
