/* ============================================================
   CATALYST WORKFLOWS — Global Stylesheet
   Premium B2B sales infrastructure. High-contrast, no gradients.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --dark: #080c14;
  --dark-panel: #0d1320;
  --dark-panel-2: #11192a;
  --light: #ffffff;
  --light-alt: #f6f7f9;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --amber: #f59e0b;

  --text-on-dark: #eef1f6;
  --muted-on-dark: #8b93a7;
  --text-on-light: #080c14;
  --muted-on-light: #5b616e;

  --border-dark: rgba(255, 255, 255, 0.09);
  --border-dark-strong: rgba(255, 255, 255, 0.16);
  --border-light: rgba(8, 12, 20, 0.10);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-on-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.section { padding: 110px 0; position: relative; }
.section--tight { padding: 84px 0; }

.bg-dark { background: var(--dark); color: var(--text-on-dark); }
.bg-light { background: var(--light); color: var(--text-on-light); }
.bg-light-alt { background: var(--light-alt); color: var(--text-on-light); }

/* eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}
.bg-light .eyebrow, .bg-light-alt .eyebrow { color: var(--blue); }

.section-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}
.section-intro {
  max-width: 620px;
  margin-top: 22px;
  font-size: 1.075rem;
  color: var(--muted-on-dark);
}
.bg-light .section-intro, .bg-light-alt .section-intro { color: var(--muted-on-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--border-dark-strong);
}
.btn--ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.04); }
.btn--ghost-light {
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--border-light);
}
.btn--ghost-light:hover { border-color: var(--text-on-light); }
.btn--lg { padding: 17px 34px; font-size: 1.04rem; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-dark);
}
.nav__inner {
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--blue);
  position: relative;
  flex: none;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 2px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav__link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  padding: 9px 15px;
  border-radius: 8px;
  position: relative;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--text-on-dark); }
.nav__link.active {
  color: #fff;
  font-weight: 600;
}
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.nav__cta { margin-left: 10px; }
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-dark-strong);
  border-radius: 9px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 90px 0;
}
.hero--page {
  min-height: 0;
  padding: 130px 0 110px;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 0%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 880px; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.15rem);
  letter-spacing: -0.035em;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  color: var(--muted-on-dark);
  max-width: 620px;
  margin-top: 28px;
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 100px;
}
.hero__tag .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.16);
}

/* ---------- Stats row ---------- */
.stats {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 54px 40px;
  border-left: 1px solid var(--border-dark);
}
.stat:first-child { border-left: none; }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.stat__num .amber { color: var(--amber); }
.stat__label {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
  letter-spacing: 0.01em;
}

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--dark-panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
  min-height: 290px;
}
.card--link:hover {
  border-color: var(--border-dark-strong);
  transform: translateY(-4px);
  background: var(--dark-panel-2);
}
.card__index {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-bottom: 26px;
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.28);
  display: grid; place-items: center;
  margin-bottom: 24px;
  color: var(--blue);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.42rem; margin-bottom: 12px; }
.card p { color: var(--muted-on-dark); font-size: 0.985rem; }
.card__cta {
  margin-top: auto;
  padding-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.card__cta .arr { color: var(--blue); transition: transform .2s ease; }
.card--link:hover .card__cta .arr { transform: translateX(4px); }
.card--muted { background: var(--dark-panel); }
.card--muted .card__cta { color: var(--muted-on-dark); }

/* ---------- Signature split statement ---------- */
.split {
  position: relative;
  background: linear-gradient(to bottom, var(--dark) 0%, var(--dark) 50%, var(--light) 50%, var(--light) 100%);
  padding: 0;
}
.split__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.split__card {
  padding: 70px 8%;
  text-align: center;
}
.split__statement {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 16ch;
  margin: 0 auto;
  mix-blend-mode: difference;
  color: #fff;
}
.split__statement .accent { color: var(--blue); }

/* ---------- ROI Calculator ---------- */
.roi {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.roi__inputs { padding: 46px 44px; background: var(--light); }
.roi__field { margin-bottom: 28px; }
.roi__field:last-child { margin-bottom: 0; }
.roi__field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-on-light);
  margin-bottom: 12px;
}
.roi__field label .hint { font-weight: 400; color: var(--muted-on-light); font-size: 0.82rem; }
.roi__inputbox {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--light-alt);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.roi__inputbox:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}
.roi__inputbox .prefix {
  padding: 0 4px 0 16px;
  font-weight: 600;
  color: var(--muted-on-light);
  font-size: 1.02rem;
}
.roi__inputbox input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 15px 16px 15px 6px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-on-light);
  width: 100%;
}
.roi__inputbox input::-webkit-outer-spin-button,
.roi__inputbox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.roi__inputbox input[type=number] { -moz-appearance: textfield; }
.roi__slider {
  width: 100%;
  margin-top: 14px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: var(--border-light);
  outline: none;
}
.roi__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.roi__slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--blue);
  cursor: pointer; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.roi__result {
  padding: 46px 44px;
  background: var(--dark);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.roi__result-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.roi__result-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  letter-spacing: -0.035em;
  color: var(--amber);
  line-height: 1.05;
  margin: 16px 0 8px;
  word-break: break-word;
}
.roi__result-sub {
  font-size: 0.94rem;
  color: var(--muted-on-dark);
  margin-top: 6px;
}
.roi__result-foot {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}

/* ---------- Case study strip ---------- */
.case-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.case-card {
  padding: 40px 38px;
  background: var(--light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(8,12,20,0.32); }
.case-card__client {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.case-card__logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 1.05rem;
}
.case-card__name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.case-card__metric {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.case-card__metric .amber { color: var(--amber); }
.case-card__metric .blue { color: var(--blue); }
.case-card__meta { color: var(--muted-on-light); font-size: 0.96rem; }
.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-on-light);
  padding: 6px 13px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
}

/* ---------- Features grid (cold email) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.feature {
  padding: 34px 30px;
  background: var(--dark-panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--border-dark-strong); transform: translateY(-3px); }
.feature__num {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 22px;
  display: block;
}
.feature h3 { font-size: 1.22rem; margin-bottom: 10px; }
.feature p { color: var(--muted-on-dark); font-size: 0.95rem; }

/* ---------- Timeline ---------- */
.timeline {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--border-dark);
}
.tl-step { padding: 0 26px; position: relative; }
.tl-step__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--dark);
  border: 3px solid var(--blue);
  position: relative;
  z-index: 1;
  margin: 16px 0 30px;
}
.tl-step--amber .tl-step__dot { border-color: var(--amber); }
.tl-step__when {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tl-step--amber .tl-step__when { color: var(--amber); }
.tl-step h3 { font-size: 1.28rem; margin-bottom: 10px; }
.tl-step p { color: var(--muted-on-dark); font-size: 0.96rem; }

/* ---------- Pillars (linkedin) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.pillar {
  padding: 40px 34px;
  background: var(--dark-panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.pillar__big {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--border-dark-strong);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}
.pillar h3 { font-size: 1.45rem; margin-bottom: 14px; }
.pillar p { color: var(--muted-on-dark); font-size: 0.985rem; }

/* ---------- Checklist (deliverables) ---------- */
.checklist {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 26px;
  background: var(--dark-panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
}
.check__mark {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: rgba(37,99,235,0.14);
  border: 1px solid rgba(37,99,235,0.3);
  color: var(--blue);
  display: grid; place-items: center;
  margin-top: 1px;
}
.check__mark svg { width: 14px; height: 14px; }
.check h4 { font-family: var(--font-head); font-size: 1.06rem; margin-bottom: 5px; }
.check p { color: var(--muted-on-dark); font-size: 0.92rem; }

/* ---------- Big case grid (case-studies page) ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.big-case {
  padding: 46px 44px;
  background: var(--dark-panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.big-case:hover { border-color: var(--border-dark-strong); transform: translateY(-4px); }
.big-case__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.big-case__client { display: flex; align-items: center; gap: 13px; }
.big-case__logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 1.15rem;
}
.big-case__name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.big-case__sector { font-size: 0.82rem; color: var(--muted-on-dark); margin-top: 2px; }
.big-case__badge {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 6px 12px;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 100px;
}
.big-case__headline {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.big-case__headline .amber { color: var(--amber); }
.big-case__headline .blue { color: var(--blue); }
.big-case__desc { color: var(--muted-on-dark); font-size: 1.02rem; }
.big-case__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 30px; }
.big-case .tag { color: var(--muted-on-dark); border-color: var(--border-dark); }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 96px 0 40px;
}
.footer__cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}
.footer__cta h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.footer__cta p {
  color: var(--muted-on-dark);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 34px;
  border-top: 1px solid var(--border-dark);
  flex-wrap: wrap;
  gap: 18px;
}
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-size: 0.92rem; color: var(--muted-on-dark); transition: color .15s ease; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 0.86rem; color: var(--muted-on-dark); }

/* ---------- Section number kicker ---------- */
.kicker-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* ============================================================
   MOTION & ATMOSPHERE
   ============================================================ */

/* ---------- Grain texture overlay ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--blue);
  z-index: 9500;
  box-shadow: 0 0 12px rgba(37,99,235,0.6);
}

/* ---------- Scroll reveal (only when JS active) ---------- */
html.js-on :where(
  .hero__content > *,
  .section .eyebrow, .section .section-title, .section .section-intro,
  .card, .feature, .pillar, .tl-step, .case-card, .big-case, .check,
  .stat, .roi, .split__statement, .footer__cta, .marquee
) {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
html.js-on .is-in { opacity: 1 !important; transform: none !important; }

/* ---------- Hero cursor spotlight ---------- */
.hero__spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 32%), rgba(37,99,235,0.18), transparent 62%);
}
.hero:hover .hero__spot { opacity: 1; }
.hero__grid-bg { transition: transform .05s linear; }

/* ---------- Marquee ribbon ---------- */
.marquee {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
  padding: 22px 0;
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 52px;
  padding-right: 52px;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track .m-item {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  color: var(--muted-on-dark);
  display: inline-flex;
  align-items: center;
}
.marquee__track .m-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* counter number stays stable width */
.stat__num .count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html.js-on :where(.card,.feature,.pillar,.tl-step,.case-card,.big-case,.check,.stat,.roi,.split__statement,.footer__cta,.marquee,.section .eyebrow,.section .section-title,.section .section-intro),
  html.js-on .hero__content > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee__track { animation: none; }
}

.brand__logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 9px;
  padding: 4px 10px;
  height: 38px;
  flex: none;
}
.brand__logo {
  height: 26px;
  width: auto;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--dark-panel);
    border-bottom: 1px solid var(--border-dark);
    padding: 14px 28px 22px;
  }
  .nav__links.open .nav__link { padding: 13px 14px; }
  .nav__links.open .nav__link.active::after { left: 14px; right: auto; width: 22px; }

  .cards, .features, .pillars, .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .roi { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--border-dark); }
  .stat:first-child { border-top: none; }
  .case-strip, .case-grid, .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap, .nav__inner { padding: 0 20px; }
  .section { padding: 76px 0; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .roi__inputs, .roi__result { padding: 34px 26px; }
  .stat { padding: 38px 26px; }
}
