/* ========================================
   Édition Lunatik — Complete Website
   Dark literary aesthetic with raw artistic edge
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400;500;600;700;900&family=Caveat:wght@400;700&display=swap');

:root {
  --bg-void: #060606;
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --text-primary: #e5e5e5;
  --text-secondary: #8a8a8a;
  --text-muted: #555555;
  --accent: #c0392b;
  --accent-light: #e74c3c;
  --accent-glow: rgba(192, 57, 43, 0.15);
  --accent-dark: #8b1a10;
  --border: #1e1e1e;
  --border-light: #2a2a2a;
  --font-display: 'Inconsolata', monospace;
  --font-body: 'Inconsolata', monospace;
  --font-handwritten: 'Caveat', cursive;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.5s var(--transition-smooth);
}
.navbar.scrolled {
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.8; }
.logo-edition {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.95em;
}
.logo-lunatik {
  font-weight: 700;
  color: var(--text-primary);
  border: 1px solid var(--accent);
  padding: 0.12em 0.45em;
  font-size: 0.88em;
  letter-spacing: 0.06em;
  transition: all 0.3s;
}
.nav-logo:hover .logo-lunatik {
  background: var(--accent);
  color: #fff;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--transition-smooth);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(192, 57, 43, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.btn-large {
  padding: 1.15rem 3.2rem;
  font-size: 0.85rem;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.7rem 0;
  letter-spacing: 0.1em;
}
.btn-ghost:hover {
  color: var(--accent);
}
.btn-ghost::after {
  content: ' →';
  transition: margin-left 0.3s;
}
.btn-ghost:hover::after {
  margin-left: 0.3rem;
}

/* === HOMEPAGE HERO === */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 6rem;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(192, 57, 43, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(192, 57, 43, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float 10s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  50% { opacity: 0.25; transform: translateY(-100px) scale(1); }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero-brand span {
  color: var(--accent);
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.home-hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.home-hero .hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  font-weight: 300;
}
.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* === BOOKS SHOWCASE (Homepage) === */
.books-showcase {
  padding: 8rem 0 10rem;
  position: relative;
}
.books-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 650px;
  margin: 0 auto;
}
.section-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.book-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.6s var(--transition-smooth);
}
.book-card:hover {
  transform: translateY(-12px);
}
.book-card-cover {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  margin-bottom: 1.8rem;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s var(--transition-smooth), filter 0.6s;
  filter: brightness(0.85) contrast(1.05);
}
.book-card:hover .book-card-cover img {
  transform: scale(1.04);
  filter: brightness(1) contrast(1.1);
}
.book-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,6,6,0.6) 100%);
  pointer-events: none;
  transition: opacity 0.4s;
}
.book-card:hover .book-card-cover::after {
  opacity: 0.5;
}
.book-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--transition-smooth);
}
.book-card:hover .book-card-overlay {
  opacity: 1;
  transform: translateY(0);
}
.book-card-overlay .btn {
  width: 100%;
  text-align: center;
  background: rgba(192, 57, 43, 0.9);
  backdrop-filter: blur(8px);
}
.book-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  transition: color 0.3s;
}
.book-card:hover h3 {
  color: var(--accent);
}
.book-card .book-card-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.book-card .book-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === PUBLISHER SECTION === */
.publisher-section {
  padding: 8rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.publisher-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}
.publisher-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.publisher-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.publisher-icon svg {
  width: 50px;
  height: 50px;
}
.publisher-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.publisher-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

/* === BOOK DETAIL PAGES === */
.book-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 6rem;
}
.book-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-void);
  z-index: -1;
}
.book-hero-content {
  display: flex;
  align-items: center;
  gap: 6rem;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.book-hero-cover {
  flex-shrink: 0;
  width: 340px;
}
.book-3d-wrapper {
  perspective: 1200px;
}
.book-3d {
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-12deg);
  transition: transform 0.8s var(--transition-smooth);
}
.book-3d:hover {
  transform: rotateY(-4deg);
}
.book-3d img {
  width: 100%;
  display: block;
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    12px 12px 40px rgba(0,0,0,0.5),
    -3px 0 15px rgba(0,0,0,0.3),
    0 0 60px rgba(192, 57, 43, 0.05);
}
.book-3d::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(to right, #0a0a0a, #1a1a1a);
  transform: rotateY(90deg);
  transform-origin: right;
  border-radius: 2px 0 0 2px;
}

.book-hero-text {
  flex: 1;
}
.book-hero-tagline {
  font-family: var(--font-handwritten);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.book-hero-title {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 0.5rem;
}
.book-hero-title .accent {
  color: var(--accent);
  font-style: italic;
}
.book-hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.book-hero-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 420px;
  line-height: 1.8;
}
.book-hero-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.book-hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Book about/description section */
.book-about {
  padding: 8rem 0;
}
.book-about .section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.book-description-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}
.book-description-grid p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.book-description-grid strong {
  color: var(--text-primary);
}
.book-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.meta-item {
  text-align: center;
}
.meta-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.meta-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* Chapters */
.chapters-section {
  padding: 8rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.chapter-card {
  background: var(--bg-card);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.4s var(--transition-smooth);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s var(--transition-smooth);
}
.chapter-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.3);
  background: var(--bg-card-hover);
}
.chapter-card:hover::before {
  width: 100%;
}
.chapter-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border-light);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  transition: color 0.4s;
}
.chapter-card:hover .chapter-num {
  color: var(--accent);
}
.chapter-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.chapter-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Excerpt */
.excerpt-section {
  padding: 8rem 0;
}
.excerpt-wrapper {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}
.excerpt-content {
  flex: 1;
}
.excerpt-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.excerpt-dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  float: left;
  line-height: 0.78;
  margin-right: 0.5rem;
  margin-top: 0.15rem;
  color: var(--accent);
  font-weight: 700;
}
.excerpt-content em {
  color: var(--text-primary);
}
.excerpt-decoration {
  flex-shrink: 0;
  position: sticky;
  top: 8rem;
}
.quote-large {
  font-family: var(--font-display);
  font-size: 14rem;
  line-height: 0.75;
  color: var(--border);
  user-select: none;
}

/* === BOUTIQUE / STORE === */
.store-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
}
.store-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(192, 57, 43, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.store-hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.store-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.store-grid {
  padding: 4rem 0 10rem;
}
.store-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.store-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.5s var(--transition-smooth);
}
.store-item:hover {
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.store-item-image {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}
.store-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s var(--transition-smooth);
  filter: brightness(0.9);
}
.store-item:hover .store-item-image img {
  transform: scale(1.03);
  filter: brightness(1);
}
.store-item-info {
  padding: 2rem;
}
.store-item-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.store-item-info .store-item-sub {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.store-item-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.store-item-price .original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 400;
}
.store-item-formats {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.format-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}
.format-tag:hover,
.format-tag.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.store-item .btn {
  width: 100%;
  text-align: center;
}

/* Cart notification */
.cart-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  padding: 1rem 2rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(120%);
  transition: transform 0.5s var(--transition-smooth);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.cart-toast.show {
  transform: translateY(0);
}
.cart-toast .toast-icon {
  color: var(--accent);
  font-size: 1.2rem;
}
.cart-toast .toast-text {
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* Payment modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 3rem;
  max-width: 520px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
.modal-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}
.checkout-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.checkout-form input,
.checkout-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.3s;
  outline: none;
}
.checkout-form input:focus,
.checkout-form select:focus {
  border-color: var(--accent);
}
.checkout-form input::placeholder {
  color: var(--text-muted);
}
.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  margin: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.checkout-total span:first-child {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.checkout-total span:last-child {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.checkout-secure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.checkout-secure svg {
  width: 14px;
  height: 14px;
}

/* === CTA SECTION === */
.cta-section {
  padding: 10rem 0;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(192, 57, 43, 0.06) 0%, transparent 65%),
    var(--bg-primary);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.cta-section .cta-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* === FOOTER === */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-void);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--text-primary);
}
.footer-copy p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === BACK LINK === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: '← '; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .store-items { grid-template-columns: repeat(2, 1fr); }
  .book-hero-content { gap: 4rem; }
  .book-hero-cover { width: 280px; }
  .book-hero-title { font-size: 3.2rem; }
  .chapters-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 6, 6, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }

  .home-hero { padding: 8rem 1.5rem 5rem; }
  .home-hero h1 { font-size: 2.6rem; }
  .books-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .store-items { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .book-hero { padding: 8rem 1.5rem 4rem; }
  .book-hero-content { flex-direction: column; text-align: center; gap: 3rem; }
  .book-hero-cover { width: 240px; margin: 0 auto; }
  .book-hero-title { font-size: 2.5rem; }
  .book-hero-quote { margin-left: auto; margin-right: auto; }
  .book-hero-actions { justify-content: center; }
  .book-description-grid { grid-template-columns: 1fr; gap: 0; }
  .book-meta-bar { grid-template-columns: repeat(2, 1fr); }
  .chapters-grid { grid-template-columns: 1fr; }

  .excerpt-wrapper { flex-direction: column-reverse; gap: 0; }
  .excerpt-decoration { position: static; }
  .quote-large { font-size: 7rem; }

  .section-title { font-size: 2rem; }
  .publisher-inner { flex-direction: column; text-align: center; }
  .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
  .hero-scroll { display: none; }

  .store-hero h1 { font-size: 2.5rem; }
  .modal-content { padding: 2rem; }
  .checkout-row { grid-template-columns: 1fr; }
}
