/* ============================
   MIBRARY LANDING PAGE STYLES
   ============================ */

/* CSS Variables - Matching App Theme */
:root {
  /* Brand Colors */
  --deep-mauve: #6d4c53;
  --old-rose: #c37d92;
  --dusty-pink: #dfaeb4;
  --sage: #8da399;

  /* Background Colors */
  --almond: #f2efe9;
  --cream: #f9f7f2;
  --paper: #ffffff;

  /* Text Colors */
  --ink: #2d2a2b;
  --graphite: #5c5455;

  /* UI Colors */
  --outline: #e6e2dc;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(109, 76, 83, 0.08);
  --shadow-md: 0 4px 16px rgba(109, 76, 83, 0.1);
  --shadow-lg: 0 8px 32px rgba(109, 76, 83, 0.12);
  --shadow-xl: 0 16px 48px rgba(109, 76, 83, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Nunito",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--almond);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Decorative Background Blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--sage);
  opacity: 0.12;
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--old-rose);
  opacity: 0.1;
  top: 40%;
  left: -200px;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--dusty-pink);
  opacity: 0.08;
  bottom: 10%;
  right: -100px;
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-lg);
  background: rgba(242, 239, 233, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--deep-mauve);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  text-decoration: none;
  color: var(--graphite);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--deep-mauve);
}

.nav-cta {
  background: var(--deep-mauve);
  color: white !important;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  min-height: 100vh;
  padding: 120px var(--space-lg) var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  max-width: 1400px;
  margin: 0 auto;
}

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

.hero-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--deep-mauve);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--deep-mauve);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--graphite);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--deep-mauve);
  color: white;
  box-shadow: 0 4px 16px rgba(109, 76, 83, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(109, 76, 83, 0.35);
}

.btn-secondary {
  background: var(--cream);
  color: var(--deep-mauve);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: white;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-mauve);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--graphite);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--outline);
}

/* Hero Visual - Book Shelf */
.hero-visual {
  flex-shrink: 0;
}

.book-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 0 20px;
  height: 280px;
}

.book-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 20px 8px;
  border-radius: 4px 4px 0 0;
  color: white;
  font-weight: 700;
  box-shadow:
    inset -4px 0 8px rgba(0, 0, 0, 0.2),
    inset 4px 0 8px rgba(255, 255, 255, 0.1),
    4px 0 8px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.book-spine:hover {
  transform: translateY(-10px);
}

.spine-title {
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.spine-author {
  font-size: 0.65rem;
  opacity: 0.8;
  letter-spacing: 1.5px;
}

.spine-1 {
  width: 50px;
  height: 240px;
  background: linear-gradient(135deg, var(--deep-mauve), #5a3d43);
}

.spine-2 {
  width: 40px;
  height: 220px;
  background: linear-gradient(135deg, var(--sage), #6b8577);
}

.spine-3 {
  width: 55px;
  height: 260px;
  background: linear-gradient(135deg, var(--old-rose), #a86577);
}

.spine-4 {
  width: 35px;
  height: 200px;
  background: linear-gradient(135deg, #8b7355, #6d5a44);
}

.spine-5 {
  width: 48px;
  height: 250px;
  background: linear-gradient(135deg, var(--dusty-pink), #c99aa0);
}

.shelf-plank {
  height: 20px;
  background: linear-gradient(to bottom, #8b7355 0%, #6d5a44 50%, #5a4a38 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin-top: -2px;
  width: calc(100% + 40px);
  margin-left: -20px;
}

/* ============================
   SECTIONS COMMON STYLES
   ============================ */
section {
  padding: var(--space-3xl) var(--space-lg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--old-rose);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--deep-mauve);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--graphite);
  line-height: 1.7;
}

/* ============================
   FEATURES SECTION
   ============================ */
.features {
  background: var(--cream);
}

.features-rows {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.feature-row-reverse {
  flex-direction: row-reverse;
}

.feature-row-image {
  flex-shrink: 0;
  width: 280px;
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-xl);
}

.feature-row-image img {
  width: 100%;
  display: block;
  border-radius: 28px;
}

.feature-row-text {
  flex: 1;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-mauve);
  margin-bottom: var(--space-sm);
}

.feature-description {
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.feature-highlights {
  list-style: none;
  padding: 0;
}

.feature-highlights li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  color: var(--ink);
  font-weight: 500;
}

.feature-highlights li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================
   HOW IT WORKS SECTION
   ============================ */
.how-it-works {
  background: var(--almond);
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--deep-mauve);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-md);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.step-description {
  color: var(--graphite);
  line-height: 1.7;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--outline);
  margin-top: 30px;
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
  }
}

/* ============================
   COMMUNITY SECTION
   ============================ */
.community {
  background: var(--almond);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-content {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--old-rose);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--ink);
}

.author-books {
  font-size: 0.85rem;
  color: var(--graphite);
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  padding: var(--space-3xl) var(--space-lg);
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--deep-mauve);
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--graphite);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--ink);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-label {
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-book {
  position: absolute;
  font-size: 2rem;
  animation: float 4s ease-in-out infinite;
}

.book-float-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.book-float-2 {
  top: 60%;
  right: 10%;
  animation-delay: 1.5s;
}

.book-float-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--cream);
  padding: var(--space-3xl) var(--space-lg) var(--space-lg);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--outline);
}

.footer-brand {
  max-width: 300px;
}

.footer-tagline {
  color: var(--graphite);
  margin-top: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.footer-column a {
  display: block;
  color: var(--graphite);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--deep-mauve);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--graphite);
  font-size: 0.9rem;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .feature-row,
  .feature-row-reverse {
    flex-direction: column;
    text-align: center;
  }

  .feature-row-image {
    width: 220px;
  }

  .feature-highlights {
    display: inline-block;
    text-align: left;
  }

  .book-shelf {
    transform: scale(0.8);
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .book-shelf {
    transform: scale(0.65);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

/* ============================
   LEGAL PAGES
   ============================ */
.legal-page {
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.legal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-top: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.legal-content h2 {
  font-size: 1.35rem;
  color: var(--deep-mauve);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal-content p {
  color: var(--graphite);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  color: var(--graphite);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}
