/* ============================================================
   REID STERLING — OFFICIAL AUTHOR PLATFORM
   Stack: Pure HTML/CSS/JS | Mobile-First | Production-Ready
   Aesthetic: Wall Street meets Cyberpunk
   ============================================================ */

/* ── IMPORTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  --black:        #050505;
  --deep:         #0a0a0a;
  --dark:         #111111;
  --dark-card:    #161616;
  --border:       #222222;
  --border-light: #2e2e2e;
  --muted:        #555555;
  --light-muted:  #888888;
  --off-white:    #d8d8d8;
  --white:        #f2f2f2;
  --pure-white:   #ffffff;
  --accent:       #e8192c;
  --accent-dim:   #9a111e;
  --accent-glow:  rgba(232, 25, 44, 0.15);
  --accent-glow2: rgba(232, 25, 44, 0.06);

  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  --max-w:    1280px;
  --section-pad: 120px;
  --radius:   4px;
  --radius-lg: 8px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.76, 0, 0.24, 1);
}

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

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

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.accent-text { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* Reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── SELECTION ───────────────────────────────────────────── */
::selection { background: var(--accent); color: var(--pure-white); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-color: var(--border);
}

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

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pure-white);
  position: relative;
}

.nav-logo span {
  color: var(--accent);
  display: inline-block;
  margin-left: 2px;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-logo:hover::after { transform: scaleX(1); }

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out-expo);
}

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

.nav-cta {
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--pure-white) !important;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease !important;
}
.nav-cta:hover { background: #c8141f !important; transform: translateY(-1px) !important; }
.nav-cta::after { display: none !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
}

/* Noise texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 128px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* Diagonal red accent line */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 60vh;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.5;
  z-index: 1;
}

/* Grid lines background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 15%; right: 8%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from { opacity: 0.4; transform: scale(1); }
  to   { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--pure-white);
  margin-bottom: 24px;
}

.hero-headline .line-2 {
  color: var(--accent);
  display: block;
  font-style: italic;
}

.hero-headline .line-3 {
  color: var(--light-muted);
  font-size: 0.55em;
  font-weight: 400;
  display: block;
  letter-spacing: -0.01em;
  margin-top: 8px;
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--light-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.hero-subtext strong {
  color: var(--off-white);
  font-weight: 600;
}

/* Newsletter form */
.newsletter-form {
  margin-bottom: 56px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.form-row {
  display: flex;
  gap: 0;
  max-width: 520px;
}

.form-input {
  flex: 1;
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--accent); }

.form-submit {
  background: var(--accent);
  color: var(--pure-white);
  padding: 15px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.form-submit:hover { background: #c8141f; }

.form-note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.form-note a {
  color: var(--light-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pure-white);
  line-height: 1;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: scrollBob 2.5s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--accent);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--accent-dim);
  border-bottom: 1px solid var(--accent-dim);
}

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

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pure-white);
  white-space: nowrap;
}

.ticker-dot {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  flex-shrink: 0;
}

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

/* ============================================================
   BOOK SHOWCASE
   ============================================================ */
.book-showcase {
  padding: var(--section-pad) 0;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.book-showcase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.book-showcase::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--accent);
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

/* Book cover */
.book-cover-wrap {
  position: relative;
}

.book-cover-frame {
  position: relative;
  aspect-ratio: 2/3;
  max-width: 340px;
  margin: 0 auto;
}

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* Dramatic inner design for placeholder */
.book-cover-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%),
    linear-gradient(315deg, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.book-cover-placeholder .cover-title {
  position: relative;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pure-white);
  text-align: center;
  line-height: 1.2;
  padding: 0 24px;
  z-index: 1;
}

.book-cover-placeholder .cover-author {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  z-index: 1;
}

.book-cover-placeholder .cover-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Shadow stack effect */
.book-shadow-1 {
  position: absolute;
  bottom: -8px; right: -8px;
  width: 100%; height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--dark);
  z-index: -1;
}

.book-shadow-2 {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--black);
  z-index: -2;
}

.book-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--accent);
  color: var(--pure-white);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 3px;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: rotate(3deg);
  z-index: 10;
}

/* Book info */
.book-info {}

.book-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--pure-white);
  margin-bottom: 16px;
}

.book-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light-muted);
  margin-bottom: 28px;
  max-width: 520px;
  font-style: italic;
}

.book-divider {
  width: 48px; height: 2px;
  background: var(--accent);
  margin-bottom: 28px;
}

.book-blurb {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--off-white);
  max-width: 540px;
  margin-bottom: 36px;
}

.book-blurb p + p { margin-top: 16px; }

/* Book meta tags */
.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-muted);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* CTAs */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: var(--pure-white);
  box-shadow: 0 0 40px var(--accent-glow);
}
.btn-primary:hover {
  background: #c8141f;
  transform: translateY(-2px);
  box-shadow: 0 8px 50px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--off-white);
  color: var(--pure-white);
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   CREDENTIALS / PROOF BAR
   ============================================================ */
.proof-bar {
  background: var(--dark-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.proof-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  position: relative;
  transition: background 0.2s ease;
}

.proof-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%; right: 0;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.proof-item:hover { background: rgba(232, 25, 44, 0.04); }

.proof-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--pure-white);
  line-height: 1;
  margin-bottom: 6px;
}

.proof-number em {
  color: var(--accent);
  font-style: normal;
}

.proof-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  padding: var(--section-pad) 0;
  background: var(--black);
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

/* Photo */
.author-photo-wrap {
  position: sticky;
  top: 100px;
}

.author-photo-frame {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 380px;
}

.author-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.photo-bg-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.015) 30px,
    rgba(255,255,255,0.015) 31px
  );
}

.photo-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--dark-card), transparent);
}

.author-photo-placeholder .photo-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-photo-placeholder .photo-icon svg {
  width: 36px; height: 36px;
  color: var(--muted);
  fill: var(--muted);
}

.author-photo-placeholder .photo-caption {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

.author-photo-placeholder .photo-caption strong {
  display: block;
  color: var(--off-white);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.photo-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--accent);
  border-style: solid;
}
.photo-corner.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.photo-corner.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.photo-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.photo-corner.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* About content */
.about-content {}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--pure-white);
  margin-bottom: 12px;
  line-height: 1.1;
}

.section-title span { color: var(--accent); }

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--off-white);
  margin-bottom: 32px;
}

.about-bio p + p { margin-top: 20px; }

.about-bio strong {
  color: var(--pure-white);
  font-weight: 600;
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  margin: 36px 0;
  background: var(--dark-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote p {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
}

/* Expertise list */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--off-white);
}

.expertise-item::before {
  content: '→';
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   BOOKSHELF / LIBRARY
   ============================================================ */
.library-section {
  padding: var(--section-pad) 0;
  background: var(--dark);
  position: relative;
}

.library-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-header-left {}

.section-header-right {}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.filter-tab.active {
  background: var(--accent);
  color: var(--pure-white);
}

.filter-tab:hover:not(.active) {
  color: var(--off-white);
  background: var(--border);
}

/* Books grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: none;
}

.book-card.visible-card {
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.book-card-cover {
  aspect-ratio: 2/3;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.book-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Placeholder cover design for each card */
.card-cover-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.card-cover-placeholder.style-1 {
  background: linear-gradient(135deg, #1a0a0a 0%, #0d0505 100%);
}
.card-cover-placeholder.style-1::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.card-cover-placeholder.style-coming {
  background: var(--dark);
}

.cover-inner-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  text-align: center;
  color: var(--pure-white);
}

.cover-inner-author {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-status-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  color: var(--muted);
}

.card-status-badge.available {
  border-color: var(--accent);
  color: var(--accent);
}

.book-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-genre {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.book-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pure-white);
  margin-bottom: 10px;
}

.book-card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--light-muted);
  flex: 1;
  margin-bottom: 20px;
}

.book-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.book-card-cta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.book-card:hover .book-card-cta { gap: 10px; }

.book-card-cta::after {
  content: '→';
}

/* Coming soon overlay */
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.coming-soon-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off-white);
  border: 1px solid var(--border-light);
  padding: 10px 18px;
  border-radius: 2px;
}

/* ============================================================
   NEWSLETTER CTA SECTION
   ============================================================ */
.newsletter-section {
  padding: var(--section-pad) 0;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.newsletter-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.015);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.newsletter-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-icon {
  width: 56px; height: 56px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.newsletter-icon svg {
  width: 22px; height: 22px;
  color: var(--accent);
  stroke: var(--accent);
}

.newsletter-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  color: var(--pure-white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.newsletter-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--light-muted);
  margin-bottom: 40px;
}

.newsletter-form-center .form-row {
  max-width: 100%;
}

.newsletter-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.perk::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */
.form-success {
  display: none;
  padding: 16px 24px;
  background: rgba(232, 25, 44, 0.08);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-align: center;
}
.form-success.show { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pure-white);
  margin-bottom: 16px;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px; height: 36px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--muted);
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--pure-white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

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

.footer-links a:hover::before {
  width: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--off-white); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5,5,5,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  backdrop-filter: blur(20px);
}

.mobile-nav.open { display: flex; }

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

.mobile-nav-links a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--off-white);
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover { color: var(--accent); }

.mobile-nav-cta {
  background: var(--accent);
  color: var(--pure-white) !important;
  padding: 16px 48px;
  border-radius: var(--radius);
  font-family: var(--font-mono) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .showcase-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
  }

  .proof-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(2)::after { display: none; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .author-photo-wrap {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 120px 0 60px; }

  .form-row { flex-direction: column; }
  .form-input { border-right: 1px solid var(--border-light); border-radius: var(--radius); }
  .form-submit { border-radius: var(--radius); text-align: center; }

  .hero-stats { gap: 28px; }
  .stat-number { font-size: 1.6rem; }

  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .book-cover-frame {
    max-width: 240px;
  }

  .proof-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .hero-headline { font-size: 2.6rem; }

  .proof-inner {
    grid-template-columns: 1fr 1fr;
  }

  .proof-item:nth-child(odd)::after { display: block; }
  .proof-item:nth-child(even)::after { display: none; }

  .btn-group { flex-direction: column; }
  .btn { justify-content: center; }

  .newsletter-perks { flex-direction: column; gap: 12px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .ticker-wrap, .scroll-indicator, .newsletter-section { display: none; }
  body { background: white; color: black; }
}

/* ============================================================
   v2 — MODALS, PROGRESS BAR, MICRO-INTERACTIONS
   ============================================================ */

/* ── READING PROGRESS BAR ────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 2000;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px var(--accent-glow);
  pointer-events: none;
}

/* ── COVER HOVER OVERLAY ─────────────────────────────────── */
.book-cover-frame {
  position: relative;
  overflow: hidden;
}

.cover-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232, 25, 44, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg);
}

.cover-hover-overlay span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pure-white);
}

.book-cover-frame:hover .cover-hover-overlay { opacity: 1; }
.book-cover-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Library card overlay */
.book-card-cover { position: relative; overflow: hidden; }

.card-hover-cta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--accent);
  color: var(--pure-white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out-expo);
}

.book-card:hover .card-hover-cta { transform: translateY(0); }

/* Text-style expand button */
.book-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.book-detail-link:hover { gap: 13px; opacity: 0.8; }

/* ── MODAL OVERLAY ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

/* ── MODAL PANELS ────────────────────────────────────────── */
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.45s var(--ease-out-expo);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--dark);
}

.modal-panel::-webkit-scrollbar { width: 3px; }
.modal-panel::-webkit-scrollbar-track { background: transparent; }
.modal-panel::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--off-white);
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  line-height: 1;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

/* ── BOOK DETAIL MODAL ───────────────────────────────────── */
#modal-book-detail { width: min(1100px, 92vw); }

.book-detail-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
}

.book-detail-sidebar {
  background: var(--dark);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  align-self: start;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.book-detail-cover-wrap { width: 100%; max-width: 200px; }

.book-detail-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}

.book-detail-img:hover {
  transform: scale(1.04) rotate(-1.5deg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px var(--accent-glow);
}

.book-detail-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 3px; }

.rating-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.book-detail-sidebar-ctas { display: flex; flex-direction: column; gap: 10px; width: 100%; }

.book-detail-content { padding: 48px; }

.book-detail-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.book-detail-eyebrow::before { content: ''; display: block; width: 14px; height: 1px; background: var(--accent); }

.book-detail-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--pure-white);
  margin-bottom: 12px;
}

.book-detail-subtitle {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--light-muted);
  font-style: italic;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.book-detail-section-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off-white);
  margin: 28px 0 14px;
}

.book-detail-text { font-size: 0.97rem; line-height: 1.82; color: var(--off-white); margin-bottom: 14px; }
.book-detail-text strong { color: var(--pure-white); }

.book-detail-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.book-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--off-white);
  padding: 11px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.book-detail-list li:hover { border-color: var(--border-light); background: rgba(232,25,44,0.04); }

.book-detail-list li::before {
  content: '\2192';
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.book-detail-list li strong { color: var(--pure-white); }

.book-detail-bottom-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

/* ── STANDARD / LEGAL MODALS ─────────────────────────────── */
.modal-panel-standard { width: min(520px, 92vw); padding: 48px; }
.modal-panel-legal    { width: min(680px, 92vw); padding: 48px; }

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-eyebrow::before { content: ''; display: block; width: 14px; height: 1px; background: var(--accent); }

.modal-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  margin-bottom: 8px;
}

.modal-subtitle { font-size: 0.9rem; color: var(--light-muted); line-height: 1.6; }

.modal-divider { width: 40px; height: 2px; background: var(--accent); margin: 24px 0; }

/* ── FORM FIELDS (modal) ─────────────────────────────────── */
.modal-form { display: flex; flex-direction: column; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 7px; }

.field-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-input,
.field-select,
.field-textarea {
  background: var(--dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--muted); }

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow2);
}

.field-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}

.field-select option { background: var(--dark-card); color: var(--white); }

.field-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.modal-submit {
  background: var(--accent);
  color: var(--pure-white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.modal-submit:hover {
  background: #c8141f;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ── PLAYBOOK PERKS ──────────────────────────────────────── */
.playbook-perks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.playbook-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--off-white);
  padding: 9px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.playbook-perk::before { content: '\2713'; color: var(--accent); font-family: var(--font-mono); font-weight: 700; flex-shrink: 0; }

/* ── LEGAL TEXT ──────────────────────────────────────────── */
.legal-text { font-size: 0.88rem; line-height: 1.8; color: var(--light-muted); }

.legal-text h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--off-white);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-text p + p { margin-top: 10px; }

/* ── TOAST NOTIFICATIONS ─────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--off-white);
  min-width: 260px;
  max-width: 360px;
  pointer-events: all;
  transform: translateX(110%);
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show { transform: translateX(0); opacity: 1; }

/* ── RIPPLE ──────────────────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: scale(0);
  animation: ripple-expand 0.65s linear forwards;
  pointer-events: none;
}

@keyframes ripple-expand { to { transform: scale(4); opacity: 0; } }

/* ── MOBILE MODAL ────────────────────────────────────────── */
@media (max-width: 768px) {
  .modal-overlay { padding: 16px; }
  .book-detail-inner { grid-template-columns: 1fr; }

  .book-detail-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 28px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .book-detail-cover-wrap { max-width: 120px; }
  .book-detail-content { padding: 28px 24px; }
  .book-detail-title { font-size: 1.6rem; }
  .modal-panel-standard, .modal-panel-legal { padding: 28px 20px; }
  .toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { min-width: unset; max-width: 100%; }
}

@media (max-width: 480px) {
  .book-detail-sidebar { flex-direction: column; align-items: center; }
}
