/* ============================================================
   Author Website — styles.css
   Dark horror palette: near-black + deep purple.
   Clear section cut-offs, animated background elements.
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-body:      #06030e;   /* near-black, deep violet tint  */
  --bg-alt:       #0c0820;   /* alt sections — richer purple  */
  --bg-card:      #110c20;   /* card surfaces                 */
  --bg-card-alt:  #18122e;   /* featured / hovered            */
  --bg-card-2:    #0f0a1e;   /* second card variant           */

  /* Purple spectrum — full range */
  --p950:  #2e1065;   /* near-black violet              */
  --p900:  #3b0764;   /* darkest purple                 */
  --p800:  #4c1d95;   /* deep indigo-purple             */
  --p700:  #5b21b6;   /* rich violet                   */
  --p600:  #6d28d9;   /* dark purple                   */
  --purple:#7c3aed;   /* main accent (unchanged key)    */
  --p500:  #8b5cf6;   /* medium purple                 */
  --purple-mid:   #a78bfa;   /* lavender-purple           */
  --p300:  #c4b5fd;   /* light lavender                */
  --purple-light: #c4b5fd;
  --p200:  #ddd6fe;   /* very light lavender            */
  --p100:  #ede9fe;   /* near-white lavender            */
  --purple-glow:  rgba(124, 58, 237, 0.22);
  --purple-subtle:rgba(167, 139, 250, 0.10);
  /* Accent: deep magenta-red for horror edge */
  --blood: #7f1d4a;

  /* Text */
  --text:         #f0ecff;
  --text-muted:   #8b7fa8;

  /* Borders */
  --border:       rgba(167, 139, 250, 0.14);
  --border-card:  rgba(167, 139, 250, 0.10);
  --divider:      linear-gradient(90deg,
                    transparent         0%,
                    rgba(91,33,182,0.15) 10%,
                    rgba(124,58,237,0.40) 30%,
                    rgba(167,139,250,0.65) 50%,
                    rgba(124,58,237,0.40) 70%,
                    rgba(91,33,182,0.15) 90%,
                    transparent         100%);

  /* Shadows */
  --shadow-sm:    0 2px 16px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 40px rgba(0,0,0,0.5);
  --shadow-lg:    0 20px 70px rgba(0,0,0,0.6);
  --shadow-purple:0 8px 40px rgba(124,58,237,0.25);

  /* Shape */
  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    28px;
  --radius-pill:  999px;

  /* Misc */
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:         'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width:    1160px;
  --nav-h:        88px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Section stacking ────────────────────────────────────── */
#navbar, #hero, #meet, #books, #contact, footer {
  position: relative;
  z-index: 1;
}

/* ── Section cut-offs: gradient divider line ─────────────── */
/* Every section except hero gets a glowing top divider line  */
#meet::before,
#books::before,
#contact::before,
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--divider);
  z-index: 2;
}

/* ── Utility ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-mid);
  background: var(--purple-subtle);
  border: 1px solid rgba(167,139,250,0.18);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

/* ── Scroll-reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 8px 48px rgba(124,58,237,0.45);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid rgba(167,139,250,0.30);
}
.btn-outline:hover {
  border-color: var(--purple-mid);
  background: var(--purple-subtle);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--purple-subtle);
  color: var(--purple-light);
  border: 1px solid rgba(167,139,250,0.15);
}
.btn-ghost:hover {
  background: var(--purple);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: 0.875rem; }

/* ══════════════════════════════════════════════════════════
   BACKGROUND SCENE
══════════════════════════════════════════════════════════ */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Noise grain overlay */
.bg-scene::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: grain-shift 10s steps(1) infinite;
}
@keyframes grain-shift {
  0%,100%{ transform: translate(0,0);    }
  20%    { transform: translate(-3%,2%); }
  40%    { transform: translate(2%,-3%); }
  60%    { transform: translate(-2%,4%); }
  80%    { transform: translate(3%,-2%); }
}

/* ── Orbs ────────────────────────────────────────────────── */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0;
  animation: orb-appear 2s ease forwards, orb-drift linear infinite;
}
@keyframes orb-appear { to { opacity: 1; } }

/* Each orb uses a distinct purple shade for depth/variety */
.bg-orb-1 {
  width: 620px; height: 620px;
  top: -160px; left: -100px;
  background: radial-gradient(circle, rgba(109,40,217,0.50) 0%, rgba(91,33,182,0.18) 45%, transparent 70%);
  animation-duration: 1.5s, 26s;
  animation-delay: 0s, 0s;
  --tx1: 60px;  --ty1: 80px;
  --tx2: -30px; --ty2: 140px;
}
.bg-orb-2 {
  width: 720px; height: 720px;
  top: 20%; right: -200px;
  background: radial-gradient(circle, rgba(76,29,149,0.42) 0%, rgba(59,7,100,0.15) 50%, transparent 70%);
  animation-duration: 1.5s, 32s;
  animation-delay: 0.4s, 0s;
  --tx1: -80px; --ty1: 100px;
  --tx2: 50px;  --ty2: -70px;
}
.bg-orb-3 {
  width: 520px; height: 520px;
  bottom: 10%; left: 10%;
  background: radial-gradient(circle, rgba(139,92,246,0.45) 0%, rgba(124,58,237,0.12) 50%, transparent 70%);
  animation-duration: 1.5s, 20s;
  animation-delay: 0.6s, 0s;
  --tx1: 90px;  --ty1: -60px;
  --tx2: -40px; --ty2: 80px;
}
.bg-orb-4 {
  width: 400px; height: 400px;
  top: 50%; left: 35%;
  background: radial-gradient(circle, rgba(167,139,250,0.25) 0%, rgba(139,92,246,0.08) 55%, transparent 70%);
  animation-duration: 1.5s, 38s;
  animation-delay: 0.8s, 0s;
  --tx1: -60px; --ty1: -90px;
  --tx2: 80px;  --ty2: 60px;
}
.bg-orb-5 {
  width: 480px; height: 480px;
  top: 5%; left: 48%;
  background: radial-gradient(circle, rgba(91,33,182,0.35) 0%, rgba(76,29,149,0.10) 50%, transparent 70%);
  animation-duration: 1.5s, 28s;
  animation-delay: 0.3s, 0s;
  --tx1: 40px;  --ty1: 110px;
  --tx2: -70px; --ty2: -50px;
}
/* Blood-magenta horror accent */
.bg-orb-6 {
  width: 340px; height: 340px;
  bottom: 15%; right: 8%;
  background: radial-gradient(circle, rgba(127,29,74,0.32) 0%, rgba(100,15,55,0.10) 55%, transparent 70%);
  animation-duration: 1.5s, 35s;
  animation-delay: 1s, 0s;
  --tx1: -50px; --ty1: 70px;
  --tx2: 30px;  --ty2: -90px;
}
/* Extra: indigo-teal shimmer, bottom-center */
.bg-orb-7 {
  width: 280px; height: 280px;
  bottom: 30%; left: 48%;
  background: radial-gradient(circle, rgba(196,181,253,0.14) 0%, transparent 65%);
  animation-duration: 1.5s, 42s;
  animation-delay: 1.2s, 0s;
  --tx1: 70px;  --ty1: -50px;
  --tx2: -50px; --ty2: 90px;
}

@keyframes orb-drift {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(var(--tx1), var(--ty1)) scale(1.07); }
  50%  { transform: translate(var(--tx2), calc(var(--ty2)*0.5)) scale(0.96); }
  75%  { transform: translate(calc(var(--tx1)*-0.5), var(--ty2)) scale(1.04); }
  100% { transform: translate(0,0) scale(1); }
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(6,3,14,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(167,139,250,0.12);
  box-shadow: 0 1px 0 rgba(124,58,237,0.08), 0 8px 32px rgba(0,0,0,0.45);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(6,3,14,0.97);
  border-color: rgba(167,139,250,0.20);
  box-shadow: 0 1px 0 rgba(124,58,237,0.15), 0 12px 48px rgba(0,0,0,0.65);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--purple-mid); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
/* Underline indicator on active/hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--purple-mid);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta { margin-left: 16px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--purple-mid);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(13,9,32,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px 24px 36px;
  flex-direction: column;
  gap: 24px;
  z-index: 99;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--purple-light); }

/* ══════════════════════════════════════════════════════════
   HERO  (bg-body)
══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  background: var(--bg-body);
  display: flex;
  align-items: center;
}

/* Hero canvas sits behind all content */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-subtle);
  border: 1px solid rgba(167,139,250,0.22);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--purple-mid);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0   rgba(167,139,250,0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(167,139,250,0);   }
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-headline em {
  font-style: normal;
  color: var(--purple-mid);
  text-shadow: 0 0 40px rgba(167,139,250,0.4);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Right visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-main {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #0f0820 0%, #1e1040 35%, #2a1258 60%, #1a0d35 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.18), 0 0 60px rgba(109,40,217,0.20), var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--purple-light);
  font-weight: 600;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}
/* When showing real cover image */
.hero-card-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  z-index: 1;
}

.hero-card-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,4,15,0.5) 100%);
  z-index: 2;
}
/* Glowing inner aura */
.hero-card-main::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124,58,237,0.20) 0%, transparent 70%);
  border-radius: 50%;
  animation: card-pulse 3s ease-in-out infinite;
}
@keyframes card-pulse {
  0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1);   }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.15); }
}
.hero-card-main .ph-icon {
  width: 56px; height: 56px;
  background: rgba(124,58,237,0.25);
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.20);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  position: relative; z-index: 1;
}

/* Floating badges */
.float-badge {
  position: absolute;
  z-index: 10;
  background: rgba(18,13,34,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(167,139,250,0.20);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}
.float-badge .badge-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.72rem;
}
.float-badge-1 { top: -5%;  right: -4%;  animation-delay: 0s; }
.float-badge-2 { top: 18%;  right: -12%; animation-delay: 1.3s; }
.float-badge-3 { top: 36%;  left: -10%;  animation-delay: 0.7s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ══════════════════════════════════════════════════════════
   MEET THE AUTHOR  (bg-alt — clear cut-off)
══════════════════════════════════════════════════════════ */
#meet {
  padding: 100px 0;
  background: var(--bg-alt);
}

.meet-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: start;
}

/* ── Photo column ────────────────────────────────────────── */
.meet-photo-wrap {
  position: relative;
  /* Subtle purple glow behind the photo */
  filter: drop-shadow(0 0 40px rgba(124,58,237,0.20));
}

.meet-photo {
  width: 100%;
  aspect-ratio: 1 / 1;   /* matches the actual 300×300 image */
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.16), var(--shadow-lg);
  overflow: hidden;
  background: #1e1035;
  position: relative;
}
.meet-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,4,15,0.50) 100%);
  pointer-events: none;
}
.meet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.04) saturate(0.90);
}

/* Name card that sits below the photo */
.meet-photo-caption {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  text-align: center;
}
.meet-photo-caption strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.meet-photo-caption span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.meet-deco {
  position: absolute;
  width: 140px; height: 140px;
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(167,139,250,0.09);
  border-radius: var(--radius-lg);
  bottom: -18px; right: -18px;
  z-index: -1;
}

/* ── Bio column ──────────────────────────────────────────── */
.meet-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 6px;
}

/* Subtitle line under name */
.meet-copy .meet-subtitle {
  font-size: 0.875rem;
  color: var(--purple-mid);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.meet-copy p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.meet-copy p:last-of-type { margin-bottom: 28px; }

/* Full-width bullet row — spans both grid columns */
.meet-bullets {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 0;
  padding-top: 8px;
}
.meet-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.meet-bullet:hover {
  border-color: rgba(167,139,250,0.22);
  box-shadow: var(--shadow-sm);
}
.meet-bullet-icon {
  width: 28px; height: 28px;
  min-width: 28px;
  background: var(--purple-subtle);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
}

/* ══════════════════════════════════════════════════════════
   MY BOOKS  (bg-body — cut-off back to dark)
══════════════════════════════════════════════════════════ */
#books {
  padding: 120px 0;
  background: var(--bg-body);
}

.books-header {
  text-align: center;
  margin-bottom: 64px;
}
.books-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.books-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin-inline: auto;
}

/* ── Single book spotlight layout ───────────────────────── */
.book-spotlight {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-purple), var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Top-left glow accent */
.book-spotlight::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Cover column */
.book-spotlight-cover {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.book-spotlight-ph {
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #0f0820 0%, #1e1040 35%, #2e1268 60%, #3b0764 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(167,139,250,0.18);
  box-shadow: 0 0 40px rgba(124,58,237,0.25), var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.book-spotlight-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(139,92,246,0.20) 0%, transparent 65%);
}
.book-spotlight-ph .ph-icon {
  width: 56px; height: 56px;
  background: rgba(124,58,237,0.25);
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.20);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  position: relative; z-index: 1;
}
.book-spotlight-ph-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
  position: relative; z-index: 1;
}
.book-spotlight-ph-author {
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative; z-index: 1;
}

/* Real cover image in spotlight */
.book-spotlight-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(167,139,250,0.18);
  box-shadow: 0 0 40px rgba(124,58,237,0.30), var(--shadow-lg);
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: center top;
}

/* Details column */
.book-spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.book-genre {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-mid);
  background: var(--purple-subtle);
  border: 1px solid rgba(167,139,250,0.15);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.book-spotlight-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.book-spotlight-format {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.book-spotlight-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.book-spotlight-desc em {
  color: var(--purple-light);
  font-style: italic;
}

.book-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Responsive */
@media (max-width: 720px) {
  .book-spotlight {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .book-spotlight-cover {
    position: static;
    max-width: 220px;
    margin-inline: auto;
  }
  .book-spotlight-title { font-size: 2rem; }
}

/* ══════════════════════════════════════════════════════════
   CONTACT  (bg-alt — cut-off again)
══════════════════════════════════════════════════════════ */
#contact {
  padding: 120px 0;
  background: var(--bg-alt);
}

.contact-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  box-shadow: var(--shadow-md);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
}
.contact-info p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9375rem;
  color: var(--text);
}
.contact-detail a { color: var(--purple-mid); transition: color var(--transition); }
.contact-detail a:hover { color: var(--purple-light); }
.contact-detail-icon {
  width: 38px; height: 38px; min-width: 38px;
  background: var(--purple-subtle);
  border: 1px solid rgba(167,139,250,0.14);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--purple-subtle);
  border: 1px solid rgba(167,139,250,0.16);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple-light);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--purple);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-submit .btn { width: 100%; justify-content: center; padding: 15px 28px; font-size: 1rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: var(--purple-subtle);
  border: 1px solid rgba(167,139,250,0.20);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--purple-light);
}

/* ══════════════════════════════════════════════════════════
   FOOTER  (darkest — final cut-off)
══════════════════════════════════════════════════════════ */
footer {
  background: #040308;
  color: rgba(255,255,255,0.35);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { font-size: 1rem; font-weight: 800; color: var(--text); }
.footer-logo span { color: var(--purple-mid); }
.footer-copy { font-size: 0.8125rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.30);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--purple-light); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual   { justify-content: center; }
  .hero-card-main { max-width: 280px; }
  .float-badge-2 { right: -2%; }
  .float-badge-3 { left: 2%; }

  .meet-inner       { grid-template-columns: 1fr; gap: 40px; }
  .meet-photo-wrap  { max-width: 360px; margin-inline: auto; }
  .meet-bullets     { grid-template-columns: 1fr 1fr; }

  .books-grid    { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .books-grid    { grid-template-columns: 1fr; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .footer-inner  { flex-direction: column; text-align: center; }
  .footer-links  { justify-content: center; }
}
