@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

/* =====================================================
   MASTER.CSS — RankBoost Agency (Redesign 2026)
   Light theme · DM Sans · #5B47E0 primary / #C8FF00 accent
   ===================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #5b47e0;
  --primary-dark: #4535c8;
  --primary-light: #eef0ff;
  --primary-glow: rgba(91, 71, 224, 0.18);
  --accent: #c8ff00;
  --accent-hover: #b8ef00;
  --ink: #0a0a0f;
  --ink-muted: #525260;
  --ink-faint: rgba(10, 10, 15, 0.45);
  --surface: #ffffff;
  --surface-2: #f7f7fb;
  --surface-3: #eeeef6;
  --line: rgba(10, 10, 15, 0.08);
  --line-strong: rgba(10, 10, 15, 0.14);

  --fs-eyebrow: 11.5px;
  --fs-h1: clamp(38px, 4.8vw, 64px);
  --fs-h2: clamp(28px, 3.2vw, 46px);
  --fs-h3: clamp(18px, 1.8vw, 23px);
  --fs-body-lg: 17px;
  --fs-body: 15.5px;
  --fs-sm: 13.5px;

  /* ── Spacing Scale ── */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;
  --space-4xl: 96px;

  /* ── Section Padding ── */
  --section-py-sm: 72px; /* Small sections, tight areas */
  --section-py: 112px; /* Standard sections */
  --section-py-lg: 152px; /* Hero, final CTA, large feature */

  /* ── Component Spacing ── */
  --card-pad-sm: 20px 22px;
  --card-pad: 28px 30px;
  --card-pad-lg: 36px 38px;
  --grid-gap-sm: 16px;
  --grid-gap: 24px;
  --grid-gap-lg: 32px;
  --heading-gap: 56px; /* section heading → content gap */

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 40px;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 36px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 12px 40px rgba(91, 71, 224, 0.22);
  --shadow-primary-lg: 0 20px 60px rgba(91, 71, 224, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --transition-base: 200ms var(--ease);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--surface);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  height: auto;
  max-width: 100%;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--r-sm);
  transition: top 160ms;
}
.skip-link:focus {
  top: 16px;
}

/* Visually-hidden but still readable by screen readers / crawlers —
   for content that has a purely visual/icon equivalent on screen
   (e.g. tool logos with hover tooltips) but still needs to exist as
   real, accessible text for SEO and assistive tech. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== LAYOUT HELPERS ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 1024px) {
  .container {
    padding-left: 36px;
    padding-right: 36px;
  }
}

/* Two-column grid helpers */
.two-col {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .two-col--60-40 {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .two-col--40-60 {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .two-col--sidebar {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
  .two-col--hero {
    grid-template-columns: 1fr clamp(380px, 36%, 500px);
    gap: 72px;
  }
}

.three-col {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .three-col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.four-col {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .four-col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .four-col {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Section spacing */
/* ── Section size variants ── */
.section-space {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.section-space-sm {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}
.section-space-lg {
  padding-top: var(--section-py-lg);
  padding-bottom: var(--section-py-lg);
}
.soft-section {
  background: var(--surface-2);
}
.dark-section {
  background: var(--ink);
}

/* Alternating light/soft for visual rhythm */
.section-space + .soft-section,
.soft-section + .section-space {
  position: relative;
}

@media (max-width: 1023px) {
  .section-space {
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .section-space-sm {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .section-space-lg {
    padding-top: 112px;
    padding-bottom: 112px;
  }
}
@media (max-width: 767px) {
  .section-space {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .section-space-sm {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .section-space-lg {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.section-title {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  margin-bottom: 16px;
}
/* Purple highlight for key words inside headings — matches the
   hero's existing "highlight the important word" pattern. */
.section-title em {
  font-style: normal;
  color: var(--primary);
}
.section-title-sub {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: -6px 0 20px;
}
.section-sub {
  font-size: 16.5px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.section-heading.left {
  margin: 0;
  text-align: left;
}
.section-heading h2 {
  font-size: var(--fs-h2);
  margin-top: var(--space-sm);
}
.section-heading p {
  font-size: var(--fs-body-lg);
  color: var(--ink-muted);
  line-height: 1.78;
  margin-top: var(--space-md);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--heading-gap);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  font-size: var(--fs-h2);
  margin-top: var(--space-sm);
}
.section-head p {
  font-size: var(--fs-body-lg);
  color: var(--ink-muted);
  line-height: 1.78;
  margin-top: var(--space-md);
}

.section-lede {
  font-size: var(--fs-body-lg);
  color: var(--ink-muted);
  line-height: 1.78;
  margin-top: var(--space-md);
}
.hero-lede {
  font-size: var(--fs-body-lg);
  color: var(--ink-muted);
  line-height: 1.78;
  margin-top: var(--space-md);
  max-width: 600px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--ink-faint);
  transition: color 160ms;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.bc-sep {
  color: rgba(10, 10, 15, 0.2);
  font-weight: 400;
}
.bc-current {
  color: var(--ink);
  font-weight: 800;
}

/* ===== BUTTONS ===== */
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 54px;
  padding: 15px 28px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 800;
  font-family: "DM Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
    background 200ms;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
/* Shine sweep on hover */
.primary-cta::after,
.secondary-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -65%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  transform: skewX(-20deg);
  transition: left 480ms var(--ease);
  pointer-events: none;
}
.primary-cta:hover::after,
.secondary-cta:hover::after {
  left: 125%;
}
.primary-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
  background: var(--primary-dark);
}
.primary-cta .arrow-icon {
  color: var(--accent);
}
.primary-cta.light {
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 32px rgba(200, 255, 0, 0.25);
}
.primary-cta.light:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(200, 255, 0, 0.32);
}
.primary-cta.light .arrow-icon {
  color: #000;
}
.secondary-cta {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.secondary-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 71, 224, 0.3);
  box-shadow: 0 8px 28px rgba(91, 71, 224, 0.1);
}
.primary-cta:active,
.secondary-cta:active {
  transform: translateY(0);
}

/* Buttons with longer labels ("Get Your Free AI Automation Audit" etc.)
   were fixed at white-space:nowrap with fixed padding — on phones under
   ~380px that overflows its container instead of wrapping. Let them wrap
   to two lines on very small screens instead of forcing overflow/scroll. */
@media (max-width: 400px) {
  .primary-cta,
  .secondary-cta {
    white-space: normal;
    text-align: center;
    padding: 14px 20px;
  }
}

.arrow-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 180ms var(--ease);
}
.arrow-icon svg {
  width: 100%;
  height: 100%;
}
.primary-cta:hover .arrow-icon,
.secondary-cta:hover .arrow-icon {
  transform: translateX(3px);
}

.chevron-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--primary);
  transition: transform 240ms, background 200ms;
}
details[open] > summary .chevron-icon {
  transform: rotate(180deg);
  background: var(--primary-light);
}
.chevron-icon svg {
  width: 14px;
  height: 14px;
}

/* CTA group */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gap-sm);
  align-items: center;
  margin-top: var(--space-lg);
}

/* ===== CHECK LIST ===== */
.check-list {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--grid-gap-sm);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-muted);
}
.check-list li span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  margin-top: 1px;
}

/* ===== TRUST ITEMS ===== */
.rb-trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gap-sm);
  margin-top: var(--space-md);
}
.rb-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}
.rb-trust-item::before {
  content: "✓";
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ===== BADGES ===== */
.rb-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.rb-badge__check {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}
.rb-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: 24px;
}

/* ===== TRUST STRIP ===== */
.rb-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) 24px;
  padding: 18px 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-top: 40px;
}
.rb-trust-strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}
.rb-trust-strip-item::before {
  content: "✓";
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ===== MID-PAGE CTA ===== */
.rb-mid-cta {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    #f0f0fa 60%,
    #fafafa 100%
  );
  border: 1px solid rgba(91, 71, 224, 0.18);
  border-radius: var(--r-xl);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.rb-mid-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 90% 50%,
    rgba(200, 255, 0, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.rb-mid-cta-copy {
  position: relative;
  z-index: 1;
}
.rb-mid-cta-copy h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}
.rb-mid-cta-copy p {
  font-size: var(--fs-body);
  color: var(--ink-muted);
  max-width: 500px;
  line-height: 1.7;
}
.rb-mid-cta .primary-cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .rb-mid-cta {
    padding: 36px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== STICKY FLOATING CTA ===== */
.rb-sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 800;
  font-family: "DM Sans", sans-serif;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease), box-shadow 320ms var(--ease);
  pointer-events: none;
  text-decoration: none;
  white-space: nowrap;
}
.rb-sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  /* Highlighted with a soft pulsing glow so it reads as an active,
     inviting call-to-action rather than blending into the corner of
     the page, per request. */
  animation: stickyCtaGlow 2.6s ease-in-out infinite;
}
@keyframes stickyCtaGlow {
  0%, 100% {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(91, 71, 224, 0.45);
  }
  50% {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(91, 71, 224, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rb-sticky-cta.is-visible {
    animation: none;
  }
}
.rb-sticky-cta .sticky-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}
.rb-sticky-cta .sticky-cta-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  border-radius: var(--r-sm);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 200ms;
}
.rb-sticky-cta:hover {
  transform: translateY(-2px);
}
.rb-sticky-cta:hover .sticky-cta-icon {
  transform: translateX(3px);
}

@media (max-width: 575px) {
  .rb-sticky-cta {
    bottom: 16px;
    right: 16px;
    padding: 14px 18px;
    font-size: 13px;
  }
}

/* ===== SITE HEADER =====
   Recreated — transparent glassmorphism. Full-width frosted bar that
   lets page content show through underneath (especially striking over
   the hero banner's gradient), with a bright glass-edge highlight and
   heavy blur/saturate to keep nav text legible over any background.
   Gains a touch more opacity once scrolled, purely for readability —
   never becomes a solid, ordinary header.
   ===================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(18px) saturate(1.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 32px rgba(20, 16, 45, 0.04);
  transition: background 260ms var(--ease), box-shadow 260ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 32px rgba(20, 16, 45, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: 16px;
  padding-bottom: 16px;
}
@media (min-width: 1180px) {
  /* Aligned to 1180px — the actual breakpoint where .desktop-menu
     becomes visible (checked directly rather than guessing); the
     previous 1024px threshold was too early relative to that, and
     the reduction wasn't strong enough to read as a real difference.
     Header-only reduction from .container's shared 36px side padding
     — the header specifically felt too inset from the viewport edges
     at wide screens; scoped here so it doesn't affect any content
     section elsewhere on the site that also uses .container. */
  .nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Brand */
.brand-mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: clamp(118px, 15vw, 148px);
  height: auto;
}

/* Desktop nav */
.desktop-menu {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.desktop-menu a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: color 160ms, background 160ms;
  white-space: nowrap;
}
.desktop-menu a:hover,
.desktop-menu a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.desktop-menu a.nav-active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
}

/* Header CTA — standard .primary-cta button (same class used
   everywhere else on the site), just made to hide below the desktop
   breakpoint alongside the rest of the desktop nav. Previously this
   was a bespoke two-part button (text + a separate circular icon
   element) with its own custom padding/sizing — that duplicate,
   one-off structure was the actual source of the repeated spacing
   and shape bugs here. Reusing the same proven, already-responsive
   button class everywhere removes that whole class of bug. */
.header-cta {
  display: none;
  flex-shrink: 0;
  position: relative;
}
@media (min-width: 1180px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Subtle idle glow so this specific button stays "highlighted" even
   without hovering — gentle enough not to be annoying on a header
   that's visible on every page. */
@keyframes headerCtaGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(91, 71, 224, 0.28); }
  50% { box-shadow: 0 8px 28px rgba(91, 71, 224, 0.48), 0 0 0 4px rgba(91, 71, 224, 0.08); }
}
@media (min-width: 1180px) {
  .header-cta {
    animation: headerCtaGlow 2.6s ease-in-out infinite;
  }
}
.header-cta:hover {
  animation: none;
}

/* Hamburger — glass style to match */
.nav-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  cursor: pointer;
  position: relative;
  z-index: 300;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 180ms;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.7);
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms var(--ease);
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ── Mobile / tablet nav overlay ── */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(150deg, #faf9ff 0%, #f3f1fd 45%, #eef8f5 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 240ms, transform 240ms, visibility 0s linear 240ms;
}
.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 240ms, transform 240ms, visibility 0s;
}
.nav-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  padding: 0 22px 48px;
  max-width: 560px;
  margin: 0 auto;
}
.nav-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  margin-bottom: 2px;
}
.nav-header-logo img {
  width: 120px;
  height: auto;
}
.nav-close {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 160ms, transform 160ms;
}
.nav-close:hover {
  background: var(--primary-light);
  transform: rotate(90deg);
}
.nav-group {
  display: grid;
  gap: 0;
}
.nav-group p {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-group a {
  display: flex;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(10, 10, 15, 0.08);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  transition: color 160ms, padding-left 160ms;
}
.nav-group a:last-child {
  border-bottom: none;
}
.nav-group a:hover {
  color: var(--primary);
  padding-left: 5px;
}
/* This used to hardcode its own border-radius/background/padding here,
   overriding the standard .primary-cta class this button actually uses
   (higher specificity than a single class, so it always won) — that's
   exactly why this button looked like a full pill with a flat fill
   while every other .primary-cta on the site had already moved to the
   16px/gradient style. Removed; it now inherits the same button
   styling as everywhere else. Only the full-width layout need for
   this specific mobile context stays, via inline style on the element
   itself (width:100%; justify-content:center;). */

/* ── Small mobile refinement (<380px) ── */
@media (max-width: 380px) {
  .nav-panel {
    padding: 0 16px 40px;
  }
  .brand-mark img {
    width: 104px;
  }
}

/* ── Desktop nav switches on at 1180px —
   4 dropdowns + Blog + Contact + the header CTA need the room.
   (.header-cta's own show/hide at this breakpoint is defined
   alongside its other rules, above.) ── */
@media (min-width: 1180px) {
  .desktop-menu {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    display: none !important;
  }
}
/* ===== FOOTER =====
   Recreated — dark canvas with soft violet/lime glows, a responsive
   1/2/5-column link grid, and a "trending" dual-marquee big-text
   effect at the base: two infinite rows scrolling in opposite
   directions, one solid, one outlined, for depth.
   ===================================================== */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.32;
}
.footer-glow-1 {
  width: 420px;
  height: 420px;
  top: -180px;
  left: -100px;
  background: radial-gradient(circle, rgba(91, 71, 224, 0.55) 0%, transparent 70%);
}
.footer-glow-2 {
  width: 480px;
  height: 480px;
  bottom: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.12) 0%, transparent 70%);
}

/* ── Top invitation band ── */
.footer-invite {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-top: 72px;
}
@media (min-width: 860px) {
  .footer-invite {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-invite-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.footer-invite-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.18);
}
.footer-invite-copy h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.footer-invite-copy h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent) 0%, #eaff8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-invite .primary-cta.light {
  flex-shrink: 0;
}
.footer-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 48px 0 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.03) 60%, transparent 100%);
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0 48px;
}
@media (min-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 48px;
    padding: 56px 0 56px;
  }
  .footer-brand-col {
    grid-column: auto;
  }
}

.footer-brand-col p {
  max-width: 320px;
  margin-top: var(--space-md);
  line-height: 1.8;
  font-size: var(--fs-sm);
}
.footer-brand {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 180ms;
}
.footer-brand:hover {
  background: rgba(255, 255, 255, 0.14);
}
.footer-brand img {
  width: 136px;
  filter: brightness(0) invert(1);
}
.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--space-md);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms;
}
.footer-email-link:hover {
  background: rgba(255, 255, 255, 0.14);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: background 160ms, color 160ms, transform 160ms;
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-col p,
.footer-col h3,
.footer-col h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.footer-col a {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color 160ms, padding-left 160ms;
  color: rgba(255, 255, 255, 0.65);
}
.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  padding: 28px 0 40px;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ── Big wordmark, draw-then-fill text reveal, repeating ──
   The outline of "RANKBOOST" traces itself in (stroke only, no
   fill), fills solid white, holds for a few seconds, then fades
   back out and repeats — a subtle, premium loop rather than a
   one-off reveal. Starts once the wordmark scrolls into view (JS
   in master.js toggles the .is-drawn class via IntersectionObserver)
   and keeps looping from there. Reduced-motion users get the
   finished (filled) state with no animation at all. */
.footer-wordmark-row {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(20px, 4vw, 40px) 0 clamp(0px, 0vw, 0px);
  overflow: hidden;
  text-align: center;
}
.footer-wordmark-svg {
  width: 100%;
  max-width: 1400px;
  height: clamp(56px, 15vw, 220px);
  margin: 0 auto;
  display: block;
  overflow: visible;
}
.footer-wordmark-text {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 200px;
  letter-spacing: -2px;
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-dasharray: 4200;
  stroke-dashoffset: 4200;
}
.footer-wordmark-svg.is-drawn .footer-wordmark-text {
  animation: footerWordmarkLoop 9s ease-in-out infinite;
}
@keyframes footerWordmarkLoop {
  0% {
    stroke-dashoffset: 4200;
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.55);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  26% {
    stroke-dashoffset: 0;
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.55);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  /* Glow moment — outline is fully drawn, brightens with a soft glow
     right before the fill sweeps in, per request ("glow, then
     fill"), rather than cutting straight from outline to solid. */
  31% {
    stroke-dashoffset: 0;
    fill: transparent;
    stroke: #fff;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.9));
  }
  36%, 78% {
    stroke-dashoffset: 0;
    fill: #fff;
    stroke: #fff;
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  92%, 100% {
    stroke-dashoffset: 4200;
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.55);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-wordmark-text {
    stroke-dashoffset: 0;
    fill: #fff;
    stroke: #fff;
  }
  .footer-wordmark-svg.is-drawn .footer-wordmark-text {
    animation: none;
  }
}
/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.68s var(--ease), transform 0.68s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.68s var(--ease), transform 0.68s var(--ease);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.78s var(--ease), transform 0.78s var(--ease);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.68s var(--ease), transform 0.68s var(--ease);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.68s var(--ease), transform 0.68s var(--ease);
}
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.reveal-up.in-view,
.reveal-scale.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-fade.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger utilities */
.stagger-1 {
  transition-delay: 80ms !important;
}
.stagger-2 {
  transition-delay: 160ms !important;
}
.stagger-3 {
  transition-delay: 240ms !important;
}
.stagger-4 {
  transition-delay: 320ms !important;
}
.stagger-5 {
  transition-delay: 400ms !important;
}

/* Pricing card stagger */
.pricing-card-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.pricing-card-anim.in-view {
  opacity: 1;
  transform: none;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 32px;
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
    border-color 220ms;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 71, 224, 0.18);
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 15px;
}
.testimonial-card blockquote,
.testimonial-card p {
  color: rgba(10, 10, 15, 0.72);
  font-size: 15.5px;
  line-height: 1.75;
  font-style: italic;
  quotes: "\201C""\201D";
}
.testimonial-card blockquote::before {
  content: open-quote;
}
.testimonial-card blockquote::after {
  content: close-quote;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--grid-gap-sm);
}
.headshot {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
}
.testimonial-card strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.testimonial-card span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-weight: 700;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--surface-3);
  transition: background 200ms;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.pricing-card:hover::before {
  background: var(--primary);
}
.pricing-card.featured {
  border-color: rgba(91, 71, 224, 0.3);
  background: linear-gradient(180deg, #f0eeff 0%, var(--surface) 60%);
  box-shadow: 0 24px 64px rgba(91, 71, 224, 0.16);
}
.pricing-card.featured::before {
  background: var(--primary);
}
.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 100px;
}
.pricing-tier {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}
.pricing-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pricing-price {
  display: block;
  margin-top: var(--space-md);
  font-size: 52px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
}
.pricing-price span {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.pricing-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}
.pricing-features {
  display: grid;
  gap: var(--grid-gap-sm);
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.pricing-features li::before {
  content: "✓";
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(91, 71, 224, 0.1);
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-cta {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-lg);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: "DM Sans", sans-serif;
  transition: background 180ms, transform 180ms;
  text-decoration: none;
}
.pricing-cta:hover {
  background: #1a1a2e;
  transform: translateY(-1px);
}
.pricing-card.featured .pricing-cta {
  background: var(--primary);
  box-shadow: var(--shadow-primary);
}
.pricing-card.featured .pricing-cta:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-primary-lg);
}

/* ===== SHARED FAQ ===== */
.rb-faq-list {
  display: grid;
}
.rb-faq-list details {
  border-bottom: 1px solid var(--line);
  transition: background 180ms;
}
.rb-faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.rb-faq-list details:hover {
  background: rgba(91, 71, 224, 0.02);
}
.rb-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  user-select: none;
  transition: color 180ms;
}
.rb-faq-list summary::-webkit-details-marker {
  display: none;
}
.rb-faq-list details[open] > summary {
  color: var(--primary);
}
.rb-faq-list details p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-muted);
  padding-right: 44px;
}

/* ===== PROCESS CARDS ===== */
.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background 200ms, border-color 200ms, box-shadow 200ms,
    transform 200ms var(--ease);
}
.process-step:hover {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transform: translateX(6px);
}
.process-step > p {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  margin: 0;
  border: 2px solid rgba(91, 71, 224, 0.2);
  transition: background 200ms, color 200ms;
}
.process-step:hover > p {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.process-step h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.process-step span {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ===== SERVICE ROW ===== */
.service-showcase {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.service-list {
  display: grid;
}
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  padding: 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background 200ms;
  position: relative;
}
.service-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 300ms var(--ease);
}
.service-row:hover::after {
  transform: scaleY(1);
}
.service-row:last-child {
  border-bottom: none;
}
.service-row:hover {
  background: var(--surface-2);
}
.service-row > span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  transition: background 200ms, color 200ms;
}
.service-row:hover > span {
  background: var(--primary);
  color: #fff;
}
.service-row h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.service-row p {
  margin-top: 9px;
  color: var(--ink-muted);
  line-height: 1.72;
  font-size: 14.5px;
}
.service-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--space-sm);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 800;
  transition: gap 180ms;
}
.service-row a:hover {
  gap: 11px;
}
.service-row img {
  display: none;
  width: 210px;
  height: 136px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .service-row {
    grid-template-columns: 56px 1fr 220px;
    align-items: center;
    min-height: 152px;
  }
  .service-row img {
    display: block;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-up,
  .reveal-scale,
  .reveal-left,
  .reveal-right,
  .reveal-fade,
  .pricing-card-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 160ms, background 160ms;
  font-family: "DM Sans", sans-serif;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.nav-dropdown-trigger.nav-active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-dropdown-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 220ms var(--ease);
}
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease),
    visibility 0s linear 200ms;
  z-index: 200;
}
.nav-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease),
    visibility 0s;
}
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  rotate: 45deg;
  border-radius: 2px 0 0 0;
}
.nav-dropdown-inner {
  padding: 8px;
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 8px;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--grid-gap-sm);
  padding: 10px 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: background 150ms, color 150ms;
  position: relative;
}
.nav-dropdown-item:hover {
  background: var(--surface-2);
  color: var(--primary);
}
.nav-dropdown-item.nav-active {
  background: var(--primary-light);
}
.nav-dropdown-item.nav-active .nav-dropdown-text strong {
  color: var(--primary);
}
.nav-dropdown-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--primary-light);
  font-size: 18px;
  transition: background 150ms;
}
.nav-dropdown-item:hover .nav-dropdown-icon {
  background: rgba(91, 71, 224, 0.15);
}
.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.nav-dropdown-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 150ms;
}
.nav-dropdown-item:hover .nav-dropdown-text strong {
  color: var(--primary);
}
.nav-dropdown-text span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-faint);
  line-height: 1.3;
}
.nav-dropdown-new {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}
.nav-dropdown-new--inline {
  margin-left: 6px;
  vertical-align: middle;
}
.nav-dropdown-item--accent {
  background: linear-gradient(
    135deg,
    rgba(91, 71, 224, 0.04) 0%,
    transparent 100%
  );
  border: 1px solid rgba(91, 71, 224, 0.08);
}
.nav-dropdown-item--accent:hover {
  background: var(--primary-light);
  border-color: rgba(91, 71, 224, 0.18);
}

/* ═══════════════ MOBILE ACCORDION NAV ═══════════════ */
.nav-accordion {
  border-bottom: 1px solid var(--line);
}
.nav-accordion:last-of-type {
  border-bottom: none;
}

.nav-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 800;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  cursor: pointer;
  gap: var(--grid-gap-sm);
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  letter-spacing: -0.01em;
}
.nav-accordion-trigger:hover {
  color: var(--primary);
}
.nav-accordion-trigger.nav-active {
  color: var(--primary);
}
.nav-accordion-trigger.nav-active .nav-accordion-chevron {
  color: var(--primary);
}

.nav-accordion-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-faint);
  transition: transform 280ms var(--ease), color 200ms;
}
.nav-accordion-trigger[aria-expanded="true"] .nav-accordion-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.nav-accordion-trigger[aria-expanded="true"] {
  color: var(--primary);
}

.nav-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease);
  overflow: hidden;
}
.nav-accordion-panel.is-open {
  grid-template-rows: 1fr;
}
.nav-accordion-panel > * {
  /* needed for grid animation trick */
  min-height: 0;
  overflow: hidden;
}
.nav-accordion-panel a {
  display: block;
  padding: 10px 0 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  border-left: 2px solid var(--line);
  transition: color 160ms, border-color 160ms, padding-left 160ms;
}
.nav-accordion-panel a:first-child {
  padding-top: 4px;
}
.nav-accordion-panel a:last-child {
  padding-bottom: 16px;
}
.nav-accordion-panel a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 20px;
}
.nav-accordion-panel a.nav-active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 800;
}

/* Nav accordion wrapper needs overflow: hidden for animation */
/* Since grid-template-rows trick needs a direct child with min-height:0 */
/* we wrap each panel's links in a div in JS */

.nav-group-flat {
  display: grid;
  gap: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.nav-group-flat a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 160ms, padding-left 160ms;
}
.nav-group-flat a:last-child {
  border-bottom: none;
}
.nav-group-flat a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.nav-group-cta {
  margin-top: 2px;
  padding-top: 16px;
}

/* ═══════════════ DESKTOP DROPDOWN IMPROVEMENTS ═══════════════ */
.nav-dropdown-panel--wide {
  width: 360px;
  max-width: calc(100vw - 32px);
}

/* Stagger dropdown items */
.nav-dropdown-panel.is-open .nav-dropdown-item:nth-child(1) {
  transition-delay: 20ms;
}
.nav-dropdown-panel.is-open .nav-dropdown-item:nth-child(2) {
  transition-delay: 40ms;
}
.nav-dropdown-panel.is-open .nav-dropdown-item:nth-child(3) {
  transition-delay: 60ms;
}
.nav-dropdown-panel.is-open .nav-dropdown-item:nth-child(4) {
  transition-delay: 80ms;
}
.nav-dropdown-panel.is-open .nav-dropdown-item:nth-child(5) {
  transition-delay: 100ms;
}
.nav-dropdown-panel.is-open .nav-dropdown-item:nth-child(6) {
  transition-delay: 120ms;
}
.nav-dropdown-panel.is-open .nav-dropdown-item:nth-child(7) {
  transition-delay: 140ms;
}
.nav-dropdown-panel.is-open .nav-dropdown-item:nth-child(8) {
  transition-delay: 160ms;
}

/* ═══════════════ SCROLL PROGRESS BAR ═══════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ═══════════════ STICKY SCROLL SECTION ═══════════════ */
.sticky-scroll-section {
  display: grid;
  gap: 0;
}
.sticky-scroll-col {
  margin-bottom: var(--space-xl);
}
@media (min-width: 1024px) {
  .sticky-scroll-section {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .sticky-scroll-col {
    position: sticky;
    top: 100px;
    margin-bottom: 0;
  }
  .sticky-scroll-cards {
    padding-top: 40px;
    padding-bottom: 80px;
  }
}
.sticky-scroll-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  margin-bottom: 20px;
  transition: border-color 240ms, box-shadow 240ms, transform 240ms var(--ease);
  box-shadow: var(--shadow-sm);
}
.sticky-scroll-card:hover {
  border-color: rgba(91, 71, 224, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}
.sticky-scroll-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}
.sticky-scroll-card-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: var(--space-sm);
  transition: background 200ms, color 200ms;
}
.sticky-scroll-card.is-active .sticky-scroll-card-num,
.sticky-scroll-card:hover .sticky-scroll-card-num {
  background: var(--primary);
  color: #fff;
}
.sticky-scroll-card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-sm);
}
.sticky-scroll-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* ═══════════════ NUMBER TICKER (large animated stat) ═══════════════ */
.stat-ticker-row {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (min-width: 640px) {
  .stat-ticker-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .stat-ticker-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-ticker-item {
  background: var(--surface);
  padding: 36px 28px;
  text-align: center;
  transition: background 200ms;
}
.stat-ticker-item:hover {
  background: var(--surface-2);
}
.stat-ticker-item strong {
  display: block;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}
.stat-ticker-item span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ═══════════════ HOVER GLOW CARD ═══════════════ */
.hover-glow {
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease),
    border-color 240ms;
}
.hover-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(91, 71, 224, 0.14);
  border-color: rgba(91, 71, 224, 0.2);
}

/* ═══════════════ SECTION DIVIDER ═══════════════ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0;
}

/* ═══════════════ INLINE TESTIMONIAL QUOTE ═══════════════ */
.inline-quote {
  padding: 28px 32px;
  border-left: 3px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.75;
  position: relative;
}
.inline-quote::before {
  content: "\201C";
  font-size: 56px;
  line-height: 0;
  position: absolute;
  top: 28px;
  left: 22px;
  color: var(--primary);
  opacity: 0.2;
  font-style: normal;
  font-weight: 900;
}

/* ═══════════════ CTA BLOCK HOVER ═══════════════ */
.rb-mid-cta {
  transition: box-shadow 280ms var(--ease), transform 280ms var(--ease);
}
.rb-mid-cta:hover {
  box-shadow: 0 20px 60px rgba(91, 71, 224, 0.12);
  transform: translateY(-3px);
}

/* ═══════════════ ICON BOX ═══════════════ */
.icon-box {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
  transition: background 200ms, color 200ms, transform 200ms var(--ease);
}
.icon-box:hover,
.hover-glow:hover .icon-box,
article:hover .icon-box,
.sticky-scroll-card:hover .icon-box {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

/* ═══════════════ PAGE TRANSITION FADE ═══════════════ */
.page-transition {
  animation: pageFadeIn 400ms var(--ease) both;
}
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════
   PREMIUM VISUAL POLISH — Section Rhythm & Transitions
   ═══════════════════════════════════════════════ */

/* ── Section divider line ── */
.section-divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line) 20%,
    var(--line) 80%,
    transparent 100%
  );
}

/* ── Subtle dot-grid background texture ── */
.section-dotgrid {
  background-image: radial-gradient(
    circle,
    rgba(91, 71, 224, 0.1) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  background-position: center center;
}

/* ── Number badge — large decorative numbers ── */
.deco-num {
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 900;
  color: var(--primary);
  opacity: 0.05;
  line-height: 1;
  position: absolute;
  top: -20px;
  left: -16px;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

/* ── Gradient text ── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #8b6bf5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-accent {
  color: var(--accent);
}

/* ── Feature tag pill ── */
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.feature-tag--green {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.feature-tag--amber {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* ── Premium image wrapper with hover parallax ── */
.img-hover-wrap {
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.img-hover-wrap img {
  transition: transform 600ms var(--ease);
  width: 100%;
}
.img-hover-wrap:hover img {
  transform: scale(1.04);
}

/* ── Card grid — standardised responsive patterns ── */
.card-grid-2 {
  display: grid;
  gap: var(--grid-gap);
}
.card-grid-3 {
  display: grid;
  gap: var(--grid-gap);
}
.card-grid-4 {
  display: grid;
  gap: var(--grid-gap-sm);
}
@media (min-width: 640px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 640px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Premium card base ── */
.card-base {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--card-pad-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease),
    border-color 240ms;
}
.card-base:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 71, 224, 0.2);
}

/* ── Progress dots (ranking impact indicator) ── */
.impact-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.impact-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.2;
  transition: opacity 200ms;
}
.impact-dot.filled {
  opacity: 1;
}
.impact-dots-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  margin-right: 8px;
}

/* ── Timeline vertical line ── */
.timeline-track {
  position: relative;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    rgba(91, 71, 224, 0.1) 100%
  );
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 0 0 var(--space-xl) 36px;
}
.timeline-dot {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
  transition: transform 200ms, box-shadow 200ms;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(91, 71, 224, 0.25);
}
.timeline-year {
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}
.timeline-item h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-sm);
}
.timeline-item p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.78;
}

/* ── Interactive FAQ card style ── */
.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms;
}
.faq-card:hover {
  border-color: rgba(91, 71, 224, 0.2);
  box-shadow: var(--shadow-sm);
}
.faq-card summary {
  padding: var(--card-pad);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: background 160ms;
}
.faq-card summary::-webkit-details-marker {
  display: none;
}
.faq-card details[open] summary {
  background: var(--primary-light);
  color: var(--primary);
}
.faq-card details p {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.8;
}

/* ── Accent underline heading ── */
.heading-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.heading-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ── Image float card overlay ── */
.img-float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--grid-gap-sm);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  z-index: 2;
}
.img-float-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── Spacing utility classes ── */
.mt-xs {
  margin-top: var(--space-xs);
}
.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}
.mt-2xl {
  margin-top: var(--space-2xl);
}
.mt-3xl {
  margin-top: var(--space-3xl);
}
.mb-xl {
  margin-bottom: var(--space-xl);
}
.mb-2xl {
  margin-bottom: var(--space-2xl);
}
.gap-sm {
  gap: var(--grid-gap-sm);
}
.gap-md {
  gap: var(--grid-gap);
}
.gap-lg {
  gap: var(--grid-gap-lg);
}

/* ═══════════════════════════════════════════════
   VISUAL FLOW — Premium Section Transitions
   ═══════════════════════════════════════════════ */

/* Soft fade into next section (use on sections before dark sections) */
.section-fade-down {
  position: relative;
}
.section-fade-down::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--surface-2));
  pointer-events: none;
}

/* Alternating section rhythm helper */
.section-space:nth-child(even),
.section-space + .section-space {
  background: var(--surface);
}

/* ── Elevated card style ── */
.card-elevated {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--card-pad-lg);
  box-shadow: var(--shadow-md);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.card-elevated:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── Step connector lines ── */
.steps-connected {
  position: relative;
}
.steps-connected::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 24px;
  width: 2px;
  height: calc(100% - 56px);
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    rgba(91, 71, 224, 0.08) 100%
  );
  border-radius: 2px;
}

/* ── Numbered step with connector ── */
.step-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
}
.step-item:last-child {
  padding-bottom: 0;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 220ms, border-color 220ms, color 220ms,
    box-shadow 220ms;
}
.step-item:hover .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.step-body h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  padding-top: var(--space-sm);
  margin-bottom: var(--space-xs);
}
.step-body p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* ── Responsive image aspect ratio helpers ── */
.aspect-4-3 {
  aspect-ratio: 4/3;
}
.aspect-16-9 {
  aspect-ratio: 16/9;
}
.aspect-1-1 {
  aspect-ratio: 1/1;
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Section top accent bar ── */
.section-accent-top {
  border-top: 3px solid var(--primary);
}

/* ── Gradient border card ── */
.card-gradient-border {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--card-pad-lg);
}
.card-gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Large stat display ── */
.stat-display {
  text-align: center;
  padding: var(--card-pad-lg);
}
.stat-display strong {
  display: block;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stat-display span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ── CTA group spacing fix ── */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}
.cta-group.mt-lg {
  margin-top: var(--space-lg);
}
.cta-group.mt-xl {
  margin-top: var(--space-xl);
}

/* ── Mobile improvements ── */
@media (max-width: 767px) {
  .card-pad-lg {
    padding: var(--card-pad) !important;
  }
  .step-item {
    grid-template-columns: 44px 1fr;
  }
  .step-num {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }
  .steps-connected::before {
    left: 21px;
  }
  .stat-display strong {
    font-size: clamp(36px, 10vw, 56px);
  }
}
