/* ==========================================================================
   Omnichannel Group / ProCompare Tech - Modern Editorial Design System
   ========================================================================== */

/* --- 1. CSS Custom Properties & Theming --- */
:root {
  /* Color Palette - Dark Mode Default */
  --bg-primary: #0a0d14;
  --bg-secondary: #111622;
  --bg-tertiary: #192030;
  --bg-card: rgba(17, 22, 34, 0.75);
  --bg-card-hover: rgba(25, 32, 48, 0.9);
  --bg-elevated: #1e2638;
  --bg-glass: rgba(10, 13, 20, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(99, 102, 241, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  --text-faint: #475569;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-secondary: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Dimensions & Spacing */
  --header-height: 72px;
  --container-max: 1200px;
  --article-max: 760px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px var(--accent-glow);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Light Mode Theme Overrides --- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-elevated: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-accent: rgba(99, 102, 241, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.18);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* --- 2. CSS Reset & Base Elements --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* --- 3. Sticky Header & Glass Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.brand-mark.sm {
  width: 32px;
  height: 32px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header Live Search */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#site-search-input {
  width: 220px;
  height: 36px;
  padding: 0 34px 0 14px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--transition-fast);
}

#site-search-input:focus {
  width: 280px;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-kbd {
  position: absolute;
  right: 12px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-primary);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.theme-icon-light { display: none; }
.theme-icon-dark { display: flex; }

[data-theme="light"] .theme-icon-light { display: flex; }
[data-theme="light"] .theme-icon-dark { display: none; }

.github-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.github-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* --- 4. Hero Section --- */
.hero-section {
  position: relative;
  padding: 90px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

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

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.hero-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 18px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* --- 5. Section Headers --- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 6px;
  max-width: 600px;
}

.section-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* --- 6. Featured Card --- */
.featured-section {
  padding: 70px 24px 40px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.featured-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.15);
  transform: translateY(-4px);
}

.featured-card-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 400px;
}

.featured-image-col {
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.featured-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-card:hover .featured-card-img {
  transform: scale(1.04);
}

.img-overlay-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-content-col {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.category-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.read-time-pill, .date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.featured-post-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.featured-post-title a:hover {
  color: var(--accent-primary);
}

.featured-post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-mini-info {
  display: flex;
  flex-direction: column;
}

.author-mini-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-mini-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.read-more-btn {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.read-more-btn:hover {
  gap: 8px;
  color: var(--accent-cyan);
}

/* --- 7. Matrix Section --- */
.matrix-section {
  padding: 60px 24px;
}

.matrix-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.filter-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.comparison-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-matrix-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-medium);
  white-space: nowrap;
}

.comparison-matrix-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.comparison-matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-matrix-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.dim-name {
  color: var(--text-primary);
  font-weight: 600;
}

.dim-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-gray { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }

.highlight-green { color: var(--accent-green); }
.highlight-purple { color: #c084fc; }

/* --- 8. Articles Grid --- */
.articles-section {
  padding: 60px 24px;
}

.articles-search-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.1);
  transform: translateY(-4px);
}

.article-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .article-card-img {
  transform: scale(1.05);
}

.article-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(6px);
  color: var(--accent-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.article-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.meta-dot { color: var(--border-medium); }

.article-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.article-title a:hover {
  color: var(--accent-primary);
}

.article-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.author-micro {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-micro {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-micro-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.article-link-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.no-results-msg {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-medium);
}

.no-results-msg p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* --- 9. Post Layout & Reading Experience --- */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  transition: width 0.1s ease;
}

.post-layout {
  padding-top: 40px;
  padding-bottom: 80px;
}

.breadcrumbs {
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

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

.sep { color: var(--border-medium); }
.current-cat { color: var(--accent-cyan); font-weight: 600; }

.post-header {
  margin-bottom: 36px;
  max-width: 900px;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.post-category-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.post-read-time, .post-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.post-subtitle {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.author-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.author-avatar-wrap {
  display: flex;
  align-items: center;
  margin-right: 14px;
}

.author-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.author-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* Featured Image */
.post-featured-image-wrap {
  margin-bottom: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.post-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.image-caption {
  padding: 10px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

/* Post Grid: TOC + Content */
.post-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.post-toc-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.toc-sticky-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-nav ol, .toc-nav ul {
  list-style: none;
  padding-left: 0;
}

.toc-nav li {
  margin-bottom: 8px;
}

.toc-nav a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.toc-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.toc-nav a.active {
  color: var(--accent-primary);
  font-weight: 700;
  border-left-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

/* --- 10. Prose / Article Markdown Styling --- */
.prose {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.prose p {
  margin-bottom: 24px;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 48px;
  margin-bottom: 18px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.prose h2 {
  font-size: 1.85rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.prose h3 {
  font-size: 1.4rem;
}

.prose h4 {
  font-size: 1.15rem;
}

.prose ul, .prose ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 700;
}

.prose em {
  font-style: italic;
  color: var(--text-primary);
}

.prose hr {
  border: none;
  height: 1px;
  background: var(--border-medium);
  margin: 48px 0;
}

.prose blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 12px 24px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
}

/* Code Snippets */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-tertiary);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.prose pre {
  background: #080b11 !important;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 28px 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
  position: relative;
}

.prose pre code {
  background: transparent !important;
  border: none;
  padding: 0;
  color: inherit;
}

/* Code Copy Button */
.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.prose pre:hover .code-copy-btn {
  opacity: 1;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Custom Callout Components */
.executive-summary-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.summary-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.summary-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0 !important;
}

.quote-callout {
  margin: 36px 0;
}

.quote-callout blockquote {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-cyan);
  padding: 24px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
}

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

.tech-card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.tech-card h4 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tech-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Alerts */
.alert {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  border: 1px solid transparent;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.alert-warning .alert-icon { font-size: 1.4rem; line-height: 1; }
.alert-warning h4 { color: #fbbf24; margin: 0 0 6px; font-size: 1.05rem; }
.alert-warning p { margin-bottom: 0; font-size: 0.95rem; color: var(--text-secondary); }

.feedback-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 48px 0 20px;
  text-align: center;
}

.feedback-box h4 {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.feedback-box p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
}

.feedback-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-feedback {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-feedback:hover {
  background: var(--accent-primary-hover);
  color: #fff;
}

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

/* Post Footer & Share */
.post-footer-wrap {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-tags-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.post-tag {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.post-share-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.share-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.share-buttons-group {
  display: flex;
  gap: 10px;
}

/* Author Bio Card */
.author-bio-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-top: 48px;
  box-shadow: var(--shadow-sm);
}

.bio-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.bio-content {
  flex-grow: 1;
}

.bio-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bio-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.bio-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.bio-socials {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.bio-socials a:hover {
  text-decoration: underline;
}

.bio-sep {
  margin: 0 8px;
  color: var(--border-medium);
}

/* Newsletter Section */
.newsletter-section {
  margin: 60px 0 40px;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.newsletter-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.newsletter-form {
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.newsletter-input {
  flex-grow: 1;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.newsletter-submit-btn {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-submit-btn:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.newsletter-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.newsletter-success-msg {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  display: inline-block;
}

/* --- 11. Footer --- */
.site-footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
  transition: background-color var(--transition-base);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 340px;
}

.footer-editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

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

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-green);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- 12. About Page Layout --- */
.page-container {
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 40px;
  text-align: center;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0 48px;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.principle-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.principle-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.principle-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.team-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-details h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.team-details p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.team-links {
  font-size: 0.85rem;
  color: var(--accent-primary);
}

.team-links a:hover {
  text-decoration: underline;
}

/* --- 13. Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post-toc-sidebar {
    display: none; /* Hide sticky sidebar on tablet/mobile */
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-lead {
    font-size: 1.05rem;
  }
  .featured-card-grid {
    grid-template-columns: 1fr;
  }
  .featured-content-col {
    padding: 24px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none; /* Mobile menu can toggle or simplify */
  }
  #site-search-input {
    width: 150px;
  }
  #site-search-input:focus {
    width: 180px;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .author-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
