/* ============================================================
   ROBOTIC PROCESS AUTOMATION (RPA) DETTO MATCH STYLESHEET
   ============================================================ */

/* High-Priority Scoping Shield Engine */
body.rpa-page-body,
html[data-theme="light"] body.rpa-page-body,
html[data-theme="dark"] body.rpa-page-body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ============================================================
   BANNER HERO STYLING & HIGH-TECH SPECIAL EFFECTS
   ============================================================ */
.rpa-hero,
html .rpa-hero,
body .rpa-hero,
html[data-theme] .rpa-hero,
body.light-theme .rpa-hero,
body.dark-theme .rpa-hero {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 540px !important;
  max-height: 680px !important;
  overflow: hidden !important;
  background: #091224 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.rpa-hero img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  filter: brightness(1.05) contrast(1.08) !important;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
}

/* 1. Special Effect: Ambient Radial Tech Glow Overlay */
.rpa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(0, 210, 255, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 20% 70%, rgba(223, 42, 25, 0.18) 0%, transparent 50%);
  z-index: 2;
  pointer-events: none;
}

/* 2. Special Effect: Animated Light Beam Sweep Across Banner */
.rpa-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  z-index: 3;
  animation: rpaBeamSweep 7s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

@keyframes rpaBeamSweep {
  0% {
    left: -120%;
  }
  40%, 100% {
    left: 180%;
  }
}

/* 3. Special Effect: Animated Moving Tech Dot-Matrix Pattern Overlay */
.rpa-hero-dots-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.35;
  animation: rpaDotsMotion 25s linear infinite;
  mask-image: radial-gradient(circle at 60% 50%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.3) 80%);
  -webkit-mask-image: radial-gradient(circle at 60% 50%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.3) 80%);
}

@keyframes rpaDotsMotion {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 56px 56px;
  }
}

.rpa-hero-overlay,
html .rpa-hero-overlay,
body .rpa-hero-overlay,
html[data-theme] .rpa-hero-overlay {
  position: relative !important;
  z-index: 4 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(9, 18, 36, 0.88) 100%) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 40px 6% 40px 6% !important;
  box-sizing: border-box !important;
}

/* High-Tech Hero Content Overlay Styling (Left-Aligned & Bulletproof Scoped) */
.rpa-hero-container,
html .rpa-hero-container,
body .rpa-hero-container {
  max-width: 820px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
  text-align: left !important;
}

.rpa-hero-badge,
html[data-theme="light"] .rpa-hero-badge,
html[data-theme="dark"] .rpa-hero-badge,
body.light-theme .rpa-hero-badge,
body.dark-theme .rpa-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(223, 42, 25, 0.3) !important;
  border: 1px solid rgba(223, 42, 25, 0.6) !important;
  border-radius: 30px;
  color: #ff9d91 !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(223, 42, 25, 0.2);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.rpa-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #df2a19;
  border-radius: 50%;
  box-shadow: 0 0 10px #df2a19;
  animation: rpaPulse 1.8s infinite;
}

@keyframes rpaPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(223, 42, 25, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(223, 42, 25, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(223, 42, 25, 0); }
}

.rpa-hero-title,
html[data-theme="light"] .rpa-hero-title,
html[data-theme="dark"] .rpa-hero-title,
body.light-theme .rpa-hero-title,
body.dark-theme .rpa-hero-title {
  color: #ffffff !important;
  font-size: clamp(32px, 4.2vw, 50px) !important;
  font-weight: 800 !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7) !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.5px !important;
  text-align: left !important;
}

.rpa-highlight,
html[data-theme="light"] .rpa-highlight,
html[data-theme="dark"] .rpa-highlight,
body.light-theme .rpa-highlight,
body.dark-theme .rpa-highlight {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
}

.rpa-hero-desc,
html[data-theme="light"] .rpa-hero-desc,
html[data-theme="dark"] .rpa-hero-desc,
body.light-theme .rpa-hero-desc,
body.dark-theme .rpa-hero-desc {
  color: #ffffff !important;
  font-size: clamp(14px, 1.6vw, 16.5px) !important;
  line-height: 1.55 !important;
  max-width: 780px !important;
  margin: 0 !important;
  text-align: left !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.8) !important;
  font-weight: 500 !important;
}

/* Metric Chips Row (Left-Aligned) */
.rpa-metrics-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.rpa-chip,
html[data-theme="light"] .rpa-chip,
html[data-theme="dark"] .rpa-chip,
body.light-theme .rpa-chip,
body.dark-theme .rpa-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: rgba(9, 18, 36, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 13px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.rpa-chip:hover {
  border-color: rgba(223, 42, 25, 0.8) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 42, 25, 0.35);
}

.rpa-chip span,
html[data-theme="light"] .rpa-chip span,
html[data-theme="dark"] .rpa-chip span,
body.light-theme .rpa-chip span,
body.dark-theme .rpa-chip span {
  color: #ffffff !important;
}

.rpa-chip strong,
html[data-theme="light"] .rpa-chip strong,
html[data-theme="dark"] .rpa-chip strong,
body.light-theme .rpa-chip strong,
body.dark-theme .rpa-chip strong {
  color: #38bdf8 !important;
  font-size: 14.5px;
  font-weight: 800;
}

.rpa-chip i.text-red { color: #ff5252 !important; }
.rpa-chip i.text-cyan { color: #38bdf8 !important; }
.rpa-chip i.text-green { color: #34d399 !important; }
.rpa-chip i.text-orange { color: #fbbf24 !important; }

/* Hero Actions (Left-Aligned) */
.rpa-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 6px;
}

.rpa-btn-primary,
html[data-theme="light"] .rpa-btn-primary,
html[data-theme="dark"] .rpa-btn-primary,
body.light-theme .rpa-btn-primary,
body.dark-theme .rpa-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #df2a19 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(223, 42, 25, 0.35);
  transition: all 0.3s ease;
}

.rpa-btn-primary:hover {
  background: linear-gradient(135deg, #f83b27 0%, #dc2626 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(223, 42, 25, 0.45);
}

.rpa-btn-glass,
html[data-theme="light"] .rpa-btn-glass,
html[data-theme="dark"] .rpa-btn-glass,
body.light-theme .rpa-btn-glass,
body.dark-theme .rpa-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 8px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.rpa-btn-glass:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
}

/* Main Grid Layout matching live screenshot */
.erp-main-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px 10px 24px;
}

/* Full Bleed Offer Section */
.offer-section {
  width: 100%;
  background: #f8fafc;
  padding: 24px 0 40px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

html.dark .offer-section {
  background: #0b1329 !important;
  border-color: #1e293b !important;
}

.offer-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 20px;
  padding: 0 24px;
}

/* Left Sidebar - Key Features Card */
.key-features-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

html.dark .key-features-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

.key-features-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 20px 0;
}

html.dark .key-features-title {
  color: #ffffff !important;
}

.key-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.key-features-list li {
  font-size: 13.5px;
  color: #475569;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

html.dark .key-features-list li {
  color: #cbd5e1 !important;
}

.key-features-list li i.text-red {
  color: #df2a19 !important;
  font-size: 12px;
  flex-shrink: 0;
}

.sidebar-img-box {
  margin-top: 24px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.sidebar-img-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Right Content Body */
.erp-content-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.erp-lead-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: #475569;
  margin: 0;
}

html.dark .erp-lead-text {
  color: #cbd5e1 !important;
}

/* Split Block (Image Left + Points Right) */
.rpa-split-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  margin: 10px 0;
}

.rpa-split-img {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.rpa-split-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 14px;
}

.rpa-split-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rpa-point-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rpa-point-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

html.dark .rpa-point-title {
  color: #ffffff !important;
}

.rpa-point-title i.text-red {
  color: #df2a19 !important;
  font-size: 16px;
}

.rpa-point-item p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

html.dark .rpa-point-item p {
  color: #94a3b8 !important;
}

.rpa-body-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: #475569;
  margin: 0;
}

html.dark .rpa-body-text {
  color: #cbd5e1 !important;
}

.rpa-sub-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rpa-sub-section h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

html.dark .rpa-sub-section h3 {
  color: #ffffff !important;
}

.rpa-sub-section p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

html.dark .rpa-sub-section p {
  color: #94a3b8 !important;
}

/* Full Bleed Offer Section */
.offer-section {
  width: 100%;
  background: #f8fafc;
  padding: 20px 0 36px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

html.dark .offer-section {
  background: #0b1329 !important;
  border-color: #1e293b !important;
}

.offer-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 18px;
  padding: 0 24px;
}

.offer-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px 0;
}

html.dark .offer-header h2 {
  color: #ffffff !important;
}

.offer-header p {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

html.dark .offer-header p {
  color: #94a3b8 !important;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.offer-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  z-index: 1;
}

html.dark .offer-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* Subtle Staggered Transition Delay */
.offer-card:nth-child(1) { transition-delay: 0s; }
.offer-card:nth-child(2) { transition-delay: 0.03s; }
.offer-card:nth-child(3) { transition-delay: 0.06s; }
.offer-card:nth-child(4) { transition-delay: 0.09s; }

/* Subtle Animated Top Border Accent Sweep */
.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, #df2a19 0%, #00d2ff 100%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.offer-card:hover::before {
  width: 100%;
}

.offer-card:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(223, 42, 25, 0.4);
  box-shadow: 0 16px 36px rgba(223, 42, 25, 0.16), 0 4px 14px rgba(15, 23, 42, 0.08);
}

html.dark .offer-card:hover {
  border-color: rgba(223, 42, 25, 0.6) !important;
  box-shadow: 0 16px 36px rgba(223, 42, 25, 0.25), 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

/* Icon Box Micro-Interactions */
.offer-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(223, 42, 25, 0.08);
  color: #df2a19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .offer-icon-box {
  background: rgba(223, 42, 25, 0.15);
  color: #ff5252;
}

.offer-card:hover .offer-icon-box {
  background: linear-gradient(135deg, #df2a19 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 6px 18px rgba(223, 42, 25, 0.38);
}

.offer-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  transition: color 0.3s ease;
}

.offer-card:hover h3 {
  color: #df2a19;
}

html.dark .offer-card h3 {
  color: #ffffff !important;
}

html.dark .offer-card:hover h3 {
  color: #ff6b5b !important;
}

.offer-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

html.dark .offer-card p {
  color: #94a3b8 !important;
}

/* Ultra-Responsive Media Queries (Auto-Fit for All Screen Sizes) */
@media (max-width: 1024px) {
  .rpa-hero {
    aspect-ratio: auto !important;
    min-height: 520px !important;
    height: auto !important;
    padding: 20px 0 !important;
  }

  .rpa-hero-overlay {
    height: auto !important;
    min-height: 100% !important;
    padding: 40px 24px 30px 24px !important;
    align-items: flex-end !important;
  }

  .rpa-hero-container {
    max-width: 100% !important;
    align-items: flex-start !important;
  }

  .erp-main-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .rpa-split-block {
    grid-template-columns: 1fr !important;
  }

  .offer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .rpa-hero {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .rpa-hero-overlay {
    height: auto !important;
    padding: 95px 18px 36px 18px !important;
    justify-content: center !important;
  }

  .rpa-hero-container {
    gap: 12px !important;
    width: 100% !important;
  }

  .rpa-hero-badge {
    font-size: 10.5px !important;
    padding: 4px 12px !important;
    margin-top: 5px !important;
  }

  .rpa-hero-title {
    font-size: clamp(22px, 5.5vw, 30px) !important;
    line-height: 1.2 !important;
  }

  .rpa-hero-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .rpa-metrics-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .rpa-chip {
    font-size: 11px !important;
    padding: 6px 8px !important;
    justify-content: center !important;
  }

  .rpa-chip strong {
    font-size: 12px !important;
  }

  .rpa-hero-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 4px !important;
  }

  .rpa-btn-primary,
  .rpa-btn-glass {
    width: 100% !important;
    justify-content: center !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
  }

  .offer-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .rpa-hero-overlay {
    padding: 90px 14px 28px 14px !important;
  }

  .rpa-hero-badge {
    font-size: 9.5px !important;
    padding: 3px 10px !important;
  }

  .rpa-hero-title {
    font-size: 21px !important;
  }

  .rpa-hero-desc {
    font-size: 12.5px !important;
  }

  .rpa-metrics-row {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   UNIFIED LIGHT / DARK / SYSTEM THEME ENGINE
   ============================================================ */

/* 1. Global Page Background & Base Text */
html.light body,
html[data-theme="light"] body,
body.light-theme {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html.dark body,
html[data-theme="dark"] body,
body.dark-theme {
  background-color: #091224 !important;
  color: #f8fafc !important;
}

/* 2. Headings & Paragraph Text Colors */
html.light h1:not(.rpa-hero-title), html.light h2, html.light h3, html.light h4, html.light h5:not(.roi-text h5), html.light h6,
html[data-theme="light"] h1:not(.rpa-hero-title), html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] h4, html[data-theme="light"] h5:not(.roi-text h5), html[data-theme="light"] h6,
body.light-theme h1:not(.rpa-hero-title), body.light-theme h2, body.light-theme h3, body.light-theme h4, body.light-theme h5:not(.roi-text h5), body.light-theme h6 {
  color: #0f172a !important;
}

html.dark h1:not(.rpa-hero-title), html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6,
html[data-theme="dark"] h1:not(.rpa-hero-title), html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6,
body.dark-theme h1:not(.rpa-hero-title), body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5, body.dark-theme h6 {
  color: #ffffff !important;
}

html.light p:not(.rpa-hero-desc):not(.roi-text p), html.light li:not(.rpa-chip span),
html[data-theme="light"] p:not(.rpa-hero-desc):not(.roi-text p), html[data-theme="light"] li:not(.rpa-chip span),
body.light-theme p:not(.rpa-hero-desc):not(.roi-text p), body.light-theme li:not(.rpa-chip span) {
  color: #475569 !important;
}

html.dark p:not(.rpa-hero-desc):not(.roi-text p), html.dark li:not(.rpa-chip span),
html[data-theme="dark"] p:not(.rpa-hero-desc):not(.roi-text p), html[data-theme="dark"] li:not(.rpa-chip span),
body.dark-theme p:not(.rpa-hero-desc):not(.roi-text p), body.dark-theme li:not(.rpa-chip span) {
  color: #cbd5e1 !important;
}

/* 3. Cards & Container Backgrounds */
html.light .key-features-card,
html.light .offer-card,
html[data-theme="light"] .key-features-card,
html[data-theme="light"] .offer-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html.dark .key-features-card,
html.dark .offer-card,
html[data-theme="dark"] .key-features-card,
html[data-theme="dark"] .offer-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.rpa-hero-desc,
html.light .rpa-hero-desc,
html[data-theme="light"] .rpa-hero-desc,
body.light-theme .rpa-hero-desc {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

/* ============================================================
   CREATIVE 4-STEP AUTONOMOUS RPA BOT PIPELINE & ROI IMPACT MATRIX
   ============================================================ */
.rpa-pipeline-section {
  padding: 40px 0 50px 0;
  position: relative;
  background: transparent;
}

.rpa-pipeline-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rpa-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(223, 42, 25, 0.12);
  border: 1px solid rgba(223, 42, 25, 0.35);
  border-radius: 30px;
  color: #df2a19;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

html.dark .rpa-section-badge {
  background: rgba(255, 82, 82, 0.15);
  color: #ff6b6b;
  border-color: rgba(255, 82, 82, 0.4);
}

.rpa-pipeline-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

.rpa-pipeline-header p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* Cyber Stepper Flow Container (No Cards) */
.rpa-stepper-flow {
  position: relative;
  margin-bottom: 60px;
}

.rpa-flow-line {
  position: absolute;
  top: 45px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, #00b4d8 0%, #9333ea 33%, #059669 66%, #df2a19 100%);
  border-radius: 3px;
  z-index: 1;
}

.rpa-flow-pulse {
  width: 20px;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 15px #00f0ff, 0 0 25px #00f0ff;
  border-radius: 50%;
  animation: flowPulseMotion 4s linear infinite;
}

@keyframes flowPulseMotion {
  0% { transform: translateX(0); }
  100% { transform: translateX(850px); }
}

@media (max-width: 992px) {
  .rpa-flow-line {
    display: none;
  }
}

.rpa-stepper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .rpa-stepper-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 576px) {
  .rpa-stepper-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Individual Step Node (No Card Box, Borderless Floating Design) */
.rpa-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.35s ease;
}

.rpa-step-node:hover {
  transform: translateY(-6px);
}

.rpa-ring-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.rpa-glowing-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(100, 116, 139, 0.3);
  animation: ringRotate 20s linear infinite;
  transition: all 0.3s ease;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.rpa-step-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}

html.dark .rpa-step-icon {
  background: #0f172a !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Color Varieties */
.node-cyan .rpa-step-icon { color: #00b4d8; border: 2px solid #00b4d8; box-shadow: 0 0 20px rgba(0, 180, 216, 0.25); }
.node-purple .rpa-step-icon { color: #9333ea; border: 2px solid #9333ea; box-shadow: 0 0 20px rgba(147, 51, 234, 0.25); }
.node-emerald .rpa-step-icon { color: #059669; border: 2px solid #059669; box-shadow: 0 0 20px rgba(5, 150, 105, 0.25); }
.node-coral .rpa-step-icon { color: #df2a19; border: 2px solid #df2a19; box-shadow: 0 0 20px rgba(223, 42, 25, 0.25); }

html.dark .node-cyan .rpa-step-icon { color: #00f0ff; border-color: #00f0ff; }
html.dark .node-purple .rpa-step-icon { color: #c084fc; border-color: #c084fc; }
html.dark .node-emerald .rpa-step-icon { color: #34d399; border-color: #34d399; }
html.dark .node-coral .rpa-step-icon { color: #ff6b6b; border-color: #ff6b6b; }

.rpa-step-node:hover .rpa-glowing-ring {
  inset: -6px;
  border-style: solid;
}

.node-cyan:hover .rpa-glowing-ring { border-color: #00b4d8; box-shadow: 0 0 25px rgba(0, 180, 216, 0.4); }
.node-purple:hover .rpa-glowing-ring { border-color: #9333ea; box-shadow: 0 0 25px rgba(147, 51, 234, 0.4); }
.node-emerald:hover .rpa-glowing-ring { border-color: #059669; box-shadow: 0 0 25px rgba(5, 150, 105, 0.4); }
.node-coral:hover .rpa-glowing-ring { border-color: #df2a19; box-shadow: 0 0 25px rgba(223, 42, 25, 0.4); }

.rpa-step-badge,
html.light .rpa-step-badge,
html[data-theme="light"] .rpa-step-badge,
body.light-theme .rpa-step-badge,
html.dark .rpa-step-badge,
html[data-theme="dark"] .rpa-step-badge,
body.dark-theme .rpa-step-badge {
  position: absolute;
  bottom: -10px;
  padding: 3px 12px;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 12px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
  text-shadow: none !important;
}

.rpa-node-details h4 {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.rpa-node-details p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  color: #64748b;
}

html.dark .rpa-node-details p {
  color: #94a3b8 !important;
}

/* Bottom RPA ROI Impact Banner */
.rpa-roi-banner {
  background: linear-gradient(135deg, rgba(9, 18, 36, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .rpa-roi-banner {
    flex-direction: column;
    gap: 24px;
    padding: 30px 24px;
  }
  .roi-divider {
    display: none;
  }
}

.rpa-roi-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.roi-val-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 800;
}

.roi-val-box,
.roi-val-box *,
.roi-val-box span,
html.light .roi-val-box span,
html[data-theme="light"] .roi-val-box span,
body.light-theme .roi-val-box span {
  color: inherit !important;
}

.roi-val-box.text-red,
.roi-val-box.text-red span,
.roi-val-box.text-red i,
html.light .roi-val-box.text-red span,
html[data-theme="light"] .roi-val-box.text-red span,
body.light-theme .roi-val-box.text-red span {
  color: #ff5252 !important;
  text-shadow: 0 0 12px rgba(255, 82, 82, 0.4) !important;
}

.roi-val-box.text-cyan,
.roi-val-box.text-cyan span,
.roi-val-box.text-cyan i,
html.light .roi-val-box.text-cyan span,
html[data-theme="light"] .roi-val-box.text-cyan span,
body.light-theme .roi-val-box.text-cyan span {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
}

.roi-val-box.text-green,
.roi-val-box.text-green span,
.roi-val-box.text-green i,
html.light .roi-val-box.text-green span,
html[data-theme="light"] .roi-val-box.text-green span,
body.light-theme .roi-val-box.text-green span {
  color: #34d399 !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.4) !important;
}

.roi-text h5,
html.light .roi-text h5,
html[data-theme="light"] .roi-text h5,
body.light-theme .roi-text h5,
html.dark .roi-text h5,
html[data-theme="dark"] .roi-text h5,
body.dark-theme .roi-text h5 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 4px 0;
}

.roi-text p,
html.light .roi-text p,
html[data-theme="light"] .roi-text p,
body.light-theme .roi-text p,
html.dark .roi-text p,
html[data-theme="dark"] .roi-text p,
body.dark-theme .roi-text p {
  font-size: 13px;
  color: #cbd5e1 !important;
  margin: 0;
}

/* ============================================================
   FLOATING WHATSAPP & SCROLL-TO-TOP BUTTONS (UNIFIED)
   ============================================================ */
.floating-whatsapp {
  position: fixed !important;
  bottom: 85px !important;
  right: 24px !important;
  width: 50px !important;
  height: 50px !important;
  background: #25d366 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
  z-index: 9998 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  text-decoration: none !important;
}

.floating-whatsapp:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.65) !important;
  color: #ffffff !important;
}

.scroll-to-top {
  position: fixed !important;
  bottom: 148px !important;
  right: 25px !important;
  width: 46px !important;
  height: 46px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  cursor: pointer !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease !important;
  z-index: 9997 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.scroll-to-top.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.scroll-to-top:hover {
  background: #df2a19 !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 8px 24px rgba(223, 42, 25, 0.5) !important;
}

.roi-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}
