/* PAGE REACH — THEME CSS */

/* === TOKENS === */
:root {
  --bg: #0D0508;
  --bg-2: #1A0A0F;
  --fg: #F2E8E0;
  --fg-2: #B8A99A;
  --fg-3: #7A6460;
  --accent: #C9A84C;
  --accent-2: #8B4513;
  --accent-dim: rgba(201, 168, 76, 0.15);
  --crimson: #8B0000;
  --deep: #2D0A0A;
  --border: rgba(201, 168, 76, 0.18);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}
em { font-style: italic; color: var(--accent); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,5,8,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.nav-logo:hover { text-decoration: none; color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--fg-2);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); text-decoration: none; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}
.hero-bg-orb-1 {
  width: 600px; height: 600px;
  background: var(--crimson);
  top: -200px; right: -100px;
}
.hero-bg-orb-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: 0; left: 20%;
  opacity: 0.06;
}
.hero-bg-orb-3 {
  width: 300px; height: 300px;
  background: #4A1020;
  top: 40%; right: 30%;
  opacity: 0.2;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.eyebrow-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.eyebrow-text {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-headline {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  color: var(--fg);
  margin-bottom: 2rem;
  line-height: 1.05;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-2);
  max-width: 440px;
  line-height: 1.8;
}

/* Book showcase */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.book-showcase {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 2rem;
}
.book-card {
  display: flex;
  align-items: flex-end;
  gap: 0;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}
.book-card:hover { transform: translateY(-8px) rotate(-2deg); }
.book-card-1 .book-spine {
  width: 12px; height: 200px;
  background: linear-gradient(180deg, #6B1A1A 0%, #4A0E0E 100%);
  border-radius: 2px 0 0 2px;
}
.book-card-1 .book-cover {
  width: 130px; height: 200px;
  background: linear-gradient(135deg, #8B1A1A 0%, #4A0E0E 50%, #2D0A0A 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: -8px 0 24px rgba(0,0,0,0.4), inset 0 0 60px rgba(201,168,76,0.08);
  position: relative;
  overflow: hidden;
}
.book-card-2 {
  transform: translateY(-20px) rotate(3deg);
}
.book-card-2 .book-spine {
  width: 10px; height: 180px;
  background: linear-gradient(180deg, #3D0A2A 0%, #2A0518 100%);
  border-radius: 2px 0 0 2px;
}
.book-card-2 .book-cover {
  width: 115px; height: 180px;
  background: linear-gradient(135deg, #5C1435 0%, #2A0518 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: -6px 0 20px rgba(0,0,0,0.4);
  overflow: hidden;
}
.book-card-3 {
  transform: translateY(-35px) rotate(-4deg);
}
.book-card-3 .book-spine {
  width: 8px; height: 160px;
  background: linear-gradient(180deg, #1A3D2A 0%, #0D2218 100%);
  border-radius: 2px 0 0 2px;
}
.book-card-3 .book-cover {
  width: 100px; height: 160px;
  background: linear-gradient(135deg, #1F5C3A 0%, #0D2218 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: -5px 0 16px rgba(0,0,0,0.4);
  overflow: hidden;
}
.book-cover-art {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 0.75rem;
}
.bc-rose {
  position: absolute;
  top: 20px; right: 15px;
  width: 40px; height: 40px;
  background: radial-gradient(circle, #C9A84C 0%, transparent 70%);
  opacity: 0.4;
  border-radius: 50%;
}
.bc-texture {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(201,168,76,0.04) 8px,
    rgba(201,168,76,0.04) 9px
  );
}
.bc-texture-2 {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(201,168,76,0.05) 10px,
    rgba(201,168,76,0.05) 11px
  );
}
.bc-texture-3 {
  background: radial-gradient(ellipse at 30% 30%, rgba(255,200,150,0.1) 0%, transparent 60%);
}
.bc-title {
  font-family: 'DM Serif Display', serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(242,232,224,0.9);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.bc-title-sm { font-size: 0.6rem; }
.bc-title-lg { font-size: 0.55rem; }
.bc-author {
  font-size: 0.55rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}
.bc-badge {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.45rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Reader dots */
.reader-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 200px;
  justify-content: center;
  margin-top: 1rem;
}
.reader-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse 2.4s ease-in-out infinite;
}
.reader-dot:nth-child(2n) { animation-delay: 0.3s; opacity: 0.6; }
.reader-dot:nth-child(3n) { animation-delay: 0.6s; opacity: 0.3; }
.reader-dot:nth-child(5n) { animation-delay: 1.1s; opacity: 0.5; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 0.8; }
}
.reader-label {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--accent);
  text-align: center;
  line-height: 1.2;
}
.reader-label span {
  font-family: 'Source Serif 4', serif;
  font-size: 0.7rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === MANIFESTO === */
.manifesto {
  padding: 8rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}
.manifesto-quote p {
  font-size: 1.25rem;
  color: var(--fg-2);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}
.manifesto-quote p:first-child {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--fg);
  font-style: italic;
}
.manifesto-attribution {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}
.attr-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.manifesto-attribution span {
  font-size: 0.85rem;
  color: var(--fg-3);
  font-style: italic;
}

/* === FEATURES === */
.features {
  padding: 6rem 2rem 8rem;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-header {
  margin-bottom: 5rem;
  max-width: 600px;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.features-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--fg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-2);
  padding: 3rem 2.5rem;
  transition: background 0.3s;
}
.feature-card:hover { background: #1E0D14; }
.feature-card-accent { background: #1A0A12; }
.feature-card:hover.feature-card-accent { background: #220D18; }
.feature-icon {
  margin-bottom: 2rem;
}
.feature-number {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 1rem;
}
.feature-name {
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 1.25rem;
  font-family: 'DM Serif Display', serif;
}
.feature-desc {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.8;
}

/* === STATS === */
.stats {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.stat-item {
  padding: 1rem 3rem;
  text-align: center;
}
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.stat-note {
  font-size: 0.7rem;
  color: var(--fg-3);
  line-height: 1.5;
  font-style: italic;
}
.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
}

/* === CLOSING === */
.closing {
  padding: 10rem 2rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(139,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.closing-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}
.closing-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--fg);
  margin-bottom: 3rem;
  line-height: 1.15;
}
.closing-body {
  font-size: 1.1rem;
  color: var(--fg-2);
  margin-bottom: 2rem;
  line-height: 1.9;
}
.closing-vision {
  margin-top: 4rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(201,168,76,0.04);
}
.vision-icon { flex-shrink: 0; margin-top: 2px; }
.closing-vision p {
  font-size: 0.95rem;
  color: var(--fg-3);
  font-style: italic;
  line-height: 1.8;
}

/* === FOOTER === */
.footer {
  padding: 4rem 2rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand {
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--fg-3);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-3);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-divider { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: 100px; }
  .manifesto-quote p:first-child { font-size: 1.6rem; }
  .stats-inner { grid-template-columns: 1fr; }
}