/* =====================================================
   BOOKS UGANDA — Dark Glassmorphism
   Premium glass theme with shooting stars
   ===================================================== */

:root {
  /* Background */
  --bg-deep: #0A0E1A;
  --bg-mid: #0D1225;
  --bg-surface: #111827;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  --glass-blur: 20px;

  /* Accent */
  --amber: #D97706;
  --amber-light: #F59E0B;
  --amber-glow: rgba(217, 119, 6, 0.15);
  --amber-soft: rgba(217, 119, 6, 0.08);

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0A0E1A;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Success */
  --success: #16A34A;
  --success-hover: #22C55E;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(217, 119, 6, 0.1);

  /* Typography */
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Easing */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.5, 0.64, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─── SHOOTING STARS BACKGROUND ─── */
.stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 55%, rgba(217,119,6,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 38%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 72%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 8% 55%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 38% 88%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 50%, rgba(217,119,6,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 78%, rgba(255,255,255,0.45) 0%, transparent 100%);
}

.stars-layer-1 { animation: twinkle1 8s ease-in-out infinite; }
.stars-layer-2 { animation: twinkle2 12s ease-in-out infinite; opacity: 0.6; }
.stars-layer-3 { animation: twinkle3 10s ease-in-out infinite; opacity: 0.4; }

@keyframes twinkle1 {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes twinkle2 {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

@keyframes twinkle3 {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Shooting stars */
.shooting-star {
  position: absolute;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(217,119,6,0.6), transparent);
  border-radius: 100px;
  opacity: 0;
  filter: blur(0.5px);
}

.shooting-star::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(255,255,255,0.6), 0 0 24px 8px rgba(217,119,6,0.3);
}

.shooting-star-1 {
  top: 8%;
  left: -200px;
  transform: rotate(-35deg);
  animation: shoot 14s 0s linear infinite;
}

.shooting-star-2 {
  top: 22%;
  left: -200px;
  transform: rotate(-28deg);
  animation: shoot 18s 3s linear infinite;
  width: 160px;
}

.shooting-star-3 {
  top: 45%;
  left: -200px;
  transform: rotate(-40deg);
  animation: shoot 16s 6s linear infinite;
  width: 180px;
}

.shooting-star-4 {
  top: 65%;
  left: -200px;
  transform: rotate(-32deg);
  animation: shoot 20s 2s linear infinite;
  width: 150px;
}

.shooting-star-5 {
  top: 82%;
  left: -200px;
  transform: rotate(-38deg);
  animation: shoot 17s 5s linear infinite;
  width: 190px;
}

@keyframes shoot {
  0% {
    transform: translateX(0) rotate(-35deg);
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  10% {
    transform: translateX(calc(100vw + 300px)) rotate(-35deg);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--amber);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), box-shadow 300ms var(--ease-out);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background: var(--amber-light);
  box-shadow: 0 8px 32px rgba(217, 119, 6, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  transition: transform 200ms var(--ease-out);
}

.btn-primary:hover .btn-icon {
  transform: translateX(2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* ─── HEADER — Glass Pill ─── */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 1200px;
  padding: 0 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-wordmark em {
  font-style: normal;
  font-weight: 500;
  color: var(--amber-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 200ms var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width 300ms var(--ease-out);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.rl-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber-light);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(217, 119, 6, 0.2);
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out);
}

.rl-toggle:hover {
  background: rgba(217, 119, 6, 0.2);
}

.rl-toggle:active {
  transform: scale(0.97);
}

.rl-toggle svg {
  stroke: currentColor;
  fill: none;
}

.rl-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--amber);
  color: var(--text-inverse);
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-deep);
}

.rl-badge.pulse { animation: badge-pop 350ms var(--ease-spring); }

@keyframes badge-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ─── WELCOME ─── */
.welcome-section {
  position: relative;
  z-index: 1;
  padding: 160px 48px 80px;
  text-align: center;
}

.welcome-inner {
  max-width: 700px;
  margin: 0 auto;
}

.welcome-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-logo {
  width: clamp(200px, 40vw, 360px);
  height: auto;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.welcome-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ─── MARQUEE ─── */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECTIONS ─── */
.section {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 48px;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ─── BOOK GRID — Pinterest Masonry ─── */
.book-grid {
  columns: 4;
  column-gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.book-card {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out), background 300ms var(--ease-out);
  animation: card-enter 500ms var(--ease-out) both;
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(217, 119, 6, 0.06);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
  }
}

.book-cover-link {
  display: block;
  text-decoration: none;
}

.book-cover-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.book-cover {
  width: 100%;
  display: block;
  transition: transform 500ms var(--ease-out);
  aspect-ratio: 2/3;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .book-card:hover .book-cover {
    transform: scale(1.03);
  }
}

.book-cover-fallback {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 8px;
}

.fallback-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.fallback-author {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.book-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .book-card:hover .book-cover-overlay { opacity: 1; }
}

.book-cover-overlay span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--amber);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform 300ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .book-card:hover .book-cover-overlay span {
    transform: translateY(0);
  }
}

.book-info {
  padding: 14px 16px 18px;
  position: relative;
  z-index: 2;
}

.book-title-link {
  text-decoration: none;
}

.book-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 200ms var(--ease-out);
}

.book-title:hover { color: var(--amber-light); }

.book-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.book-actions {
  display: flex;
  gap: 8px;
}

.btn-list {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  background: var(--glass-bg);
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.btn-list:hover {
  background: var(--amber);
  color: var(--text-inverse);
  border-color: var(--amber);
}

.btn-list:active {
  transform: scale(0.97);
}

.btn-list.added {
  background: rgba(217, 119, 6, 0.15);
  border-color: rgba(217, 119, 6, 0.3);
  color: var(--amber-light);
}

.btn-wa {
  flex: 1;
  padding: 9px 8px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--success);
  color: #fff;
  text-align: center;
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out);
  letter-spacing: 0.02em;
}

.btn-wa:hover {
  background: var(--success-hover);
}

.btn-wa:active {
  transform: scale(0.97);
}

/* ─── ABOUT ─── */
.about-section {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.02);
}

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 28px;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 480px;
}

.about-visual {
  display: flex;
  justify-content: flex-end;
}

.about-image-wrap {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 6/7;
  object-fit: cover;
}

/* ─── CTA ─── */
.cta-section {
  position: relative;
  z-index: 1;
  background: rgba(217, 119, 6, 0.06);
  border-top: 1px solid rgba(217, 119, 6, 0.1);
  border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 48px;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-inner p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 200ms var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.btn-cta:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: scale(0.97);
}

/* ─── FOOTER ─── */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 48px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo svg {
  width: 28px;
  height: 28px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 200ms var(--ease-out);
}

.footer-col a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-credit a {
  color: var(--amber-light);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.footer-credit a:hover {
  color: var(--amber);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--glass-bg);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
  pointer-events: none;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── SCROLL ANIMATIONS ─── */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .book-grid { columns: 3; }
  .about-inner { gap: 48px; }
}

@media (max-width: 768px) {
  .site-header {
    width: calc(100% - 32px);
    top: 12px;
  }

  .header-inner {
    height: 54px;
    padding: 0 18px;
  }

  .nav-links li:first-child,
  .nav-links li:nth-child(2) { display: none; }

  .welcome-section { padding: 120px 24px 64px; }

  .section { padding: 64px 24px; }

  .book-grid {
    columns: 2;
    column-gap: 14px;
    padding: 0 24px;
  }

  .book-card { margin-bottom: 14px; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 24px;
  }

  .about-visual { justify-content: center; }
  .about-image-wrap { max-width: 320px; }

  .cta-inner { padding: 64px 24px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 24px;
  }

  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 4px; text-align: center; }

  .shooting-star-3,
  .shooting-star-4,
  .shooting-star-5 { display: none; }
}

@media (max-width: 480px) {
  .logo-wordmark { font-size: 0.95rem; }

  .welcome-section h1 { font-size: 2rem; }

  .book-grid {
    columns: 2;
    column-gap: 12px;
    padding: 0 16px;
    max-width: 400px;
    margin: 0 auto;
  }

  .book-card { margin-bottom: 12px; }

  .book-actions {
    flex-direction: column;
  }

  .btn-wa {
    width: 100%;
  }

  .rl-toggle span:not(.rl-badge) { display: none; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .shooting-star { animation: none !important; opacity: 0 !important; }
  .stars-layer { animation: none !important; }
  .marquee-track { animation: none !important; }
  .animate-in { transition: opacity 300ms var(--ease-out) !important; transform: none !important; }
  .book-card { animation: none !important; opacity: 1 !important; }
}

/* ─── REDUCED TRANSPARENCY ─── */
@media (prefers-reduced-transparency: reduce) {
  .header-inner,
  .book-card,
  .btn-secondary,
  .btn-cta,
  .toast,
  .rl-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(17, 24, 39, 0.95);
  }
}