/* ============================================
   RAVEN ASHFORD — Author Website
   "Like walking into a candlelit library at midnight"
   ============================================ */

/* --- Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --black: #0a0a0a;
  --dark-navy: #1a1a2e;
  --deep-purple: #6b21a8;
  --purple-glow: #9333ea;
  --gold: #d4af37;
  --gold-light: #e8c84a;
  --cream: #f5f5f5;
  --cream-muted: #b8b8b8;
  --rose: #8b2252;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--black);
  color: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p {
  margin-bottom: 1rem;
  color: var(--cream-muted);
}

.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* --- Ambient Background --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(107, 33, 168, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(139, 34, 82, 0.06) 0%, transparent 60%),
    var(--black);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  padding: 0.75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-logo:hover {
  color: var(--gold);
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream-muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 20%, rgba(107, 33, 168, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 30% 80%, rgba(139, 34, 82, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--cream-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

/* Decorative line */
.gold-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #c9a030 100%);
  color: var(--black);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 245, 245, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 0.5rem 0;
  letter-spacing: 0.08em;
}

.btn-ghost::after {
  content: ' \2192';
  transition: transform var(--transition);
  display: inline-block;
}

.btn-ghost:hover {
  color: var(--gold-light);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.section-header h2 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 1rem;
}

/* === FEATURED BOOK === */
.featured-book {
  background: linear-gradient(180deg, var(--black) 0%, var(--dark-navy) 50%, var(--black) 100%);
}

.book-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.book-cover-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 280px;
  height: 420px;
  background: linear-gradient(145deg, var(--dark-navy) 0%, #0f0f23 40%, var(--deep-purple) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(107, 33, 168, 0.1),
    inset 0 0 60px rgba(107, 33, 168, 0.05);
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.book-cover .cover-label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.book-cover h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.book-cover .cover-author {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-top: 1rem;
}

.book-cover .cover-genre {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-top: 0.5rem;
}

.coming-soon-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: linear-gradient(135deg, var(--gold) 0%, #c9a030 100%);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
}

.book-details h2 {
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.book-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.book-meta span {
  font-size: 0.8rem;
  color: var(--cream-muted);
}

.heat-level {
  color: #ef4444 !important;
  letter-spacing: 2px;
}

.book-tropes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.trope-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(107, 33, 168, 0.15);
  border: 1px solid rgba(107, 33, 168, 0.25);
  font-size: 0.75rem;
  color: var(--cream-muted);
  letter-spacing: 0.03em;
}

.book-description {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--cream-muted);
}

.book-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === SIGNUP SECTION === */
.signup-section {
  position: relative;
  overflow: hidden;
}

.signup-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(107, 33, 168, 0.1) 0%, transparent 70%);
}

.signup-box {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  border: 1px solid rgba(212, 175, 55, 0.1);
  background: rgba(26, 26, 46, 0.3);
}

.signup-box h2 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.signup-box p {
  margin-bottom: 2rem;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(245, 245, 245, 0.1);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.signup-form input[type="email"]::placeholder {
  color: rgba(245, 245, 245, 0.3);
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
}

.signup-form .btn {
  white-space: nowrap;
}

.signup-note {
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.3);
  margin-top: 1rem;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.875rem;
  display: none;
}

.form-message.success {
  color: #22c55e;
  display: block;
}

.form-message.error {
  color: #ef4444;
  display: block;
}

/* === ABOUT TEASER === */
.about-teaser {
  background: linear-gradient(180deg, var(--black) 0%, rgba(26, 26, 46, 0.3) 50%, var(--black) 100%);
}

.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.author-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 380px;
  background: linear-gradient(145deg, var(--dark-navy) 0%, rgba(107, 33, 168, 0.15) 100%);
  border: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.author-photo-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(107, 33, 168, 0.08) 0%, transparent 50%);
}

.author-photo-placeholder .initials {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.15);
  position: relative;
  z-index: 1;
}

.about-text .label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.about-text h2 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.about-text .btn-ghost {
  margin-top: 0.5rem;
}

/* === BOOK CARDS GRID (Books Page) === */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.book-card {
  background: rgba(26, 26, 46, 0.3);
  border: 1px solid rgba(245, 245, 245, 0.05);
  transition: all var(--transition);
  overflow: hidden;
}

.book-card:hover {
  border-color: rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.book-card-cover {
  height: 300px;
  background: linear-gradient(145deg, var(--dark-navy) 0%, #0f0f23 40%, var(--deep-purple) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.book-card-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
}

.book-card-cover .card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.book-card-cover .card-author {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.book-card-body {
  padding: 1.75rem;
}

.book-card-body h3 {
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.book-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--cream-muted);
}

.book-card-body .book-tropes {
  margin-bottom: 1rem;
}

.book-card-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.book-card-actions {
  display: flex;
  gap: 1rem;
}

/* === ABOUT PAGE === */
.about-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 20%, rgba(107, 33, 168, 0.12) 0%, transparent 60%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 6rem;
}

.about-main h2 {
  color: var(--cream);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.about-main h2:first-child {
  margin-top: 0;
}

.about-main p {
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-main blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
}

.contact-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 245, 245, 0.06);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold);
  font-size: 0.9rem;
  transition: all var(--transition);
  margin-top: 1rem;
}

.contact-link:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* === FREE CHAPTER PAGE === */
.chapter-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.chapter-preview {
  margin-top: 3rem;
}

.chapter-preview h2 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.preview-text {
  background: rgba(26, 26, 46, 0.3);
  border: 1px solid rgba(245, 245, 245, 0.05);
  padding: 2.5rem;
  position: relative;
}

.preview-text::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.preview-text p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2;
  font-style: italic;
}

.preview-fade {
  position: relative;
}

.preview-fade::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--black));
}

.unlock-cta {
  text-align: center;
  margin-top: 2rem;
}

/* === BLOG === */
.blog-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.blog-empty-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.blog-empty h3 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.blog-topics .trope-tag {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.15);
}

/* === FOOTER === */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(245, 245, 245, 0.04);
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--cream-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 245, 245, 0.08);
  color: var(--cream-muted);
  font-size: 0.8rem;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 245, 245, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.3);
}

/* === PAGE HEADER (for inner pages) === */
.page-header {
  padding-top: 8rem;
  padding-bottom: 3rem;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(107, 33, 168, 0.1) 0%, transparent 60%);
}

.page-header .container {
  position: relative;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right var(--transition);
    border-left: 1px solid rgba(212, 175, 55, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .book-showcase,
  .about-teaser-grid,
  .about-content,
  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .book-showcase {
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form .btn {
    justify-content: center;
  }

  section {
    padding: 3.5rem 0;
  }

  .about-sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  .books-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .book-cover {
    width: 220px;
    height: 330px;
  }
}
