/* =========================================================
   Sirb — Bilingual Marketing Site (AR / EN)
   Design system: Deep Teal + Bronze accent, parchment bg.
   ========================================================= */

:root {
  /* Brand */
  --teal-900: #062b29;
  --teal-800: #0a3a37;
  --teal-700: #0e4d49;
  --teal-600: #136a64;
  --teal-500: #1a8a82;
  --teal-400: #2bb3a9;
  --teal-300: #6ee0d6;
  --bronze-600: #b58a4a;
  --bronze-500: #c89c5f;
  --bronze-400: #e1b377;
  --bronze-300: #f0cf9b;

  /* Surfaces (light / parchment) */
  --bg: #f6f1e7;
  --bg-soft: #efe7d6;
  --bg-card: #ffffff;
  --ink: #14201f;
  --ink-2: #324341;
  --ink-3: #5b6a68;
  --line: #dccfb1;
  --line-soft: #ece2c9;

  /* Hero (always dark) */
  --hero-bg-1: #04181b;
  --hero-bg-2: #061f23;
  --hero-ink: #e7f7f5;
  --hero-ink-2: #a4c7c3;

  /* Status */
  --good: #1a8a82;
  --warn: #c89c5f;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(6, 43, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(6, 43, 41, 0.10);
  --shadow-lg: 0 20px 50px rgba(6, 43, 41, 0.18);

  /* Type */
  --font-ar: "IBM Plex Sans Arabic", "Tajawal", "Cairo", system-ui, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --max: 1180px;
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
  --bg: #0a1414;
  --bg-soft: #0f1d1c;
  --bg-card: #122423;
  --ink: #e7f7f5;
  --ink-2: #bfd6d3;
  --ink-3: #94adab;
  --line: #1d3434;
  --line-soft: #16302f;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-400); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
html[data-theme="dark"] .site-header { background: rgba(10, 20, 20, 0.85); }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.2rem;
  flex-shrink: 0;
}
/* Logo image: the user's original PNG file, displayed honestly.
   No SVG redraw, no CSS gradient placeholder — only the file. */
.brand-logo {
  display: inline-flex;
  align-items: center;
}
.brand-logo img {
  display: block;
  height: 48px;
  width: auto;
  background: transparent;
}
.site-header .brand-logo img { height: 44px; }
.footer-brand .brand-logo img {
  height: 64px;
  filter: drop-shadow(0 4px 14px rgba(255,255,255,.08));
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-600); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
html[dir="rtl"] .nav { direction: rtl; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff;
  box-shadow: 0 8px 22px rgba(19, 106, 100, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(19, 106, 100, .5); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn-bronze {
  background: linear-gradient(135deg, var(--bronze-500), var(--bronze-400));
  color: #2a1f10;
  box-shadow: 0 8px 22px rgba(200, 156, 95, .35);
}
.hero-actions .btn-ghost { color: var(--hero-ink); border-color: rgba(255,255,255,.25); }
.hero-actions .btn-ghost:hover { border-color: var(--teal-300); color: var(--teal-300); }

/* ---------- Lang switcher ---------- */
.lang-switch {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  font-size: .85rem;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
}
.lang-switch button.active {
  background: var(--teal-600);
  color: #fff;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { color: var(--teal-600); border-color: var(--teal-500); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top, var(--hero-bg-2) 0%, var(--hero-bg-1) 70%);
  color: var(--hero-ink);
  overflow: hidden;
  padding: 110px 0 120px;
  isolation: isolate;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(110, 224, 214, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 224, 214, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: var(--hero-ink);
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--teal-300), var(--bronze-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--hero-ink-2);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--hero-ink-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-300);
  box-shadow: 0 0 8px var(--teal-300);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-dark { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(19, 106, 100, .12);
  color: var(--teal-600);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
html[data-theme="dark"] .eyebrow { background: rgba(110, 224, 214, .14); color: var(--teal-300); }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head p { max-width: 620px; margin: .5em auto 0; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.stat-cell {
  padding: 28px 22px;
  text-align: center;
  border-inline-end: 1px solid var(--line);
}
.stat-cell:last-child { border-inline-end: 0; }
.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--teal-700);
  font-variant-numeric: tabular-nums;
  display: block;
}
html[data-theme="dark"] .stat-num { color: var(--teal-300); }
.stat-label { color: var(--ink-3); font-size: .9rem; }

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--bronze-500));
  border-radius: 0 3px 3px 0;
}
html[dir="rtl"] .feature-card::before {
  border-radius: 3px 0 0 3px;
  inset-inline-start: auto;
  inset-inline-end: 0;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-400);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(19,106,100,.1), rgba(200,156,95,.15));
  color: var(--teal-600);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* ---------- Why / Quote block ---------- */
.why-block {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.why-quote {
  background: var(--bg-card);
  border-inline-start: 4px solid var(--bronze-500);
  padding: 30px 34px;
  border-radius: var(--r-md);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.why-quote .ref {
  font-size: .8rem;
  color: var(--ink-3);
  margin-top: 16px;
  font-weight: 400;
}
.why-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  background: radial-gradient(circle at center, var(--teal-700), var(--teal-900));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 30px;
}
.why-visual svg { width: 100%; height: 100%; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 36px;
  position: relative;
}
.billing-toggle button {
  background: transparent;
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  z-index: 1;
}
.billing-toggle button.active {
  background: var(--teal-600);
  color: #fff;
}
.billing-toggle .badge-save {
  position: absolute;
  top: -10px;
  inset-inline-end: -10px;
  background: var(--bronze-500);
  color: #2a1f10;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: none;
}
.billing-toggle[data-billing="annual"] .badge-save { display: inline-block; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 30px;
  margin-bottom: 40px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.popular {
  border: 2px solid var(--bronze-500);
  box-shadow: 0 16px 40px rgba(200, 156, 95, .25);
}
.price-card.popular .popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bronze-500);
  color: #2a1f10;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
html[dir="rtl"] .price-card.popular .popular-tag { transform: translateX(50%); }
.price-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.price-card .tier-desc { color: var(--ink-3); font-size: .9rem; margin-bottom: 22px; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.price-amount .currency { font-size: 1rem; color: var(--ink-3); font-weight: 600; }
.price-amount .num {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.price-amount .per { font-size: .9rem; color: var(--ink-3); }
.price-amount .strike { color: var(--ink-3); text-decoration: line-through; font-size: 1.1rem; font-weight: 600; margin-inline-end: 8px; display: none; }
.price-card.annual .price-amount .strike { display: inline; }
.price-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  flex: 1;
}
.price-features li {
  padding: 6px 0;
  font-size: .92rem;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-features li::before {
  content: "✓";
  color: var(--teal-500);
  font-weight: 700;
  flex-shrink: 0;
}
html[dir="rtl"] .price-features li { flex-direction: row-reverse; }

.price-calc {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-bottom: 22px;
}
.price-calc label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.price-calc input[type="number"] {
  width: 100%;
  max-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
}
.price-calc .total-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.price-calc .total-cell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  text-align: center;
}
.price-calc .total-cell .tier { font-size: .8rem; color: var(--ink-3); }
.price-calc .total-cell .amount { font-weight: 700; color: var(--teal-700); font-size: 1.05rem; }
html[data-theme="dark"] .price-calc .total-cell .amount { color: var(--teal-300); }

.pricing-foot {
  text-align: center;
  color: var(--ink-3);
  font-size: .9rem;
  margin-top: 14px;
}
.min-note {
  display: inline-block;
  background: rgba(200, 156, 95, .15);
  color: var(--bronze-600);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: 14px;
}
html[data-theme="dark"] .min-note { color: var(--bronze-400); }

/* ---------- Mini simulation ---------- */
.mini-sim {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  background: radial-gradient(circle at center, var(--teal-800), var(--teal-900));
  overflow: hidden;
  margin-top: 20px;
}
.mini-sim canvas { width: 100%; height: 100%; display: block; }
.mini-sim-label {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 18px;
  color: var(--hero-ink-2);
  font-size: .85rem;
  background: rgba(0,0,0,.25);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.t-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.t-quote {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.7;
}
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--bronze-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.t-name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.t-role { color: var(--ink-3); font-size: .8rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600) 60%, var(--bronze-500));
  color: #fff;
  padding: 54px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.cta-banner .btn-bronze { color: #2a1f10; }
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 50%);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1/-1; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-group input, .form-group textarea, .form-group select {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  color: var(--ink);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(26, 138, 130, .15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-success {
  background: rgba(26, 138, 130, .12);
  border: 1px solid var(--teal-500);
  color: var(--teal-700);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  margin-top: 14px;
  font-weight: 600;
}
html[data-theme="dark"] .form-success { color: var(--teal-300); }
.form-error {
  background: rgba(200, 100, 80, .12);
  border: 1px solid #c86450;
  color: #b85846;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  margin-top: 14px;
  font-weight: 600;
}

/* ---------- Security / trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative;
}
.trust-card .num {
  position: absolute;
  top: 22px;
  inset-inline-end: 24px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-500);
  opacity: .25;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(255,255,255,.75);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col a:hover { color: var(--teal-300); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--ink);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile fallback canvas (CSS dots) ---------- */
.css-swarm {
  display: none;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, var(--teal-300) 2px, transparent 3px),
    radial-gradient(circle at 50% 60%, var(--teal-400) 2px, transparent 3px),
    radial-gradient(circle at 75% 25%, var(--bronze-400) 2px, transparent 3px),
    radial-gradient(circle at 85% 70%, var(--teal-300) 2px, transparent 3px),
    radial-gradient(circle at 35% 80%, var(--teal-400) 2px, transparent 3px),
    radial-gradient(circle at 60% 35%, var(--bronze-400) 2px, transparent 3px);
  background-size: 100% 100%;
  animation: swarm-drift 14s ease-in-out infinite alternate;
}
@keyframes swarm-drift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 8% -6%, -10% 5%, 4% -10%, -7% 8%, 6% -5%, -4% 6%; }
}
html[data-no-webgl="true"] .hero canvas { display: none; }
html[data-no-webgl="true"] .css-swarm { display: block; z-index: -1; }
html[data-no-webgl="true"] .mini-sim canvas { display: none; }
html[data-no-webgl="true"] .css-swarm-mini { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 80px 0 100px; }
  .section { padding: 70px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .why-block { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .stat-cell:nth-child(2n) { border-inline-end: 0; }
  .price-calc .total-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
  }
  .nav-links.open { display: flex; }
  .hero-meta { gap: 14px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-cell { border-inline-end: 0 !important; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: 0; }
  .cta-banner { padding: 40px 24px; }
}

/* ---------- Page header (non-hero) ---------- */
.page-header {
  padding: 70px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.page-header h1 { margin-bottom: 14px; }
.page-header p { max-width: 640px; margin: 0 auto; color: var(--ink-2); }
