/* =========================================================
   Market Intelligence — Growth Agency Landing Page
   ========================================================= */

:root {
  --bg-0: #05060d;
  --bg-1: #070a16;
  --bg-2: #0b0f20;
  --surface: rgba(255,255,255,0.04);
  --surface-strong: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.09);
  --border-soft: rgba(255,255,255,0.06);
  --text-0: #f5f6fb;
  --text-1: #c7cbe0;
  --text-2: #8b90ac;

  --purple: #7c5cff;
  --violet: #a06bff;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --pink: #ff6fd8;

  --grad-brand: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
--grad-brand-2: linear-gradient(135deg, var(--cyan), var(--violet), var(--pink));

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

--shadow-glow: 0 0 90px rgba(124,92,255,0.4), 0 0 40px rgba(255,111,216,0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-0);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grad-text {
  background: var(--grad-brand-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== Ambient background ===================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
   background:
  radial-gradient(700px 500px at 15% 0%, rgba(124,92,255,0.2), transparent 60%),
  radial-gradient(800px 600px at 85% 15%, rgba(34,211,238,0.16), transparent 60%),
  radial-gradient(700px 500px at 90% 90%, rgba(255,111,216,0.14), transparent 60%),
  radial-gradient(900px 700px at 50% 100%, rgba(45,212,191,0.08), transparent 60%),
  var(--bg-0);
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #06070d;
  box-shadow: 0 8px 30px rgba(124,92,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,92,255,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
  color: var(--text-0);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-large { padding: 18px 36px; font-size: 1.05rem; }
.arrow { transition: transform .3s var(--ease); display:inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===================== Header ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
 
  background: rgba(6,8,16,0.55);
  border-bottom: 1px solid var(--border-soft);
  transition: background .3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.lang-toggle:hover { color: var(--text-0); border-color: rgba(255,255,255,0.25); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav .mobile-only-cta { display: none; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-1);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad-brand);
  transition: width .3s var(--ease);
}
.main-nav a:hover { color: var(--text-0); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text-0);
  margin: 0 auto;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(124,92,255,0.28), transparent 65%),
    radial-gradient(600px 400px at 80% 10%, rgba(34,211,238,0.22), transparent 65%);
  filter: blur(10px);
  z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}
.hero-inner { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-1);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  max-width: 900px;
  margin: 0 auto 24px;
}
.hero-title .grad-text { display: block; margin-top: 6px; }
.hero-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--text-1);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), border-color .35s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,0.4); }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ===================== Sections ===================== */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-head.center { text-align: center; }
.eyebrow-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 16px;
}
.section-sub { color: var(--text-2); font-size: 1rem; }

/* ===================== Engine / Stages ===================== */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  width: 100%;
  position: relative;
  transition: transform .4s var(--ease), border-color .4s ease, background .4s ease;
}
.stage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,0.35);
  background: var(--surface-strong);
}

.stage-card,
.stage-card.offset,
.stage-card.final{
    width: 100%;
    margin: 0;
    align-self: stretch;
}

.stage-card.final {
  background: linear-gradient(135deg, rgba(124,92,255,0.14), rgba(34,211,238,0.1));
  border-color: rgba(124,92,255,0.3);
}
.stage-num {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.stage-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.stage-card p { margin: 0 0 16px; color: var(--text-1); font-size: 0.95rem; }
.stage-flow {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
}
.stage-flow i { font-style: normal; margin-left: 2px; }

/* ===================== Services ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .35s var(--ease), border-color .35s ease, background .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,0.35);
  background: var(--surface-strong);
}
.service-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,92,255,0.25), rgba(34,211,238,0.2));
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--text-2); margin: 0; }

/* ===================== Compare table ===================== */
.compare-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-soft);
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div {
  padding: 18px 28px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-row > div:first-child { border-right: 1px solid var(--border-soft); }
.compare-heading > div {
  font-weight: 700;
  color: var(--text-0);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.03);
}
.compare-heading > div:last-child {
  background: linear-gradient(90deg, rgba(124,92,255,0.15), rgba(34,211,238,0.1));
}
.neg { color: var(--text-2); }
.neg i { color: #ff6b6b; font-style: normal; }
.pos { color: var(--text-0); font-weight: 500; }
.pos i { color: var(--teal); font-style: normal; }

/* ===================== Results dashboards ===================== */
.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.dash-label { font-size: 0.82rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.dash-pill {
  background: rgba(45,212,191,0.15);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.dash-pill.soft {
  background: rgba(124,92,255,0.15);
  color: var(--violet);
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 14px;
}
.dash-pill.soft small { font-size: 0.6rem; font-weight: 500; color: var(--text-2); text-transform: none; }
.dash-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 18px;
}
.lead-chart { width: 100%; height: 100px; margin-bottom: 20px; }
.lead-chart polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(34,211,238,0.5));
}
.lead-chart polygon {
  fill: rgba(34,211,238,0.12);
  stroke: none;
}
.dash-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-2);
}
.dash-metrics strong { color: var(--text-0); margin-left: 4px; }
.dash-metrics .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dash-metrics .dot.rev { background: var(--cyan); }
.dash-metrics .dot.roas { background: var(--purple); }
.dash-metrics .dot.cvr { background: var(--teal); }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 140px;
  margin-bottom: 20px;
  padding-top: 10px;
}
.bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--violet), var(--purple));
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: transform .3s ease;
  transform-origin: bottom;
}
.bar:hover { transform: scaleY(1.05); }
.bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--text-2);
  white-space: nowrap;
}
.ai-suggestion {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--text-2);
  background: rgba(124,92,255,0.08);
  border: 1px solid rgba(124,92,255,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.ai-suggestion strong { color: var(--violet); }

.results-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.result-stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 16px;
}
.result-stat .stat-num { font-size: 1.9rem; }

/* ===================== Industries ===================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .35s var(--ease), border-color .35s ease;
}
.industry-card:hover { transform: translateY(-6px); border-color: rgba(255,111,216,0.3); }
.industry-icon { font-size: 1.8rem; margin-bottom: 14px; }
.industry-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.industry-card p { font-size: 0.88rem; color: var(--text-2); margin: 0; }

/* ===================== Tech stack marquee ===================== */
.stack-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.stack-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.stack-chip {
  padding: 14px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-1);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ===================== Testimonials ===================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .35s var(--ease), border-color .35s ease;
}
.testimonial-card:hover { transform: translateY(-6px); border-color: rgba(124,92,255,0.3); }
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #06070d;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 20px;
}
.quote { font-size: 0.95rem; color: var(--text-1); margin-bottom: 22px; font-style: italic; }
.testimonial-author { font-weight: 700; color: var(--text-0); font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-2); margin-bottom: 18px; }
.testimonial-metrics {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
}
.testimonial-metrics span { display: block; color: var(--text-2); }
.testimonial-metrics strong { color: var(--teal); font-size: 0.9rem; }

/* ===================== CTA ===================== */
.cta-section {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 50% 0%, rgba(124,92,255,0.3), transparent 65%),
    radial-gradient(700px 500px at 20% 100%, rgba(34,211,238,0.2), transparent 65%),
    radial-gradient(700px 500px at 80% 100%, rgba(45,212,191,0.15), transparent 65%);
  z-index: -1;
}
.cta-inner h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 16px 0 20px;
}
.cta-inner p { max-width: 500px; margin: 0 auto 32px; color: var(--text-1); }
.cta-note { margin-top: 24px; font-size: 0.82rem; color: var(--text-2); }

/* ===================== Footer ===================== */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.footer-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.footer-logo img { height: 34px; width: auto; opacity: 0.92; }
.site-footer p { font-size: 0.82rem; color: var(--text-2); margin: 0; }

/* ===================== WhatsApp float ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
  z-index: 200;
  animation: float-bounce 2.6s ease-in-out infinite;
  transition: transform .3s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes float-bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===================== Trust strip (brief 3.2) ===================== */
.trust-strip {
  position: relative;
  padding: 36px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.trust-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.trust-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 700;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.trust-chip {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-1);
  font-size: 0.85rem;
  font-weight: 600;
}
.trust-quote {
  max-width: 640px;
  margin: 0;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-1);
}
.trust-attribution {
  max-width: 640px;
  margin: -8px 0 0;
  font-size: 0.82rem;
  color: var(--text-2);
}

/* ===================== Section separation (brief 3.3) ===================== */
.section { border-top: 1px solid var(--border-soft); }
.section:first-of-type { border-top: none; }
section.section:nth-of-type(even) { background: var(--bg-2); }

/* ===================== Persistent mobile CTA bar (brief 3.3) ===================== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.mobile-sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #06070d;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ===================== RTL / Arabic support ===================== */
html[dir="rtl"] body { font-family: var(--font-body); }
html[dir="rtl"] .main-nav { direction: rtl; }
html[dir="rtl"] .header-inner { flex-direction: row-reverse; }
html[dir="rtl"] .header-actions { flex-direction: row-reverse; }
html[dir="rtl"] .main-nav a::after { left: auto; right: 0; }
html[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
html[dir="rtl"] .dash-metrics .dot,
html[dir="rtl"] .testimonial-metrics { direction: rtl; }
html[dir="rtl"] .compare-row > div:first-child { border-right: none; border-left: 1px solid var(--border-soft); }
html[dir="rtl"] .whatsapp-float { right: auto; left: 28px; }
html[dir="rtl"] .mobile-sticky-cta { direction: rtl; }

/* ===================== Reveal animations ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .eyebrow .dot, .whatsapp-float, .stack-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage-card, .stage-card.offset, .stage-card.final { width: 100%; align-self: stretch; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-actions .header-cta { display: none; }

  /* P0 fix (brief 2.1): mobile nav must be fully solid, opaque, and above all page
     content. Uses a fixed, 100%-opacity navy background (#0B0E1A), an explicit
     z-index above the header, and opacity/transform transitions so it animates
     smoothly on BOTH open and close (rather than an instant display swap). */
  .main-nav {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    bottom: 0;
    flex-direction: column;
    background-color: #0B0E1A;
    opacity: 1;
    padding: 28px 24px 40px;
    gap: 22px;
    border-top: 1px solid var(--border);
    z-index: 150;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .main-nav.mobile-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .main-nav.mobile-open a { font-size: 1.05rem; }
  .main-nav .mobile-only-cta { display: inline-flex; margin-top: 8px; }

  .hero { padding: 150px 0 70px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .results-stats { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div:first-child { border-right: none; border-bottom: 1px solid var(--border-soft); }

  body { padding-bottom: 76px; } /* room for persistent mobile CTA bar */
  .mobile-sticky-cta { display: flex; }
  .whatsapp-float { bottom: 92px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 1.8rem; }
  .btn-large { width: 100%; justify-content: center; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 92px; right: 18px; }
}

@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .logo-img { height: 32px; }
  .lang-toggle { padding: 7px 9px; font-size: 0.68rem; }
  .header-actions { gap: 8px; }
}

/* =========================================================
   Consolidated custom additions
   ========================================================= */

/* ===================== Footer additions ===================== */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  text-align: left;
}

.footer-brand {
  flex: 1 1 240px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.75;
}

.footer-contact,
.footer-social {
  flex: 1 1 220px;
}

.footer-contact h4,
.footer-social h4 {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}

.footer-contact ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.footer-contact li i {
  width: 16px;
  margin-top: 3px;
  text-align: center;
  opacity: 0.75;
}

.footer-contact li span {
  display: inline;
  color: #fff;
  visibility: visible;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-social {
  flex: 0 0 auto;
}

.footer-social .social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.footer-social .social-icons a,
.footer-social a.social-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-social .social-icons a:hover,
.footer-social a.social-icon:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.34);
  transform: translateY(-3px);
}

.footer-bottom-note {
  width: 100%;
  margin-top: 24px;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0.6;
}

/* ===================== Hero two-column layout ===================== */
.hero-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: start;
  gap: 70px;
  text-align: left;
}

.hero-left {
  min-width: 0;
  padding-top: 10px;
  text-align: left;
}

.hero-left .eyebrow,
.hero-left .hero-title,
.hero-left .hero-sub {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.hero-left .hero-title {
  max-width: 680px;
}

.hero-left .hero-sub {
  max-width: 650px;
}

.hero-left .hero-actions {
  justify-content: flex-start;
  margin-bottom: 0;
}

.hero-right {
  width: 100%;
  padding-top: 70px;
  align-self: start;
}

/* ===================== Hero consultation form ===================== */
.hero-consultation-box {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  padding: 28px;
  color: #f5f6fb;
  border-radius: 24px;
  background: linear-gradient(160deg, #0b0f20, #070a16);
  border: 1px solid rgba(124,92,255,0.25);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 60px rgba(124,92,255,0.15);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.hero-consultation-box .consultation-heading {
  margin-bottom: 20px;
  color:  #f5f6fb;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.hero-consultation-box .consultation-heading strong {
  color: #22d3ee;
  font-size: inherit;
  font-weight: 800;
}

.consultation-form {
  width: 100%;
}

.hero-consultation-box .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-consultation-box .phone-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px;
  margin-top: 12px;
}

.hero-consultation-box .service-group {
  margin-top: 12px;
}

.hero-consultation-box .form-group {
  position: relative;
}

.hero-consultation-box .form-group label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.hero-consultation-box .form-group input,
.hero-consultation-box .form-group select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: #f5f6fb;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  outline: none;
  background: rgba(255,255,255,0.06);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-consultation-box .form-group input::placeholder {
  color: #9299a5;
}

.hero-consultation-box .form-group input:focus,
.hero-consultation-box .form-group select:focus {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.hero-consultation-box .consultation-submit {
  width: 100%;
  height: 54px;
  margin-top: 12px;
  color: #12142b;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border:none;
  border-radius: 13px;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-consultation-box .consultation-submit:hover {
  transform: translateY(-2px);
  background: #151515;
  box-shadow: 0 14px 34px rgba(0,0,0,0.32);
}

/* ===================== Book audit modal ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,7,15,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: #12162a;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-box h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
}

.modal-sub {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 4px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.6;
}

.modal-close:hover {
  opacity: 1;
}

.form-row {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  opacity: 0.75;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--purple);
  outline: none;
}

.form-row textarea {
  min-height: 70px;
  resize: vertical;
}

#auditForm button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  opacity: 0.55;
}

/* ===================== Responsive custom layout ===================== */
@media (max-width: 1100px) {
  .hero-two-column {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-left,
  .hero-left .hero-title,
  .hero-left .hero-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-left .hero-actions {
    justify-content: center;
  }

  .hero-right {
    padding-top: 0;
  }

  .hero-consultation-box {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-consultation-box {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .hero-consultation-box .consultation-heading {
    font-size: 24px;
  }

  .hero-consultation-box .form-grid,
  .hero-consultation-box .phone-row {
    grid-template-columns: 1fr;
  }

  .hero-consultation-box .form-group input,
  .hero-consultation-box .form-group select {
    height: 50px;
  }

}

@media (max-width: 640px) {
  .footer-inner {
    align-items: center;
    text-align: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }

  .modal-box {
    padding: 24px 20px;
  }
}

/* ===================== Full-width hero stats row ===================== */
.hero-stats-row {
  width: 100%;
  margin-top: 50px;
}

.hero-stats {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hero-stats .stat-card {
  width: 100%;
  min-width: 0;
  min-height: 145px;
  margin: 0;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-stats .stat-num {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

.hero-stats .stat-label {
  margin: 0;
  font-size: 11px;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 1050px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

