/* ============================================================
   Zakaria Barjac AI Automation — design system
   ============================================================ */

:root {
  --bg: #FAF5EA;
  --surface: #F2EBDB;
  --surface-2: #FFFCF4;
  --accent: #B8860D;
  --accent-2: #8B650A;
  --accent-3: #D4A017;
  --text: #0F0F0F;
  --muted: #5C5346;
  --muted-2: #8A8071;
  --border: #E5DBC5;
  --border-strong: #C8B98F;
  --success: #0E7C57;
  --max-width: 1200px;
  --container-padding: clamp(20px, 4vw, 48px);
  --section-padding: clamp(64px, 9vw, 120px);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 0 rgba(45, 33, 10, 0.04) inset, 0 14px 36px rgba(45, 33, 10, 0.12);
  --shadow-card-rest: 0 6px 20px rgba(45, 33, 10, 0.06);
  --shadow-glow: 0 0 0 1px rgba(184, 134, 13, 0.32), 0 12px 36px rgba(184, 134, 13, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color 200ms var(--ease-out); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

/* ---------- helpers ---------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  width: 100%;
}
.container--narrow { max-width: 800px; }

.grad-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: #0A0A0A;
  box-shadow: 0 6px 24px rgba(212, 160, 23, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212, 160, 23, 0.40);
  color: #0A0A0A;
  background: var(--accent-3);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}
.btn--xl { padding: 18px 36px; font-size: 17px; }

/* ---------- navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 16px;
  background: rgba(255, 254, 248, 0.96);
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  border-bottom: 1px solid rgba(45, 33, 10, 0.06);
  box-shadow: 0 1px 0 rgba(45, 33, 10, 0.03);
}
.nav.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(45, 33, 10, 0.05);
}
.nav__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: #0A1628;
  transition: color 200ms var(--ease-out);
}
.nav.is-scrolled .nav__logo { color: var(--text); }
.nav__logo-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #F4D67A 0%, #D4A017 45%, #A07A0A 100%);
  color: #1A1100;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(80, 56, 0, 0.35),
    0 4px 12px rgba(184, 134, 13, 0.30),
    0 1px 2px rgba(0, 0, 0, 0.10);
}
.nav__logo-mark::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFEB99 0%, #E8C547 60%, #B8860D 100%);
  box-shadow:
    0 0 0 2px rgba(255, 254, 248, 0.96),
    0 0 8px rgba(232, 197, 71, 0.55);
}
.nav.is-scrolled .nav__logo-mark::after,
.blog-page .nav__logo-mark::after,
.footer__logo .nav__logo-mark::after {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 8px rgba(232, 197, 71, 0.55);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  color: #0A1628;
  font-weight: 500;
  transition: color 200ms var(--ease-out);
}
.nav__links a:hover { color: var(--accent); }
.nav.is-scrolled .nav__links a { color: var(--muted); }
.nav.is-scrolled .nav__links a:hover { color: var(--text); }
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  width: 22px;
  height: 1.5px;
  background: #0A1628;
  transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out), background 200ms var(--ease-out);
}
.nav.is-scrolled .nav__toggle span { background: var(--text); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg);
    box-shadow: 0 12px 32px rgba(45, 33, 10, 0.10);
    flex-direction: column;
    padding: 24px var(--container-padding) 32px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
    align-items: flex-start;
    gap: 18px;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a { font-size: 18px; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-block: 120px 80px;
  overflow: hidden;
  background: #E8F4FD;
  isolation: isolate;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  background: #E8F4FD;
  transform: scale(1.20);
  transform-origin: center center;
}
.hero__canvas { display: none; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 50% 42%, rgba(212, 160, 23, 0.18), transparent 70%);
}
.hero__grid { display: none; }
.hero__orb { display: none; }

.hero__inner {
  position: relative;
  z-index: 4;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #0A1628;
  margin-bottom: 24px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid #0A1628;
  border-radius: 999px;
  background: rgba(232, 244, 253, 0.85);
}
.hero__heading {
  font-size: clamp(38px, 6.8vw, 80px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 28px;
  color: #050B16;
  text-shadow:
    0 0 10px rgba(232, 244, 253, 0.92),
    0 0 22px rgba(232, 244, 253, 0.55);
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #0F1B2C;
  max-width: 680px;
  margin: 0 auto 40px;
  text-shadow:
    0 0 8px rgba(232, 244, 253, 0.92),
    0 0 16px rgba(232, 244, 253, 0.55);
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  z-index: 1;
  animation: float 2s var(--ease-in-out) infinite alternate;
}
.hero__scroll-dot {
  animation: scroll-dot 2s var(--ease-in-out) infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}
@keyframes float {
  from { transform: translate(-50%, 0); }
  to   { transform: translate(-50%, 6px); }
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: #0A0A0F;
  overflow: hidden;
  padding-block: 38px;
  position: relative;
  isolation: isolate;
}
.marquee__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  background: #0A0A0F;
}
.marquee__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, #0A0A0F 0%, transparent 12%, transparent 88%, #0A0A0F 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.30));
  pointer-events: none;
}
.marquee::before, .marquee::after {
  display: none;
}
.marquee__track {
  position: relative;
  z-index: 2;
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__group {
  display: flex;
  gap: 44px;
  padding-right: 44px;
  flex-shrink: 0;
  font-size: 14px;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(212, 160, 23, 0.35);
}
.marquee__group span {
  white-space: nowrap;
}
.marquee__group span:nth-child(odd) {
  color: var(--accent-3);
  text-shadow:
    0 0 1px rgba(232, 197, 71, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(212, 160, 23, 0.45);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-padding); position: relative; }
.section__eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.section__heading {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 18px;
  max-width: 800px;
}
.section__lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 720px;
}

.section--problem {
  background: #0A0A0F;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section--problem > .container { position: relative; z-index: 2; }
.section--problem .section__heading {
  color: #F5F5F5;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(212, 160, 23, 0.30);
}
.section--problem .section__lead {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.section--problem .card--problem {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 30px rgba(0, 0, 0, 0.30);
}
.section--problem .card--problem:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(232, 197, 71, 0.45);
  transform: translateY(-6px);
}
.section--problem .card--problem .card__title {
  color: #F5F5F5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.section--problem .card--problem .card__body {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.section--solution { background: var(--surface); border-block: 1px solid var(--border); }
.section--services {
  position: relative;
  background:
    radial-gradient(900px 500px at 15% 25%, rgba(212, 160, 23, 0.10), transparent 60%),
    radial-gradient(700px 600px at 85% 75%, rgba(184, 134, 13, 0.08), transparent 60%),
    linear-gradient(135deg, #FAF5EA 0%, #F5EDD3 35%, #FAF5EA 65%, #F5EDD3 100%);
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-position: 0% 0%, 0% 0%, 0% 50%;
  animation: services-shimmer 22s ease-in-out infinite alternate;
}
@keyframes services-shimmer {
  0%   { background-position: 0% 0%, 100% 100%, 0% 50%; }
  50%  { background-position: 30% 20%, 70% 80%, 100% 50%; }
  100% { background-position: 60% 10%, 40% 90%, 0% 50%; }
}
.section--results {
  background: #0A0A0F;
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section--results .section__heading,
.cta-final .cta-final__heading {
  color: #F5F5F5;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(212, 160, 23, 0.30);
}
.cta-final .cta-final__sub {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* shared video-bg pieces */
.section-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  background: #0A0A0F;
}
.section-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.60) 50%, rgba(0,0,0,0.30) 100%);
  pointer-events: none;
}
.section--results::before,
.section--results::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(232, 197, 71, 0.30);
  pointer-events: none;
  z-index: 2;
  transform-origin: center center;
}
.section--results::before {
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-style: dashed;
  border-color: rgba(232, 197, 71, 0.42);
  animation: orbit-spin 38s linear infinite;
}
.section--results::after {
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-color: rgba(232, 197, 71, 0.22);
  animation: orbit-spin 62s linear infinite reverse;
}
.section--results > .container { position: relative; z-index: 3; }
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.section--cases {
  position: relative;
  overflow: hidden;
}
.section--cases::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -180px;
  width: 540px;
  height: 540px;
  margin-top: -270px;
  border-radius: 50%;
  border: 1px dashed rgba(184, 134, 13, 0.18);
  pointer-events: none;
  z-index: 0;
  animation: orbit-spin 48s linear infinite reverse;
}
.section--cases > .container { position: relative; z-index: 1; }
.section--testimonials { background: var(--surface); border-block: 1px solid var(--border); }
.section--pricing {
  background: #0A0A0F;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section--pricing > .container { position: relative; z-index: 2; }
.section--pricing .section__heading {
  color: #F5F5F5;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(212, 160, 23, 0.30);
}
.section--pricing .section__lead {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.section--pricing .card--price {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 30px rgba(0, 0, 0, 0.30);
}
.section--pricing .card--price-featured {
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(232, 197, 71, 0.55);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.section--pricing .price__name { color: rgba(255, 255, 255, 0.78); }
.section--pricing .price__currency,
.section--pricing .price__num,
.section--pricing .price__period,
.section--pricing .price__custom {
  color: #F5F5F5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.section--pricing .price__period,
.section--pricing .price__currency { color: rgba(255, 255, 255, 0.78); }
.section--pricing .price__zar-note {
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.section--pricing .price__tagline {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.section--pricing .price__features li {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.section--pricing .btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(232, 197, 71, 0.45);
  color: rgba(255, 255, 255, 0.92);
}
.section--pricing .btn--ghost:hover {
  background: rgba(212, 160, 23, 0.20);
  border-color: var(--accent-3);
  color: var(--accent-3);
}
.section--faq { background: var(--surface); border-block: 1px solid var(--border); }

/* ---------- card system ---------- */
.cards {
  display: grid;
  gap: 24px;
}
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card-rest);
  transition: transform 250ms var(--ease-out), border-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #FFFCF4;
  box-shadow: 0 4px 12px rgba(184, 134, 13, 0.25);
}
.card__icon svg { width: 24px; height: 24px; }
.card__title {
  font-size: 19px;
  margin-bottom: 10px;
}
.card__body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.card__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.card__before-after {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.ba {
  padding: 14px 16px;
  background: rgba(45, 33, 10, 0.03);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.ba--after {
  background: rgba(212, 160, 23, 0.06);
  border-color: rgba(212, 160, 23, 0.25);
}
.ba__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 4px;
}
.ba--after .ba__label { color: var(--accent); }
.ba__value {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.ba__metric {
  font-size: 18px;
  margin-top: 6px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- card variants ---------- */
.card--quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-top: 32px;
}
.quote-mark { display: none; }
.card--quote::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
}
.card--quote .card__body {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}
.card__footer {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  gap: 28px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 32px; bottom: 32px;
  left: 31px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent-3) 50%, var(--accent) 100%);
  opacity: 0.55;
  border-radius: 2px;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}
.step__number {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}
.step__title {
  font-size: 22px;
  margin-bottom: 8px;
}
.step__body {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.stat {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 30px rgba(0, 0, 0, 0.30);
}
.stat__num {
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 700;
  line-height: 1;
  color: #FFD86A;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(212, 160, 23, 0.55);
}
.stat__suffix { font-size: 0.7em; }
.stat__unit {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.stat__label {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* ---------- pricing ---------- */
.pricing-grid { align-items: stretch; }
.card--price {
  display: flex;
  flex-direction: column;
  padding: 32px;
  gap: 12px;
}
.card--price-featured {
  border-color: rgba(212, 160, 23, 0.45);
  background: var(--surface-2);
  box-shadow: var(--shadow-glow);
  position: relative;
  transform: translateY(-8px);
}
@media (max-width: 768px) {
  .card--price-featured { transform: none; }
}
.price__badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #0A0A0A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
}
.price__name {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.price__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.price__currency { font-size: 22px; color: var(--muted); font-weight: 600; }
.price__num { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; }
.price__period { font-size: 16px; color: var(--muted); }
.price__custom { font-size: 32px; font-weight: 700; }
.price__zar-note { color: var(--muted-2); font-size: 12px; margin-top: -4px; margin-bottom: 12px; font-style: italic; }
.price__tagline { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.price__features {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}
.price__features li {
  font-size: 14px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.price__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 9px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.card--price .btn {
  align-self: stretch;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  gap: 16px;
}
.faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--accent);
  transition: transform 250ms var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-out);
}
.faq__a > p {
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  padding-inline: 4px;
}
.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}
.faq__item.is-open .faq__a > p {
  padding-block: 0 22px;
}

/* ---------- final CTA ---------- */
.cta-final {
  padding-block: clamp(80px, 12vw, 140px);
  text-align: center;
  background: #0A0A0F;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-final::before,
.cta-final::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(184, 134, 13, 0.18);
  pointer-events: none;
  z-index: 0;
  transform-origin: center center;
}
.cta-final::before {
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-color: rgba(232, 197, 71, 0.45);
  animation: orbit-spin 32s linear infinite;
  z-index: 2;
}
.cta-final::after {
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-style: dashed;
  border-color: rgba(232, 197, 71, 0.30);
  animation: orbit-spin 56s linear infinite reverse;
  z-index: 2;
}
.cta-final > .container { position: relative; z-index: 3; }
.cta-final__heading {
  font-size: clamp(36px, 5.5vw, 64px);
  margin-bottom: 18px;
}
.cta-final__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 36px;
}

/* ---------- footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 60px 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--text);
}
.footer__tagline { font-size: 13px; line-height: 1.6; }
.footer__title {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__socials {
  display: flex;
  gap: 12px;
}
.footer__socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.footer__socials a:hover { color: var(--accent); border-color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ============================================================
   REVEAL ANIMATIONS — Intersection Observer driven
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* directional variants */
.step--from-left {
  transform: translateX(-30px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.step--from-left.is-visible { transform: translateX(0); }
.step--from-right {
  transform: translateX(30px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.step--from-right.is-visible { transform: translateX(0); }
.card--service.reveal { transform: scale(0.92); }
.card--service.reveal.is-visible { transform: scale(1); }

/* Service card: idle motion + hover gold underline + 3D tilt prep */
.card--service {
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.card--service::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 35%, var(--accent-3) 50%, var(--accent) 65%, transparent 100%);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 450ms var(--ease-out);
}
.card--service:hover::after { width: 80%; }

.card--service .card__icon {
  position: relative;
  overflow: hidden;
  animation: icon-float 4.2s ease-in-out infinite;
}
.cards--4 > .card--service:nth-child(2) .card__icon { animation-delay: 0.7s; }
.cards--4 > .card--service:nth-child(3) .card__icon { animation-delay: 1.4s; }
.cards--4 > .card--service:nth-child(4) .card__icon { animation-delay: 2.1s; }

.card--service .card__icon svg {
  position: relative;
  z-index: 1;
}
.card--service .card__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 252, 244, 0.55) 50%, transparent 68%);
  transform: translateX(-150%) skewX(-20deg);
  pointer-events: none;
  animation: icon-shimmer 7s ease-in-out infinite;
}
.cards--4 > .card--service:nth-child(2) .card__icon::after { animation-delay: 1.5s; }
.cards--4 > .card--service:nth-child(3) .card__icon::after { animation-delay: 3s; }
.cards--4 > .card--service:nth-child(4) .card__icon::after { animation-delay: 4.5s; }

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes icon-shimmer {
  0%, 78%  { transform: translateX(-150%) skewX(-20deg); }
  92%      { transform: translateX(150%) skewX(-20deg); }
  100%     { transform: translateX(150%) skewX(-20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .step--from-left, .step--from-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .marquee__track, .hero__scroll, .hero__scroll-dot, .section--services,
  .section--results::before, .section--results::after,
  .section--cases::before,
  .cta-final::before, .cta-final::after,
  .card--service .card__icon,
  .card--service .card__icon::after {
    animation: none !important;
  }
  .hero__canvas, .marquee__video, .section-video { display: none; }
}

/* ---------- blog ---------- */
.blog-page { background: var(--bg); }
.blog-page .nav { background: rgba(250, 245, 234, 0.95); border-bottom-color: rgba(45, 33, 10, 0.06); }
.blog-page .nav__logo, .blog-page .nav__links a { color: var(--text); }
.blog-page .nav__toggle span { background: var(--text); }

.blog-index__header {
  padding: 140px 0 32px;
  background: var(--bg);
}
.blog-index__title {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 8px 0 18px;
  color: var(--text);
}
.blog-index__lead {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 680px;
}
.blog-index__list {
  padding: 24px 0 100px;
}
.blog-card {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card-rest);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms var(--ease-out);
  color: var(--text);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
  color: var(--text);
}
.blog-card__category {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.blog-card__title {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}
.blog-card__excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.blog-card__meta {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.blog-card__arrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.blog-post__header {
  padding: 140px 0 32px;
  background: var(--bg);
}
.blog-post__category {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.blog-post__title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}
.blog-post__meta {
  font-size: 14px;
  color: var(--muted-2);
}
.blog-post__body {
  padding: 32px 0 80px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}
.blog-post__body h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  margin: 48px 0 18px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.blog-post__body h3 {
  font-size: 21px;
  margin: 32px 0 12px;
  color: var(--text);
}
.blog-post__body p { margin-bottom: 18px; color: #2A2A2A; }
.blog-post__body strong { color: var(--text); font-weight: 600; }
.blog-post__body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(184, 134, 13, 0.4);
  text-underline-offset: 3px;
}
.blog-post__body a:hover { text-decoration-color: var(--accent); }
.blog-post__body ul, .blog-post__body ol {
  margin: 0 0 22px 24px;
  padding: 0;
  list-style-position: outside;
}
.blog-post__body ul { list-style: disc; }
.blog-post__body ol { list-style: decimal; }
.blog-post__body li { margin-bottom: 10px; color: #2A2A2A; }
.blog-post__body hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.blog-post__divider {
  margin-top: 56px;
  margin-bottom: 0;
}
.blog-post__cta {
  margin-top: 40px;
  padding: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-card-rest);
}
.blog-post__cta h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text);
}
.blog-post__cta p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- responsive overrides ---------- */
@media (max-width: 768px) {
  .hero { min-height: 88vh; padding-block: 100px 60px; }
  .hero__heading { font-size: clamp(34px, 9vw, 50px); }
  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    padding: 6px 12px;
  }
  .hero__cta { gap: 12px; }
  .hero__cta .btn { padding: 14px 22px; font-size: 14px; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat { padding: 24px 18px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .step__number { width: 48px; height: 48px; font-size: 14px; }
  .steps::before { left: 23px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .card { padding: 22px; }
  .card--quote { padding-top: 36px; }
  .card--quote::before { font-size: 52px; top: 8px; left: 18px; }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 18px;
    --section-padding: 60px;
  }
  .nav__logo-text { display: none; }
  .marquee__group { gap: 20px; padding-right: 20px; font-size: 11px; }
  .price__num { font-size: 38px; }
}
