/* ==========================================================================
   RANKSAGES - WORLD-CLASS AGENCY DESIGN SYSTEM
   Luxury-tech aesthetic: Dark depth, layered gradients, editorial typography
   AEO/GEO-optimized structure with semantic HTML
   ========================================================================== */

/* --- DESIGN TOKENS --- */
:root {
  /* Brand */
  --primary: #0A1628;
  --primary-light: #0F2035;
  --primary-dark: #060E1A;
  --secondary: #20808D;
  --secondary-light: #2A9DAD;
  --accent: #F26522;
  --accent-hover: #D45518;
  --accent-glow: rgba(242, 101, 34, .15);

  /* Neutral */
  --bg: #E8ECF4;
  --bg-alt: #DFE4EF;
  --white: #FFFFFF;
  --body-text: #1A1A2E;
  --muted: #5A6270;
  --light-text: #8892A0;
  --border: #D0D5DD;
  --border-light: #D8DDE8;
  --success: #16A34A;
  --error: #DC2626;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-pad: clamp(64px, 8vw, 120px);
  --container: 1240px;

  /* Effects */
  --glass: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .08);
  --glass-light: rgba(255, 255, 255, .85);
  --blur: blur(20px);
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  --shadow-sm: 0 1px 3px rgba(10,22,40,.06);
  --shadow-md: 0 4px 12px rgba(10,22,40,.08);
  --shadow-lg: 0 12px 32px rgba(10,22,40,.12);
  --shadow-xl: 0 24px 48px rgba(10,22,40,.16);
  --shadow-glow: 0 0 40px rgba(32, 128, 141, .15);
  --transition: all .35s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: all .6s cubic-bezier(.4, 0, .2, 1);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
}
h1 { font-size: clamp(40px, 5.5vw, 64px); }
h2 { font-size: clamp(30px, 3.5vw, 48px); font-weight: 600; }
h3 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; }
h4 { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; }
h5 { font-size: 18px; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* --- LAYOUT --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.section { padding: var(--section-pad) 0; position: relative; }
.section-dark {
  background: var(--primary);
  color: var(--white);
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 256px 256px;
  pointer-events: none;
  opacity: .4;
}
.section-dark > * { position: relative; z-index: 1; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p, .section-dark li { color: rgba(255,255,255,.8); }
.section-light { background: var(--bg); }
.section-gradient {
  background: linear-gradient(135deg, #060E1A 0%, var(--primary) 40%, #0D2A40 70%, #0A2035 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 256px 256px;
  pointer-events: none;
  opacity: .3;
}
.section-gradient > * { position: relative; z-index: 1; }
.section-gradient h2, .section-gradient h3 { color: var(--white); }
.section-gradient p { color: rgba(255,255,255,.8); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.gap-64 { gap: 64px; }

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(242,101,34,.2); }
  50% { box-shadow: 0 0 40px rgba(242,101,34,.4); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Reveal animations - progressive enhancement approach.
   Elements are VISIBLE by default. Only hidden when JS confirms it can animate them.
   This prevents blank sections if JS fails, loads late, or is blocked. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
/* JS adds .js-reveal-ready to <html> when IntersectionObserver is running.
   Only then do we hide elements for the reveal animation. */
html.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
}
html.js-reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* Fallback: if JS hasn't added .js-reveal-ready within 3 seconds, force everything visible */
@keyframes forceReveal {
  to { opacity: 1; transform: none; }
}
.reveal:not(.visible) {
  animation: forceReveal 0s 3s forwards;
}

/* --- PRE-LABEL --- */
.prelabel {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.prelabel::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}
.section-dark .prelabel, .section-gradient .prelabel {
  color: var(--accent);
}
.section-dark .prelabel::before, .section-gradient .prelabel::before {
  background: var(--accent);
}

.section-desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242,101,34,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-ghost:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(32,128,141,.25);
}
.btn-white {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-white:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.announcement-bar a { color: var(--accent); font-weight: 600; }
.announcement-bar a:hover { color: #fff; text-decoration: underline; }
.close-bar {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  font-size: 18px;
}

/* --- SITE HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--border), var(--shadow-md);
}

.header-top {
  background: var(--primary);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.header-top a { color: rgba(255,255,255,.7); }
.header-top a:hover { color: var(--white); }
.header-top .social-links { display: flex; gap: 14px; }
.header-top .social-links a {
  color: rgba(255,255,255,.4);
  font-size: 13px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition);
}
.header-top .social-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.header-main {
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
}
.logo-text span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 2px; box-sizing: border-box; }
.mobile-nav-cta { display: none; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: -.01em;
}
.main-nav .nav-link:hover { color: var(--primary); background: var(--bg); }
.main-nav .nav-link.active { color: #186C77; background: rgba(32,128,141,.08); font-weight: 600; }
.nav-cta { margin-left: 20px; }

/* === SIMPLE DROPDOWN MENU === */
.dropdown-trigger { position: relative; }
.dropdown-trigger > .nav-link { cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 200;
  padding: 8px 0;
  margin-top: 8px;
}
.dropdown-trigger:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: rgba(232,119,34,.06);
  color: var(--accent);
}
.dropdown-menu a i {
  width: 16px;
  text-align: center;
  color: var(--accent);
  font-size: 13px;
}

/* === MEGA MENU - Premium Agency Design === */
.mega-trigger { position: relative; }
.mega-trigger > .nav-link { cursor: pointer; }

.mega-menu {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s cubic-bezier(.4,0,.2,1), transform .35s cubic-bezier(.4,0,.2,1), visibility .35s;
  z-index: 200;
  padding-top: 0;
}
.mega-trigger:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu-inner {
  background: var(--white);
  border-top: 3px solid var(--secondary);
  box-shadow: 0 40px 80px rgba(10,22,40,.18), 0 0 1px rgba(10,22,40,.1);
  padding: 40px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1300px;
  margin: 0 auto;
}
.mega-col {
  padding: 0 28px;
  border-right: 1px solid var(--border-light);
}
.mega-col:last-child { border-right: none; }

.mega-heading {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0 0 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mega-heading i {
  color: var(--white);
  font-size: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(32,128,141,.25);
}
.mega-col a {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  margin: 2px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  border-radius: 8px;
  letter-spacing: -.01em;
  line-height: 1.35;
  position: relative;
}
.mega-col a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  margin-right: 10px;
  flex-shrink: 0;
  transition: var(--transition);
}
.mega-col a:hover {
  color: var(--secondary);
  background: rgba(32,128,141,.04);
}
.mega-col a:hover::before {
  background: var(--secondary);
  width: 6px;
  height: 6px;
  box-shadow: 0 0 6px rgba(32,128,141,.4);
}
.mega-cta {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), #0D2440);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mega-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(32,128,141,.3), transparent 70%);
  border-radius: 50%;
}
.mega-cta p {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.mega-cta .btn {
  position: relative;
  z-index: 1;
  font-size: 12px;
  padding: 10px 20px;
}

.mega-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  padding: 16px 5%;
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}
.mega-footer a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mega-footer a:hover { color: var(--accent); }

/* Simple dropdown for non-mega items */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 100;
  padding-top: 12px;
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, #060E1A 0%, var(--primary) 30%, #0D2A40 60%, #0A2035 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
/* Image-based hero */
.hero.hero-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,14,26,.88) 0%, rgba(10,22,40,.82) 40%, rgba(13,42,64,.75) 100%);
  z-index: 1;
}
/* Hero proof bar - social proof metrics inline */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 20px 28px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: fit-content;
}
.hero-proof-item {
  text-align: center;
}
.hero-proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1;
}
.hero-proof-item span {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .02em;
}
.hero-proof-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.1);
}
/* Hero visual (right column) */
.hero-visual { position: relative; }
.hero-img-wrapper { position: relative; }
.hero-stat-badge {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: float 4s ease-in-out infinite;
}
.hero-stat-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1;
}
.hero-stat-badge span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
}
@media (max-width: 768px) {
  .hero-visual { display: none; }
}
/* Animated gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(32,128,141,.12) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242,101,34,.06) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}
/* Grain overlay */
.hero .grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 256px 256px;
  opacity: .3;
  pointer-events: none;
}
/* Grid pattern */
.hero .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 640px;
  font-size: clamp(32px, 4vw, 50px) !important;
  line-height: 1.15 !important;
  animation: fadeUp .8s cubic-bezier(.4,0,.2,1) both;
}
.hero-sub {
  color: rgba(255,255,255,.7);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 36px;
  animation: fadeUp .8s cubic-bezier(.4,0,.2,1) .15s both;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--secondary-light);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  margin-bottom: 28px;
  border: 1px solid var(--glass-border);
  animation: fadeUp .8s cubic-bezier(.4,0,.2,1) both;
  letter-spacing: .01em;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp .8s cubic-bezier(.4,0,.2,1) .25s both;
}
.hero .btn-primary { animation: glow 3s ease-in-out infinite; }
.trust-badges {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
  animation: fadeIn 1s .6s both;
}
.trust-badges span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* --- TRUST BAR --- */
.trust-bar {
  background: var(--bg);
  padding: 36px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.trust-bar p { font-size: 13px; color: var(--light-text); margin-bottom: 16px; letter-spacing: .03em; text-transform: uppercase; font-weight: 500; }
.trust-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-logos span,
.trust-logos .pub-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: .02em;
  transition: var(--transition);
}
.trust-logos span:hover { color: var(--muted); }

/* --- SERVICE CARDS --- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.service-card:hover::before {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}
.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(32,128,141,.08), rgba(32,128,141,.15));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--secondary);
  font-size: 22px;
  transition: var(--transition);
}
.service-card:hover .card-icon {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white);
  transform: scale(1.05);
}
.service-card h4 { margin-bottom: 10px; font-size: 20px; }
.service-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
  transition: var(--transition);
}
.card-link:hover { color: var(--accent); gap: 10px; }
.ai-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(32,128,141,.06);
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: .02em;
}

/* --- STAT ITEMS --- */
.stat-item { text-align: center; padding: 24px 12px; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #FF8A50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.stat-desc { font-size: 13px; color: var(--muted); }
.section-dark .stat-label { color: var(--white); }
.section-dark .stat-desc, .section-gradient .stat-desc { color: rgba(255,255,255,.4); }

/* --- PROBLEM STATS --- */
.problem-stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--error);
  transition: var(--transition);
}
.problem-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.problem-stat .number {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--error);
  margin-bottom: 8px;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.problem-stat p { font-size: 14px; color: var(--muted); }

/* --- PRICING CARDS --- */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-xl); border-color: transparent; }
.pricing-card.popular {
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow-glow);
}
.popular-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 7px 22px;
  border-radius: 9999px;
  white-space: nowrap;
  text-transform: uppercase;
}
.pricing-card h4 { font-size: 20px; margin-bottom: 8px; }
.price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -.03em;
}
.price span { font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan-features { margin: 24px 0; }
.plan-features li {
  font-size: 14px;
  padding: 9px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--bg);
  color: var(--body-text);
}
.plan-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 13px;
}
.ai-included {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(32,128,141,.05);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-family: var(--font-display);
}

/* --- COMPARISON TABLE --- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  margin-top: 32px;
}
.comparison-table th {
  padding: 16px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.01em;
}
.comparison-table th:first-child { background: rgba(255,255,255,.03); color: rgba(255,255,255,.6); }
.comparison-table th:nth-child(2) { background: var(--secondary); color: var(--white); }
.comparison-table th:nth-child(3) { background: rgba(255,255,255,.03); color: rgba(255,255,255,.6); }
.comparison-table td {
  padding: 14px 24px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: rgba(255,255,255,.75);
}
.comparison-table td:nth-child(2) {
  background: rgba(32,128,141,.08);
  font-weight: 500;
  color: var(--white);
}
.comparison-table tr:last-child td { border-bottom: none; }
.check { color: var(--success); font-weight: 700; }
.cross { color: var(--error); font-weight: 700; }

/* --- STEPS --- */
.step { position: relative; padding-left: 80px; min-height: 100px; }
.step-number {
  position: absolute;
  left: 0;
  top: -4px;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(32,128,141,.12), rgba(32,128,141,.04));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* --- MARKET CARDS --- */
.market-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.market-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.market-card .flag { font-size: 44px; margin-bottom: 14px; line-height: 1; }
.market-card .flag img { display: block; margin: 0 auto; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.market-card h4 { font-size: 18px; margin-bottom: 6px; }
.market-card p { font-size: 14px; color: var(--muted); }

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: Georgia, serif;
  font-size: 72px;
  color: rgba(32,128,141,.08);
  line-height: 1;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.stars { color: #F59E0B; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  color: var(--body-text);
  margin: 0 0 20px;
  padding: 0;
  border: none;
}
.testimonial-author { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--muted); }

/* --- CASE STUDY CARDS --- */
.case-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.case-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.case-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  display: block;
}
.case-card h4 { font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
.case-results { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.case-result {
  background: var(--bg);
  padding: 14px 16px;
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
  min-width: 80px;
}
.case-result .num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}
.case-result .lbl { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }

/* --- INDUSTRY CARDS --- */
.industry-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}
.industry-card:hover { background: var(--bg); border-color: var(--border-light); }
.industry-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(32,128,141,.08), rgba(32,128,141,.15));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 18px;
  flex-shrink: 0;
}
.industry-card h5 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.industry-card p { font-size: 13px; color: var(--muted); }

/* --- LEAD FORM --- */
.lead-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.1);
}
.lead-form h3 { color: var(--primary); margin-bottom: 6px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--body-text);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(32,128,141,.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .01em;
}
.form-submit:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(242,101,34,.3); }
.form-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--border); }
.faq-item.active { border-color: var(--secondary); box-shadow: 0 2px 12px rgba(32,128,141,.08); }
.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  color: var(--primary);
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--transition);
  letter-spacing: -.01em;
}
.faq-question:hover { color: var(--secondary); }
.faq-answer {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  display: none;
}
.faq-item.active .faq-answer { display: block; }

/* --- BLOG CARDS --- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 128px 128px;
  opacity: .4;
}
.blog-card-body { padding: 24px; }
.blog-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  display: block;
}
.blog-card h4 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
.read-time { font-size: 13px; color: var(--light-text); }

/* --- FOOTER --- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  padding: 72px 0 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 256px 256px;
  opacity: .3;
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: .01em;
}
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 14px;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 56px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,.3); font-size: 13px; }
.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* --- PAGE HEADER --- */
.page-header {
  background: linear-gradient(135deg, var(--primary), #0D2440);
  padding: 100px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 256px 256px;
  opacity: .3;
  pointer-events: none;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); margin-bottom: 16px; }
.page-header p { color: rgba(255,255,255,.7); font-size: 18px; max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: var(--white); }

/* ==========================================================================
   HOMEPAGE UI/UX SYSTEM - Proper classes for all custom sections
   ========================================================================== */

/* --- PROOF STRIP (dark evidence bar) --- */
.proof-strip {
  padding: 48px 0;
  background: linear-gradient(135deg, #060E1A, #0A1628);
}
.proof-strip .grid { gap: 20px; }
.proof-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.proof-card:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}
.proof-card-label {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.proof-card-metric {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-top: 10px;
}
.proof-card-metric strong { color: #22C55E; }

/* Mini bar chart inside proof cards */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 50px;
  margin-bottom: 8px;
}
.mini-chart-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  transition: height .3s ease;
}
.mini-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255,255,255,.25);
}

/* AI citation mockup */
.ai-citation-mock {
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}
.ai-citation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-citation-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(16,163,127,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-citation-icon i { font-size: 9px; color: #10A37F; }
.ai-citation-label { font-size: 11px; color: rgba(255,255,255,.4); }
.ai-citation-text {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  font-style: italic;
}
.ai-citation-text strong { color: var(--accent); }

/* Revenue proof card */
.revenue-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.revenue-proof-old {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  text-decoration: line-through;
}
.revenue-proof-new {
  font-size: 28px;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--accent);
}
.revenue-proof-arrow {
  font-size: 32px;
  color: #22C55E;
}
.revenue-proof-pct {
  font-size: 12px;
  color: #22C55E;
  font-weight: 700;
}
.revenue-bar {
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.revenue-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #22C55E);
  border-radius: 2px;
}

/* --- HERO DASHBOARD (right column visual) --- */
.hero-dashboard {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-dashboard-title {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.hero-dashboard-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}
.hero-dashboard-card:last-child { margin-bottom: 0; }
.hero-dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.hero-dashboard-label {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.hero-dashboard-value {
  font-size: 13px;
  font-weight: 700;
}
.hero-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-dashboard-stat {
  text-align: center;
  padding: 12px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
}
.hero-dashboard-stat-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}
.hero-dashboard-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}
.live-indicator {
  position: absolute;
  top: -10px;
  right: 20px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  color: #22C55E;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s infinite;
}

/* --- ENGINE CARDS (replaces service cards on homepage) --- */
.engine-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--secondary);
}
.engine-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  border-top-color: var(--accent);
}
.engine-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.engine-card-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}

/* --- FLYWHEEL (compounding system visual) --- */
.flywheel {
  margin-top: 48px;
  text-align: center;
}
.flywheel-flow {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.flywheel-node {
  background: var(--bg);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 24px;
  transition: var(--transition);
}
.flywheel-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.flywheel-node-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.flywheel-node-sub {
  font-size: 11px;
  color: var(--muted);
}
.flywheel-arrow {
  font-size: 20px;
  padding: 0 8px;
  color: var(--muted);
}
.flywheel-desc {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- PROCESS TIMELINE (replaces stock image) --- */
.process-timeline {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}
.process-timeline-title {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 24px;
}
.timeline-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.timeline-step:last-child { margin-bottom: 0; }
.timeline-step:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.timeline-step-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.timeline-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.timeline-step-desc {
  font-size: 12px;
  color: var(--muted);
}

/* --- FOUNDER STRIP --- */
.founder-strip {
  padding: 56px 0;
  background: linear-gradient(135deg, #0A1628, #162847);
}
.founder-strip-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.founder-strip-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.founder-strip-quote {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 12px;
}
.founder-strip-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.founder-strip-title {
  font-size: 12px;
  color: var(--accent);
}

/* --- SEARCH SHIFT VISUAL (insight section left) --- */
.search-shift {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}
.search-shift-title {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 24px;
}
.search-shift-bar {
  margin-bottom: 16px;
}
.search-shift-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.search-shift-bar-label { font-weight: 600; }
.search-shift-bar-track {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.search-shift-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s ease;
}
.search-shift-cta {
  margin-top: 20px;
  padding: 16px;
  background: #FFF5F0;
  border: 1px solid rgba(242,101,34,.15);
  border-radius: 8px;
}
.search-shift-cta-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.search-shift-cta-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--error);
}
.search-shift-cta-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* --- MARKETS COMPACT LINE --- */
.markets-line {
  padding: 24px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.markets-line-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.markets-line-item {
  font-size: 13px;
  color: var(--body-text);
  font-weight: 600;
}
.markets-line-item img {
  display: inline;
  border-radius: 2px;
  vertical-align: -2px;
  margin-right: 3px;
}

/* --- CHATBOT HIDE WHEN POPUP OPEN (all viewports) --- */
body.popup-open #rs-bot { display: none !important; }

/* --- SIGNATURE LINE (visual anchor moment) --- */
.signature-line-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #060E1A, #0A1628);
  position: relative;
  overflow: hidden;
}
.signature-line-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 256px 256px;
  opacity: .3;
  pointer-events: none;
}
.signature-line-section > * { position: relative; z-index: 1; }

/* --- STAR RATINGS --- */
.stars { display: flex; gap: 4px; color: #F26522; font-size: 14px; }

/* --- TESTIMONIAL RESULTS-FIRST --- */
.testimonial-result {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.2;
}
.testimonial-vertical {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* --- INDUSTRY FOCUS CARDS --- */
.industry-focus-card {
  text-decoration: none;
  display: block;
  border-top: 3px solid var(--accent);
}
.industry-focus-card .industry-proof {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin: 8px 0 12px;
}
.industry-focus-card .industry-proof i { margin-right: 4px; }
.industry-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.industry-tag {
  padding: 8px 20px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.industry-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .pricing-card.popular { transform: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }

  /* Show burger on tablet too since mega menu is too wide */
  .mobile-toggle { display: block !important; position: relative; z-index: 1002; }
  .nav-cta { display: none !important; }
  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0; width: 100% !important; height: 100% !important;
    background: var(--primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    z-index: 1001;
    padding: 80px 24px 24px;
    overflow-y: auto;
  }
  .main-nav.show { display: flex !important; -webkit-transform: translateZ(0); transform: translateZ(0); }
  .main-nav > a.nav-link,
  .main-nav > .mega-trigger > a.nav-link,
  .main-nav > .dropdown-trigger > a.nav-link {
    font-size: 18px !important; padding: 14px 0 !important;
    color: var(--white) !important; border-bottom: 1px solid rgba(255,255,255,.1);
    display: block; text-align: left; width: 100%;
  }
  .mega-menu, .dropdown-menu {
    position: static !important; opacity: 1 !important; visibility: visible !important;
    transform: none !important; display: none;
    background: rgba(255,255,255,.05) !important;
    border-radius: 8px !important; box-shadow: none !important; border: none !important;
    padding: 8px 0 !important; margin: 4px 0 8px !important;
    width: 100% !important; max-width: 100% !important;
  }
  .mega-trigger.open .mega-menu, .dropdown-trigger.open .dropdown-menu { display: block; }
  .mega-menu-inner { display: flex !important; flex-direction: column !important; gap: 4px !important; padding: 8px 12px !important; background: transparent !important; box-shadow: none !important; border-top: none !important; max-width: 100% !important; }
  .mega-col { padding: 0 !important; border: none !important; }
  .mega-heading { font-size: 13px !important; color: var(--accent) !important; padding: 8px 0 4px !important; }
  .mega-col a, .dropdown-menu a { font-size: 14px !important; padding: 8px 12px !important; color: rgba(255,255,255,.8) !important; }
  .mega-footer { display: none !important; }
  body.nav-open { overflow: hidden; position: fixed; width: 100%; -webkit-overflow-scrolling: auto; }
}

@media (max-width: 768px) {
  /* --- GLOBAL OVERFLOW FIX --- */
  html, body { overflow-x: hidden !important; max-width: 100% !important; }
  main, section, div, header, footer, nav, article, aside { max-width: 100% !important; overflow-x: hidden; }
  img, video, iframe, embed, object, svg { max-width: 100% !important; height: auto !important; }
  pre, code { white-space: pre-wrap !important; word-wrap: break-word !important; overflow-x: auto !important; max-width: 100% !important; }
  table { max-width: 100% !important; display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

  /* --- BASE --- */
  .section { padding: 48px 0; }
  .container { padding: 0 16px !important; max-width: 100% !important; }
  h1 { font-size: 28px !important; line-height: 1.2 !important; word-wrap: break-word !important; }
  h2 { font-size: 22px !important; line-height: 1.25 !important; word-wrap: break-word !important; }
  h3 { font-size: 18px !important; word-wrap: break-word !important; }

  /* Hero H1 - BIG and bold on mobile */
  .hero h1,
  .hero .hero-title,
  body.home .hero h1 {
    font-size: clamp(40px, 12vw, 56px) !important;
    line-height: 1.05 !important;
    letter-spacing: -1px !important;
    font-weight: 800 !important;
  }
  /* Hero subtitle - accent colored line */
  .hero h1 + p {
    font-size: clamp(16px, 4.5vw, 20px) !important;
    margin-bottom: 12px !important;
  }
  /* Hero body text */
  .hero-sub {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  /* Hero badge */
  .hero .badge {
    font-size: 11px !important;
    padding: 6px 14px !important;
  }
  /* Hero proof bar - make items stack better */
  .hero-proof {
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
  }
  .hero-proof-item strong {
    font-size: 20px !important;
  }
  .hero-proof-divider {
    display: none !important;
  }
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr !important; }

  /* --- ANNOUNCEMENT BAR --- */
  .announcement-bar { font-size: 13px !important; padding: 10px 16px !important; text-align: center; line-height: 1.4 !important; }
  .announcement-bar span { display: block; padding-right: 28px; }
  .announcement-bar .close-bar { position: absolute !important; top: 50% !important; right: 8px !important; transform: translateY(-50%) !important; padding: 4px !important; }

  /* --- MOBILE NAV (Full-screen overlay) --- */
  .mobile-toggle { display: block !important; position: relative; z-index: 1002; }
  .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { display: none !important; }

  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0; width: 100% !important; height: 100% !important;
    background: var(--primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    z-index: 1001;
    padding: 80px 24px 24px;
    overflow-y: auto;
  }
  .main-nav.show { display: flex !important; -webkit-transform: translateZ(0); transform: translateZ(0); }

  .main-nav > a.nav-link,
  .main-nav > .mega-trigger > a.nav-link,
  .main-nav > .dropdown-trigger > a.nav-link {
    font-size: 18px !important;
    padding: 14px 0 !important;
    color: var(--white) !important;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: block;
    text-align: left;
    width: 100%;
  }
  .main-nav > a.nav-link:hover,
  .main-nav > .mega-trigger > a.nav-link:hover,
  .main-nav > .dropdown-trigger > a.nav-link:hover {
    color: var(--accent) !important;
  }

  /* Mobile dropdown menus */
  .mega-trigger, .dropdown-trigger { position: relative; width: 100%; }
  .mega-trigger > a svg, .dropdown-trigger > a svg { float: right; margin-top: 4px; transition: transform .3s; }
  .mega-trigger.open > a svg, .dropdown-trigger.open > a svg { transform: rotate(180deg); }

  .mega-menu, .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
    background: rgba(255,255,255,.05) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    border: none !important;
    padding: 8px 0 !important;
    margin: 4px 0 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
  }
  .mega-trigger.open .mega-menu,
  .dropdown-trigger.open .dropdown-menu { display: block; }

  .mega-menu-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 8px 12px !important;
  }
  .mega-col { padding: 0 !important; border: none !important; }
  .mega-heading {
    font-size: 13px !important;
    color: var(--accent) !important;
    padding: 8px 0 4px !important;
    margin: 8px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .mega-col:first-child .mega-heading:first-child { border-top: none; margin-top: 0; }
  .mega-col a, .mega-menu a, .dropdown-menu a {
    font-size: 14px !important;
    padding: 8px 12px !important;
    color: rgba(255,255,255,.8) !important;
    display: block;
    border-radius: 6px;
  }
  .mega-col a:hover, .mega-menu a:hover, .dropdown-menu a:hover {
    background: rgba(255,255,255,.08) !important;
    color: var(--white) !important;
  }
  .mega-cta {
    margin-top: 12px !important;
    padding: 12px !important;
    background: rgba(242,101,34,.1) !important;
    border-radius: 8px !important;
  }
  .mega-cta p { color: rgba(255,255,255,.7) !important; font-size: 13px !important; margin-bottom: 8px !important; }
  .mega-footer { display: none !important; }

  /* Mobile CTA at bottom of nav */
  .main-nav::after { display: none !important; }
  .mobile-nav-cta {
    display: block !important;
    text-align: center;
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 14px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    margin-top: 16px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-decoration: none;
  }

  /* --- HEADER --- */
  .header-main { padding: 0 !important; }
  .header-inner { padding: 10px 16px !important; }
  .logo img { height: 60px !important; width: auto !important; }
  .site-header.scrolled .logo img { height: 48px !important; }

  /* --- HERO --- */
  .hero { min-height: auto; padding: 72px 0 48px; }
  .hero-buttons { flex-direction: column; gap: 12px !important; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .hero .container > div[style*="display:flex"],
  .hero .container > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 32px !important;
  }

  /* --- INLINE GRID OVERRIDES (critical for templates with inline styles) --- */
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns: repeat(3"],
  div[style*="grid-template-columns: repeat(4"],
  div[style*="grid-template-columns: repeat(5"],
  div[style*="grid-template-columns: repeat(6"],
  div[style*="grid-template-columns:repeat(2"],
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* --- INLINE FLEX OVERRIDES --- */
  div[style*="display:flex"][style*="gap:"],
  div[style*="display: flex"][style*="gap:"] {
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }

  /* --- PREVENT ANY ELEMENT FROM OVERFLOWING --- */
  [style*="width:"] { max-width: 100% !important; box-sizing: border-box !important; }
  [style*="min-width:"] { min-width: 0 !important; }
  [style*="padding:"] { box-sizing: border-box !important; }

  /* --- FOOTER --- */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .trust-badges { justify-content: center; flex-wrap: wrap; }
  .footer-col h3 { font-size: 14px !important; margin-bottom: 12px !important; }
  .footer-col a { font-size: 13px !important; }

  /* --- PAGE HEADER --- */
  .page-header { padding: 72px 0 40px !important; }
  .page-header h1 { font-size: 28px !important; }
  .page-header p { font-size: 15px !important; }

  /* --- STATS / TRUST BARS --- */
  div[style*="display:flex"][style*="justify-content:space-around"],
  div[style*="display:flex"][style*="justify-content: space-around"],
  div[style*="display:flex"][style*="justify-content:space-between"] {
    flex-wrap: wrap !important;
    gap: 16px !important;
    justify-content: center !important;
  }

  /* --- PRICING --- */
  .pricing-card.popular { transform: none; }
  .pricing-toggle { flex-direction: column; gap: 8px; }

  /* --- STEPS --- */
  .step { padding-left: 48px !important; }
  .step-number { font-size: 40px !important; }

  /* --- CARDS --- */
  .service-card, .industry-card, .case-card { padding: 20px !important; }

  /* --- POPUP FORM --- */
  #rs-popup-overlay > div { width: 95% !important; max-width: 100% !important; margin: 0 !important; max-height: 95vh !important; }
  #rs-popup-overlay > div > div[style*="padding:20px 24px"] { padding: 16px !important; }
  #rs-popup-overlay div[style*="grid-template-columns:1fr 1fr"],
  #rs-popup-overlay div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* --- CHATBOT MOBILE --- */
  #rs-bot { right: 12px !important; bottom: 12px !important; }
  #rs-bot-window {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    z-index: 100000 !important;
  }
  #rs-bot-window #rs-bot-msgs {
    min-height: calc(100vh - 240px) !important;
    max-height: calc(100vh - 240px) !important;
  }
  #rs-bot-fab { width: 52px !important; height: 52px !important; border-radius: 16px !important; }
  #rs-bot-fab svg { width: 22px !important; height: 22px !important; }
  #rs-bot-promo { max-width: 200px !important; font-size: 12px !important; }
  #rs-bot-badge { width: 16px !important; height: 16px !important; font-size: 9px !important; }
  /* Hide chatbot FAB when popup is open */
  body.popup-open #rs-bot { display: none !important; }

  /* --- BLOG --- */
  .blog-grid { grid-template-columns: 1fr !important; }
  .single-post-header { padding: 72px 0 32px !important; }
  .post-content { padding: 0 !important; }

  /* --- HOMEPAGE NEW COMPONENTS --- */
  .proof-strip { padding: 32px 0; }
  .proof-strip .grid-3 { grid-template-columns: 1fr !important; }
  .proof-card { padding: 20px; }

  .hero-dashboard { padding: 20px; }
  .hero-dashboard-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-dashboard-stat { padding: 8px; }
  .hero-dashboard-stat-num { font-size: 16px; }
  .live-indicator { font-size: 10px; padding: 4px 10px; top: -8px; right: 12px; }

  .engine-card { padding: 24px 20px; }
  .engine-card-number { font-size: 10px; }

  .flywheel-flow { gap: 4px; }
  .flywheel-node { padding: 12px 16px; }
  .flywheel-node-title { font-size: 12px; }
  .flywheel-arrow { font-size: 16px; padding: 0 4px; }

  .process-timeline { padding: 20px; }
  .timeline-step { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; }

  .founder-strip { padding: 40px 0; }
  .founder-strip-inner { flex-direction: column; text-align: center; gap: 20px; }
  .founder-strip-quote { font-size: 16px; }

  .search-shift { padding: 20px; }
  .search-shift-cta-num { font-size: 20px; }

  .markets-line { padding: 16px 0; }
  .markets-line .container { line-height: 2; }

  .testimonial-result { font-size: 18px; }

  .industry-tags { gap: 8px; }
  .industry-tag { padding: 6px 14px; font-size: 12px; }

  /* --- ABOUT PAGE --- */
  .about-stats { flex-wrap: wrap !important; justify-content: center !important; }

  /* --- VISION/MISSION/WHY CARDS --- */
  div[style*="display:grid"][style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* --- INLINE TWO-COL LAYOUTS --- */
  div[style*="display:flex"][style*="50%"],
  div[style*="display:grid"][style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }

  /* Hide desktop-only elements */
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  /* --- IMAGES --- */
  img[style*="max-width:560px"],
  img[style*="max-width: 560px"] {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* --- TABLES --- */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Body scroll lock when nav is open */
  body.nav-open { overflow: hidden; position: fixed; width: 100%; -webkit-overflow-scrolling: auto; }
}

/* --- SMALL PHONES (iPhone SE, Galaxy S8, etc.) --- */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  h1 { font-size: 24px !important; line-height: 1.2 !important; }
  h2 { font-size: 20px !important; line-height: 1.25 !important; }
  h3 { font-size: 16px !important; }
  p, li, td, th { font-size: 14px !important; }

  /* Announcement bar */
  .announcement-bar { font-size: 11px !important; padding: 6px 8px !important; }
  .announcement-bar .close-bar { top: 2px !important; right: 4px !important; }

  /* Header */
  .logo img { height: 52px !important; width: auto !important; }
  .header-inner { padding: 8px 12px !important; }

  /* Hero */
  .hero { padding: 56px 0 40px !important; }

  /* Prevent text overflow */
  body { overflow-x: hidden; }
  * { word-break: break-word; }

  /* Stats badges */
  div[style*="display:flex"][style*="justify-content:space-around"],
  div[style*="display:flex"][style*="justify-content: space-around"] {
    gap: 8px !important;
    font-size: 12px !important;
  }

  /* Buttons */
  .btn, button[type="submit"], a.btn { font-size: 14px !important; padding: 12px 16px !important; }

  /* Chatbot - smaller on tiny screens */
  #rs-chatbot { right: 4px !important; bottom: 4px !important; width: calc(100vw - 8px) !important; }
  #rs-chatbot-toggle { width: 48px !important; height: 48px !important; font-size: 18px !important; }

  /* Pricing cards */
  .pricing-card { padding: 20px 16px !important; }

  /* Footer */
  .footer-grid, .rs-footer-grid-mobile { grid-template-columns: 1fr !important; gap: 20px !important; }
  .footer-col h3 { font-size: 13px !important; }
  .footer-col a { font-size: 12px !important; }

  /* Popup form */
  #rs-popup-overlay > div { width: 98% !important; }
  #rs-popup-overlay div[style*="padding:20px 24px"],
  #rs-popup-overlay div[style*="padding: 20px 24px"] { padding: 12px !important; }

  /* Trust badges text */
  .trust-badges span { font-size: 10px !important; }

  /* Case study cards */
  .service-card, .industry-card, .case-card { padding: 16px !important; }
}

/* --- TABLET LANDSCAPE (769px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { max-width: 720px; }
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }

  /* 2-column grids should stay 2-col on tablet */
  .grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* Hero side-by-side with tighter gap */
  .hero .container > div[style*="display:flex"] {
    gap: 24px !important;
  }
  .hero .container img[style*="max-width:560px"] {
    max-width: 380px !important;
  }

  /* Pricing - 2 cols on tablet */
  .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- FOCUS STYLES (Accessibility - WCAG AA) --- */
/* Visible focus ring for keyboard navigation on ALL interactive elements */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(242,101,34,.2);
}
.nav-link:focus-visible,
.card-link:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
/* Remove default outline for mouse clicks (only show for keyboard) */
:focus:not(:focus-visible) {
  outline: none;
}
/* Dark section focus rings use lighter color */
.section-dark :focus-visible,
.section-gradient :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* --- SELECTION --- */
::selection { background: var(--secondary); color: var(--white); }

/* --- SINGLE POST LAYOUT --- */
.single-post-header {
  background: linear-gradient(135deg, var(--primary), #0D2440);
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
}
.single-post-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 256px 256px;
  opacity: .3;
  pointer-events: none;
}
.single-post-header .container { position: relative; z-index: 1; max-width: 900px; }
.single-post-header h1 {
  color: var(--white);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}
.post-meta-bar img,
.post-meta-bar .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.post-meta-bar .author-avatar {
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}
.post-meta-bar a { color: rgba(255,255,255,.8); }
.post-meta-bar .separator { color: rgba(255,255,255,.25); }

/* Post body with sidebar */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-main { min-width: 0; }
.post-sidebar { position: relative; }

/* Sticky TOC sidebar */
.toc-sticky {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.toc-widget {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.toc-widget h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 700;
}
.toc-widget ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc-widget li {
  counter-increment: toc;
  margin-bottom: 0;
}
.toc-widget li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -1px;
  transition: var(--transition);
}
.toc-widget li a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--border);
  flex-shrink: 0;
  min-width: 20px;
}
.toc-widget li a:hover,
.toc-widget li a.active {
  color: var(--secondary);
  border-left-color: var(--secondary);
}
.toc-widget li a.active::before { color: var(--secondary); }

/* Social share sidebar */
.share-widget {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}
.share-btn:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

/* Sidebar CTA card */
.sidebar-cta {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--primary), #0D2440);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: var(--white);
}
.sidebar-cta h5 { color: var(--white); font-size: 15px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.sidebar-cta .btn { font-size: 13px; padding: 10px 20px; }

/* --- POST CONTENT STYLES (Backlinko-inspired) --- */
.post-content { font-size: 17px; line-height: 1.8; color: var(--body-text); }
.post-content h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  scroll-margin-top: 100px;
}
.post-content h3 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  margin: 36px 0 16px;
  scroll-margin-top: 100px;
}
.post-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.post-content p { margin-bottom: 20px; }
.post-content a { color: var(--secondary); text-decoration: underline; text-decoration-color: rgba(32,128,141,.3); text-underline-offset: 3px; transition: var(--transition); }
.post-content a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
  margin: 24px 0;
}
.post-content ul, .post-content ol { margin-bottom: 20px; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--bg);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--muted);
}

/* Callout boxes - Backlinko style */
.callout-box {
  margin: 32px 0;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  position: relative;
}
.callout-box p:last-child { margin-bottom: 0; }
.callout-box-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pro Tip - orange */
.callout-pro-tip {
  background: #FFF7ED;
  border-color: #FED7AA;
}
.callout-pro-tip .callout-box-title { color: var(--accent); }

/* Key Takeaway - green */
.callout-takeaway {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.callout-takeaway .callout-box-title { color: var(--success); }

/* Warning - red */
.callout-warning {
  background: #FEF2F2;
  border-color: #FECACA;
}
.callout-warning .callout-box-title { color: var(--error); }

/* Definition / Note - blue-gray */
.callout-definition {
  background: #F0F9FF;
  border-color: #BAE6FD;
}
.callout-definition .callout-box-title { color: #0369A1; }

/* In-content CTA box */
.content-cta {
  margin: 40px 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8eaed;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  display: flex;
  text-align: left;
}
.content-cta .cta-left {
  flex: 1;
  padding: 28px 32px;
  background: #fff;
}
.content-cta .cta-right {
  width: 200px;
  background: linear-gradient(135deg, var(--primary), #162847);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.content-cta .cta-right::before {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(242,101,34,.1);
  top: -30px; right: -30px;
}
.content-cta .cta-right::after {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(32,128,141,.08);
  bottom: -20px; left: -10px;
}
.content-cta h4 { color: var(--dark) !important; font-size: 18px !important; margin-bottom: 8px; font-weight: 800; }
.content-cta p { color: #666; font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.content-cta .btn-primary {
  background: linear-gradient(135deg, #F26522, #FF8A50) !important;
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(242,101,34,.2);
  transition: all .2s;
}
.content-cta .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(242,101,34,.3); }
/* Fallback for old CTA format without .cta-left wrapper */
.content-cta:not(:has(.cta-left)) {
  flex-direction: column;
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #fff, #E8ECF4);
  border: 1.5px solid #e2e5ea;
}
.content-cta:not(:has(.cta-left)) h4 { color: var(--dark) !important; }
.content-cta:not(:has(.cta-left)) p { color: #666; }
@media (max-width: 768px) {
  .content-cta { flex-direction: column !important; }
  .content-cta .cta-right { width: 100% !important; height: 80px; }
}

/* Download gate card */
.download-gate {
  margin: 32px 0;
  border: 1.5px solid #e2e5ea;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
}
.download-gate-header {
  background: linear-gradient(135deg, #E8ECF4, #eef2f7);
  padding: 20px 24px;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  gap: 14px;
}
.download-gate-header .dg-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #F26522, #FF8A50);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; flex-shrink: 0;
}
.download-gate-header h4 { margin: 0 !important; font-size: 15px !important; color: #0A1628 !important; font-weight: 700; }
.download-gate-header p { margin: 2px 0 0 !important; font-size: 12px !important; color: #888 !important; }
.download-gate-body { padding: 20px 24px; }
.download-gate-form { display: flex; gap: 10px; align-items: center; }
.download-gate-form input {
  flex: 1; padding: 10px 14px; border: 1.5px solid #e2e5ea; border-radius: 8px;
  font-size: 13px; outline: none; transition: border .2s;
}
.download-gate-form input:focus { border-color: #F26522; }
.download-gate-form button {
  padding: 10px 20px; background: linear-gradient(135deg, #F26522, #FF8A50);
  color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all .2s;
}
.download-gate-form button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(242,101,34,.25); }
@media (max-width: 480px) {
  .download-gate-form { flex-direction: column; }
  .download-gate-form input { width: 100%; }
  .download-gate-form button { width: 100%; text-align: center; }
  .download-gate-preview > div { grid-template-columns: 1fr !important; }
  .example-compare { grid-template-columns: 1fr !important; }
}
.download-gate-preview {
  margin-bottom: 16px; padding: 16px; background: #E8ECF4; border-radius: 10px;
  border: 1px dashed #d0d5dd; text-align: center; font-size: 12px; color: #888;
}

/* Visual example boxes */
.example-box {
  margin: 24px 0;
  border: 1.5px solid #e8eaed;
  border-radius: 12px;
  overflow: hidden;
}
.example-box-header {
  background: #E8ECF4;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  gap: 6px;
}
.example-box-body { padding: 16px; }
.example-good { border-color: #22C55E; }
.example-good .example-box-header { background: #f0fdf4; color: #16A34A; }
.example-bad { border-color: #EF4444; }
.example-bad .example-box-header { background: #fef2f2; color: #DC2626; }
.example-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 768px) {
  .example-compare { grid-template-columns: 1fr !important; }
}

/* Stats highlight row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* Code blocks */
.post-content pre {
  background: var(--primary);
  color: #E2E8F0;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}
.post-content code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 15px;
}
.post-content pre code { background: none; padding: 0; }

/* Author bio enhanced */
.author-bio {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width 50ms linear;
}

/* Blog card hover enhancements */
.blog-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-card-img {
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

/* Responsive single post */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .toc-mobile { display: block; }
}
@media (min-width: 901px) {
  .toc-mobile { display: none; }
}

/* Mobile TOC */
.toc-mobile {
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.toc-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--body-text);
  cursor: pointer;
}
.toc-mobile-toggle svg { transition: transform .2s ease; }
.toc-mobile.open .toc-mobile-toggle svg { transform: rotate(180deg); }
.toc-mobile-list {
  display: none;
  padding: 0 20px 16px;
}
.toc-mobile.open .toc-mobile-list { display: block; }
.toc-mobile-list ol { list-style: none; padding: 0; margin: 0; counter-reset: toc-m; }
.toc-mobile-list li { counter-increment: toc-m; }
.toc-mobile-list li a {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-light);
}
.toc-mobile-list li:last-child a { border-bottom: none; }
.toc-mobile-list li a::before {
  content: counter(toc-m, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  color: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   MOBILE RESPONSIVE CLASSES (rs-* prefix)
   Added to inline-styled elements to allow CSS media query overrides.
   Inline styles work for desktop; these classes override on mobile.
   ============================================================ */

@media (max-width: 768px) {

  /* --- GRID: Force single column on mobile --- */
  .rs-grid-1col-mobile {
    grid-template-columns: 1fr !important;
  }

  /* --- FLEX: Stack vertically on mobile --- */
  .rs-flex-col-mobile {
    flex-direction: column !important;
  }

  /* --- FLEX: Wrap children on mobile --- */
  .rs-flex-wrap-mobile {
    flex-wrap: wrap !important;
  }

  /* --- GAP: Reduce large gaps on mobile --- */
  .rs-gap-24-mobile {
    gap: 24px !important;
  }
  .rs-gap-16-mobile {
    gap: 16px !important;
  }
  .rs-gap-32-mobile {
    gap: 32px !important;
  }

  /* --- WIDTH: Full width on mobile --- */
  .rs-full-width-mobile {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* --- PADDING: Reduce oversized padding on mobile --- */
  .rs-pad-24-mobile {
    padding: 24px !important;
  }
  .rs-pad-20-mobile {
    padding: 20px 16px !important;
  }
  .rs-pad-section-mobile {
    padding: 48px 0 !important;
  }

  /* --- MIN-HEIGHT: Remove fixed min-heights on mobile --- */
  .rs-minh-auto-mobile {
    min-height: auto !important;
  }

  /* --- FONT SIZE: Clamp large headings/text on mobile --- */
  .rs-text-sm-mobile {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
  .rs-text-md-mobile {
    font-size: 16px !important;
  }

  /* --- ORDER: Reset flex order on mobile --- */
  .rs-order-reset-mobile {
    order: 0 !important;
  }

  /* --- FOOTER: 2-col then 1-col grid --- */
  .rs-footer-grid-mobile {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  /* --- PROCESS STEPS: Stack on mobile --- */
  .rs-step-col-mobile {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* --- STAT BARS: Center-wrap on mobile --- */
  .rs-stats-wrap-mobile {
    flex-wrap: wrap !important;
    gap: 24px !important;
    justify-content: center !important;
  }

  /* --- FIXED-WIDTH CHILDREN: Allow shrinking on mobile --- */
  .rs-flex-shrink-mobile {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  /* --- IMAGE: Responsive max-width --- */
  .rs-img-full-mobile img,
  .rs-img-full-mobile {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* --- TWO-COL CASE STUDY LAYOUT --- */
  .rs-cs-grid-mobile {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* --- DEPARTMENT HEADER FLEX --- */
  .rs-dept-header-mobile {
    flex-wrap: wrap !important;
  }

  /* --- ROLE CARD LAYOUT --- */
  .rs-role-layout-mobile {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* --- HIRING STEP LAYOUT --- */
  .rs-hiring-step-mobile {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* --- ABOUT VISION/MISSION CARDS --- */
  .rs-vm-card-mobile {
    min-height: auto !important;
    padding: 32px 24px !important;
  }

  /* --- VALUES GRID: 2-col then 1-col --- */
  .rs-values-grid-mobile {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* --- ABOUT PROCESS STEPS --- */
  .rs-about-step-mobile {
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* --- ABOUT SERVICES GRID --- */
  .rs-services-2col-mobile {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* --- PROMISE ITEMS GRID --- */
  .rs-promise-grid-mobile {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* --- ABOUT SUB PROCESS STEPS with row-reverse --- */
  .rs-process-step-mobile {
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* --- CERT CARDS --- */
  .rs-cert-card-mobile {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* --- EBOOK SECTION --- */
  .rs-ebook-grid-mobile {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* --- COMMITMENT STRIP 3-COL --- */
  .rs-commitment-grid-mobile {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .rs-commitment-grid-mobile > div {
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px !important;
  }
  .rs-commitment-grid-mobile > div:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
  }

  /* --- CONTACT INFO FLEX ROWS --- */
  .rs-contact-row-mobile {
    flex-wrap: wrap !important;
  }

  /* --- CONTACT FORM GRID --- */
  .rs-form-grid-mobile {
    grid-template-columns: 1fr !important;
  }

  /* --- FREE AUDIT HERO GRID --- */
  .rs-audit-grid-mobile {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* --- STATS FLEX ROW --- */
  .rs-social-proof-mobile {
    flex-wrap: wrap !important;
    gap: 24px !important;
    justify-content: center !important;
  }

  /* --- THANK YOU STEPS --- */
  .rs-ty-step-mobile {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
  }

  /* --- LARGE STAT NUMBERS on mobile --- */
  .rs-stat-smaller-mobile {
    font-size: 28px !important;
  }

  /* --- INDUSTRY WHY POINTS GRID --- */
  .rs-why-grid-mobile {
    grid-template-columns: 1fr !important;
  }

  /* --- LOCATION MARKET FACTS --- */
  .rs-market-facts-mobile {
    flex-wrap: wrap !important;
    gap: 24px !important;
    justify-content: center !important;
  }
}

/* --- PRINT --- */
@media print {
  .announcement-bar, .site-header, .site-footer, .post-sidebar, .reading-progress { display: none; }
  body { color: #000; background: #fff; }
  .post-layout { grid-template-columns: 1fr; }
}
