/* ==========================================================================
   MediaMeter design system
   Tokens follow the brand specification. Dark editorial default.

   MOBILE FIRST: every base rule targets the smallest screen (320px).
   Larger screens are enhanced ONLY through min-width queries, collected in
   the "responsive enhancements" section at the end of this file:
     sm 640px | md 768px | lg 1024px | xl 1200px
   Conventions: no inline layout styles in templates, touch targets >= 44px,
   inputs >= 16px, hover effects only inside (hover: hover).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/NotoSansArabic-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --color-primary-50: #e8eaf6;
  --color-primary-100: #c5cae9;
  --color-primary-500: #3f51b5;
  --color-primary-700: #283593;
  --color-primary-800: #1a237e;
  --color-primary-900: #0d1352;
  --color-accent-50: #f3e5f5;
  --color-accent-100: #e1bee7;
  --color-accent-500: #9c27b0;
  --color-accent-700: #6a1b9a;
  --color-accent-900: #4a148c;
  --color-cyan-400: #22d3ee;
  --color-cyan-500: #06b6d4;

  /* Text-safe accent (AA on ink) */
  --accent-text: #d8b4fe;
  --accent-line: rgba(156, 39, 176, 0.55);

  /* Semantic */
  --color-success: #2e7d32;
  --color-success-bg: #e8f5e9;
  --color-warning: #f57f17;
  --color-warning-bg: #fff8e1;
  --color-danger: #b71c1c;
  --color-danger-bg: #ffebee;
  --color-info: #0277bd;
  --color-info-bg: #e1f5fe;

  /* Neutrals */
  --color-ink-950: #05060a;
  --color-ink-900: #0a0c14;
  --color-ink-800: #111827;
  --color-ink-700: #1f2937;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-white: #ffffff;

  /* Verdicts */
  --verdict-true: #66bb6a;
  --verdict-mostly-true: #9ccc65;
  --verdict-half-true: #fdd835;
  --verdict-mostly-false: #ffa726;
  --verdict-false: #ef5350;
  --verdict-misleading: #ce93d8;
  --verdict-unverifiable: #b0bec5;

  /* Type */
  --font-body: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-5xl: clamp(2.25rem, 1.6rem + 2.8vw, 3rem);
  --text-4xl: clamp(1.75rem, 1.3rem + 2vw, 2.25rem);
  --text-3xl: clamp(1.5rem, 1.2rem + 1.3vw, 1.875rem);
  --text-2xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-xl: 1.25rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius + shadow */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow-cyan: 0 20px 40px -20px rgba(34, 211, 238, 0.15);

  /* Motion */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --shell: 1180px;
  --measure: 68ch;
  --header-h: 64px;
  --gutter: var(--space-5);

  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --surface: #0a0c14;
  --surface-2: #0e111b;
  --surface-3: #131826;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--color-ink-950);
  color: var(--color-slate-300);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(106, 27, 154, 0.22), transparent 60%),
    radial-gradient(800px 500px at 92% 0%, rgba(34, 211, 238, 0.10), transparent 55%);
}

img,
svg,
video,
iframe { max-width: 100%; height: auto; display: block; }
iframe { border: 0; }
button, input, select, textarea { font-family: inherit; }
input, select, textarea { font-size: 1rem; }

.embed { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--radius-lg); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-white);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-5xl); line-height: 1.08; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); font-weight: 700; }
h4 { font-size: var(--text-2xl); font-weight: 700; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: var(--space-2); }

strong { color: var(--color-white); font-weight: 600; }

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
code {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.35em;
  color: var(--color-slate-200);
}
pre {
  background: var(--color-ink-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  overflow-x: auto;
  line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-10) 0;
}

::selection { background: rgba(156, 39, 176, 0.45); color: #fff; }

:focus-visible {
  outline: 3px solid var(--color-cyan-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--color-white);
  color: var(--color-ink-950);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- layout utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  position: relative;
  z-index: 1;
}
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--bordered { border-top: 1px solid var(--border); }
.section--alt { background: linear-gradient(180deg, rgba(10, 12, 20, 0.6), rgba(5, 6, 10, 0)); }

.grid { display: grid; gap: var(--space-6); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
.grid--gap-sm { gap: var(--space-3); }
.stack > * + * { margin-top: var(--space-4); }
.measure { max-width: var(--measure); }
.measure-sm { max-width: min(480px, 100%); margin-inline: auto; }
.measure-md { max-width: min(520px, 100%); }
.measure-lg { max-width: min(720px, 100%); margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }
.self-start { align-self: flex-start; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); } .mt-10 { margin-top: var(--space-10); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); } .mb-10 { margin-bottom: var(--space-10); } .mb-12 { margin-bottom: var(--space-12); }
.muted { color: var(--color-slate-400); }
.small { font-size: var(--text-sm); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section-head { max-width: min(720px, 100%); }
.section-head h2 { font-size: var(--text-3xl); margin: var(--space-3) 0 0; }
.section-head .lede { margin-top: var(--space-3); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem); color: var(--color-slate-300); max-width: 62ch; }
.section-head .eyebrow + h2 { margin-top: var(--space-3); }

/* ---------- eyebrow / badges / pills ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-cyan-400);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: rgba(10, 12, 20, 0.7);
  color: var(--color-slate-300);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-cyan-400);
  flex: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--color-slate-300);
  background: rgba(148, 163, 184, 0.08);
  max-width: 100%;
  white-space: normal;
}
.badge--live { color: #86efac; border-color: rgba(134, 239, 172, 0.35); background: rgba(34, 197, 94, 0.12); }
.badge--progress { color: #fde047; border-color: rgba(253, 224, 71, 0.32); background: rgba(234, 179, 8, 0.10); }
.badge--spec { color: #a5b4fc; border-color: rgba(165, 180, 252, 0.32); background: rgba(99, 102, 241, 0.10); }
.badge--illustrative { color: #f0abfc; border-color: rgba(240, 171, 252, 0.35); background: rgba(217, 70, 239, 0.10); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent-700), #4c1d95);
  color: #fff;
  border-color: rgba(216, 180, 254, 0.35);
  box-shadow: 0 10px 30px -12px rgba(106, 27, 154, 0.8);
}

.btn--accent {
  background: var(--color-cyan-400);
  color: #04121a;
  border-color: transparent;
}

.btn--secondary {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border-strong);
  color: var(--color-slate-200);
}

.btn--ghost { background: transparent; border-color: transparent; color: var(--color-slate-300); }

.btn--sm { padding: 9px 14px; font-size: var(--text-xs); }
.btn--lg { padding: 15px 26px; font-size: var(--text-base); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.62; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--accent-text);
}
.link-arrow svg { transition: transform var(--transition-fast); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand__name span { color: var(--color-cyan-400); }

.main-nav { display: none; margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; position: relative; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--color-slate-300);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a[aria-expanded="true"] { color: #fff; background: rgba(148, 163, 184, 0.10); }

.nav-drop__toggle { background: none; border: 0; cursor: pointer; font-family: var(--font-body); }
.nav-drop__toggle svg { transition: transform var(--transition-fast); }
.nav-drop__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-drop__panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: min(230px, 80vw);
  padding: var(--space-2);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.nav-drop__panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-drop__panel.is-open { display: block; }
.nav-drop__panel ul { display: block; }
.nav-drop__panel a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.nav-drop__panel a span { display: block; color: var(--color-slate-400); font-size: var(--text-xs); font-weight: 400; margin-top: 2px; }

.header-actions { display: none; align-items: center; gap: var(--space-2); flex: none; }
.header-actions .btn { padding: 9px 14px; font-size: var(--text-xs); }
.header-actions .btn--secondary { display: none; }

.nav-toggle {
  display: inline-flex;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--color-slate-200);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-fast), top var(--transition-fast);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--space-2) 0; }
.mobile-nav li { margin: 0; }
.mobile-nav a,
.mobile-nav summary {
  display: block;
  padding: 14px var(--gutter);
  color: var(--color-slate-200);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  cursor: pointer;
}
.mobile-nav summary { list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details ul a { padding-left: var(--space-10); color: var(--color-slate-300); font-weight: 400; }
.mobile-nav__cta { padding: var(--space-4) var(--gutter) max(var(--space-4), env(safe-area-inset-bottom)); display: grid; gap: var(--space-2); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: var(--space-10) var(--space-8); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-visual { order: -1; }
.hero h1 { margin-bottom: var(--space-5); }
.grad-text {
  background: linear-gradient(100deg, #e9d5ff 0%, #d8b4fe 35%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--color-slate-300);
  max-width: 56ch;
}
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); color: var(--color-slate-400); font-size: var(--text-xs); }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

.hero-visual {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.7), rgba(5, 6, 10, 0.9));
  padding: var(--space-6);
  box-shadow: var(--shadow-glow-cyan);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(148, 163, 184, 0.10) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(148, 163, 184, 0.10) 50%, transparent 50.2%);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
}
.hero-visual__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-slate-400);
}
.radar { width: 100%; height: auto; }
.radar__ring { fill: none; stroke: rgba(148, 163, 184, 0.16); }
.radar__spoke { stroke: rgba(148, 163, 184, 0.12); }
.radar__area { fill: url(#radarFill); stroke: var(--color-cyan-400); stroke-width: 1.5; }
.radar__point { fill: var(--color-cyan-400); }
.radar__label { fill: var(--color-slate-400); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }

.hero-visual__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--color-slate-400);
}
.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
}
.score-chip b { font-size: 1.25rem; line-height: 1; }

/* ---------- logo / partner strip ---------- */
.logos { border-block: 1px solid var(--border); background: rgba(10, 12, 20, 0.45); }
.logos__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-6); }
.logos__label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-slate-400); }
.logos__row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 48px); }
.logos__item { display: inline-flex; align-items: center; gap: 10px; color: var(--color-slate-400); font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.02em; opacity: 0.85; }
.logos__item svg { width: 22px; height: 22px; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.55), rgba(10, 12, 20, 0.65));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base), background var(--transition-base);
  height: 100%;
}
.card--flush { padding: 0; overflow: hidden; }
.card__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: rgba(106, 27, 154, 0.18);
  color: var(--accent-text);
  margin-bottom: var(--space-4);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.card p { color: var(--color-slate-300); font-size: var(--text-sm); line-height: 1.65; }
.card__foot { margin-top: var(--space-5); }

.problem-card { border-top: 2px solid var(--accent-line); }
.problem-card__stat {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-cyan-400);
  margin-bottom: var(--space-3);
  display: block;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); counter-reset: step; }
.step {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(10, 12, 20, 0.55);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-cyan-400);
  margin-bottom: var(--space-4);
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--color-slate-400); margin: 0; }
.step::after {
  content: "";
  display: none;
  position: absolute;
  top: 50%; right: -16px;
  width: 16px; height: 1px;
  background: var(--border-strong);
}
.step:last-child::after { display: none; }

/* ---------- feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  padding-block: clamp(32px, 5vw, 56px);
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row h2 { font-size: var(--text-3xl); }
.feature-row ul { margin: var(--space-4) 0 var(--space-6); }
.feature-row li { color: var(--color-slate-300); font-size: var(--text-sm); }
.feature-row li::marker { color: var(--color-cyan-400); }

.figure {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.figure figcaption {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--color-slate-400);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* evidence chain mockup */
.chain { display: grid; gap: var(--space-3); }
.chain__row { display: flex; align-items: center; gap: var(--space-3); }
.chain__node {
  flex: none;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(148, 163, 184, 0.06);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.chain__bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.10); overflow: hidden; }
.chain__bar i { display: block; height: 100%; border-radius: inherit; }
.chain__bar--claim i { width: 92%; background: linear-gradient(90deg, #7e22ce, #a855f7); }
.chain__bar--evidence i { width: 76%; background: linear-gradient(90deg, #0e7490, #22d3ee); }
.chain__bar--verdict i { width: 54%; background: linear-gradient(90deg, #f59e0b, #fde047); }
.chain__label { flex: 0 0 4rem; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-slate-400); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.stat { background: var(--color-ink-950); padding: var(--space-8) var(--space-6); text-align: center; }
.stat__value { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.stat__value span { color: var(--color-cyan-400); }
.stat__label { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-slate-400); }
.stat__tag { display: inline-block; margin-top: var(--space-3); }

/* ---------- integrations ---------- */
.integration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 12, 20, 0.5);
  text-decoration: none;
  color: var(--color-slate-200);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.integration__name { display: inline-flex; align-items: center; gap: var(--space-3); }
.integration__mark { width: 26px; height: 26px; color: var(--color-slate-300); flex: none; }

/* ---------- trust bar ---------- */
.trustbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.trustbar__item {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 12, 20, 0.5);
}
.trustbar__item svg { width: 20px; height: 20px; flex: none; color: var(--color-cyan-400); margin-top: 2px; }
.trustbar__item strong { display: block; color: #fff; font-size: var(--text-sm); font-weight: 600; }
.trustbar__item span { font-size: var(--text-xs); color: var(--color-slate-400); }

/* ---------- FAQ / details ---------- */
.faq { display: grid; gap: var(--space-3); max-width: min(860px, 100%); }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 12, 20, 0.55);
  overflow: hidden;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-cyan-400);
  transition: transform var(--transition-fast);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 var(--space-5) var(--space-5); color: var(--color-slate-300); font-size: var(--text-sm); }
.faq__body p { margin: 0; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(106, 27, 154, 0.35), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(34, 211, 238, 0.16), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.cta-band h2 { max-width: 20ch; }
.cta-band .btn-row { margin-top: var(--space-6); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--color-ink-900);
  padding-top: var(--space-12);
  color: var(--color-slate-400);
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-5);
}
.footer-brand { grid-column: 1 / -1; max-width: 52ch; }
.footer-brand p { margin-top: var(--space-4); max-width: 44ch; font-size: var(--text-sm); color: var(--color-slate-400); }
.footer-col h2 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate-300);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: var(--space-2); }
.footer-col a { color: var(--color-slate-400); text-decoration: none; font-size: var(--text-sm); }

.footer-bottom {
  margin-top: var(--space-12);
  border-top: 1px solid var(--border);
  padding-block: var(--space-6);
  padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-slate-500);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-legal a { color: var(--color-slate-400); text-decoration: none; }
.footer-note { font-size: var(--text-xs); color: var(--color-slate-500); max-width: 70ch; margin-top: var(--space-3); }
.social { display: flex; gap: var(--space-2); }
.social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--color-slate-400);
  text-decoration: none;
}
.social svg { width: 16px; height: 16px; }
.lang-select {
  background: var(--surface-2);
  color: var(--color-slate-300);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: var(--space-10) var(--space-6); }
.page-hero h1 { font-size: var(--text-5xl); max-width: min(22ch, 100%); }
.page-hero--wide h1 { max-width: min(30ch, 100%); }
.page-hero p.lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--color-slate-300); max-width: 62ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--text-xs); color: var(--color-slate-400); margin-bottom: var(--space-5); }
.breadcrumbs a { color: var(--color-slate-400); text-decoration: none; }
.breadcrumbs span[aria-current] { color: var(--color-slate-300); }

/* ---------- prose ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--text-3xl); margin-top: var(--space-10); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-8); font-weight: 700; }
.prose p, .prose li { color: var(--color-slate-300); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--accent-line);
  background: rgba(106, 27, 154, 0.08);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--color-slate-200);
  font-size: 1.05rem;
}
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: #fff; font-weight: 600; }
.prose figure { margin: var(--space-8) 0; }
.prose figcaption { font-size: var(--text-xs); color: var(--color-slate-400); margin-top: var(--space-2); }

.entry-content { max-width: 72ch; }
.entry-content > * + * { margin-top: var(--space-4); }
.entry-content h2 { font-size: var(--text-3xl); margin-top: var(--space-10); }
.entry-content h3 { font-size: var(--text-xl); margin-top: var(--space-8); font-weight: 700; }
.entry-content p, .entry-content li { color: var(--color-slate-300); }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content ul li + li, .entry-content ol li + li { margin-top: var(--space-2); }
.entry-content a { color: var(--accent-text); text-underline-offset: 3px; }
.entry-content blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--accent-line);
  background: rgba(106, 27, 154, 0.08);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--color-slate-200);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.entry-content th { color: #fff; font-weight: 600; }
.entry-content details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  background: rgba(10, 12, 20, 0.5);
}
.entry-content details + details { margin-top: var(--space-3); }
.entry-content summary { cursor: pointer; color: #fff; font-weight: 600; }
.entry-content summary::marker { color: var(--color-cyan-400); }
.entry-content details[open] summary { margin-bottom: var(--space-3); }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }
.entry-content img { height: auto; border-radius: var(--radius-lg); }
.entry-content code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(148, 163, 184, 0.12); padding: 2px 5px; border-radius: 4px; }

.progress { background: rgba(148, 163, 184, 0.14); border-radius: var(--radius-full); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-accent-500), var(--color-cyan-400)); transition: width 0.6s ease; }

/* ---------- dimension grid ---------- */
.dimensions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.dimension {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 12, 20, 0.55);
}
.dimension__top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.dimension__num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-cyan-400); font-weight: 700; }
.dimension h3 { font-size: var(--text-lg); margin: 0; }
.dimension p { font-size: var(--text-sm); color: var(--color-slate-400); margin: 0 0 var(--space-3); }
.dimension ul { margin: 0; padding-left: 1rem; font-size: var(--text-xs); color: var(--color-slate-400); }

/* ---------- process list ---------- */
.process { display: grid; gap: var(--space-3); counter-reset: p; }
.process__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 12, 20, 0.5);
}
.process__num {
  counter-increment: p;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(106, 27, 154, 0.16);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
}
.process__num::before { content: counter(p); }
.process h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.process p { font-size: var(--text-sm); color: var(--color-slate-400); margin: 0; }

/* ---------- verdict scale ---------- */
.verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.verdict {
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(10, 12, 20, 0.6);
  text-align: center;
}
.verdict span { display: block; }
.verdict__dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 auto var(--space-2); background: var(--dot, currentColor); }
.verdict__name { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--color-slate-300); }
.verdict__scale { font-size: 0.75rem; color: var(--color-slate-400); margin-top: 2px; }

/* ---------- code tabs ---------- */
.tabs { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-ink-900); }
.tabs__list { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: rgba(148, 163, 184, 0.06); border-bottom: 1px solid var(--border); }
.tabs__tab {
  padding: 7px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-slate-400);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.tabs__tab[aria-selected="true"] { background: var(--surface-3); color: #fff; }
.tabs__panel { position: relative; }
.tabs__panel[hidden] { display: none; }
.tabs__panel .grid { padding: var(--space-5); }
.tabs__panel > .muted { padding: var(--space-5); margin: 0; }
.tabs__panel pre { margin: 0; border: 0; border-radius: 0; background: transparent; }
.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--color-slate-300);
  cursor: pointer;
  font-family: var(--font-mono);
}

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(10, 12, 20, 0.6);
}
.price-card--featured { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(106, 27, 154, 0.18), rgba(10, 12, 20, 0.7)); box-shadow: var(--shadow-glow-cyan); }
.price-card__name { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-slate-400); }
.price-card__price { font-size: 2.5rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; margin: var(--space-3) 0 var(--space-1); }
.price-card__price small { font-size: var(--text-sm); font-weight: 400; color: var(--color-slate-400); letter-spacing: 0; }
.price-card__desc { font-size: var(--text-sm); color: var(--color-slate-400); min-height: 3.2em; }
.price-card ul { list-style: none; padding: 0; margin: var(--space-5) 0; font-size: var(--text-sm); }
.price-card li { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--color-slate-300); }
.price-card li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--color-cyan-400); }
.price-card .btn { margin-top: auto; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-slate-300); }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--color-cyan-400); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 720px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.compare thead th { background: rgba(148, 163, 184, 0.06); color: #fff; font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: #86efac; }
.compare .no { color: var(--color-slate-500); }

.calculator { border: 1px solid var(--border-strong); border-radius: var(--radius-xl); padding: var(--space-6); background: var(--surface); }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-slate-200); margin-bottom: var(--space-2); }
.field input[type="text"], .field input[type="search"], .field input[type="email"], .field input[type="number"], .field input[type="password"], .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  min-height: 44px;
  background: var(--color-ink-950);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--color-slate-200);
  font-family: var(--font-body);
  font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="range"] { width: 100%; accent-color: var(--color-accent-500); }
.field .hint { font-size: var(--text-xs); color: var(--color-slate-400); margin-top: 6px; }
.calc-out { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: var(--space-6); background: rgba(106, 27, 154, 0.10); }
.calc-out__value { font-size: 2.75rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.calc-out__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-slate-400); font-family: var(--font-mono); }

/* ---------- resources / posts ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.post-card__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(106, 27, 154, 0.35), rgba(34, 211, 238, 0.12)); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.post-card__media svg { width: 46%; height: auto; opacity: 0.85; }
.post-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--text-xs); color: var(--color-slate-400); margin-bottom: var(--space-3); }
.post-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.post-card h3 a { color: #fff; text-decoration: none; }
.post-card p { font-size: var(--text-sm); color: var(--color-slate-400); }
.post-card__foot { margin-top: auto; padding-top: var(--space-4); }

.featured-post { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; }
.featured-post .post-card__media { aspect-ratio: 16 / 9; width: 100%; border-bottom: 1px solid var(--border); }
.featured-post .post-card__body { padding: var(--space-5); }
.featured-post h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.featured-post h2 a { color: #fff; text-decoration: none; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-tab {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--color-slate-300);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.filter-tab[aria-pressed="true"] { background: rgba(106, 27, 154, 0.25); border-color: var(--accent-line); color: #fff; }

/* ---------- article ---------- */
.article-header { max-width: 820px; }
.article-header h1 { font-size: var(--text-3xl); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); font-size: var(--text-sm); color: var(--color-slate-400); margin-top: var(--space-5); }
.article-meta__author { display: inline-flex; align-items: center; gap: 10px; color: var(--color-slate-200); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #6a1b9a, #22d3ee); flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.toc { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.toc h2 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); color: var(--color-slate-400); margin-bottom: var(--space-3); }
.toc ul { list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); }
.toc li { margin: 0 0 var(--space-2); }
.toc a { color: var(--color-slate-400); text-decoration: none; }
.author-box { display: flex; gap: var(--space-4); align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); background: rgba(10, 12, 20, 0.5); margin-top: var(--space-10); }
.author-box .avatar { width: 52px; height: 52px; font-size: 16px; }
.share { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }

/* ---------- glossary ---------- */
.glossary-tools { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }
.glossary-search { max-width: min(520px, 100%); margin-bottom: 0; }
.glossary-az {
  position: static;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(5, 6, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glossary-az button {
  min-width: 36px;
  min-height: 36px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-slate-400);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  cursor: pointer;
}
.glossary-az button[aria-pressed="true"] { background: rgba(106, 27, 154, 0.35); border-color: var(--accent-line); color: #fff; }
.glossary-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.term-card { display: flex; flex-direction: column; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(10, 12, 20, 0.55); }
.term-card[hidden] { display: none; }
.term-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.term-card__letter { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-cyan-400); }
.term-card__cat { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-slate-400); text-align: right; }
.term-card h3 { font-size: var(--text-lg); margin-bottom: 2px; }
.term-card h3 a { color: #fff; text-decoration: none; }
.term-card__acronym { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-cyan-400); margin: 0 0 var(--space-2); }
.term-card p { font-size: var(--text-sm); color: var(--color-slate-400); margin: 0; }
.term-card .link-arrow { margin-top: auto; padding-top: var(--space-4); font-size: var(--text-sm); }
.az-index { display: flex; flex-wrap: wrap; gap: 4px; }
.az-index a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--color-slate-400); font-family: var(--font-mono); font-size: var(--text-xs); text-decoration: none; }

/* ---------- case study ---------- */
.metric-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.metric { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(10, 12, 20, 0.55); text-align: center; }
.metric__value { font-size: 2.25rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.metric__label { font-size: var(--text-xs); color: var(--color-slate-400); margin-top: var(--space-2); }
.callout {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--color-cyan-400);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-5) var(--space-6);
  background: rgba(34, 211, 238, 0.05);
}
.callout--warning { border-left-color: var(--color-warning); background: rgba(245, 127, 23, 0.06); }
.callout--illustrative { border-left-color: #e879f9; background: rgba(232, 121, 249, 0.06); }
.callout strong { display: block; margin-bottom: var(--space-2); }

/* ---------- legal / trust layout ---------- */
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.legal-nav { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.legal-nav h2 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); color: var(--color-slate-400); margin-bottom: var(--space-3); }
.legal-nav ul { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.legal-nav li { margin-bottom: var(--space-2); }
.legal-nav a { color: var(--color-slate-400); text-decoration: none; }
.doc-meta { font-size: var(--text-xs); color: var(--color-slate-400); font-family: var(--font-mono); letter-spacing: 0.03em; }

/* ---------- forms ---------- */
.form-card { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 40px); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-4); }
.form-grid .field--full { grid-column: 1 / -1; }
.checkbox { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-slate-300); }
.checkbox input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--color-accent-500); flex: none; }
.form-note { font-size: var(--text-xs); color: var(--color-slate-400); margin-top: var(--space-3); }
.alert { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--border-strong); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.alert--success { border-color: rgba(134, 239, 172, 0.4); background: rgba(34, 197, 94, 0.08); color: #bbf7d0; }
.alert--error { border-color: rgba(248, 113, 113, 0.4); background: rgba(239, 68, 68, 0.08); color: #fecaca; }

/* ---------- consent banner ---------- */
.consent {
  position: fixed;
  left: max(var(--space-3), env(safe-area-inset-left));
  right: max(var(--space-3), env(safe-area-inset-right));
  bottom: max(var(--space-3), env(safe-area-inset-bottom));
  z-index: 150;
  max-width: 720px;
  max-height: 70dvh;
  overflow-y: auto;
  margin-inline: auto;
  padding: var(--space-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(10, 12, 20, 0.98);
  box-shadow: var(--shadow-xl);
  display: none;
  gap: var(--space-4);
}
.consent.is-visible { display: block; }
.consent p { font-size: var(--text-sm); color: var(--color-slate-300); margin: 0 0 var(--space-3); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.consent__details { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-slate-400); }
.consent__details summary { cursor: pointer; color: var(--color-slate-300); }
.consent__details label { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-2); }

/* ---------- search results / archive ---------- */
.archive-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); }
.archive-head p { margin: 0; color: var(--color-slate-400); font-size: var(--text-sm); }
.pagination { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-10); }
.pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--color-slate-300); text-decoration: none; font-size: var(--text-sm); }
.pagination .current { background: rgba(106, 27, 154, 0.3); border-color: var(--accent-line); color: #fff; }

/* ---------- notices ---------- */
.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(148, 163, 184, 0.04);
  font-size: var(--text-sm);
  color: var(--color-slate-300);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--color-cyan-400); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border-strong); }
.timeline li { position: relative; padding: 0 0 var(--space-6) var(--space-6); margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-cyan-400); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12); }
.timeline time { display: block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-slate-400); margin-bottom: 4px; }
.timeline strong { color: #fff; }

/* ---------- table of contents scroll ---------- */
.toc a.is-active { color: #fff; font-weight: 600; }

/* ---------- content tables scroll on small screens ---------- */
.prose table, .entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.entry-content, .prose { overflow-wrap: anywhere; }

/* ---------- template utilities (replace inline styles) ---------- */
.no-underline { text-decoration: none; }
.m-0 { margin: 0; }
.mt-12 { margin-top: var(--space-12); }
.fs-1 { font-size: 1rem; }
.fs-105 { font-size: 1.05rem; }
.fs-11 { font-size: 1.1rem; }
.fs-125 { font-size: 1.25rem; }
.fs-135 { font-size: 1.35rem; }
.fs-14 { font-size: 1.4rem; }
.fs-15 { font-size: 1.5rem; }
.fs-sm { font-size: var(--text-sm); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.text-white { color: #fff; }
.text-inherit { color: inherit; }
.text-left { text-align: left; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.items-start { align-items: start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.list-reset { list-style: none; padding: 0; }
.w-full { width: 100%; }
.max-w-none { max-width: none; }
.block { display: block; }
.max-w-820 { max-width: min(820px, 100%); }
.pull-up { margin-top: calc(var(--space-2) * -1); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.split--start { align-items: start; }
.split--wide-gap { gap: var(--space-10); }
.avatar--lg { width: 56px; height: 56px; font-size: 16px; }
.card--compact { padding: var(--space-4); }
.card__icon--sm { width: 40px; height: 40px; margin-bottom: var(--space-2); }
.quote { margin: 0; font-size: 1.15rem; line-height: 1.6; color: #fff; }
.audio-full { width: 100%; margin-top: var(--space-3); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.badge--dyn { border-color: var(--badge); color: var(--badge); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--badge); display: inline-block; }

/* ---------- search form ---------- */
.search-form__row { display: flex; flex-direction: column; gap: var(--space-2); }
.search-form input[type="search"] {
  flex: 1;
  min-height: 44px;
  padding: 11px 13px;
  background: var(--color-ink-950);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--color-slate-200);
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ==========================================================================
   Responsive enhancements (mobile first: min-width only)
   sm 640px | md 768px | lg 1024px | xl 1200px
   ========================================================================== */

/* sm: large phones / small tablets */
@media (min-width: 640px) {
  :root { --gutter: var(--space-6); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trustbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdicts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form__row { flex-direction: row; }
  .hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
  .page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); }
  .step:nth-child(odd):not(:last-child)::after { display: block; }
  .featured-post .post-card__body { padding: var(--space-8); }
  .glossary-az { position: sticky; top: calc(var(--header-h) + var(--space-3)); border-radius: var(--radius-full); }
}

/* md: tablets */
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
  .feature-row--flip .feature-row__media { order: -1; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-post { grid-template-columns: 1.1fr 1fr; }
  .featured-post .post-card__media { aspect-ratio: auto; height: 100%; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--border); }
  .calc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .article-header h1 { font-size: var(--text-4xl); }
}

/* lg: laptops and desktops */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .site-header__inner { gap: var(--space-6); }
  .main-nav { display: block; }
  .nav-toggle,
  .mobile-nav,
  .mobile-nav.is-open { display: none; }
  .header-actions { display: flex; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero-visual { order: 0; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step:nth-child(even):not(:last-child)::after { display: block; }
  .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dimensions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trustbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .verdicts { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .glossary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(32px, 5vw, 64px); }
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); border-top: 0; padding-top: 0; border-left: 1px solid var(--border); padding-left: var(--space-4); }
  .legal-nav { position: sticky; top: calc(var(--header-h) + 24px); border-top: 0; padding-top: 0; }
}

/* xl: wide desktops */
@media (min-width: 1200px) {
  .header-actions .btn--secondary { display: inline-flex; }
}

/* touch devices: comfortable targets */
@media (pointer: coarse) {
  .btn, .btn--sm, .filter-tab, .copy-btn, .tabs__tab, .lang-select,
  .main-nav a, .footer-col a, .footer-legal a, .toc a, .legal-nav a,
  .breadcrumbs a, .pagination .page-numbers, .link-arrow, .term-card h3 a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-col li + li { margin-top: var(--space-1); }
  .social a, .glossary-az button, .az-index a { min-width: 44px; min-height: 44px; width: auto; height: auto; }
  .checkbox input { width: 24px; height: 24px; }
  .toc li, .legal-nav li { margin-bottom: 0; }
}

/* hover effects are only for devices that can hover */
@media (hover: hover) {
  a:hover { color: var(--color-white); }
  .pill:hover { border-color: var(--accent-line); color: #fff; }
  .btn:hover { transform: translateY(-1px); }
  .btn--primary:hover { background: linear-gradient(135deg, #7e22ce, #5b21b6); color: #fff; }
  .btn--accent:hover { background: #67e8f9; color: #04121a; }
  .btn--secondary:hover { background: rgba(148, 163, 184, 0.14); border-color: rgba(216, 180, 254, 0.45); color: #fff; }
  .btn--ghost:hover { color: #fff; background: rgba(148, 163, 184, 0.08); }
  .link-arrow:hover svg { transform: translateX(3px); }
  .main-nav a:hover { color: #fff; background: rgba(148, 163, 184, 0.10); }
  .card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
  .card--glow:hover { border-color: var(--accent-line); box-shadow: var(--shadow-glow-cyan); }
  .integration:hover { border-color: var(--border-strong); background: rgba(17, 24, 39, 0.6); color: #fff; }
  .footer-col a:hover { color: #fff; text-decoration: underline; }
  .footer-legal a:hover { color: #fff; }
  .social a:hover { color: #fff; border-color: var(--border-strong); background: rgba(148, 163, 184, 0.08); }
  .breadcrumbs a:hover { color: #fff; text-decoration: underline; }
  .entry-content a:hover { color: #fff; }
  .copy-btn:hover { color: #fff; border-color: var(--color-cyan-400); }
  .post-card h3 a:hover, .term-card h3 a:hover { color: var(--accent-text); }
  .filter-tab:hover { border-color: var(--border-strong); color: #fff; }
  .toc a:hover, .legal-nav a:hover { color: #fff; }
  .glossary-az button:hover, .az-index a:hover { color: #fff; border-color: var(--border-strong); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .site-footer, .consent, .btn-row, .share, .toc { display: none; }
  .card, .step, .price-card, .figure { break-inside: avoid; border-color: #999; }
  a { color: #000; }
  h1, h2, h3, h4 { color: #000; }
  .prose p, .prose li, .card p { color: #111; }
}
