/* ============================================================
   PAGINATIVE — Landing page
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100dvh - 60px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: hero-pulse 8s ease-in-out infinite alternate;
}

.hero-glow--1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -100px; right: -50px;
}

.hero-glow--2 {
  width: 400px; height: 400px;
  background: var(--lav);
  bottom: -100px; left: -50px;
  animation-delay: -4s;
}

@keyframes hero-pulse {
  from { opacity: 0.15; transform: scale(1); }
  to   { opacity: 0.28; transform: scale(1.08); }
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-title {
  margin: 0.75rem 0 1.25rem;
  color: var(--text);
}

.hero-title em {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 460px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.proof-avatars {
  display: flex;
  margin-right: 4px;
}

.proof-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: -8px;
}

.proof-avatar:first-child { margin-left: 0; }

.proof-text {
  font-size: 0.875rem;
  color: var(--text-3);
  margin: 0;
}

/* ── Phone mockup ─────────────────────────────────────── */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-phone {
  width: 420px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 32px;
  padding: 20px;
  box-shadow: var(--shadow-lg), 0 0 60px var(--accent-glow);
  position: relative;
}

.mockup-phone::before {
  content: '';
  display: block;
  width: 60px; height: 6px;
  background: var(--border-2);
  border-radius: 3px;
  margin: 0 auto 12px;
}

.mockup-screen { display: flex; flex-direction: column; gap: 12px; }

.mockup-nav {
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
}

.mockup-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent);
}

.mockup-shelf {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 8px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  border-bottom: 2px solid var(--border);
}

.mockup-book {
  width: 80px;
  border-radius: 4px 8px 8px 4px;
  background: var(--c, var(--accent));
  opacity: 0.85;
  box-shadow: 3px 0 8px rgba(0,0,0,0.35);
  animation: book-breathe 3s ease-in-out infinite alternate;
}

.mockup-book:nth-child(1) { height: 340px; animation-delay: 0s; }
.mockup-book:nth-child(2) { height: 280px; animation-delay: 0.4s; }
.mockup-book:nth-child(3) { height: 380px; animation-delay: 0.8s; }
.mockup-book:nth-child(4) { height: 310px; animation-delay: 1.2s; }
.mockup-book:nth-child(5) { height: 260px; animation-delay: 1.6s; }

@keyframes book-breathe {
  from { transform: translateY(0); }
  to   { transform: translateY(-2px); }
}

.mockup-stats {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.mockup-stat {
  flex: 1;
  text-align: center;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  padding: 8px 4px;
}

.mockup-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.mockup-stat-label {
  font-size: 0.6rem;
  color: var(--text-3);
  margin-top: 3px;
}

.mockup-badge-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.mockup-badge {
  width: 36px; height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ── Features ─────────────────────────────────────────── */
.features-section {
  padding: 6rem 0;
  background: var(--bg-2);
}

.features-title {
  text-align: center;
  margin: 0.5rem 0 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-body);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}

.feature-demo-themes {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.theme-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
}

.theme-dot--dark  { background: #0d0c14; border-color: #c9a84c; }
.theme-dot--light { background: #faf4ee; border-color: #7a4838; }
.theme-dot--boost { background: #fafafe; border-color: #7c3aed; }

/* ── Theme demo ───────────────────────────────────────── */
.theme-demo-section {
  padding: 5rem 0;
}

.theme-preview-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.theme-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-action) var(--ease-book);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-2);
}

.theme-preview-card:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-preview-swatch {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
}

/* ── CTA ──────────────────────────────────────────────── */
.cta-section {
  padding: 6rem 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 300px;
  background: var(--accent-glow);
  filter: blur(80px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-legal {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin: 0.25rem 0 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-3);
}

.footer-links a:hover { color: var(--accent); }

.footer-credits {
  font-size: 0.8rem;
  color: var(--text-3);
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-mockup { order: -1; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding: 3rem 0 3rem; min-height: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .mockup-phone { width: 100%; max-width: 380px; }
}
