/* ==========================================================
   THE RIGHT TO WAKE — OFFICIAL CYBERPUNK / CLINICAL STYLESHEET
   Author: Lars O. Horpestad
   Architecture: High-Conversion Transmedia Interface
   ========================================================== */

:root {
  --bg-deep: #05070a;
  --bg-card: #0b0f15;
  --bg-card-hover: #101620;
  --bg-panel: #0d1219;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 229, 255, 0.35);
  --border-amber: rgba(245, 158, 11, 0.4);
  
  --text-primary: #f0f4f8;
  --text-secondary: #8b9bb4;
  --text-muted: #53637a;
  
  --cyan-primary: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.25);
  --amber-primary: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --red-alert: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.25);
  --green-ok: #10b981;

  --font-mono: 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* CRT Scanlines Overlay */
.scanlines {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.02),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.02)
  );
  background-size: 100% 3px, 6px 100%;
  z-index: 9999;
  opacity: 0.6;
}

/* ==========================================================
   SYSTEM STATUS BAR
   ========================================================== */
.sys-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.sys-bar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sys-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan-primary);
  white-space: nowrap;
  font-weight: 600;
}

.blinking-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-primary);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.sys-ticker {
  overflow: hidden;
  white-space: nowrap;
  color: var(--text-secondary);
  text-overflow: ellipsis;
}

.ticker-sep {
  margin: 0 0.6rem;
  color: var(--text-muted);
}

.btn-fast-order {
  background: var(--amber-primary);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px var(--amber-glow);
}

.btn-fast-order:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ==========================================================
   STICKY MOBILE BUY BAR
   ========================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(11, 15, 21, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-bright);
  padding: 0.6rem 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-bar.visible {
  display: flex;
}

.msb-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.msb-thumb {
  width: 32px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.msb-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.msb-sub {
  font-size: 0.72rem;
  color: var(--cyan-primary);
}

.msb-btn {
  background: var(--amber-primary);
  color: #000;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================================================
   CONTAINER & SECTION ESSENTIALS
   ========================================================== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.section-container {
  margin-top: 6rem;
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.section-kicker {
  font-family: var(--font-mono);
  color: var(--cyan-primary);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  max-width: 750px;
}

/* Colors & Helpers */
.amber { color: var(--amber-primary); }
.red { color: var(--red-alert); }
.cyan-text { color: var(--cyan-primary); font-weight: 600; }
.cyan-glow { color: var(--cyan-primary); text-shadow: 0 0 12px var(--cyan-glow); }

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.badge-red {
  background: var(--red-alert);
  color: #fff;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.badge-code {
  color: var(--text-secondary);
}

.badge-time {
  color: var(--cyan-primary);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 850px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan-primary);
  color: #05070a;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber-primary);
  color: var(--amber-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--amber-primary);
  color: #000;
  box-shadow: 0 0 20px var(--amber-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Surveillance Frame */
.surveillance-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.08);
}

.sf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #070a0e;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sf-cam { color: var(--cyan-primary); font-weight: 600; }
.sf-time { color: var(--text-muted); }
.sf-tag { color: var(--amber-primary); font-weight: 600; }

.sf-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.sf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-hud-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hud-target-box {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--cyan-primary);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-primary);
}

.hud-status-chip {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.sf-caption {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: #090d13;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.6;
}

/* ==========================================================
   SECTION 2: EVIDENCE MATRIX (5 DOSSIERS)
   ========================================================== */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.evidence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.evidence-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.highlight-card {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.08);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #080b10;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-bottom: 1px solid var(--border-subtle);
}

.meta-tag { color: var(--text-muted); font-weight: 600; }
.meta-status { color: var(--cyan-primary); }
.meta-status.alert { color: var(--amber-primary); font-weight: 700; }
.meta-status.alert-red { color: var(--red-alert); font-weight: 700; }

.card-img-box {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.evidence-card:hover .card-img {
  transform: scale(1.03);
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.card-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Declassification Interactive Box */
.declassify-box {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.4);
  border-left: 2px solid var(--cyan-primary);
  padding: 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
}

.dec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan-primary);
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.dec-text {
  color: var(--text-primary);
  line-height: 1.5;
}

.redacted {
  background: #1a222d;
  color: #1a222d;
  padding: 0 0.3rem;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  border-bottom: 1px dashed var(--amber-primary);
}

.redacted:hover {
  background: #283547;
}

.redacted.revealed {
  background: rgba(0, 229, 255, 0.12);
  color: var(--text-primary);
  border-bottom: 1px solid var(--cyan-primary);
}

.demo-redact {
  background: #1a222d;
  color: #1a222d;
  padding: 0 0.3rem;
}

/* ==========================================================
   SECTION 3: QUANTITATIVE TELEMETRY
   ========================================================== */
.telemetry-banner-box {
  background: #000;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.telemetry-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.telemetry-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tag-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.tag-card.highlight-border {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.05);
}

.tag-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.tag-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.quote-terminal-box {
  background: #080c12;
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
}

.qtb-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.qtb-author { color: var(--amber-primary); font-weight: 700; }
.qtb-code { color: var(--text-muted); }

.qtb-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
}

/* ==========================================================
   SECTION 4: BOOK SHOWCASE & CONVERSION HUB
   ========================================================== */
.book-showcase-section {
  margin-top: 6rem;
  background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.08), transparent 60%),
              radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.06), transparent 60%),
              var(--bg-panel);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.reveal-glitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-primary);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--cyan-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
}

.blinking-tag {
  background: var(--cyan-primary);
  color: #000;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.book-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: center;
}

.book-visual-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-cover-container {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
}

.book-3d-render {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.comp-titles-pill {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  text-align: center;
}

.comp-titles-pill strong {
  color: var(--text-primary);
  margin: 0 0.25rem;
}

.book-eyebrow {
  font-family: var(--font-mono);
  color: var(--amber-primary);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.book-main-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.1;
}

.author-byline {
  font-size: 1rem;
  color: var(--cyan-primary);
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 0.3rem;
  margin-bottom: 1.5rem;
}

/* Pricing Grid */
.price-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.price-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.ku-badge {
  border-color: var(--amber-primary);
  background: rgba(245, 158, 11, 0.08);
}

.badge-accent {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

.ku-badge .badge-accent {
  color: var(--amber-primary);
}

.badge-price {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0.15rem 0;
}

.badge-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.book-synopsis {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.book-synopsis p {
  margin-bottom: 0.85rem;
}

.book-synopsis strong {
  color: var(--text-primary);
}

/* Amazon Purchase CTA Group */
.purchase-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-buy-amazon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--amber-glow);
  transition: all 0.2s ease;
}

.btn-buy-amazon:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

.buy-lead {
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.buy-sub {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.secondary-buy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-buy-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-buy-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.guarantee-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================
   SECTION 5: IN-PAGE CHAPTER 1 READER (UNABRIDGED)
   ========================================================== */
.reading-room-wrapper {
  background: #080b0f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3.5rem 2.5rem;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.8), 0 10px 40px rgba(0,0,0,0.5);
}

.reading-paper {
  max-width: 740px;
  margin: 0 auto;
}

.ch-heading-block {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2.5rem;
}

.ch-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-primary);
  letter-spacing: 2.5px;
  font-weight: 600;
}

.ch-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 600;
  color: #fff;
  margin: 0.6rem 0;
  letter-spacing: -0.5px;
}

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

.prose-body {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.9;
  color: #d1d5db;
}

.prose-body p {
  margin-bottom: 1.6rem;
  text-rendering: optimizeLegibility;
}

.prose-body em {
  color: #fff;
  font-style: italic;
}

.ch-divider {
  text-align: center;
  margin: 3rem 0;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  letter-spacing: 6px;
  font-size: 1.1rem;
  opacity: 0.7;
}

.lead-dropcap::first-letter {
  font-size: 3.8rem;
  float: left;
  line-height: 0.85;
  margin-right: 0.75rem;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 900;
}

.ch-cliffhanger-fade {
  margin-top: 4rem;
  padding-top: 1rem;
}

.ch-cta-card {
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.08), transparent 70%), var(--bg-card);
  border: 1px solid var(--cyan-primary);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.18);
}

.cliff-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-primary);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.cliff-title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cliff-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.cliff-btn-wrap {
  display: flex;
  justify-content: center;
}

.btn-large {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
  box-shadow: 0 0 25px var(--cyan-glow);
}

/* ==========================================================
   SECTION 6: INTERACTIVE TERMINAL QUERY
   ========================================================== */
.terminal-shell {
  background: #040608;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.term-titlebar {
  background: #090d13;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red-dot { background: #ef4444; }
.amber-dot { background: #f59e0b; }
.green-dot { background: #10b981; }

.term-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.term-screen {
  padding: 1.25rem;
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.term-line {
  margin-bottom: 0.5rem;
}

.sys-msg { color: var(--cyan-primary); }
.term-res-title { color: #fff; font-weight: 700; margin-top: 0.5rem; }
.term-res-body { color: var(--text-secondary); }

.term-chip {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  cursor: pointer;
  margin: 0 0.15rem;
}

.term-chip:hover {
  background: var(--cyan-primary);
  color: #000;
}

.term-input-row {
  display: flex;
  align-items: center;
  background: #080c10;
  border-top: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  gap: 0.75rem;
}

.term-prompt {
  color: var(--amber-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

#termInput {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.btn-term-run {
  background: var(--cyan-primary);
  border: none;
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================
   SECTION 7: ABOUT THE AUTHOR (PRESTIGE REDESIGN)
   ========================================================== */
.author-panoramic-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2.35/1;
  background: #000;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.author-panoramic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.author-banner-badge {
  position: absolute;
  bottom: 0.85rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.author-dossier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.author-dossier-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.author-headshot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-circle-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan-primary);
  box-shadow: 0 0 20px var(--cyan-glow);
  margin-bottom: 1rem;
}

.author-origin-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.author-role-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber-primary);
  margin-top: 0.2rem;
}

.author-dossier-text {
  display: flex;
  flex-direction: column;
}

.author-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-primary);
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.author-headline {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.author-p-lead {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.author-p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.author-philosophic-quote {
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid var(--cyan-primary);
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  font-style: italic;
  font-size: 1.02rem;
  color: #e2e8f0;
  line-height: 1.65;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.author-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-author-link {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-author-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-author-link.highlight {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-primary);
  color: var(--amber-primary);
  font-weight: 700;
}

.btn-author-link.highlight:hover {
  background: var(--amber-primary);
  color: #000;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: #040608;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2.5rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.footer-legal {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.footer-isbn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fl-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-links-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: #fff;
}

.btn-copy-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.toast-copied {
  display: none;
  font-size: 0.78rem;
  color: var(--green-ok);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================== */
@media (max-width: 1024px) {
  .book-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .author-dossier-grid {
    grid-template-columns: 160px 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .sys-ticker {
    display: none;
  }

  .author-panoramic-frame {
    aspect-ratio: 16/9;
  }

  .author-dossier-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .author-headshot-box {
    margin: 0 auto;
  }

  .author-footer-actions {
    justify-content: center;
  }

  .author-philosophic-quote {
    text-align: left;
  }

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

  .price-strip {
    grid-template-columns: 1fr;
  }

  .secondary-buy-row {
    grid-template-columns: 1fr;
  }

  .reading-room-wrapper {
    padding: 2rem 1.25rem;
  }

  .prose-body {
    font-size: 1.05rem;
  }

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