body {
  font-family: 'Inter', sans-serif;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse {
  animation: pulse-soft 2s ease-in-out infinite;
}

.page-turner {
  width: 140px;
  height: 100px;
  margin: 0 auto 1.5rem;
  perspective: 900px;
}

.page-turner__book {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.page-turner__cover,
.page-turner__page {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  border-radius: 2px 8px 8px 2px;
  transform-origin: left center;
  backface-visibility: hidden;
}

.page-turner__cover {
  left: 0;
  background: linear-gradient(160deg, #7e22ce 0%, #db2777 100%);
  box-shadow: 4px 8px 16px rgba(88, 28, 135, 0.25);
  z-index: 1;
}

.page-turner__cover::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.page-turner__page {
  left: 50%;
  background: #fffdf8;
  border: 1px solid #f3e8ff;
  box-shadow: 2px 4px 10px rgba(88, 28, 135, 0.12);
  animation: page-turn 2.4s ease-in-out infinite;
  z-index: 4;
}

.page-turner__page--2 {
  animation-delay: 0.35s;
  background: #faf5ff;
  z-index: 3;
}

.page-turner__page--3 {
  animation-delay: 0.7s;
  background: #fdf2f8;
  z-index: 2;
}

@keyframes page-turn {
  0%, 15% { transform: rotateY(0deg); }
  50%, 70% { transform: rotateY(-165deg); }
  100% { transform: rotateY(0deg); }
}
