/* VEP Blog — Premium interactive infographic theme */

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

:root {
  --bg: #060608;
  --bg2: #0a0a0f;
  --bg3: #0d0d14;
  --line: rgba(255,255,255,0.08);
  --line-bright: rgba(255,255,255,0.18);
  --accent: #5b8def;
  --accent-glow: rgba(91,141,239,0.35);
  --accent-glow-strong: rgba(91,141,239,0.55);
  --accent2: #7c5cff;
  --accent2-glow: rgba(124,92,255,0.3);
  --surface: rgba(255,255,255,0.03);
  --surface2: rgba(255,255,255,0.06);
  --surface3: rgba(255,255,255,0.09);
  --glass: rgba(10,10,20,0.75);
  --glass-border: rgba(255,255,255,0.1);
  --text: #fff;
  --text2: rgba(255,255,255,0.70);
  --text3: rgba(255,255,255,0.62);
  --green: #4ade80;
  --green-glow: rgba(74,222,128,0.25);
  --red: #f87171;
  --red-glow: rgba(248,113,113,0.2);
  --orange: #fb923c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
  --bg: #f8f9fb;
  --bg2: #ffffff;
  --bg3: #eef1f5;
  --line: rgba(0,0,0,0.08);
  --line-bright: rgba(0,0,0,0.15);
  --accent: #3b6fd4;
  --accent-glow: rgba(59,111,212,0.2);
  --accent-glow-strong: rgba(59,111,212,0.35);
  --accent2: #6b4fcf;
  --accent2-glow: rgba(107,79,207,0.15);
  --surface: rgba(0,0,0,0.03);
  --surface2: rgba(0,0,0,0.05);
  --surface3: rgba(0,0,0,0.08);
  --glass: rgba(255,255,255,0.85);
  --glass-border: rgba(0,0,0,0.08);
  --text: #1a1a2e;
  --text2: rgba(26,26,46,0.72);
  --text3: rgba(26,26,46,0.55);
  --green: #16a34a;
  --green-glow: rgba(22,163,74,0.15);
  --red: #dc2626;
  --red-glow: rgba(220,38,38,0.12);
  --orange: #ea580c;
}
[data-theme="light"] .blog-topbar {
  background: rgba(248,249,251,0.92);
}
[data-theme="light"] .post-card {
  background: var(--bg2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
[data-theme="light"] .post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
[data-theme="light"] .metric-card {
  background: var(--bg2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="light"] .comparison-side.before { background: rgba(220,38,38,0.04); }
[data-theme="light"] .comparison-side.after { background: rgba(22,163,74,0.04); }
[data-theme="light"] .chart-bar-fill { background: var(--accent); }
[data-theme="light"] .quote-block { background: var(--bg2); border-left-color: var(--accent); }
[data-theme="light"] .email-capture { background: var(--bg2); }
[data-theme="light"] .sticky-cta { background: var(--bg2); box-shadow: 0 -2px 12px rgba(0,0,0,0.08); }

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--text2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface2);
}

/* Smooth theme transition */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

/* Fluid type scale */
h1 { font-size: clamp(24px, 5vw, 42px); }
h2 { font-size: clamp(20px, 3.5vw, 28px); }
h3 { font-size: clamp(16px, 2.5vw, 20px); }
p, li { font-size: clamp(14px, 1.8vw, 16px); line-height: 1.7; }

/* Content-visibility for below-fold sections */
.scroll-reveal {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

/* Focus indicators for keyboard navigation */
a:focus-visible, button:focus-visible, .cta-button:focus-visible, .filter-btn:focus-visible,
input[type="range"]:focus-visible, .share-btn:focus-visible, .mode-dot:focus-visible,
.bottom-item:focus-visible, .post-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── SKIP TO CONTENT (A11y) ─── */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  z-index: 300;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* ─── READING PROGRESS BAR ─── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%;
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ─── TOPBAR ─── */
.blog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 44px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(6,6,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.blog-topbar-left { display: flex; align-items: center; gap: 8px; }

.blog-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text);
}

.blog-brand-sep { color: var(--text3); font-weight: 300; font-size: 18px; }

.blog-brand-sub {
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.blog-topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-link {
  font-size: 13px;
  color: var(--text2);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.topbar-link:hover {
  color: var(--text);
  text-decoration: none;
}

.topbar-link.active { color: var(--accent); }

/* ─── LISTING PAGE ─── */
.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-header { margin-bottom: 48px; }

.blog-header h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.blog-header p {
  font-size: 16px;
  color: var(--text2);
  max-width: 600px;
}

/* Category filters */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-search-input {
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.blog-search-input::placeholder { color: var(--text3); }

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text2);
  padding: 10px 20px;
  border-radius: 22px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.filter-btn:hover { border-color: var(--line-bright); color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Post cards grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

a.post-card,
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

a.post-card:hover { text-decoration: none; }

.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.post-card:hover::before { opacity: 0.15; }

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
}

.post-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.post-card-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.post-card-subtitle {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.post-card-hero-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.post-card-hero-stat .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.post-card-hero-stat .stat-label {
  font-size: 12px;
  color: var(--text3);
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text3);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}

.post-card-tags { display: flex; gap: 6px; }

.post-tag {
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text3);
}

.post-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.post-card-stat {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.post-card-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.65;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text3);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}
.post-card-date { font-size: 12px; }
.post-card-tag {
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text3);
  text-transform: capitalize;
}

.posts-empty {
  text-align: center;
  color: var(--text3);
  padding: 80px 20px;
  font-size: 16px;
}

/* Blog listing CTA */
.blog-listing-cta {
  text-align: center;
  padding: 60px 24px;
  margin: 60px 0 0;
  border-top: 1px solid var(--line);
}
.blog-listing-cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.blog-listing-cta p {
  color: var(--text2);
  font-size: 16px;
  margin-bottom: 24px;
}

/* ─── POST PAGE ─── */
.post-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 80px;
  line-height: 1.75;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text3);
  font-size: 13px;
  margin: 24px 0;
  transition: color 0.2s;
}

.post-back:hover { color: var(--text); text-decoration: none; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--text2); }

.post-meta-bar {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.post-meta-bar span { display: flex; align-items: center; gap: 4px; }
.post-author { color: var(--text2); }
.post-updated {
  color: var(--green);
  font-size: 12px;
  padding: 2px 8px;
  background: rgba(74,222,128,0.08);
  border-radius: 4px;
}

/* ─── TL;DR ─── */
.post-tldr {
  background: rgba(91,141,239,0.06);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
}
.post-tldr strong {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 8px;
}

/* ─── Table of Contents ─── */
.toc {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toc summary.toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
}
.toc summary.toc-title::-webkit-details-marker { display: none; }
.toc summary.toc-title::before {
  content: '\25B6';
  display: inline-block;
  margin-right: 8px;
  font-size: 10px;
  transition: transform 0.2s;
}
.toc details[open] summary.toc-title::before { transform: rotate(90deg); }
.toc-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: toc;
}
.toc-list li {
  counter-increment: toc;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.toc-list li:last-child { border-bottom: none; }
.toc-list li::before {
  content: counter(toc) '.';
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  margin-right: 8px;
}
.toc-list a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.toc-list a:hover { color: var(--accent); }

/* ─── Copy Link Button ─── */
.copy-link-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}
.copy-link-btn.copied {
  color: var(--green);
  border-color: var(--green);
}

/* ─── Author Bio ─── */
.author-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.author-bio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c5cbf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.author-bio-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.author-bio-role {
  font-size: 13px;
  color: var(--accent);
  margin: 2px 0 6px;
}
.author-bio-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
}

/* ─── Related Posts ─── */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.related-posts h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  display: block;
  padding: 20px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.related-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  font-weight: 600;
}
.related-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 8px 0;
  line-height: 1.3;
}
.related-stat {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.related-date {
  font-size: 12px;
  color: var(--text3);
}

/* ─── FOOTER ─── */
.blog-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text2);
}

.footer-inner a {
  color: var(--text2);
  transition: color 0.2s;
}

.footer-inner a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ─── TABLE OF CONTENTS ─── */
.toc {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toc-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  margin-bottom: 14px;
  font-weight: 600;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-item {
  font-size: 14px;
}

.toc-link {
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  transition: color 0.2s;
}

.toc-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.toc-link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.toc-link:hover::before {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.toc-link.toc-active {
  color: var(--accent);
  font-weight: 600;
}
.toc-link.toc-active::before {
  background: var(--accent);
  width: 6px;
  height: 6px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ToC toggle button (mobile collapsible) */
.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  font-family: inherit;
}
.toc-toggle .toc-title { margin-bottom: 0; }
.toc-toggle-icon {
  font-size: 10px;
  transition: transform 0.3s var(--ease);
}
.toc-list.toc-collapsed + .toc-toggle .toc-toggle-icon,
.toc-toggle[aria-expanded="false"] .toc-toggle-icon {
  transform: rotate(-90deg);
}
.toc-list {
  transition: max-height 0.4s var(--ease), opacity 0.3s;
  max-height: 600px;
  overflow: hidden;
}
.toc-list.toc-collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.toc-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text3);
}

.toc-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── SOCIAL SHARE ─── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.share-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text2);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
  text-decoration: none;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ─── REPLAY BUTTON ─── */
.demo-replay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 0;
  padding: 8px 20px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-replay:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── SECTION TYPES ─── */

/* Hero section — dramatic with gradient background */
.section-hero {
  text-align: center;
  padding: 80px 0 56px;
  position: relative;
}

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

.section-hero .hero-stat {
  font-size: clamp(48px, 10vw, 88px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-hero .hero-stat::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.section-hero .hero-stat-label {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.section-hero h1 {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-hero .hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Problem section — glass cards */
.section-problem { padding: 56px 0; }

.section-problem h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
}

.problem-list {
  display: grid;
  gap: 16px;
}

.problem-item {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.problem-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.problem-item:hover {
  border-color: var(--red);
  box-shadow: 0 0 20px var(--red-glow);
}

.problem-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248,113,113,0.1);
  border-radius: 10px;
}

.problem-text h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.problem-text p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* Timeline section — premium vertical line */
.section-timeline { padding: 56px 0; }

.section-timeline h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 36px;
}

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--line));
}

.timeline-step {
  position: relative;
  padding: 0 0 36px 28px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s var(--ease);
}

.timeline-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  transition: all 0.4s;
  z-index: 1;
}

.timeline-step.revealed::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.timeline-step p { font-size: 14px; color: var(--text2); line-height: 1.6; }
.timeline-step .step-label {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Metrics section — glowing cards */
.section-metrics { padding: 56px 0; }

.section-metrics h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.metric-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.metric-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 16px var(--accent-glow);
}

.metric-value {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 13px;
  color: var(--text2);
}

.metric-trend {
  font-size: 12px;
  margin-top: 10px;
  font-weight: 600;
}

.metric-trend.up { color: var(--green); }
.metric-trend.down { color: var(--red); }

/* Comparison section — slide in */
.section-comparison { padding: 56px 0; }

.section-comparison h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comparison-side {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.comparison-side.before {
  border-color: rgba(248,113,113,0.2);
}

.comparison-side.after {
  border-color: rgba(74,222,128,0.2);
}

.comparison-side.before:hover { box-shadow: 0 0 24px var(--red-glow); }
.comparison-side.after:hover { box-shadow: 0 0 24px var(--green-glow); }

.comparison-side h3 {
  font-size: 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.comparison-side.before h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

.comparison-side.after h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

.comparison-side.before h3 { color: var(--red); }
.comparison-side.after h3 { color: var(--green); }

.comparison-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text2);
  border-bottom: 1px solid var(--line);
}

.comparison-item:last-child { border: none; }
.comparison-item .cv { font-weight: 600; color: var(--text); }

/* Flow section */
.section-flow { padding: 56px 0; }

.section-flow h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
}

.flow-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 16px 0;
}

.flow-node {
  flex-shrink: 0;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 18px 22px;
  text-align: center;
  min-width: 150px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.flow-node:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.flow-node h4 { font-size: 14px; margin-bottom: 4px; }
.flow-node p { font-size: 12px; color: var(--text2); }

.flow-arrow {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  color: var(--accent);
  font-size: 18px;
  opacity: 0.6;
}

/* Quote section — premium blockquote */
.section-quote { padding: 56px 0; }

.quote-block {
  background: var(--glass);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 36px 40px;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 48px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.quote-text {
  font-size: 19px;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 20px;
}

.quote-author {
  font-size: 14px;
  color: var(--text2);
  padding-left: 20px;
  font-style: normal;
}

/* Data viz section */
.section-data-viz { padding: 56px 0; }

.section-data-viz h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-bar-label {
  width: 160px;
  font-size: 13px;
  color: var(--text2);
  text-align: right;
  flex-shrink: 0;
}

.chart-bar-track {
  flex: 1;
  height: 32px;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 6px;
  width: 0;
  transition: width 1.4s var(--ease);
  display: flex;
  align-items: center;
  padding-left: 12px;
  position: relative;
}

.chart-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15));
}

.chart-bar-fill.animated { width: var(--target-width); }

/* Staggered chart entry */
.chart-bar { opacity: 0; transform: translateX(-12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.chart-bar.chart-visible { opacity: 1; transform: translateX(0); }
.chart-bar:nth-child(1) { transition-delay: 0ms; }
.chart-bar:nth-child(2) { transition-delay: 80ms; }
.chart-bar:nth-child(3) { transition-delay: 160ms; }
.chart-bar:nth-child(4) { transition-delay: 240ms; }
.chart-bar:nth-child(5) { transition-delay: 320ms; }
.chart-bar:nth-child(6) { transition-delay: 400ms; }

/* Staggered radial entry */
.radial-chart { opacity: 0; transform: scale(0.9); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.radial-chart.chart-visible { opacity: 1; transform: scale(1); }
.radial-chart:nth-child(1) { transition-delay: 0ms; }
.radial-chart:nth-child(2) { transition-delay: 120ms; }
.radial-chart:nth-child(3) { transition-delay: 240ms; }
.radial-chart:nth-child(4) { transition-delay: 360ms; }

.chart-bar-value {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Radial chart */
.radial-charts {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.radial-chart { text-align: center; }

.radial-chart svg { width: 120px; height: 120px; }

.radial-track { fill: none; stroke: var(--surface2); stroke-width: 8; }
.radial-fill {
  fill: none;
  stroke: url(#radialGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.8s var(--ease);
  transform: rotate(-90deg);
  transform-origin: center;
}

.radial-label {
  font-size: 13px;
  color: var(--text2);
  margin-top: 8px;
}

.radial-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* Narrative section */
.section-narrative { padding: 56px 0; }

.section-narrative h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
}

.narrative-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text2);
}

.narrative-text mark {
  background: rgba(91,141,239,0.15);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
}

/* CTA section — dramatic glow */
.section-cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

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

.section-cta h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-cta p {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 36px;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 0 16px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  z-index: -1;
  transition: opacity 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 48px var(--accent-glow-strong);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   INTERACTIVE SECTION TYPES — Live demos, dashboards, audits
   ═══════════════════════════════════════════════════════════ */

/* ─── LIVE DEMO (Chat simulation) ─── */
.section-live-demo {
  padding: 56px 0;
}

.section-live-demo h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
}

.demo-window {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--line);
}

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

.demo-dot.red { background: #ff5f57; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green { background: #28c840; }

.demo-window-title {
  font-size: 12px;
  color: var(--text3);
  margin-left: 8px;
  letter-spacing: 0.5px;
}

.demo-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--green);
}

.demo-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--green-glow); }
  50% { opacity: 0.5; box-shadow: none; }
}

.demo-chat {
  padding: 20px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease);
}

.demo-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-msg.customer { align-self: flex-start; }
.demo-msg.ai { align-self: flex-end; flex-direction: row-reverse; }
.demo-msg.ai-thinking { align-self: flex-end; flex-direction: row-reverse; }
.demo-msg.system { align-self: center; max-width: 100%; }

.demo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-msg.customer .demo-avatar {
  background: rgba(248,113,113,0.15);
  color: var(--red);
  border: 1px solid rgba(248,113,113,0.2);
}

.demo-msg.ai .demo-avatar,
.demo-msg.ai-thinking .demo-avatar {
  background: rgba(91,141,239,0.15);
  color: var(--accent);
  border: 1px solid rgba(91,141,239,0.2);
}

.demo-bubble {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.demo-msg.customer .demo-bubble {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
}

.demo-msg.ai .demo-bubble {
  background: rgba(91,141,239,0.08);
  border: 1px solid rgba(91,141,239,0.15);
  color: var(--text);
}

.demo-msg.ai-thinking .demo-bubble {
  background: rgba(124,92,255,0.06);
  border: 1px solid rgba(124,92,255,0.12);
  color: var(--text2);
  font-style: italic;
  font-size: 13px;
}

.demo-msg.ai-thinking .demo-bubble::before {
  content: 'AI Reasoning';
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent2);
  margin-bottom: 6px;
  font-style: normal;
  font-weight: 600;
}

.demo-msg.system .demo-bubble {
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.12);
  color: var(--green);
  font-size: 12px;
  text-align: center;
  padding: 8px 20px;
  border-radius: 20px;
}

.demo-msg-time {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
}

.demo-msg-meta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.demo-response-time {
  font-size: 10px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: typing-bounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Typing cursor for text reveal */
.typing-cursor::after {
  content: '|';
  animation: blink-cursor 0.8s step-end infinite;
  color: var(--accent);
  font-weight: 300;
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

/* ─── DASHBOARD DEMO ─── */
.section-dashboard {
  padding: 56px 0;
}

.section-dashboard h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
}

.dashboard-window {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.dashboard-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--line);
}

.dashboard-title {
  font-size: 12px;
  color: var(--text3);
  margin-left: 8px;
}

.dashboard-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.dashboard-content {
  padding: 20px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dash-metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  transition: all 0.3s;
}

.dash-metric:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.dash-metric-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-metric-value.accent { color: var(--accent); }
.dash-metric-value.green { color: var(--green); }
.dash-metric-value.orange { color: var(--orange); }

.dash-metric-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dash-metric-trend {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 600;
}

.dash-metric-trend.up { color: var(--green); }
.dash-metric-trend.down { color: var(--red); }

.dashboard-grid-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dash-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.dash-panel-title {
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-panel-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease);
}

.activity-entry.visible {
  opacity: 1;
  transform: translateX(0);
}

.activity-entry:hover { background: var(--surface2); }

.activity-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}

.activity-icon.check {
  background: rgba(74,222,128,0.15);
  color: var(--green);
}

.activity-icon.escalate {
  background: rgba(251,146,60,0.15);
  color: var(--orange);
}

.activity-icon.processing {
  background: rgba(91,141,239,0.15);
  color: var(--accent);
}

.activity-time {
  margin-left: auto;
  font-size: 10px;
  color: var(--text3);
  flex-shrink: 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Employee status cards in dashboard */
.employee-status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.employee-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--surface);
  transition: all 0.3s;
}

.employee-status-card:hover { background: var(--surface2); }

.emp-status-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(91,141,239,0.15);
  color: var(--accent);
  border: 1px solid rgba(91,141,239,0.2);
}

.emp-status-info {
  flex: 1;
}

.emp-status-name {
  font-size: 13px;
  font-weight: 600;
}

.emp-status-role {
  font-size: 11px;
  color: var(--text3);
}

.emp-status-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(74,222,128,0.1);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.15);
}

/* ─── AUDIT TRAIL ─── */
.section-audit-trail {
  padding: 56px 0;
}

.section-audit-trail h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
}

.audit-window {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.audit-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--line);
}

.audit-bar-title {
  font-size: 12px;
  color: var(--text3);
  margin-left: 8px;
}

.audit-bar-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(74,222,128,0.1);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.15);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.audit-entries {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.audit-entries::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--green));
  opacity: 0.3;
}

.audit-entry {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  position: relative;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.5s var(--ease);
}

.audit-entry.visible {
  opacity: 1;
  transform: translateX(0);
}

.audit-entry-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.4s;
}

.audit-entry.visible .audit-entry-icon {
  box-shadow: 0 0 12px var(--accent-glow);
}

.audit-entry-icon.receive { background: rgba(91,141,239,0.2); color: var(--accent); border: 1px solid rgba(91,141,239,0.25); }
.audit-entry-icon.knowledge { background: rgba(124,92,255,0.2); color: var(--accent2); border: 1px solid rgba(124,92,255,0.25); }
.audit-entry-icon.action { background: rgba(74,222,128,0.2); color: var(--green); border: 1px solid rgba(74,222,128,0.25); }
.audit-entry-icon.response { background: rgba(91,141,239,0.2); color: var(--accent); border: 1px solid rgba(91,141,239,0.25); }
.audit-entry-icon.log { background: rgba(74,222,128,0.2); color: var(--green); border: 1px solid rgba(74,222,128,0.25); }

.audit-entry-content { flex: 1; }

.audit-entry-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.audit-entry-detail {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.audit-entry-time {
  font-size: 10px;
  color: var(--text3);
  font-family: 'SF Mono', 'Fira Code', monospace;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Section dividers ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-bright), transparent);
  margin: 16px 0;
}

/* ─── Scroll reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.7s var(--ease);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Loading ─── */
.blog-loading {
  text-align: center;
  color: var(--text3);
  padding: 80px 20px;
}

.blog-loading .spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─── */
/* ─── METHODOLOGY / CREDIBILITY ─── */
.section-methodology { padding: 40px 0; border-top: 1px solid var(--line); }
.section-methodology h2 { font-size: 20px; font-weight: 600; margin-bottom: 18px; color: var(--text2); }

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.methodology-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

.methodology-item strong {
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

/* ─── ROI Calculator ─── */
.section-roi-calc { padding: 48px 0; }
.section-roi-calc h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.roi-subtitle { color: var(--text3); font-size: 15px; margin-bottom: 28px; }

.roi-calculator {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.roi-inputs { display: flex; flex-direction: column; gap: 20px; }

.roi-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roi-input-group label {
  font-size: 13px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.roi-input-group output {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

/* Range slider styling */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--line-bright);
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(91,141,239,0.4);
  transition: transform 0.15s;
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.roi-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  cursor: pointer;
}

.roi-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.roi-result-card {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
}
.roi-result-card.highlight {
  background: linear-gradient(135deg, rgba(91,141,239,0.12), rgba(91,141,239,0.04));
  border-color: rgba(91,141,239,0.3);
}
.roi-result-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.roi-result-card.highlight .roi-result-value { color: var(--accent); }
.roi-result-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.roi-pulse {
  animation: roiPulse 0.3s ease;
}
@keyframes roiPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

/* ─── PERFORMANCE ─── */
.section-dashboard, .section-live-demo, .section-audit-trail {
  contain: layout style;
}
.demo-window, .dashboard-window, .audit-window {
  contain: content;
}
/* Below-fold sections: defer rendering until near viewport */
.section-methodology, .section-quote, .section-comparison,
.section-data-viz, .section-flow, .email-capture, .related-posts, .author-bio {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .blog-container { padding: 32px 16px 60px; }
  .blog-header { margin-bottom: 32px; }
  .blog-header h1 { font-size: 26px; }
  .blog-header p { font-size: 15px; color: var(--text2); }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-filters { gap: 6px; flex-wrap: wrap; }
  .blog-search-input { width: 100%; }
  .filter-btn { padding: 8px 14px; font-size: 13px; min-height: 44px; }
  .post-card { padding: 24px 20px; }
  .post-card-title { font-size: 19px; line-height: 1.4; }
  .post-card-subtitle { font-size: 14px; }
  .post-card-stat {
    font-size: 26px;
    /* Higher contrast on mobile — use solid accent color instead of gradient */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--accent);
    background-clip: unset;
    color: var(--accent);
  }
  .post-card-desc { font-size: 14px; line-height: 1.65; color: var(--text2); }
  .post-card-category { font-size: 11px; padding: 4px 10px; min-height: 28px; display: inline-flex; align-items: center; }
  .post-card-hero-stat .stat-value { font-size: 24px; color: var(--accent); -webkit-text-fill-color: var(--accent); }
  .post-card-hero-stat .stat-label { font-size: 12px; }
  .section-hero h1 { font-size: 26px; text-align: left; }
  .section-hero .hero-stat { font-size: 52px; }
  .section-hero .hero-subtitle { font-size: 16px; text-align: left; }
  .section-hero { padding: 48px 0 36px; text-align: left; }
  .post-back { color: var(--text2); font-size: 14px; padding: 8px 0; }
  .topbar-link { padding: 12px 4px; min-height: 44px; display: inline-flex; align-items: center; }
  .blog-topbar-links { gap: 14px; }
  .toc details[open] .toc-list { max-height: none; }
  .toc { padding: 16px 20px; margin: 16px 0; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-side { padding: 20px; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .flow-diagram { flex-wrap: wrap; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); width: 100%; }
  .flow-node { min-width: 100%; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric-card { padding: 20px 16px; }
  .metric-value { font-size: 32px; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .dashboard-grid-lower { grid-template-columns: 1fr; }
  .demo-msg { max-width: 95%; }
  .chart-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .chart-bar-label { width: auto; text-align: left; font-size: 12px; }
  .chart-bar-track { width: 100%; }
  .methodology-grid { grid-template-columns: 1fr; }
  .roi-calculator { grid-template-columns: 1fr; padding: 20px; }
  .roi-result-value { font-size: 26px; }
  .share-bar { flex-wrap: wrap; }
  .problem-item { padding: 16px; }
  .problem-item, .metric-card, .comparison-side, .quote-block {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg3);
  }
  .section-problem h2, .section-metrics h2, .section-comparison h2,
  .section-flow h2, .section-timeline h2, .section-narrative h2,
  .section-cta h2 { font-size: 24px; }
  .section-cta { padding: 48px 0; }
  .section-cta h2 { font-size: 26px; }
  .cta-button { padding: 14px 32px; font-size: 15px; }
  .quote-block { padding: 24px 20px; }
  .quote-text { font-size: 16px; padding-left: 16px; }
  .narrative-text { font-size: 15px; }
  .post-container { padding: 0 16px 60px; }
  .blog-topbar { padding: 0 16px; }
  .toc { padding: 20px; }
  .blog-footer { padding: 20px 16px; }
  .blog-listing-cta { padding: 40px 16px; margin: 40px 0 0; }
  .blog-listing-cta h2 { font-size: 24px; }
  .timeline { padding-left: 28px; }
  .timeline-step { padding: 0 0 28px 20px; }
}

/* ─── TRUST BADGES ─── */
.trust-badge-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
}

.trust-badge strong {
  color: var(--text3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-badge a {
  color: var(--green);
  font-weight: 600;
}

.trust-badge a:hover { color: var(--text); }

/* Hero trust indicators */
.hero-trust {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.trust-pill::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
}
/* CTA trust pill — stands out from passive badges */
.trust-pill-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-color: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.trust-pill-cta::before { content: none; }
.trust-pill-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
  text-decoration: none;
  color: #fff;
}

/* Sticky bottom CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  padding: 20px 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}
.sticky-cta.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta-text {
  font-size: 14px;
  color: var(--text2);
  white-space: nowrap;
}
.sticky-cta .cta-button {
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
}
.sticky-cta .cta-dismiss {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  line-height: 1;
}
.sticky-cta .cta-dismiss:hover { color: var(--text); }

@media (max-width: 480px) {
  .blog-container { padding: 24px 12px 48px; }
  .blog-header h1 { font-size: 22px; }
  .post-card { padding: 16px; border-radius: 10px; }
  .post-card-title { font-size: 17px; }
  .post-card-stat { font-size: 22px; }
  .dashboard-metrics { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-value { font-size: 28px; }
  .section-hero .hero-stat { font-size: 44px; }
  .section-hero h1 { font-size: 22px; }
  .section-hero .hero-subtitle { font-size: 15px; }
  .section-hero { padding: 36px 0 28px; }
  .section-problem h2, .section-metrics h2, .section-comparison h2,
  .section-flow h2, .section-timeline h2, .section-narrative h2,
  .section-cta h2 { font-size: 20px; }
  .problem-item { flex-direction: column; gap: 10px; padding: 14px; }
  .problem-icon { width: 36px; height: 36px; font-size: 22px; }
  .demo-window, .audit-window, .dashboard-window {
    max-width: 100%;
    margin: 0 -4px;
    border-radius: 10px;
  }
  .demo-window-bar, .audit-bar, .dashboard-bar {
    font-size: 11px;
    padding: 8px 12px;
  }
  .demo-chat { padding: 14px 10px; }
  .demo-bubble { padding: 10px 12px; font-size: 13px; }
  .comparison-side { padding: 16px; }
  .comparison-item { font-size: 13px; padding: 8px 0; }
  .trust-badge-row { flex-direction: column; gap: 12px; }
  .hero-trust { gap: 8px; }
  .trust-pill { font-size: 10px; padding: 5px 10px; }
  .sticky-cta { padding: 12px 16px; gap: 10px; }
  .sticky-cta-text { display: none; }
  .cta-button { padding: 12px 28px; font-size: 14px; }
  .blog-listing-cta h2 { font-size: 20px; }
  .blog-listing-cta p { font-size: 14px; }
  .toc { padding: 16px; margin: 16px 0 6px; }
  .toc-item { font-size: 13px; }
  .share-btn { width: 40px; height: 40px; }
  .blog-footer { padding: 16px 12px; }
  .footer-inner { gap: 12px; font-size: 12px; flex-wrap: wrap; }
}

/* ─── EMAIL CAPTURE ─── */
.email-capture {
  margin: 40px 0;
  border: 1px solid rgba(91,141,239,0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91,141,239,0.06), rgba(124,92,255,0.04));
  overflow: hidden;
}
.email-capture-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
}
.email-capture-text { flex: 1; }
.email-capture-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.email-capture-text p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}
.email-capture-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.email-capture-form input {
  padding: 10px 16px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  width: 220px;
  font-family: inherit;
}
.email-capture-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.email-capture-form input::placeholder {
  color: var(--text3);
}
.email-cta-btn {
  padding: 10px 20px !important;
  font-size: 14px !important;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.email-privacy {
  font-size: 11px;
  color: var(--text3);
  margin-top: 8px;
  opacity: 0.7;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text3);
  margin-top: 10px;
  cursor: pointer;
  line-height: 1.4;
}
.consent-check {
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.consent-label.shake {
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ─── Toast notification ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Post Navigation (prev/next) ─── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.3s, background 0.3s;
}
.post-nav-link:hover {
  border-color: rgba(91,141,239,0.3);
  background: rgba(91,141,239,0.04);
  text-decoration: none;
}
.post-nav-link.next { text-align: right; }
.post-nav-dir {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-nav-title {
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── RELATED POSTS ─── */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.related-posts h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.related-card {
  padding: 20px !important;
}
.related-card .post-card-title {
  font-size: 17px !important;
}
.related-card .post-card-desc {
  font-size: 13px !important;
  -webkit-line-clamp: 2 !important;
}

@media (max-width: 768px) {
  .email-capture-inner { flex-direction: column; padding: 20px; }
  .email-capture-form { width: 100%; }
  .email-capture-form input { flex: 1; width: auto; }
  .related-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .email-capture-form { flex-direction: column; }
  .email-capture-form input { width: 100%; }
}

/* ─── ROI share buttons ─── */
.roi-share {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.roi-share-btn {
  padding: 8px 16px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.roi-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(91,141,239,0.06);
  text-decoration: none;
}

/* ─── Exit intent modal ─── */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.exit-overlay.exit-visible { opacity: 1; }
.exit-modal {
  background: var(--bg2);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}
.exit-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.exit-close:hover { color: var(--text); }
.exit-modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.exit-modal p { font-size: 14px; color: var(--text2); margin-bottom: 20px; line-height: 1.5; }
.exit-form {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.exit-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.exit-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.exit-modal .consent-label { justify-content: center; margin-top: 10px; }

/* ─── ROI Calculator CTA ─── */
.roi-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.roi-cta-text {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 12px;
  font-weight: 500;
}
.roi-cta-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}
.roi-cta-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.roi-cta-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.roi-cta .consent-label { justify-content: center; margin-top: 8px; }

/* ─── Search empty state ─── */
.search-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text3);
}
.search-empty-text { font-size: 15px; line-height: 1.6; }
.search-clear-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
}
.search-clear-btn:hover { color: var(--text); }
.search-highlight {
  background: rgba(91,141,239,0.2);
  color: var(--accent);
  padding: 1px 2px;
  border-radius: 2px;
}

/* ─── Back to top ─── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface3);
  border: 1px solid var(--line);
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.back-to-top.btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--accent); color: #fff; }

/* ─── Chart tooltip on hover ─── */
.chart-tooltip {
  position: absolute;
  right: -48px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.chart-bar:hover .chart-tooltip, .chart-bar:focus-visible .chart-tooltip { opacity: 1; }

/* ─── Social proof ─── */
.cta-social-proof {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

/* ─── Card reading time ─── */
.post-card-read-time {
  color: var(--text3);
  font-size: 12px;
}

/* ─── Resume reading banner ─── */
.resume-banner {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg2);
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.resume-banner.resume-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.resume-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
}
.resume-btn:hover { opacity: 0.9; }
.resume-dismiss {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px;
}

/* ─── Feedback widget (Was this helpful?) ─── */
.feedback-widget {
  margin: 40px 0 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}
.feedback-question {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text2);
}
.feedback-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.feedback-btn {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text2);
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease);
}
.feedback-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(91,141,239,0.06);
}
.feedback-btn.voted {
  border-color: var(--green);
  color: var(--green);
  background: rgba(74,222,128,0.08);
}
.feedback-btn.voted-no {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(251,146,60,0.08);
}
.feedback-thanks {
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
}
.feedback-counts {
  font-size: 12px;
  color: var(--text3);
  margin-top: 8px;
}

/* ─── Keyboard shortcuts modal ─── */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.shortcuts-modal {
  background: var(--bg2);
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 360px;
  width: 90%;
  position: relative;
}
.shortcuts-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 22px;
  cursor: pointer;
}
.shortcuts-modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}
.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shortcut-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text2);
}
.shortcut-row kbd {
  background: var(--surface3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: inherit;
  min-width: 36px;
  text-align: center;
  color: var(--text);
}

/* ─── Post view count ─── */
.post-views {
  color: var(--text3);
  font-size: 13px;
}

/* ─── Search results count ─── */
.search-results-count {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 12px;
  display: none;
}

/* ─── Tag pills (listing page clickable) ─── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tag-pill {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text3);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-transform: lowercase;
  font-family: inherit;
}
.tag-pill:hover, .tag-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(91,141,239,0.08);
}

/* ─── Cookie/Privacy Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text2);
  backdrop-filter: blur(12px);
}
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept, .cookie-reject {
  border: none;
  border-radius: 6px;
  padding: 6px 18px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-reject { background: transparent; color: var(--text3); border: 1px solid var(--line); }
.cookie-reject:hover { border-color: var(--text2); color: var(--text2); }
.footer-cookie-settings {
  background: none;
  border: none;
  color: var(--text3);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}
.footer-cookie-settings:hover { color: var(--accent); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; gap: 10px; text-align: center; }
}

/* ─── PRINT ─── */
@media print {
  .blog-topbar, .reading-progress, .sticky-cta, .back-to-top, .share-bar,
  .email-capture, .exit-overlay, .blog-footer, .related-posts,
  .post-nav, .cta-button, .blog-filters, .blog-search,
  .feedback-widget, .theme-toggle, .shortcuts-overlay,
  .section-cta, .blog-listing-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .post-container { max-width: 100%; padding: 0; }
  .toc { break-inside: avoid; background: #f5f5f5 !important; border: 1px solid #ccc !important; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 11px; color: #666; word-break: break-all; }
  a[href^="/"]::after { content: ' (https://vep.live' attr(href) ')'; font-size: 11px; color: #666; }
  .section-hero h1 { font-size: 24px; }
  .hero-stat { color: #333; }
  .chart-bar-fill { background: #666; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .metric-card, .post-card { border: 1px solid #ccc; background: #f9f9f9; }
  .section-comparison, .section-metrics, .section-data-viz { break-inside: avoid; }
  .comparison-side { background: #f5f5f5 !important; }
  .demo-window, .dashboard-window, .audit-window { border: 1px solid #ccc !important; }
  .scroll-reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-reveal { opacity: 1; transform: none; }
  .problem-item { opacity: 1; transform: none; }
  .timeline-step { opacity: 1; transform: none; }
  .demo-msg { opacity: 1; transform: none; }
  .activity-entry { opacity: 1; transform: none; }
  .audit-entry { opacity: 1; transform: none; }
  .chart-bar-fill { transition: none; width: var(--target-width); }
  .chart-bar { opacity: 1; transform: none; }
  .radial-chart { opacity: 1; transform: none; }
  .radial-fill { transition: none; }
  .reading-progress { transition: none; }
  .post-card:hover { transform: none; }
  .metric-card:hover { transform: none; }
}

/* ─── HIGH CONTRAST ─── */
@media (prefers-contrast: high) {
  :root {
    --line: rgba(255,255,255,0.3);
    --line-bright: rgba(255,255,255,0.5);
    --text2: rgba(255,255,255,0.9);
    --text3: rgba(255,255,255,0.8);
    --surface2: rgba(255,255,255,0.12);
    --surface3: rgba(255,255,255,0.18);
  }
  [data-theme="light"] {
    --line: rgba(0,0,0,0.25);
    --line-bright: rgba(0,0,0,0.4);
    --text2: rgba(0,0,0,0.85);
    --text3: rgba(0,0,0,0.75);
    --surface2: rgba(0,0,0,0.1);
    --surface3: rgba(0,0,0,0.15);
  }
  .post-card, .metric-card, .demo-window, .dashboard-window, .audit-window, .roi-calculator {
    border-width: 2px;
  }
  .cta-button { border: 2px solid currentColor; }
  a:focus, button:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
}
