: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; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

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-back {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

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

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 48px 96px;
  position: relative;
  z-index: 1;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 56px;
}

.ml-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.ml-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 24px;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-value {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-label:last-of-type,
.info-value:last-of-type {
  border-bottom: none;
}

p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

p:last-child { margin-bottom: 0; }

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

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; }
}