:root {
  --bg: #080d16; --bg-surface: #0d1422; --bg-card: #101828;
  --accent: #4a7fd4; --accent-dim: #2a4a7a; --border: rgba(74,127,212,0.12);
  --border-hover: rgba(74,127,212,0.3); --text-primary: #e8edf5;
  --text-secondary: #8a9bb5; --text-muted: #3d5070;
  --font-display: 'Syne', sans-serif; --font-body: 'Inter', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text-primary); font-family: var(--font-body); overflow-x: hidden; line-height: 1.7; }
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: linear-gradient(rgba(74,127,212,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(74,127,212,0.03) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none; z-index: 0;
}
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,13,22,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 0 48px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-text { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 12px; color: var(--text-secondary); text-decoration: none; letter-spacing: 0.06em; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links .active { color: var(--accent); }
.nav-links .nav-cta { color: var(--accent); border: 1px solid var(--accent-dim); padding: 6px 16px; border-radius: 4px; }
.nav-links .nav-cta:hover { background: var(--accent); color: #fff; }
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.lang-btn { background: transparent; border: 0.5px solid var(--border); color: var(--text-secondary); font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 3px; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); letter-spacing: 0.08em; }
.lang-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.lang-btn:hover:not(.active) { border-color: var(--accent); color: var(--text-primary); }
.fr-content { display: block; } .en-content { display: none; }
.lang-en .fr-content { display: none; } .lang-en .en-content { display: block; }
span.fr-content { display: inline; } span.en-content { display: none; }
.lang-en span.fr-content { display: none; } .lang-en span.en-content { display: inline; }

/* Article layout */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 64px 48px 96px; position: relative; z-index: 1; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); text-decoration: none; margin-bottom: 32px; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.article-tag { font-size: 10px; padding: 3px 10px; border-radius: 3px; letter-spacing: 0.05em; }
.tag-adobe { background: rgba(255,75,0,0.12); color: #ff6b30; border: 1px solid rgba(255,75,0,0.2); }
.tag-crm { background: rgba(74,127,212,0.12); color: #4a7fd4; border: 1px solid rgba(74,127,212,0.2); }
.article-title { font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; color: var(--text-primary); line-height: 1.2; margin-bottom: 16px; }
.article-meta { display: flex; gap: 20px; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.meta-item { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

/* Cover illustration */
.article-cover { width: 100%; height: 220px; border-radius: 12px; overflow: hidden; margin-bottom: 40px; border: 1px solid var(--border); }
.article-cover svg { width: 100%; height: 100%; }

/* Prose styles */
.prose h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-primary); margin: 40px 0 16px; padding-top: 8px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.prose h2::before { content: ''; width: 20px; height: 1px; background: var(--accent); flex-shrink: 0; }
.prose h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 24px 0 10px; }
.prose p { font-size: 15px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 0; margin-bottom: 18px; list-style: none; }
.prose ul li, .prose ol li { font-size: 14px; color: var(--text-secondary); line-height: 1.8; padding: 4px 0 4px 20px; position: relative; }
.prose ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 6px; }
.prose ol { counter-reset: list; }
.prose ol li { counter-increment: list; }
.prose ol li::before { content: counter(list); position: absolute; left: 0; color: var(--accent); font-size: 11px; font-weight: 600; top: 5px; }
.callout { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 24px 0; }
.callout p { margin-bottom: 0; font-size: 14px; }
.callout.warn { border-left-color: #ff6b30; }
.callout.warn p { color: #ff9966; }
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--bg-surface); border-bottom: 1px solid var(--border); }
thead th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 12px 16px; font-size: 13px; color: var(--text-secondary); vertical-align: top; }
.badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 3px; }
.badge-ok { background: #EAF3DE; color: #3B6D11; }
.badge-warn { background: #FAEEDA; color: #854F0B; }
.badge-new { background: rgba(74,127,212,0.12); color: #4a7fd4; }

/* Author + CTA */
.author-block { display: flex; align-items: center; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; margin: 48px 0 32px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.author-name { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.author-role { font-size: 12px; color: var(--text-secondary); }
.article-cta { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; padding: 28px 32px; text-align: center; }
.article-cta h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.article-cta p { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 12px 28px; font-family: var(--font-body); font-size: 13px; font-weight: 500; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.88; }

footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.footer-text { font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  nav { padding: 0 16px; }
  nav .nav-links { display: none; }
  .lang-switcher { margin-left: 0; }
  .article-wrap { padding: 32px 16px 64px; }
  .article-title { font-size: 22px; }
  .article-cover { height: 160px; }
  .prose h2 { font-size: 17px; }
  .prose h3 { font-size: 14px; }
  .prose p, .prose ul li { font-size: 14px; }
  .code-block { padding: 14px 12px; }
  .code-block pre { font-size: 11px; }
  .vs-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 480px; }
  .author-block { flex-direction: column; text-align: center; }
  .cert-block { flex-direction: column; text-align: center; }
  .related-link { flex-direction: column; gap: 6px; }
  .decision-tree .dt-row { flex-direction: column; gap: 6px; }
  .dt-a { align-self: flex-start; }
  footer { padding: 16px; flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* Insights index */
  .articles-grid { grid-template-columns: 1fr; }
  .page-header { padding: 32px 0 24px; }
  .page-title { font-size: 24px; }
  .container { padding: 0 16px; }
  .filters { padding: 16px 0; }
  .cta-inner { flex-direction: column; gap: 16px; text-align: center; }
  .cta-band { padding: 32px 0; }
}