/* ============================================================
   LLM Wiki — Landing Page Styles
   Design: "The Scholar's Library" — warm, refined, editorial
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,500&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ============================================================
   CSS Custom Properties — Dark Theme (default)
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-primary: #1a1a17;
  --bg-secondary: #21211e;
  --bg-tertiary: #292926;
  --bg-code: #151513;
  --bg-elevated: #2e2e2a;

  /* Text */
  --text-primary: #e6e2d8;
  --text-secondary: #b5b0a4;
  --text-muted: #7a766a;
  --text-heading: #f0ece2;

  /* Accent — Warm Amber */
  --accent: #d4a853;
  --accent-hover: #e2bc65;
  --accent-dim: #8a6d35;
  --accent-glow: rgba(212, 168, 83, 0.15);

  /* Secondary Accent — Muted Teal */
  --accent-2: #7a9e9f;
  --accent-2-hover: #8fb4b5;

  /* Semantic Colors */
  --green: #7b9e6d;
  --red: #c06a5a;
  --orange: #c98d4e;
  --blue: #7b8faa;

  /* Borders */
  --border: #3a3832;
  --border-light: #2e2d28;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Layout */
  --max-width: 1100px;
  --max-width-text: 720px;
  --nav-height: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 350ms ease;
}

/* ============================================================
   Light Theme
   ============================================================ */
[data-theme="light"] {
  --bg-primary: #f8f5ee;
  --bg-secondary: #f2efe6;
  --bg-tertiary: #ebe7dc;
  --bg-code: #f0ede4;
  --bg-elevated: #ffffff;

  --text-primary: #2d2a22;
  --text-secondary: #5c574a;
  --text-muted: #8c8676;
  --text-heading: #1a1812;

  --accent: #b8860b;
  --accent-hover: #9a7008;
  --accent-dim: #d4a853;
  --accent-glow: rgba(184, 134, 11, 0.08);

  --accent-2: #5a8a8c;
  --accent-2-hover: #4a787a;

  --border: #d8d4c8;
  --border-light: #e8e4dc;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

::selection {
  background: var(--accent-dim);
  color: var(--bg-primary);
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-heading);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: var(--space-md); }

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

a:hover {
  color: var(--accent-hover);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-code);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--border-light);
}

pre {
  font-family: var(--font-mono);
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--text-primary);
  font-size: inherit;
}

strong { font-weight: 600; color: var(--text-heading); }

ul, ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

li { margin-bottom: var(--space-sm); }

li::marker { color: var(--accent-dim); }

blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-sm) var(--space-lg);
  margin: var(--space-lg) 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-3xl) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-heading);
  border-bottom: 2px solid var(--border);
}

tr:hover td {
  background: var(--bg-secondary);
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--text {
  max-width: var(--max-width-text);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: background var(--transition-slow), border var(--transition-slow);
}

.nav--scrolled {
  background: var(--bg-secondary);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a17;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__links li { margin: 0; }

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent);
}

.nav__link.active {
  border-bottom-color: var(--accent);
}

.nav__github {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav__github:hover {
  color: var(--accent);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Mobile Menu */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: var(--space-sm);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-slow);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  position: relative;
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  position: relative;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
  position: relative;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #1a1a17;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #1a1a17;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Hero Pipeline Visual */
.hero__pipeline {
  margin-top: var(--space-4xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
}

.pipeline-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  text-align: center;
  transition: all var(--transition);
}

.pipeline-node:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pipeline-node__dir {
  font-weight: 700;
  color: var(--accent);
}

.pipeline-node__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pipeline-arrow {
  color: var(--accent-dim);
  font-size: 1.5rem;
  font-family: var(--font-mono);
}

@media (max-width: 640px) {
  .hero__pipeline {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .pipeline-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================================
   Features Grid
   ============================================================ */
.features {
  background: var(--bg-secondary);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.feature-card__command {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: block;
}

.feature-card__title {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

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

/* ============================================================
   How It Works — Steps
   ============================================================ */
.steps {
  position: relative;
}

.steps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.steps__list::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.step:last-child { margin-bottom: 0; }

.step__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.step:hover .step__num {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.step__content {
  padding-top: var(--space-sm);
}

.step__title {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.step__command {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-code);
  color: var(--accent);
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border-light);
}

.step__desc {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0;
}

@media (max-width: 640px) {
  .step {
    gap: var(--space-md);
  }

  .step__num {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .steps__list::before {
    left: 22px;
  }
}

/* ============================================================
   Philosophy — RAG vs Wiki
   ============================================================ */
.philosophy {
  background: var(--bg-secondary);
  overflow: hidden;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.comparison--with-divider {
  grid-template-columns: 1fr auto 1fr;
}

.compare-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-slow);
}

.compare-card--old {
  opacity: 0.7;
}

.compare-card--new {
  border-color: var(--accent-dim);
  box-shadow: 0 0 40px var(--accent-glow);
}

.compare-card__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  display: block;
}

.compare-card--old .compare-card__label { color: var(--text-muted); }
.compare-card--new .compare-card__label { color: var(--accent); }

.compare-card__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.compare-card__flow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.compare-card__flow span {
  color: var(--accent);
  font-weight: 600;
}

.compare-card__list {
  list-style: none;
  padding: 0;
}

.compare-card__list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.compare-card--old .compare-card__list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.compare-card--new .compare-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  padding: var(--space-md) 0;
}

@media (max-width: 768px) {
  .comparison,
  .comparison--with-divider {
    grid-template-columns: 1fr;
  }

  .compare-divider {
    transform: rotate(90deg);
    padding: 0;
  }
}

/* ============================================================
   Directory Tree
   ============================================================ */
.dir-tree {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
  position: relative;
}

.dir-tree__line {
  color: var(--text-secondary);
}

.dir-tree__dir {
  color: var(--accent-2);
  font-weight: 600;
}

.dir-tree__file {
  color: var(--text-primary);
}

.dir-tree__comment {
  color: var(--text-muted);
  font-style: italic;
}

.dir-tree__highlight {
  color: var(--accent);
}

/* Ownership Table */
.ownership {
  margin-top: var(--space-2xl);
}

.ownership-table th:first-child {
  font-family: var(--font-mono);
  color: var(--accent-2);
}

.ownership-table .badge {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--human { background: var(--accent-dim); color: var(--bg-primary); }
.badge--llm { background: var(--accent-2); color: var(--bg-primary); }
.badge--both { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.badge--none { background: transparent; color: var(--text-muted); border: 1px solid var(--border-light); }

/* ============================================================
   CTA Section
   ============================================================ */
.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta__subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.cta__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer a {
  color: var(--text-secondary);
}

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

.footer__divider {
  color: var(--border);
}

/* ============================================================
   Docs Page
   ============================================================ */
.docs {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.docs__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.docs__body {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.docs__body h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.docs__body h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.docs__body h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.docs__body p {
  line-height: 1.8;
}

.doc-callout {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  font-size: 0.95rem;
}

.doc-callout strong {
  color: var(--accent-2);
}

.doc-callout--warning {
  border-left-color: var(--orange);
}

.doc-callout--warning strong {
  color: var(--orange);
}

.doc-callout--tip {
  border-left-color: var(--green);
}

.doc-callout--tip strong {
  color: var(--green);
}

/* Inline code in docs */
.docs__body code {
  white-space: nowrap;
}

/* Doc comparison table */
.doc-table {
  margin: var(--space-xl) 0;
}

.doc-table td:first-child {
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
}

/* ============================================================
   Changelog Page
   ============================================================ */
.changelog {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.changelog__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.changelog__list {
  max-width: var(--max-width-text);
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.changelog-entry {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  transition: all var(--transition);
}

.changelog-entry:hover {
  border-color: var(--border);
}

.changelog-entry__version {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-code);
  padding: 0.2em 0.75em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-md);
}

.changelog-entry__date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: var(--space-sm);
}

.changelog-entry__title {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.changelog-entry ul {
  margin: 0;
  padding-left: var(--space-xl);
}

.changelog-entry li {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.changelog-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1em 0.5em;
  border-radius: 3px;
  margin-right: var(--space-sm);
}

.changelog-tag--feature { background: var(--accent-dim); color: var(--bg-primary); }
.changelog-tag--fix { background: var(--orange); color: var(--bg-primary); }
.changelog-tag--improve { background: var(--accent-2); color: var(--bg-primary); }

/* ============================================================
   404 Page
   ============================================================ */
.page-404 {
  padding-top: calc(var(--nav-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  text-align: center;
}

.page-404__code {
  font-family: var(--font-mono);
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.page-404__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in--1 { animation-delay: 0.1s; }
.animate-in--2 { animation-delay: 0.2s; }
.animate-in--3 { animation-delay: 0.3s; }
.animate-in--4 { animation-delay: 0.4s; }
.animate-in--5 { animation-delay: 0.5s; }
.animate-in--6 { animation-delay: 0.6s; }

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  .nav, .footer, .theme-toggle, .nav__toggle { display: none !important; }
  body { font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
