/* Import refined academic fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

/* Academic Color Palette */
:root {
  /* Primary - Deep Academic Blue */
  --primary: #1e3a5f;
  --primary-light: #2d4a7c;
  --primary-dark: #0f1f3d;
  
  /* Accent - Subtle Warm */
  --accent: #d4a574;
  --accent-light: #e4c5a4;
  
  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-light: #718096;
  
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  
  /* Borders & Lines */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e0;
  
  /* Special */
  --highlight: rgba(30, 58, 95, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
  
  /* Typography */
  --font-serif: 'Crimson Text', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--primary);
  margin-top: 2em;
  margin-bottom: 0.8em;
}

h1 { 
  font-size: 2.5rem; 
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 { 
  font-size: 1.875rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

h3 { 
  font-size: 1.375rem;
  color: var(--primary-light);
}

h4 {
  font-size: 1.125rem;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Selection styling */
::selection {
  background: var(--highlight);
  color: var(--primary);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

/* Clean container system */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wide-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Enhanced Top Navigation */
.top-nav {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-bottom: 1px solid var(--primary-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.brand-text {
  color: white;
  letter-spacing: -0.02em;
}

.language-selector {
  text-align: right;
}

#language-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

#language-select:hover,
#language-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  outline: none;
}

#language-select option {
  background: var(--primary-dark);
  color: white;
}

/* Hero Section - Enhanced */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 5rem 0 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.6;
  z-index: 0;
}

.hero .container {
  max-width: 960px;
  position: relative;
  z-index: 1;
}

.hero-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.1;
}

.hero h1::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  margin: 1rem auto;
  border-radius: 2px;
}

.subtitle {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.tagline {
  font-style: italic;
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 650px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--highlight);
  border-radius: 6px;
  border-left: 4px solid var(--accent);
  line-height: 1.6;
}

/* Enhanced Main Navigation */
.main-nav {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 80px; /* Account for top nav height */
  z-index: 90;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.nav-number {
  background: var(--primary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
  background: var(--highlight);
}

.nav-links a:hover .nav-number {
  background: var(--accent);
  transform: scale(1.1);
}

.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--highlight);
}

.nav-links a.active .nav-number {
  background: var(--accent);
}

/* Main content */
main {
  background: var(--bg-primary);
}

/* Consistent spacing */
.content-section {
  margin: 4rem auto;
  padding: 0;
  max-width: 720px;
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSubtle 0.6s ease-out forwards;
}

.content-section:first-of-type {
  margin-top: 2rem;
}

.content-section h2 {
  text-align: left;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Revelation section */
.revelation-section {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 4px;
  margin: 3rem auto;
  max-width: 720px;
  border-left: 4px solid var(--accent);
}

.big-insight {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin: 2rem 0;
  font-family: var(--font-sans);
}

.revelation-cta {
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
}

/* TL;DR Box - Academic abstract style */
.tldr-box {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  margin: 3rem auto;
  font-family: var(--font-sans);
  max-width: 720px;
  border-radius: 4px;
}

.tldr-box h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.tldr-box ol {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-primary);
}

.tldr-box li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.tldr-conclusion {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Question Groups */
.question-group {
  margin: 3rem 0;
}

.group-title {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.group-intro {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.question-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  margin: 0.75rem 0;
  border-radius: 4px;
  position: relative;
}

.question-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.question-item p {
  margin: 0;
  font-size: 1.05rem;
}

.questions-conclusion {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--primary);
  border-left: 4px solid var(--accent);
}

/* Logic Steps */
.logic-step {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.logic-step:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.logic-step h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: none;
  padding-bottom: 0;
}

.step-content {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.logic-step ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.logic-step li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.logic-step li:last-child {
  border-bottom: none;
}

.logic-step li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.key-insight {
  background: var(--highlight);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
  font-style: italic;
}

.conclusion {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--primary);
  border-left: 4px solid var(--accent);
}

/* Mathematical Proof Section */
.proof-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  padding: 2.5rem;
  margin: 4rem auto;
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  max-width: 720px;
}

.proof-section h2 {
  text-align: center;
  border-bottom: none;
  margin-bottom: 2rem;
  margin-top: 0;
}

.proof-content {
  font-family: var(--font-sans);
}

.proof-step {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.proof-step:last-child {
  border-bottom: none;
}

.proof-number {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 600;
  min-width: 2rem;
  font-size: 0.875rem;
}

.proof-step.qed {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--highlight);
  border: 1px solid var(--border-medium);
  justify-content: center;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
}

/* Visual Metaphors */
.visual-metaphor {
  background: var(--bg-secondary);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

.visual-metaphor h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

/* Comparison Sections */
.efficiency-comparison,
.novelty-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.comparison-scarcity,
.comparison-abundance,
.novelty-human,
.novelty-datacenter {
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
}

.comparison-scarcity {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
}

.comparison-abundance {
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
}

.novelty-human {
  background: var(--primary);
  color: white;
}

.novelty-datacenter {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

/* ASCII Comparison - Refined */
.ascii-comparison {
  background: var(--primary-dark);
  border-radius: 4px;
  padding: 2rem;
  margin: 2rem 0;
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}

.ascii-comparison pre {
  color: #e0e0e0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* Timeline - Academic Style */
.timeline {
  border-left: 2px solid var(--border-medium);
  padding-left: 2rem;
  margin-left: 1rem;
  margin: 3rem 0;
}

.timeline-period {
  margin: 2rem 0;
  position: relative;
}

.timeline-period::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: var(--bg-primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.timeline-period h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-period ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.timeline-period li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* Counter Arguments */
.counter-argument {
  background: var(--bg-secondary);
  border-radius: 4px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent);
  overflow: hidden;
}

.counter-argument h3 {
  background: var(--bg-tertiary);
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.counter-answer {
  padding: 1.5rem;
}

.counter-answer p {
  margin: 0;
  font-size: 1rem;
}

/* Implications Grid */
.implications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.implication-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.2s ease;
}

.implication-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.implication-card h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  border-bottom: none;
  padding-bottom: 0;
}

.implication-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

/* Why Now Section */
.critical-section {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 4px;
  margin: 4rem auto;
  border-left: 4px solid var(--accent);
  max-width: 720px;
}

.critical-section h2 {
  margin-top: 0;
}

.why-now-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.reason {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.reason:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.reason h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  border-bottom: none;
  padding-bottom: 0;
}

.reason p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* What You Can Do Today */
.what-you-can-do {
  margin: 4rem auto;
  padding: 3rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  border-left: 4px solid var(--accent);
  max-width: 720px;
}

.what-you-can-do h3 {
  color: var(--primary);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 0;
  font-weight: 600;
  border-bottom: none;
  padding-bottom: 0;
}

.concrete-actions {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.action-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.action-step:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.step-number {
  background: var(--primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

.step-content h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.step-content p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  background: var(--bg-secondary);
  padding: 3rem;
  margin: 4rem auto;
  text-align: center;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
  max-width: 720px;
}

.cta-section h2 {
  margin-top: 0;
  text-align: center;
}

.cta-main {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-family: var(--font-sans);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.action-item {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.action-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.action-item h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  border-bottom: none;
  padding-bottom: 0;
}

.action-item p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
}

.share-section {
  margin: 2rem 0;
}

.share-section p {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--primary);
  background: var(--bg-primary);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.share-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hashtag-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.hashtag-section p {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  margin-bottom: 0.5rem;
}

.hashtags {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 400;
}

.train-message {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-sans);
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
}

/* Subtle Animations */
@keyframes fadeInSubtle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section:nth-child(2) { animation-delay: 0.1s; }
.content-section:nth-child(3) { animation-delay: 0.2s; }
.content-section:nth-child(4) { animation-delay: 0.3s; }
.content-section:nth-child(5) { animation-delay: 0.4s; }

/* Mobile Optimization */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container, .wide-container {
    padding: 0 1rem;
  }
  
  .content-section {
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .proof-section,
  .revelation-section,
  .cta-section,
  .what-you-can-do,
  .critical-section,
  .bridge-content,
  .early-signals,
  .what-if-box {
    padding: 1.5rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero-content {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.125rem;
  }
  
  .tagline {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .brand {
    font-size: 1rem;
  }
  
  .brand-text {
    display: none;
  }
  
  .main-nav {
    top: 68px; /* Adjusted for smaller top nav */
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  
  .nav-links a {
    padding: 0.75rem 1rem;
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .action-step {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .efficiency-comparison,
  .novelty-comparison,
  .why-now-content,
  .action-grid,
  .implications-grid {
    grid-template-columns: 1fr;
  }
  
  .share-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .share-btn {
    width: 100%;
    max-width: 250px;
  }
  
  .timeline {
    padding-left: 1.5rem;
    margin-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h1::after {
    width: 60px;
    height: 2px;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .tagline {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  .container, .wide-container {
    padding: 0 0.75rem;
  }
  
  .nav-container {
    padding: 0 0.75rem;
  }
  
  .top-nav {
    padding: 0.75rem 0;
  }
  
  .brand {
    font-size: 0.95rem;
  }
  
  .nav-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .nav-number {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
  
  .content-section {
    padding: 0 0.75rem;
  }
  
  .proof-section,
  .revelation-section,
  .cta-section,
  .what-you-can-do,
  .critical-section,
  .bridge-content,
  .early-signals,
  .what-if-box {
    padding: 1rem;
  }
  
  /* Stack timeline vertically on very small screens */
  .timeline-period::before {
    left: -1.5rem;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  /* Ensure text remains readable in new sections */
  .bridge-key p,
  .what-if-box p {
    font-size: 1rem;
  }
  
  .concrete-example .example-note {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .question-item,
  .logic-step,
  .proof-step,
  .action-step,
  .implication-card,
  .reason,
  .bridge-content,
  .early-signals,
  .concrete-example,
  .what-if-box {
    border-width: 2px;
  }
}

/* New section styles for added content */

/* Bridge section */
.bridge-content {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

.bridge-content .acknowledgment {
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  border-left: 3px solid var(--primary);
}

.bridge-key {
  background: var(--highlight);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 2rem;
  border-left: 4px solid var(--primary);
  font-family: var(--font-sans);
}

.bridge-key p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

/* Early signals section */
.early-signals {
  background: var(--bg-tertiary);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

.early-signals h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.early-signals ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.early-signals li {
  padding: 0.75rem 0;
  position: relative;
  padding-left: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.early-signals li:last-child {
  border-bottom: none;
}

.early-signals li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.early-signals p {
  font-style: italic;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  color: var(--primary);
  font-weight: 500;
}

/* Concrete example box */
.concrete-example {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  border-left: 4px solid var(--primary);
  font-family: var(--font-sans);
}

.example-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.example-conclusion {
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  text-align: center;
  font-style: italic;
}

/* Enhanced proof note */
.proof-note {
  background: var(--bg-secondary);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
  font-style: italic;
}

.proof-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* What if we're right box */
.what-if-box {
  background: var(--highlight);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 4px;
  border-left: 4px solid var(--primary);
  text-align: center;
}

.what-if-box h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.375rem;
  border-bottom: none;
  padding-bottom: 0;
}

.what-if-box p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.what-if-box p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary);
  font-style: italic;
}

/* Fix nav overlap issue */
.main-nav {
  position: sticky;
  top: 64px; /* Height of top nav */
  z-index: 90;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Fix timeline positioning issue */
.timeline {
  border-left: 2px solid var(--border-medium);
  padding-left: 2rem;
  margin-left: 1rem;
  margin: 3rem 0 3rem 1rem; /* Fix duplicate margin declaration */
}

/* Step 5 - Distinction Section */
.distinction-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

.empty-side,
.meaningful-side {
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-sans);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.empty-side {
  background: var(--bg-tertiary);
  border-left: 4px solid #dc3545;
}

.meaningful-side {
  background: var(--bg-secondary);
  border-left: 4px solid #28a745;
}

.empty-side:hover,
.meaningful-side:hover {
  box-shadow: var(--shadow-md);
}

.empty-side h3,
.meaningful-side h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  border-bottom: none;
  padding-bottom: 0;
}

.empty-side h3 {
  color: #dc3545;
}

.meaningful-side h3 {
  color: #28a745;
}

.empty-side p,
.meaningful-side p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.vs {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.distinction-explanation {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
  border-left: 4px solid var(--accent);
  font-style: italic;
  text-align: center;
}

.distinction-explanation strong {
  color: var(--primary);
  font-style: normal;
}

.entropy-engine-quote {
  background: var(--highlight);
  border: none;
  border-left: 4px solid var(--primary);
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  text-align: center;
}

.entropy-engine-quote p {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.entropy-engine-quote cite {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: normal;
  display: block;
}

/* AI Validation Section */
.validation-section {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 4px;
  margin: 4rem auto;
  border-left: 4px solid var(--accent);
  max-width: 720px;
}

.validation-section h2 {
  margin-top: 0;
  color: var(--primary);
  text-align: center;
}

.validation-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

.validation-quotes {
  margin: 2rem 0;
}

.ai-quote {
  background: var(--highlight);
  border: none;
  border-left: 4px solid var(--primary);
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  text-align: center;
  position: relative;
}

.ai-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: Georgia, serif;
  opacity: 0.5;
}

.ai-quote p {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.ai-quote cite {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: normal;
  display: block;
  margin-top: 1rem;
}

.validation-points {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 4px;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
}

.validation-points h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.validation-points ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.validation-points li {
  padding: 1rem 0;
  position: relative;
  padding-left: 2rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 1rem;
  line-height: 1.6;
}

.validation-points li:last-child {
  border-bottom: none;
}

.validation-points li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
  top: 1rem;
}

.testable-future {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: 4px;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
}

.testable-future h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: none;
  padding-bottom: 0;
}

.testable-future p {
  margin: 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.validation-conclusion {
  background: var(--highlight);
  padding: 2rem;
  border-radius: 4px;
  margin-top: 2rem;
  border-left: 4px solid var(--primary);
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-style: italic;
}

.validation-conclusion strong {
  color: var(--primary);
  font-style: normal;
}

/* Mobile adjustments for validation section */
@media (max-width: 768px) {
  .validation-section {
    padding: 2rem;
  }
  
  .validation-intro {
    font-size: 1rem;
  }
  
  .ai-quote p {
    font-size: 1.1rem;
  }
  
  .validation-points,
  .testable-future {
    padding: 1.5rem;
  }
  
  .validation-conclusion {
    padding: 1.5rem;
    font-size: 1rem;
  }
}

/* Mobile adjustments for distinction section */
@media (max-width: 768px) {
  .distinction-visual {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .vs {
    justify-self: center;
    grid-row: 2;
  }
  
  .meaningful-side {
    grid-row: 3;
  }
}

/* Print styles */
@media print {
  .hero,
  .cta-section,
  .share-buttons,
  .top-nav,
  .main-nav,
  footer,
  .what-you-can-do,
  .what-if-box,
  .bridge-content .acknowledgment {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
    background: white;
  }
  
  .content-section {
    margin: 1rem 0;
    padding: 0;
    break-inside: avoid;
  }
  
  .ascii-comparison {
    background: white;
    border: 1px solid black;
  }
  
  .ascii-comparison pre {
    color: black;
  }
}