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

:root {
  --cream: #f5f0ff;
  --brown-dark: #0f0a1e;
  --brown-mid: #2d1a5e;
  --amber: #8b5cf6;
  --amber-light: #a78bfa;
  --text-muted: #7c6fa0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--brown-dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Fondo con textura de libros abstracta */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 38px,
      rgba(139, 92, 246, 0.06) 38px,
      rgba(139, 92, 246, 0.06) 40px
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(45, 26, 94, 0.7) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(15, 10, 30, 0.9) 0%,
      transparent 60%
    );
  z-index: 0;
}

/* Partículas flotantes (páginas) */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 8px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 1px;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* Contenedor principal */
.card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 4rem;
  max-width: 640px;
  width: 90%;
  background: rgba(15, 10, 30, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.1),
    0 32px 80px rgba(0, 0, 0, 0.7);
}

/* Ícono libro animado */
.book-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.75rem;
  animation: pulse 3s ease-in-out infinite;
}

.book-icon svg {
  width: 110px;
  height: 110px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1) rotate(-2deg);
  }
  50% {
    transform: scale(1.08) rotate(2deg);
  }
}

/* Logotipo / nombre */
.brand {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--amber);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  margin: 0 auto 2rem;
}

.headline {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.description {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.description strong {
  color: var(--cream);
  font-weight: 500;
}

/* Barra de progreso decorativa */
.progress-wrap {
  margin-bottom: 2.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 4px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  border-radius: 99px;
  animation: progressAnim 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

@keyframes progressAnim {
  to {
    width: 65%;
  }
}

/* Email signup */
.notify-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-form input[type="email"] {
  flex: 1 1 200px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.notify-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.notify-form input[type="email"]:focus {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.08);
}

.notify-form button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: var(--brown-dark);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  white-space: nowrap;
}

.notify-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.notify-form button:active {
  transform: translateY(0);
}

.success-msg {
  display: none;
  font-size: 0.9rem;
  color: var(--amber-light);
  margin-top: 0.75rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: rgba(124, 111, 160, 0.6);
  letter-spacing: 0.05em;
}
