/* ============================================
   o.ml — Dual Theme System
   MiroFish (light, orange) + Life-bot (teal, animated)
   ============================================ */

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

/* ============================================
   Theme: MiroFish (default) — Light + Orange
   ============================================ */

:root,
[data-theme="mirofish"] {
  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-card: #FAFAFA;
  --bg-hover: #F5F5F5;
  --bg-code: rgba(0, 0, 0, 0.04);
  --bg-nav: #FFFFFF;

  /* Borders */
  --border: #E5E5E5;
  --border-strong: #CCC;

  /* Text */
  --text: #000000;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-dim: #BBBBBB;

  /* Accent — Orange */
  --accent: #FF4500;
  --accent-light: #FF6B35;
  --accent-bg: rgba(255, 69, 0, 0.08);
  --accent-bg-hover: rgba(255, 69, 0, 0.14);
  --accent-border: rgba(255, 69, 0, 0.2);

  /* Gradients */
  --gradient-hero: linear-gradient(90deg, #000000 0%, #444444 100%);
  --gradient-accent: linear-gradient(135deg, #FF4500, #FF6B35);

  /* Card hover */
  --card-hover-shadow: rgba(0, 0, 0, 0.08);
  --card-featured-shadow: rgba(255, 69, 0, 0.1);

  /* Glow (none for MiroFish) */
  --glow: transparent;

  /* Fonts */
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', Consolas, monospace;

  /* Layout */
  --radius: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --max-width: 1400px;
  --content-width: 720px;

  /* Hero decoration */
  --hero-bg-image: url('../img/chip-pattern.svg');
  --hero-bg-opacity: 1;
}

/* ============================================
   Theme: Life-bot — Teal/Cyan/Green + Animated
   ============================================ */

[data-theme="lifebot"] {
  /* Backgrounds — soft warm light */
  --bg: hsl(200, 25%, 97%);
  --bg-card: hsl(0, 0%, 100%);
  --bg-hover: hsl(185, 30%, 95%);
  --bg-code: rgba(0, 80, 80, 0.06);
  --bg-nav: hsla(200, 25%, 97%, 0.92);

  /* Borders — cool subtle */
  --border: hsl(200, 20%, 88%);
  --border-strong: hsl(200, 20%, 78%);

  /* Text — deep teal */
  --text: hsl(200, 60%, 15%);
  --text-secondary: hsl(200, 20%, 35%);
  --text-muted: hsl(200, 20%, 50%);
  --text-dim: hsl(200, 20%, 65%);

  /* Accent — Teal/Cyan */
  --accent: hsl(185, 70%, 40%);
  --accent-light: hsl(145, 55%, 45%);
  --accent-bg: hsla(185, 70%, 55%, 0.1);
  --accent-bg-hover: hsla(185, 70%, 55%, 0.18);
  --accent-border: hsla(185, 70%, 55%, 0.25);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(195, 55%, 22%) 0%, hsl(185, 70%, 40%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(185, 70%, 55%) 0%, hsl(145, 55%, 45%) 100%);

  /* Card hover */
  --card-hover-shadow: hsla(185, 70%, 55%, 0.12);
  --card-featured-shadow: hsla(185, 70%, 55%, 0.15);

  /* Glow */
  --glow: hsla(185, 70%, 55%, 0.15);

  /* Fonts — Inter body, Space Grotesk headings */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout — rounded corners */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 16px;

  /* Hero decoration */
  --hero-bg-image: none;
  --hero-bg-opacity: 0;
}

/* Life-bot nav backdrop blur */
[data-theme="lifebot"] .nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Life-bot glow on cards */
[data-theme="lifebot"] .card:hover {
  box-shadow: 0 4px 20px var(--card-hover-shadow), 0 0 30px -10px var(--glow);
}

[data-theme="lifebot"] .card.featured {
  box-shadow: 0 0 20px -8px var(--glow);
}

/* Life-bot metric cards get gradient left border */
[data-theme="lifebot"] .metric-card {
  border-left: 3px solid hsl(185, 70%, 55%);
  border-radius: var(--radius-sm);
}

/* Life-bot status dot is cyan */
[data-theme="lifebot"] .status-dot {
  color: hsl(185, 70%, 55%);
}

/* Life-bot orange-tag becomes teal */
[data-theme="lifebot"] .orange-tag {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-border);
}

/* Life-bot decoration square is a circle */
[data-theme="lifebot"] .decoration-square {
  background: var(--gradient-accent);
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

/* Life-bot headings use Space Grotesk */
[data-theme="lifebot"] h1,
[data-theme="lifebot"] h2,
[data-theme="lifebot"] h3,
[data-theme="lifebot"] .section-title {
  font-family: 'Space Grotesk', sans-serif;
}

/* Life-bot card tags */
[data-theme="lifebot"] .card-tag {
  border-radius: 20px;
}

/* Life-bot section dividers */
[data-theme="lifebot"] .section-divider {
  border-image: linear-gradient(90deg, transparent, hsl(185, 70%, 55%, 0.3), transparent) 1;
}

/* ============================================
   Animated Background Canvas
   ============================================ */

#animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: none;
  background: transparent;
}

[data-theme="lifebot"] #animated-bg {
  display: block;
  background: linear-gradient(180deg, hsl(200, 25%, 97%) 0%, hsl(185, 30%, 95%) 100%);
}

/* Life-bot: all content above canvas */
[data-theme="lifebot"] .nav {
  position: relative;
  z-index: 10;
}

[data-theme="lifebot"] main {
  position: relative;
  z-index: 1;
  background: transparent;
}

[data-theme="lifebot"] .hero {
  background: transparent;
}

/* Sections translucent — creatures clearly visible through */
[data-theme="lifebot"] .section {
  background: hsla(200, 25%, 97%, 0.45);
}

[data-theme="lifebot"] .footer {
  position: relative;
  z-index: 1;
  background: hsla(200, 25%, 97%, 0.55);
}

/* Cards need slightly more opacity so text stays readable */
[data-theme="lifebot"] .card {
  background: hsla(0, 0%, 100%, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ============================================
   Theme Toggle Button
   ============================================ */

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

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

.theme-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

/* MiroFish toggle shows teal/wave icon */
[data-theme="mirofish"] .theme-toggle .toggle-mirofish { display: none; }
[data-theme="mirofish"] .theme-toggle .toggle-lifebot { display: inline; }

/* Life-bot toggle shows orange/chip icon */
[data-theme="lifebot"] .theme-toggle .toggle-mirofish { display: inline; }
[data-theme="lifebot"] .theme-toggle .toggle-lifebot { display: none; }

/* ============================================
   Hero Illustrations
   ============================================ */

.hero-illustration {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

.hero-illustration.top-right {
  top: -20px;
  right: -40px;
  width: 300px;
  height: 220px;
}

.hero-illustration.bottom-left {
  bottom: -20px;
  left: -40px;
  width: 360px;
  height: 200px;
}

/* Life-bot hero has logo float */
.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px hsla(185, 70%, 55%, 0.3));
  margin-bottom: 24px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   Reset
   ============================================ */

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.4s, color 0.3s;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-brand-logo {
  height: 32px;
  width: auto;
}

/* ============================================
   Life.bot — Fixed bottom-right
   ============================================ */

.lifebot-fixed {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.lifebot-fixed:hover {
  color: inherit;
  filter: drop-shadow(0 0 20px hsla(185, 70%, 55%, 0.5));
  transform: translateY(-2px);
}

.lifebot-fixed-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px hsla(185, 70%, 55%, 0.25));
}

.lifebot-fixed-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, hsl(185, 70%, 55%), hsl(145, 55%, 45%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* ============================================
   Logo Candidates (temporary — pick one)
   ============================================ */

.logo-candidates {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.logo-candidate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.logo-candidate:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--card-hover-shadow);
  transform: translateY(-2px);
}

.logo-candidate img {
  height: 40px;
  width: auto;
}

.logo-num {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: white;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-left {
  flex: 1;
  padding-right: 60px;
  position: relative;
  z-index: 1;
}

.hero-right {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.orange-tag {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 4px 14px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.75rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.version-text {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 32px 0;
  letter-spacing: -2px;
  color: var(--text);
  transition: color 0.3s;
}

.hero .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero .subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 400;
}

.highlight-bold {
  color: var(--text);
  font-weight: 700;
}

.highlight-orange {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--mono);
}

.highlight-code {
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--text);
  font-weight: 600;
}

.slogan-text {
  font-size: 1.1rem;
  font-weight: 520;
  color: var(--text);
  letter-spacing: 0.5px;
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  margin-top: 16px;
  transition: border-color 0.3s;
}

.blinking-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 700;
}

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

.decoration-square {
  width: 12px;
  height: 12px;
  background: var(--accent);
  margin-top: 24px;
  transition: all 0.3s;
}

/* Hero stats (right column) */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.metric-card {
  border: 1px solid var(--border);
  padding: 20px 28px;
  transition: all 0.3s;
  background: var(--bg-card);
}

.metric-value {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ============================================
   Section Headings
   ============================================ */

.section {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 48px 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  color: var(--accent);
  font-size: 0.8rem;
  transition: color 0.3s;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 640px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 48px 0;
  transition: border-color 0.3s;
}

/* ============================================
   Card Grid
   ============================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--card-hover-shadow);
  color: inherit;
}

.card.featured {
  border-color: var(--accent);
  border-width: 2px;
}

.card.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--card-featured-shadow);
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  width: fit-content;
  font-family: var(--mono);
  transition: border-radius 0.3s;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 12px;
}

.card-arrow {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--mono);
  transition: color 0.3s;
}

/* ============================================
   Post List Cards
   ============================================ */

.post-card .card-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Single Post / Article
   ============================================ */

.article {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 16px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  border: 1px solid var(--accent-border);
  transition: background 0.2s;
}

.tag-pill:hover {
  background: var(--accent-bg-hover);
  color: var(--accent);
}

/* ============================================
   Article Content Typography
   ============================================ */

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
}

.article-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 8px;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content em {
  color: var(--text-secondary);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--accent-light);
}

.article-content ul,
.article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 6px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content li::marker {
  color: var(--text-muted);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Blockquotes */
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--accent-bg);
  color: var(--text-secondary);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content blockquote p {
  margin-bottom: 0;
}

/* Code — Inline */
.article-content code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-code);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Code — Blocks */
.article-content pre {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  line-height: 1.5;
  border-radius: var(--radius-sm);
}

.article-content pre code {
  background: none;
  padding: 0;
  color: #e0e0e0;
  font-size: 14px;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.article-content thead {
  position: sticky;
  top: 0;
}

.article-content th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.8rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-content td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.article-content tbody tr:hover {
  background: var(--bg-hover);
}

/* ============================================
   Post Navigation
   ============================================ */

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s;
  max-width: 50%;
}

.post-nav a:hover {
  border-color: var(--accent);
}

.post-nav-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--mono);
}

.post-nav-title {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

.post-nav .next {
  text-align: right;
  margin-left: auto;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  margin-top: auto;
  padding: 32px 40px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  transition: border-color 0.3s;
}

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

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

/* ============================================
   Benchmarks Version Picker
   ============================================ */

.benchmarks-hero {
  text-align: center;
  padding: 60px 40px 40px;
}

.benchmarks-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.benchmarks-hero .subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   Tag / Taxonomy Pages
   ============================================ */

.tag-header {
  text-align: center;
  padding: 48px 40px 24px;
}

.tag-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding: 40px 24px;
  }

  .hero-left {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-right {
    align-items: flex-start;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .metric-card {
    flex: 1;
    min-width: 140px;
  }

  .hero-illustration {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 16px;
  }

  .lifebot-fixed {
    bottom: 16px;
    right: 16px;
  }

  .lifebot-fixed-logo {
    width: 48px;
    height: 48px;
  }

  .lifebot-fixed-label {
    display: none;
  }

  .nav-brand-logo {
    height: 26px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    z-index: 99;
  }

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

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 32px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .section {
    padding: 32px 20px;
  }

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

  .article {
    padding: 32px 20px 60px;
  }

  .article-content h2 {
    font-size: 1.25rem;
  }

  .article-content h3 {
    font-size: 1.1rem;
  }

  .article-content table {
    font-size: 0.85rem;
  }

  .article-content th,
  .article-content td {
    padding: 8px 10px;
  }

  .post-nav {
    flex-direction: column;
  }

  .post-nav a {
    max-width: 100%;
  }

  .theme-toggle span:not(.theme-toggle-icon) {
    display: none;
  }

  .logo-candidates {
    gap: 8px;
  }

  .logo-candidate {
    padding: 8px 10px;
  }

  .logo-candidate img {
    height: 28px;
  }

  .metric-card {
    padding: 14px 18px;
  }

  .metric-value {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .lifebot-fixed-logo {
    width: 40px;
    height: 40px;
  }

  .nav-brand-logo {
    height: 22px;
  }

  .logo-candidates {
    gap: 6px;
  }

  .logo-candidate img {
    height: 22px;
  }

  .article-meta {
    gap: 8px;
    font-size: 0.75rem;
  }

  .hero-stats {
    flex-direction: column;
  }
}

/* ============================================
   Utilities
   ============================================ */

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Pulse glow animation for life-bot theme */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Fade in up animation */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
