/* ---------- AudienceQ — Tokens & Base ---------- */

:root {
  /* Light (default) */
  --bg: #fafaf7;
  --bg-2: #f4f3ee;
  --surface: #ffffff;
  --surface-2: #f7f6f1;
  --fg: #0a0e1a;
  --fg-2: #2c3344;
  --fg-3: #5b6478;
  --fg-4: #8d94a3;
  --border: #ebeae3;
  --border-strong: #d9d7cf;
  --accent: #7b61d1;
  --accent-hover: #6a4fc4;
  --accent-soft: #ede8f8;
  --accent-ink: #ffffff;
  --breach: #d4513f;
  --breach-soft: #fae4df;
  --breach-ink: #5a1d13;
  --warn: #b87a2a;
  --warn-soft: #f5e8d2;
  --warn-ink: #4a2f0d;
  --ok: #14b89a;
  --ok-soft: #d9f3eb;
  --shadow-1: 0 1px 2px rgba(15, 20, 35, 0.04), 0 1px 1px rgba(15, 20, 35, 0.03);
  --shadow-2: 0 8px 24px -8px rgba(15, 20, 35, 0.10), 0 2px 6px rgba(15, 20, 35, 0.04);
  --shadow-3: 0 24px 60px -20px rgba(15, 20, 35, 0.18), 0 4px 16px -4px rgba(15, 20, 35, 0.06);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --maxw: 1180px;
  --pad: 32px;
}

html[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-2: #0e1324;
  --surface: #12172a;
  --surface-2: #181d33;
  --fg: #e9ecf3;
  --fg-2: #c2c8d6;
  --fg-3: #828a9d;
  --fg-4: #5b6478;
  --border: #1f2540;
  --border-strong: #2a3252;
  --accent: #9d83eb;
  --accent-hover: #b29bf0;
  --accent-soft: rgba(157, 131, 235, 0.16);
  --accent-ink: #ffffff;
  --breach: #ff7a6b;
  --breach-soft: rgba(255, 122, 107, 0.14);
  --breach-ink: #ffd9d2;
  --warn: #f0b35a;
  --warn-soft: rgba(240, 179, 90, 0.14);
  --warn-ink: #ffe6c2;
  --ok: #3ee0c4;
  --ok-soft: rgba(62, 224, 196, 0.14);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.40), 0 1px 1px rgba(0,0,0,0.30);
  --shadow-2: 0 8px 24px -8px rgba(0,0,0,0.50), 0 2px 6px rgba(0,0,0,0.30);
  --shadow-3: 0 24px 60px -20px rgba(0,0,0,0.60), 0 4px 16px -4px rgba(0,0,0,0.30);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', system-ui, -apple-system, Segoe UI, sans-serif;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease, color 220ms ease;
}
html[lang="ar"], html[lang="ar"] body {
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
}
body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-feature-settings: normal; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: 112px; position: relative; }
.section--tight { padding-block: 72px; }
.section--alt { background: var(--bg-2); }
.section--surface { background: var(--surface); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 999px; background: var(--accent);
}
html[lang="ar"] .eyebrow { font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; letter-spacing: 0; text-transform: none; font-size: 13px; }

/* Type */
h1, h2, h3, h4 { font-family: inherit; margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 500; color: var(--fg); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(40px, 5.4vw, 68px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); }
p { margin: 0; color: var(--fg-2); }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-2); max-width: 60ch; line-height: 1.55; }
html[lang="ar"] .lead { line-height: 1.75; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding-inline: 18px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost {
  background: transparent; color: var(--fg);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { height: 36px; padding-inline: 14px; font-size: 14px; }
.btn--lg { height: 52px; padding-inline: 24px; font-size: 16px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.card--soft { background: var(--surface-2); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding-inline: 10px;
  border-radius: 999px;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.02em;
  background: var(--surface-2); color: var(--fg-3);
  border: 1px solid var(--border);
}
.pill--breach { background: var(--breach-soft); color: var(--breach); border-color: transparent; }
.pill--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* Inputs */
.input, .select {
  width: 100%; height: 46px;
  padding-inline: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--fg); font-size: 15px; font-family: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.label { display: block; font-size: 13px; color: var(--fg-3); margin-bottom: 8px; }
.label .req { color: var(--breach); margin-inline-start: 4px; }

/* RTL adjustments */
html[lang="ar"] { direction: rtl; }
html[lang="ar"] .btn .arrow { transform: scaleX(-1); }

/* Scroll links smooth */
html { scroll-behavior: smooth; }

/* Fine details */
::selection { background: var(--accent-soft); color: var(--accent-ink); }
html[data-theme="dark"] ::selection { background: var(--accent); color: var(--accent-ink); }

/* Subtle grid bg used in hero */
.bg-grid {
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.nav--scrolled { border-bottom-color: var(--border); }
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.nav__logoimg { height: 24px; width: auto; display: block; }
html[data-theme="dark"] .nav__logoimg { filter: invert(1) hue-rotate(180deg) brightness(1.05); }
.nav__logo {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--fg); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 13px; font-weight: 600;
  position: relative;
}
.nav__logo::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
  border: 2px solid var(--bg);
}
html[lang="ar"] .nav__logo::after { right: auto; left: -3px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: 16px; }
.nav__link {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--fg-3);
  transition: color 120ms ease, background-color 120ms ease;
}
.nav__link:hover { color: var(--fg); background: var(--surface-2); }
.nav__spacer { flex: 1; }
.nav__tools { display: flex; align-items: center; gap: 6px; }
.iconbtn {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  color: var(--fg-2); transition: all 120ms ease;
}
.iconbtn:hover { background: var(--surface-2); color: var(--fg); border-color: var(--border-strong); }
.langtoggle {
  height: 36px; padding-inline: 12px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: transparent;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 12px;
  color: var(--fg-2); transition: all 120ms ease;
}
.langtoggle:hover { background: var(--surface-2); color: var(--fg); }
.langtoggle b { color: var(--fg); }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 96px 80px; position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  height: 30px; padding-inline: 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 12px; color: var(--fg-3);
  margin-bottom: 28px;
  box-shadow: var(--shadow-1);
}
.hero__kicker .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); position: relative; }
.hero__kicker .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  background: var(--accent); opacity: 0.3; animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}
.hero h1 strong {
  font-weight: 500; color: var(--fg);
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  padding-inline: 2px;
}
.hero__sub { margin-top: 24px; }
.hero__ctas { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.hero__trust {
  display: flex; gap: 8px; align-items: center;
  margin-top: 28px;
  color: var(--fg-3); font-size: 14px;
}
.hero__trust svg { color: var(--accent); }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Mini Dashboard (hero animated preview) ---------- */
.md {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(20, 25, 40, 0.04),
              0 24px 48px -20px rgba(20, 25, 40, 0.14),
              0 4px 12px -4px rgba(20, 25, 40, 0.06);
  overflow: hidden;
  position: relative;
}
.md__chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

/* ----- Interactive tab bar ----- */
.md__tabs {
  display: flex;
  gap: 0;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.md__tabs::-webkit-scrollbar { display: none; }
.md__tab {
  position: relative;
  padding: 11px 14px 12px;
  background: transparent;
  border: 0;
  font-size: 12.5px;
  color: var(--fg-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 160ms ease;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 500;
}
.md__tab:hover { color: var(--fg-2); }
.md__tab[data-active="true"] { color: var(--fg); }
.md__tab[data-active="true"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  inset-inline: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.md__tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--breach-soft);
  color: var(--breach);
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
}
html[lang="ar"] .md__tab-badge { font-family: inherit; font-size: 11px; }
.md__dots { display: inline-flex; gap: 6px; }
.md__dots span {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--border-strong);
}
.md__dots span:nth-child(1) { background: #f0816e; opacity: 0.6; }
.md__dots span:nth-child(2) { background: #e0b35f; opacity: 0.6; }
.md__dots span:nth-child(3) { background: #5dd3a0; opacity: 0.6; }
.md__title {
  flex: 1;
  font-size: 12.5px;
  color: var(--fg-3);
  font-weight: 500;
  text-align: center;
}
.md__sync {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--fg-4);
}
html[lang="ar"] .md__sync { font-size: 11.5px; font-family: inherit; }
.md__sync-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--ok);
}

.md__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* KPI strip */
.md__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.md__kpi {
  padding: 12px 14px;
  border-inline-start: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.md__kpi:first-child { border-inline-start: 0; }
.md__kpi-label {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="ar"] .md__kpi-label {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  font-family: inherit;
  font-weight: 500;
}
.md__kpi-value {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.md__kpi-value small {
  font-size: 14px;
  color: var(--fg-3);
  font-weight: 500;
}
.md__kpi-delta {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 10.5px;
}
html[lang="ar"] .md__kpi-delta { font-family: inherit; font-size: 11.5px; }
.md__kpi-delta--up { color: var(--breach); }
.md__kpi-delta--down { color: var(--ok); }
.md__spark { width: 100%; height: 14px; margin-top: 2px; }

/* Section headers (week, etc) */
.md__section-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-2);
}
.md__section-meta {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--fg-4);
  margin-inline-start: auto;
}
html[lang="ar"] .md__section-meta { font-family: inherit; font-size: 11.5px; }

/* Week chart */
.md__week {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.md__week-head {
  display: flex;
  align-items: baseline;
  margin-bottom: 10px;
}
.md__bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  height: 56px;
  align-items: end;
}
.md__bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.md__bar {
  width: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2, #5e8fb0));
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  flex: 0 0 auto;
  align-self: stretch;
  animation: md-bar-grow 700ms cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.md__bar-col:nth-child(1) .md__bar { animation-delay: 0ms; }
.md__bar-col:nth-child(2) .md__bar { animation-delay: 60ms; }
.md__bar-col:nth-child(3) .md__bar { animation-delay: 120ms; }
.md__bar-col:nth-child(4) .md__bar { animation-delay: 180ms; }
.md__bar-col:nth-child(5) .md__bar { animation-delay: 240ms; }
.md__bar-col:nth-child(6) .md__bar { animation-delay: 300ms; }
.md__bar-col:nth-child(7) .md__bar { animation-delay: 360ms; }
@keyframes md-bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}
.md__bar-label {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--fg-4);
}
html[lang="ar"] .md__bar-label { font-family: inherit; font-size: 10.5px; }

/* Conversation rows */
.md__rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.md__row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  position: relative;
  transition: background-color 320ms ease;
}
.md__row:first-child { border-top: 0; }
.md__row[data-state="warn"]   { background: rgba(163, 104, 24, 0.04); }
.md__row[data-state="breach"] { background: rgba(193, 70, 51, 0.05); }
.md__row-strip {
  width: 3px;
  height: 24px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background-color 320ms ease;
}
html[lang="ar"] .md__row-strip { border-radius: 3px 0 0 3px; }
.md__row[data-state="warn"]   .md__row-strip { background: var(--warn); }
.md__row[data-state="breach"] .md__row-strip { background: var(--breach); }
.md__row[data-state="ok"]     .md__row-strip { background: var(--ok); }
.md__row-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  transition: background-color 320ms ease, color 320ms ease;
}
.md__row-avatar--ok     { background: var(--ok-soft);     color: var(--ok); }
.md__row-avatar--warn   { background: var(--warn-soft);   color: var(--warn); }
.md__row-avatar--breach { background: var(--breach-soft); color: var(--breach); }
.md__row-body { min-width: 0; }
.md__row-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md__row-last {
  font-size: 11.5px;
  color: var(--fg-4);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md__row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
html[lang="ar"] .md__row-right { align-items: flex-start; }
.md__row-time {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: color 320ms ease;
}
.md__row-time--ok     { color: var(--ok); }
.md__row-time--warn   { color: var(--warn); }
.md__row-time--breach { color: var(--breach); }
.md__row-pill {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 320ms ease, color 320ms ease;
}
html[lang="ar"] .md__row-pill { font-size: 11px; font-family: inherit; }
.md__row-pill--ok     { background: var(--ok-soft);     color: var(--ok); }
.md__row-pill--warn   { background: var(--warn-soft);   color: var(--warn); }
.md__row-pill--breach { background: var(--breach-soft); color: var(--breach); }

/* Alert toast */
.md__toast {
  position: absolute;
  bottom: 14px;
  inset-inline: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--breach);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 8px 24px -8px rgba(193, 70, 51, 0.16),
              0 2px 6px rgba(20, 25, 40, 0.06);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.md__toast--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.md__toast-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--breach-soft);
  color: var(--breach);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 26px;
}
.md__toast-title { font-size: 12.5px; font-weight: 500; color: var(--fg); margin-bottom: 2px; }
.md__toast-body { font-size: 11.5px; color: var(--fg-3); line-height: 1.45; }

@media (max-width: 980px) {
  .md__kpis { grid-template-columns: 1fr 1fr; }
  .md__kpi { border-top: 1px solid var(--border); }
  .md__kpi:nth-child(-n+2) { border-top: 0; }
  .md__kpi:nth-child(2n+1) { border-inline-start: 0; }
}

/* Hide the old inbox mockup if it's still rendered somewhere */
.inbox { display: none; }

/* ----- Inbox pane (full conversation list) ----- */
.md__inbox-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.md__filters {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.md__filter {
  background: transparent;
  border: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.md__filter:hover { color: var(--fg); }
.md__filter[data-active="true"] {
  background: var(--fg);
  color: var(--bg);
}
.md__filter-count {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 10.5px;
  opacity: 0.7;
}
html[lang="ar"] .md__filter-count { font-family: inherit; font-size: 11.5px; }
.md__rows--big { max-height: 280px; overflow: hidden; }
.md__empty {
  padding: 32px 14px;
  text-align: center;
  color: var(--fg-4);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ----- Groups pane (table) ----- */
.md__table {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.md__table-head, .md__table-row {
  display: grid;
  grid-template-columns: 1fr 70px 110px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
}
.md__table-head {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-4);
  font-weight: 500;
}
html[lang="ar"] .md__table-head {
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
}
.md__table-row {
  font-size: 12.5px;
  border-top: 1px solid var(--border);
  color: var(--fg-2);
}
.md__table-row:first-of-type { border-top: 0; }
.md__table-name {
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md__table-num {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.md__table-sla { display: flex; align-items: center; gap: 8px; }
.md__slabar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3, var(--border));
  overflow: hidden;
}
.md__slabar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.md__slabar-val {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-2);
  min-width: 32px;
  text-align: end;
}
html[lang="ar"] .md__slabar-val { font-family: inherit; font-size: 12.5px; }

/* ============================================================
   SCROLL-REVEAL — subtle fade-up as elements enter viewport
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal-stagger][data-revealed="true"] > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms;  }
[data-reveal-stagger][data-revealed="true"] > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
[data-reveal-stagger][data-revealed="true"] > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms;}
[data-reveal-stagger][data-revealed="true"] > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms;}
[data-reveal-stagger][data-revealed="true"] > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms;}
[data-reveal-stagger][data-revealed="true"] > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 400ms;}
[data-reveal-stagger][data-revealed="true"] > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 480ms;}
[data-reveal-stagger][data-revealed="true"] > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 560ms;}

/* Trust-strip numbers count from a CSS counter — handled by JS. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Print (PDF export for designer handoff) ---------- */
@media print {
  /* Reveal everything — scroll-reveal starts at opacity:0 */
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Un-stick the nav so it doesn't overlap content on every page */
  .nav {
    position: static !important;
    backdrop-filter: none !important;
    background: var(--surface) !important;
  }
  /* Keep section blocks from splitting awkwardly across pages */
  section, .trust, .features, .compare, .impact, .faq, .md {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  html, body { background: #fff; }
  @page { margin: 14mm; }
}
.inbox {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 20px;
  overflow: hidden;
}
.inbox::before {
  content: "";
  position: absolute; inset: -40% -10% auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  filter: blur(20px);
  z-index: 0; pointer-events: none;
}
.inbox > * { position: relative; }
.inbox__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 4px 14px; margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.inbox__title { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.inbox__title .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 11px;
  color: var(--accent); padding: 3px 8px;
  background: var(--accent-soft); border-radius: 999px;
}
.inbox__title .live .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); position: relative; }
.inbox__title .live .dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 999px;
  background: var(--accent); opacity: 0.4; animation: pulse 1.6s ease-out infinite;
}
.inbox__meta { font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 11px; color: var(--fg-4); }

.row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 12px;
  transition: background-color 160ms ease;
}
.row + .row { margin-top: 4px; }
.row:hover { background: var(--surface-2); }
.row__avatar {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 12px;
  font-weight: 600;
}
.row__avatar--breach { background: var(--breach-soft); color: var(--breach); }
.row__avatar--warn { background: var(--warn-soft); color: var(--warn); }
.row__avatar--ok { background: var(--ok-soft); color: var(--ok); }
.row__name { font-size: 14px; font-weight: 500; color: var(--fg); }
.row__last { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }
.row__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row__time { font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 13px; color: var(--fg-2); }
.row__time--breach { color: var(--breach); font-weight: 500; }
.row__time--warn { color: var(--warn); }
html[lang="ar"] .row__right { align-items: flex-start; }

.alert-toast {
  margin-top: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--breach);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.alert-toast__icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--breach-soft); color: var(--breach);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 28px;
}
.alert-toast__title { font-size: 13px; font-weight: 500; color: var(--fg); margin-bottom: 4px; }
.alert-toast__body { font-size: 12.5px; color: var(--fg-3); line-height: 1.5; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust__cell {
  padding: 28px 20px;
  border-inline-start: 1px solid var(--border);
}
.trust__cell:first-child { border-inline-start: 0; }
.trust__num { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.trust__label { font-size: 14px; color: var(--fg-3); margin-top: 6px; }
@media (max-width: 700px) {
  .trust { grid-template-columns: 1fr; }
  .trust__cell { border-inline-start: 0; border-top: 1px solid var(--border); }
  .trust__cell:first-child { border-top: 0; }
}

/* ---------- Sections shared ---------- */
.section__head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section__head--center { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; text-align: start; }
@media (max-width: 820px) { .section__head { grid-template-columns: 1fr; gap: 16px; } }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding-inline: 12px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; color: var(--fg-2); background: var(--surface);
}

/* Audience cards */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .audience-grid { grid-template-columns: 1fr; } }
.audience { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.audience__bullet {
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.audience__text { font-size: 15.5px; color: var(--fg-2); line-height: 1.5; }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 260px;
  position: relative; overflow: hidden;
}
.feature__num {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 12px;
  color: var(--fg-4);
}
.feature__visual {
  height: 84px; margin-top: auto;
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  padding: 12px;
}
.feature h3 { font-size: 17px; font-weight: 500; }
.feature p { font-size: 14.5px; color: var(--fg-3); line-height: 1.55; }

/* Mini visuals for features */.mini-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; background: var(--surface); border-radius: 6px; font-size: 11px; color: var(--fg-3); }
.mini-row + .mini-row { margin-top: 4px; }
.mini-bar { height: 6px; border-radius: 999px; background: var(--border); position: relative; overflow: hidden; }
.mini-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: inherit; }

/* ---------- New capabilities (Reports + Influencer bot) ---------- */
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .caps { grid-template-columns: 1fr; } }
.cap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 18px);
  padding: 30px 30px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cap__head { margin-bottom: 18px; }
.cap__tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500;
}
html[lang="ar"] .cap__tag { font-family: inherit; font-size: 12.5px; }
.cap__title {
  font-family: 'Instrument Serif', serif;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.01em;
  font-weight: 400; color: var(--fg); margin: 0 0 12px;
}
html[lang="ar"] .cap__title { font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 600; font-size: 24px; }
.cap__body { font-size: 15px; line-height: 1.6; color: var(--fg-3); margin: 0 0 20px; max-width: 46ch; }
.cap__points { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.cap__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.cap__points li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.cap__visual {
  margin-top: auto;
  margin-inline: -30px;
  padding: 24px 30px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* Report visual */
.cap-report { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cap-report__doc {
  width: 100%; max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px -14px rgba(20,25,40,0.22);
  overflow: hidden;
}
.cap-report__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.cap-report__logo {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--fg); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
}
.cap-report__brand {
  font-family: 'Instrument Serif', serif; font-size: 15px; flex: 1;
}
html[lang="ar"] .cap-report__brand { font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 600; }
.cap-report__badge {
  font-family: 'Geist Mono', monospace; font-size: 9.5px;
  padding: 2px 6px; border-radius: 4px;
  background: var(--breach-soft); color: var(--breach);
}
.cap-report__rows { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cap-report__kv { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--fg-3); }
.cap-report__kv b { font-family: 'Geist Mono', monospace; font-size: 16px; color: var(--fg); }
.cap-report__mini-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 4px;
}
.cap-report__mini-bars span {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2, #5e8fb0));
}
.cap-report__cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--fg); color: var(--bg); border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 500; font-family: inherit;
}

/* Bot visual */
.cap-bot { display: flex; flex-direction: column; gap: 14px; }
.cap-bot__chat { display: flex; flex-direction: column; gap: 8px; }
.cap-bot__msg {
  border-radius: 12px; padding: 9px 12px; font-size: 13px; line-height: 1.45;
  max-width: 84%; border: 1px solid var(--border); background: var(--surface); color: var(--fg-2);
}
.cap-bot__msg--out { align-self: flex-end; border-end-end-radius: 4px; font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 12px; }
.cap-bot__msg--watch { align-self: flex-start; border-end-start-radius: 4px; font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 12px; }
html[lang="ar"] .cap-bot__msg--watch { font-family: inherit; font-size: 13px; }
.cap-bot__msg--in { align-self: flex-start; border-end-start-radius: 4px; background: var(--accent-soft); border-color: transparent; color: var(--fg); }
.cap-bot__msg--in b { color: var(--accent); }
.cap-bot__msg--alert { align-self: flex-start; background: var(--breach-soft); border-color: transparent; color: var(--breach); }
.cap-bot__who {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 10px; opacity: 0.7; margin-bottom: 4px; letter-spacing: 0.02em;
}
html[lang="ar"] .cap-bot__who { font-family: inherit; font-size: 11.5px; }
.cap-bot__platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-bot__plat {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg-3);
}

/* Silent failure */
.silent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .silent-grid { grid-template-columns: 1fr; } }
.silent {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.silent__title { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.silent__body { font-size: 14.5px; color: var(--fg-3); line-height: 1.6; }
.silent__num {
  display: inline-block;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 12px;
  color: var(--fg-4); margin-bottom: 16px;
}

.silent-strap {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  font-size: 17px; font-weight: 500; color: var(--fg);
  text-align: center;
}
html[lang="ar"] .silent-strap { font-size: 19px; line-height: 1.6; }

/* Scenario */
.scenario { display: grid; grid-template-columns: 1.2fr 0.85fr; gap: 56px; align-items: flex-start; }
@media (max-width: 980px) { .scenario { grid-template-columns: 1fr; } }
.timeline { position: relative; padding-inline-start: 28px; }
.timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px;
  inset-inline-start: 11px; width: 2px;
  background: var(--border);
}
.tl-item { position: relative; padding-block: 16px; }
.tl-item + .tl-item { border-top: 1px solid var(--border); }
.tl-item__dot {
  position: absolute; top: 22px; inset-inline-start: -23px;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--border-strong);
}
.tl-item--breach .tl-item__dot { background: var(--breach); border-color: var(--breach); box-shadow: 0 0 0 4px var(--breach-soft); }
.tl-item--ok .tl-item__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-time {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 12px;
  color: var(--fg-4); margin-bottom: 6px;
}
.tl-body { font-size: 15.5px; color: var(--fg-2); line-height: 1.55; }
.tl-body strong { color: var(--fg); font-weight: 500; }

/* Phone alert */
.phone {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative; overflow: hidden;
}
.phone__label {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 11px; color: var(--fg-4);
  margin-bottom: 16px;
}
.phone__notif {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-2);
  margin-bottom: 12px;
  position: relative;
}
.phone__notif::before {
  content: ""; position: absolute;
  inset-block: 12px; inset-inline-start: 0;
  width: 3px; background: var(--breach); border-radius: 999px;
}
.phone__notif-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 11px; color: var(--fg-4);
}
.phone__notif-head .src { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-3); }
.phone__notif-head .src .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }
.phone__notif-row { display: flex; gap: 10px; font-size: 14px; padding-block: 3px; }
.phone__notif-row .k { color: var(--fg-3); flex: 0 0 84px; }
.phone__notif-row .v { color: var(--fg); }
.phone__notif-row .v.breach { color: var(--breach); }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare__col { padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); }
.compare__col--neg { background: var(--surface-2); }
.compare__h {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; font-size: 12px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.compare__h .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px;
  font-family: 'Geist Mono'; font-size: 12px;
}
.compare__col--neg .compare__h .badge { background: var(--breach-soft); color: var(--breach); }
.compare__col--pos .compare__h .badge { background: var(--accent-soft); color: var(--accent); }
html[lang="ar"] .compare__h { letter-spacing: 0; text-transform: none; }
.compare ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.compare li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fg-2); line-height: 1.55; }
.compare li::before {
  content: ""; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 6px;
  background-position: center; background-repeat: no-repeat; background-size: 12px 12px;
}
.compare__col--neg li::before { background-color: var(--breach-soft); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23d4513f' stroke-width='1.6' stroke-linecap='round'><path d='M3 3L9 9M9 3L3 9'/></svg>"); }
.compare__col--pos li::before { background-color: var(--accent-soft); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237b61d1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 6.5L5 9L9.5 3.5'/></svg>"); }
html[data-theme="dark"] .compare__col--neg li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ff7a6b' stroke-width='1.6' stroke-linecap='round'><path d='M3 3L9 9M9 3L3 9'/></svg>"); }
html[data-theme="dark"] .compare__col--pos li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%239d83eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 6.5L5 9L9.5 3.5'/></svg>"); }

/* Impact stats */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .impact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .impact { grid-template-columns: 1fr; } }
.impact__card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.impact__title { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.impact__body { font-size: 14px; color: var(--fg-3); line-height: 1.5; }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq__item {
  border-top: 1px solid var(--border);
  padding-block: 4px;
}
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__btn {
  width: 100%; background: transparent; border: 0;
  text-align: start;
  display: flex; gap: 16px; align-items: center;
  padding: 22px 4px;
  font-size: 17px; font-weight: 500; color: var(--fg);
  font-family: inherit;
}
.faq__icon {
  margin-inline-start: auto;
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--fg-3);
  transition: transform 220ms ease, background-color 160ms ease;
}
.faq__item[data-open="true"] .faq__icon { background: var(--accent-soft); color: var(--accent); transform: rotate(45deg); }
.faq__body {
  max-height: 0; overflow: hidden; transition: max-height 280ms ease, padding 220ms ease;
  font-size: 15px; color: var(--fg-3); line-height: 1.6;
  padding: 0 4px;
}
.faq__item[data-open="true"] .faq__body {
  max-height: 320px; padding-block: 0 22px;
}

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: flex-start; }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; } }
.contact__side { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.contact__bullets { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact__bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--fg-2); }
.contact__bullets svg { color: var(--accent); flex: 0 0 18px; margin-top: 2px; }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__field { display: flex; flex-direction: column; }
.contact__field--full { grid-column: 1 / -1; }
.contact__form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.contact__form-foot .privacy { font-size: 12.5px; color: var(--fg-4); max-width: 42ch; }

/* Final CTA */
.final {
  padding-block: 112px;
  text-align: start;
}
.final__card {
  padding: 64px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
}
.final__card::before {
  content: ""; position: absolute;
  top: -40%; inset-inline-end: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.final h2 { max-width: 22ch; position: relative; }
.final h2 strong {
  font-weight: 500;
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  padding-inline: 2px;
}
.final .btn { margin-top: 32px; position: relative; }
@media (max-width: 700px) {
  .final__card { padding: 36px; }
}

/* Footer */
.sitefoot {
  border-top: 1px solid var(--border);
  padding-block: 64px 32px;
  background: var(--bg);
}
.sitefoot__top {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 56px;
  padding-bottom: 48px;
}
.sitefoot__brand { max-width: 36ch; }
.sitefoot__tagline {
  font-size: 14.5px;
  color: var(--fg-3);
  line-height: 1.55;
  margin-top: 16px;
}
.sitefoot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.sitefoot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sitefoot__col a { font-size: 14px; color: var(--fg-3); transition: color 120ms ease; }
.sitefoot__col a:hover { color: var(--fg); }
.sitefoot__colh {
  font-family: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
html[lang="ar"] .sitefoot__colh { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.sitefoot__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-4);
}
.sitefoot__locale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sitefoot__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}
@media (max-width: 820px) {
  .sitefoot__top { grid-template-columns: 1fr; gap: 40px; }
  .sitefoot__cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 520px) {
  .sitefoot__cols { grid-template-columns: 1fr 1fr; }
}

.footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-4);
}
.footer .nav__brand { font-size: 14px; color: var(--fg-3); }

/* Live tick indicator on hero pill */
@keyframes tick { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }
.tick { animation: tick 1.4s ease-in-out infinite; }

/* Tiny stylized icons */
.i-check, .i-arrow, .i-x, .i-bell { display: inline-block; vertical-align: middle; }
