/* Services page layout balancing overrides */
@media (min-width: 992px) {
  .section-magensa .magensa-flow-visual {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr) 92px minmax(
        0,
        1fr
      );
    align-items: stretch !important;
    column-gap: 20px;
  }

  .section-magensa .magensa-flow-visual .flow-step {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 420px;
    align-self: stretch !important;
  }

  .section-magensa .magensa-flow-visual .flow-step-features {
    margin-top: auto !important;
  }

  .section-magensa .magensa-flow-visual .flow-arrow {
    align-self: center !important;
    margin-left: 10px;
  }

  #gateway .service-navigation-wrapper .row {
    display: flex;
    flex-wrap: wrap;
  }

  #gateway .service-navigation-wrapper .row > [class*="col-"] {
    display: flex;
    margin-bottom: 20px;
  }

  #gateway .service-navigation-wrapper .service-navigation-card {
    display: flex;
    width: 100%;
    height: 100%;
  }

  #gateway .service-navigation-wrapper .service-navigation-card-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  #gateway .service-navigation-wrapper .service-navigation-card-desc {
    margin-top: auto;
  }
}

#developer-apps .platform-benefits-grid {
  margin-bottom: 40px;
}

/* Comprehensive dynaconnect rules used by Subscriptions page and its shared partials. */

:root {
  --primary: #ffffff;
  --secondary: #f7f9fb;
  --magtek-red: #d21242;
  --magtek-red-dark: #b01035;
  --magtek-blue: #263c50;
  --magtek-blue-dark: #1e293b;
  --magensa-purple: #63619a;
  --magensa-purple-dark: #524f7e;
  --text-primary: #263c50;
  --text-secondary: #1e293b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #d21242 0%, #b01035 100%);
  --gradient-secondary: linear-gradient(135deg, #263c50 0%, #1e293b 100%);
}

* {
  margin: 0; /* Remove default margins */
  padding: 0; /* Remove default padding */
  box-sizing: border-box; /* Include padding/border in element width */
}

html {
  scroll-behavior: smooth; /* Smooth scrolling for all anchor links */
}

body {
  color: var(--text-primary); /* Default text color */
  overflow-x: hidden; /* Prevent horizontal scroll */
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* System font stack */
  line-height: 1.6; /* Better default line height for readability */
  -webkit-font-smoothing: antialiased; /* Better font rendering on MacOS */
  -moz-osx-font-smoothing: grayscale; /* Better font rendering on Firefox */
}

.reading-progress {
  position: fixed; /* Stay at top during scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 4px; /* Thin bar */
  background: #e2e8f0; /* Light gray background */
  z-index: 1000; /* Above all content */
  will-change: transform; /* Optimize for animation */
  transform: translateZ(0); /* Force GPU acceleration */
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--magtek-red) 0%,
    var(--magtek-red-dark) 100%
  ); /* MagTek red gradient */
  width: 0%; /* Starts empty, filled by JavaScript */
  will-change: width; /* Optimize for width animation */
  transform: translateZ(0); /* Force GPU acceleration */
  transition: width 0.1s ease-out; /* Smooth progress updates */
}

.services-nav-bar {
  position: relative; /* Initially relative */
  left: 0;
  right: 0;
  background: white;
  z-index: 900; /* Below progress bar, above content */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06); /* Subtle bottom border */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow; /* Optimize transforms */
}

.services-nav-bar.is-sticky {
  position: fixed; /* Becomes fixed at top */
  top: 0;
  left: 0;
  right: 0;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.95); /* Slight transparency */
  backdrop-filter: blur(12px); /* Blur content behind */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  animation: servicesNavSlideDown 0.3s ease; /* Smooth entrance */
}

@keyframes servicesNavSlideDown {
  from {
    transform: translateY(-10px); /* Start slightly above */
    opacity: 0.9;
  }
  to {
    transform: translateY(0); /* End at normal position */
    opacity: 1;
  }
}

.services-nav-placeholder {
  display: none; /* Hidden by default */
  height: 0;
  transition: height 0.3s ease;
}

.services-nav-placeholder.active {
  display: block; /* Shown when nav is sticky */
}

.services-nav-container {
  max-width: 1400px; /* Max width for large screens */
  margin: 0 auto; /* Center align */
  padding: 1.2rem 1.5rem; /* Reduced padding */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo left, links center, CTA right */
  gap: 2rem; /* Reduced gap */
  position: relative;
  z-index: 2;
}

.services-nav-bar.is-sticky .services-nav-container {
  padding: 1rem 1.5rem; /* More compact when sticky */
}

.services-nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  height: auto;
  min-height: 45px; /* Reduced min-height */
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}

.services-nav-brand-content {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.services-nav-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 60, 80, 0.08);
  color: #263c50;
  font-size: 1.8rem;
}

.services-nav-brand-label {
  font-size: 2rem;
  font-weight: 700;
  color: #263c50;
  letter-spacing: 0.01em;
}

.services-nav-brand img {
  height: 50px; /* Reduced logo height */
  width: auto; /* Maintain aspect ratio */
  display: block;
  transition: transform 0.2s ease;
}

.services-nav-brand:hover img {
  transform: scale(1.05); /* Subtle zoom on hover */
}

.services-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem; /* Reduced gap between links */
  flex: 1; /* Take available space */
  justify-content: center; /* Center links */
  flex-wrap: nowrap; /* Prevent wrapping to keep on one line */
}

.services-nav-link {
  padding: 0.5rem 1rem; /* Reduced padding */
  border-radius: 20px; /* Slightly smaller border radius */
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.3rem; /* Reduced font size */
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
  white-space: nowrap;
  border: 2px solid transparent; /* Reserve space for border */
  position: relative;
}

.services-nav-link:hover {
  background: var(--magtek-nav-hover-bg, rgba(99, 97, 154, 0.12));
  color: var(--magtek-nav-hover-text, #4c4a7d);
  text-decoration: none;
  border-color: var(--magtek-nav-hover-border, rgba(99, 97, 154, 0.32));
  box-shadow:
    0 4px 16px var(--magtek-nav-hover-bg, rgba(99, 97, 154, 0.15)),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  transform: translateZ(0);
}

.services-nav-link.active {
  background: var(--magtek-nav-active-bg, rgba(99, 97, 154, 0.18));
  color: var(--magtek-nav-active-text, #312d57);
  font-weight: 600;
  box-shadow: 0 6px 20px var(--magtek-nav-active-bg, rgba(76, 74, 125, 0.22));
  border-color: var(--magtek-nav-active-border, rgba(76, 74, 125, 0.36));
  transform: translateY(-2px);
}

.services-nav-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid rgba(38, 60, 80, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1001;
  transition: all 0.3s ease;
}

.services-nav-toggle:hover {
  border-color: rgba(38, 60, 80, 0.4);
  background: rgba(38, 60, 80, 0.05);
}

.services-nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 3px 0;
}

.services-nav-toggle.active .services-nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.services-nav-toggle.active .services-nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.services-nav-toggle.active .services-nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.services-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.services-nav-overlay.active {
  display: block;
  opacity: 1;
}

.services-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.services-nav-panel.active {
  right: 0;
}

@media (min-width: 1024px) {
  .services-nav-panel,
  .services-nav-overlay,
  .services-nav-toggle {
    display: none !important;
  }
}

.services-nav-panel-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.services-nav-panel-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.services-nav-panel-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(38, 60, 80, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.6rem;
  transition: all 0.2s ease;
  padding: 0;
}

.services-nav-panel-close:hover {
  background: rgba(38, 60, 80, 0.2);
  transform: rotate(90deg);
}

.services-nav-panel-content {
  flex: 1;
  padding: 1rem 0;
}

.services-nav-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-nav-panel-item {
  margin: 0;
  padding: 0;
}

.services-nav-panel-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.services-nav-panel-link:hover {
  background: var(--magtek-nav-hover-bg, rgba(99, 97, 154, 0.08));
  border-left-color: var(--magtek-nav-hover-border, rgba(99, 97, 154, 0.3));
  color: var(--magtek-nav-hover-text, #312d57);
  text-decoration: none;
}

.services-nav-panel-link.active {
  background: var(--magtek-nav-active-bg, rgba(99, 97, 154, 0.12));
  border-left-color: var(--magtek-nav-active-border, rgba(99, 97, 154, 0.5));
  color: var(--magtek-nav-active-text, #312d57);
  font-weight: 600;
}

.services-nav-panel-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--magtek-nav-hover-bg, rgba(99, 97, 154, 0.1));
  border-radius: 10px;
  color: var(--magtek-nav-hover-text, #4c4a7d);
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.services-nav-panel-link.active .services-nav-panel-icon {
  background: var(--magtek-nav-active-bg, rgba(99, 97, 154, 0.2));
  transform: scale(1.1);
}

.services-nav-panel-text {
  flex: 1;
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .services-nav-container {
    gap: 1.5rem;
    padding: 1rem 1.5rem;
  }

  .services-nav-link {
    font-size: 1.2rem;
    padding: 0.45rem 0.9rem;
  }

  .services-nav-bar.is-sticky .services-nav-container {
    padding: 0.9rem 1.5rem;
  }

  .services-nav-brand img {
    height: 45px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .services-nav-container {
    gap: 1rem;
    padding: 1.2rem 1.5rem;
  }

  .services-nav-brand {
    order: 1;
    min-height: 45px;
  }

  .services-nav-brand img {
    height: 45px;
  }

  .services-nav-bar .btn-primary {
    order: 2;
    margin-left: auto;
  }

  .services-nav-toggle {
    order: 3;
    display: flex;
  }

  .services-nav-links {
    display: none; /* Hide links on tablet, use mobile menu */
  }

  .services-nav-bar.is-sticky .services-nav-container {
    padding: 1rem 1.5rem;
  }

  .services-nav-panel {
    width: 350px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .services-nav-container {
    gap: 0.8rem;
    padding: 1rem 1.2rem;
  }

  .services-nav-brand {
    order: 1;
    min-height: 40px;
  }

  .services-nav-brand img {
    height: 40px;
  }

  .services-nav-bar .btn-primary {
    display: none; /* Hide CTA on mobile, show in panel */
  }

  .services-nav-toggle {
    order: 2;
    display: flex;
    width: 40px;
    height: 40px;
  }

  .services-nav-toggle-line {
    width: 20px;
    margin: 2.5px 0;
  }

  .services-nav-links {
    display: none; /* Hide links on mobile, use mobile menu */
  }

  .services-nav-bar.is-sticky .services-nav-container {
    padding: 0.8rem 1.2rem;
  }

  .services-nav-panel {
    width: 300px;
  }
}

@media (max-width: 479px) {
  .services-nav-container {
    gap: 0.6rem;
    padding: 0.8rem 1rem;
  }

  .services-nav-brand {
    order: 1;
    min-height: 35px;
  }

  .services-nav-brand img {
    height: 35px;
  }

  .services-nav-bar .btn-primary {
    display: none; /* Hide CTA on mobile, show in panel */
  }

  .services-nav-toggle {
    order: 2;
    display: flex;
    width: 36px;
    height: 36px;
  }

  .services-nav-toggle-line {
    width: 18px;
    height: 2px;
    margin: 2px 0;
  }

  .services-nav-links {
    display: none; /* Hide links on mobile, use mobile menu */
  }

  .services-nav-bar.is-sticky .services-nav-container {
    padding: 0.6rem 1rem;
  }

  .services-nav-panel {
    width: 280px;
    max-width: 90vw;
  }

  .services-nav-panel-header {
    padding: 1.5rem 1.2rem;
  }

  .services-nav-panel-title {
    font-size: 1.6rem;
  }

  .services-nav-panel-link {
    padding: 1.2rem 1.2rem;
    font-size: 1.4rem;
  }

  .services-nav-panel-icon {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section-bg-white {
  background: white;
  padding: 7rem 0; /* Optimized spacing for better visual flow */
  position: relative;
}

.section-bg-alt {
  background: linear-gradient(180deg, #fafbfc 0%, #f8f9fa 100%);
  padding: 7rem 0; /* Optimized spacing for better visual flow */
  position: relative;
}

.section-bg-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px; /* Reduced for subtler effect */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6) 0%,
    /* More subtle */ transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 20%,
    rgba(0, 0, 0, 0.08) 80%,
    transparent 100%
  );
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta-section {
  padding: 8rem 0 !important; /* Optimized for final section impact without excessive space */
}

section {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem; /* Consistent spacing for all section headers */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  position: relative;
}

.section-header + * {
  margin-top: 0;
}

.checkmark-list {
  margin-top: 2rem;
}

.section-header h2 {
  position: relative;
  padding-bottom: 3rem; /* Increased from 2.5rem */
  margin-bottom: 2.5rem; /* Increased from 2rem */
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Center align */
  width: 80px; /* Slightly wider */
  height: 4px; /* Slightly thicker */
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0.8; /* Slightly transparent for subtlety */
}

.section-title {
  font-size: clamp(3.2rem, 5vw, 4rem); /* Increased scale for hierarchy */
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2rem; /* Increased from 1.5rem */
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gateway-result.aos-init.aos-animate {
  margin-bottom: 20px;
}

.auth-explanation {
  margin-bottom: 20px;
}

.section-title.magensa-brand {
  background: linear-gradient(
    135deg,
    var(--magtek-red) 0%,
    var(--magensa-purple) 50%,
    var(--magtek-blue) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(1.8rem, 3vw, 2.1rem); /* Increased for readability */
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 auto;
  font-weight: 400;
  text-align: center;
  max-width: 800px;
}

.section-cta-buttons {
  margin-top: 4rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 2rem;
}

.section-cta-buttons {
  padding: 2rem 0;
}

.magtek-product-card + .quote-card {
  margin-top: 4rem;
}

.quote-card + .section-cta-buttons {
  margin-top: 4rem;
}

.magtek-product-card + .section-cta-buttons {
  margin-top: 4rem;
}

.service-routing-control + .section-cta-buttons {
  margin-top: 2rem;
}

.magtek-product-card {
  margin-bottom: 0; /* Spacing handled by adjacent selectors */
}

.before-after-comparison {
  max-width: 100%;
  margin: 3rem 0 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  position: relative;
  border: none;
}

.before-after-comparison h3 {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.before-after-comparison h3 + p {
  text-align: center;
  font-size: 1.7rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: stretch;
  padding: 3rem;
}

.before-box,
.after-box {
  background: white;
  border-radius: 16px;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.before-box {
  border: 1px solid #e5e7eb;
  background: white;
}

.before-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(100, 116, 139, 0.12);
  border-color: #64748b;
}

.after-box {
  border: 1px solid #e5e7eb;
  background: white;
}

.after-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(210, 18, 66, 0.12);
  border-color: var(--magtek-red);
}

.comparison-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Keep tokenization badges anchored even if shared class names are overridden elsewhere */
#tokenization .before-box,
#tokenization .after-box {
  position: relative;
}

#tokenization .comparison-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  left: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 3rem);
}

@media (max-width: 768px) {
  #tokenization .comparison-badge {
    top: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
  }
}

.rms-overview-section {
  padding: 3rem 4rem;
  border-top: 1px solid var(--border);
}

.rms-mode-tabs > li.active > a:focus {
  background-color: rgba(99, 97, 154, 0.18);
  color: #312d57;
  border: none;
}

@media (max-width: 767px) {
  .rms-overview-section {
    margin-top: 30px;
    padding-top: 20px;
  }

  .rms-visualization-container {
    max-width: 100%;
    padding: 0 10px;
    margin: 20px auto;
  }

  .rms-visualization-body {
    padding: 20px 15px;
    min-height: 250px;
  }

  .rms-device-grid {
    gap: 15px;
  }

  .rms-device-item {
    width: 75px;
  }

  .rms-device-icon {
    font-size: 30px;
  }

  .rms-device-label {
    font-size: 1.1rem; /* Responsive scaling - still readable */
  }

  .rms-mode-tabs {
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .rms-mode-tabs > li {
    flex: 1;
    min-width: 0;
  }

  .rms-mode-tabs > li > a {
    padding: 0.625rem 0.75rem; /* 10px 12px equivalent */
    font-size: 0.875rem; /* 14px equivalent */
    text-align: center;
    display: block;
  }

  .rms-tab-content {
    padding: 15px 0;
  }

  .rms-mode-title {
    font-size: 1.6rem; /* Responsive scaling */
  }

  .rms-mode-list li {
    font-size: 1.5rem; /* Responsive scaling - still readable */
    padding: 8px 0 8px 20px;
  }

  .rms-trust-strip {
    padding: 15px;
    margin-top: 25px;
  }

  .rms-trust-badges {
    gap: 6px;
  }

  .rms-trust-badge {
    font-size: 1.1rem; /* Responsive scaling - still readable */
    padding: 0.3125rem 0.625rem; /* 5px 10px equivalent */
  }

  .rms-legend {
    gap: 15px;
  }

  .rms-legend-item {
    font-size: 1.2rem; /* Responsive scaling - still readable */
  }
}

.comparison-badge.danger {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.3);
  border-color: rgba(100, 116, 139, 0.4);
}

.comparison-badge.success {
  background: linear-gradient(135deg, #d21242 0%, #b01035 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(210, 18, 66, 0.3);
  border-color: rgba(210, 18, 66, 0.4);
}

.comparison-icon {
  font-size: 5rem;
  text-align: center;
  margin: 1.5rem auto 2rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  line-height: 1;
}

.before-box h4,
.after-box h4 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 1.5rem;
  line-height: 1.2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-list li {
  padding: 2rem 1.5rem;
  font-size: 1.7rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 -1.5rem;
  border-radius: 10px;
}

.simple-list li:first-child {
  padding-top: 0;
  margin-top: 0;
}

.simple-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.simple-list li:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.03) 0%,
    rgba(0, 0, 0, 0.01) 100%
  );
  padding-left: 2rem;
  transform: translateX(4px);
}

.before-box .simple-list li::before {
  content: attr(data-icon);
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.after-box .simple-list li::before {
  content: attr(data-icon);
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.arrow-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 1rem;
}

.arrow-icon {
  font-size: 5rem;
  color: #64748b;
  font-weight: 900;
  text-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
  animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.gateway-visual {
  max-width: 100%;
  margin: 3rem 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0;
}

.visual-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
}

.visual-step-main {
  max-width: 280px;
}

.visual-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.visual-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.visual-box:hover {
  transform: translateY(-6px);
  border-color: var(--magtek-red);
  box-shadow: 0 8px 24px rgba(210, 18, 66, 0.12);
}

.visual-box-main {
  border: 1px solid rgba(76, 74, 125, 0.36);
  background: linear-gradient(
    135deg,
    rgba(99, 97, 154, 0.08) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 16px rgba(76, 74, 125, 0.15);
}

.visual-box-main:hover {
  border-color: rgba(76, 74, 125, 0.45);
  box-shadow: 0 8px 24px rgba(76, 74, 125, 0.22);
}

.visual-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #263c50 0%, #1e293b 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(38, 60, 80, 0.2);
  transition: all 0.3s ease;
}

.visual-icon-main {
  width: 70px;
  height: 70px;
  background: rgba(99, 97, 154, 0.25);
  box-shadow: 0 4px 12px rgba(76, 74, 125, 0.22);
}

.visual-box:hover .visual-icon {
  transform: scale(1.1);
}

.visual-icon i {
  font-size: 2.6rem;
  color: white;
}

.visual-icon-main i {
  font-size: 3rem;
  color: #312d57;
}

.visual-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.visual-value {
  font-size: 2rem;
  font-weight: 700;
  color: #312d57;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.visual-trust {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.visual-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 60px;
}

.connector-arrow {
  font-size: 3.5rem;
  color: var(--magtek-red);
  font-weight: 300;
  line-height: 1;
}

.connector-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gateway-result {
  max-width: 100%;
  margin: 2rem 0 0 0;
  padding: 0;
  text-align: center;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.gateway-result strong {
  color: var(--magtek-red);
  font-weight: 700;
}

.gateway-disclaimer {
  font-size: 1.3rem;
  color: #64748b;
  margin-top: 1rem;
  margin-left: 0;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .gateway-disclaimer {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .gateway-disclaimer {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }
}

.auth-flow-educational {
  max-width: 100%;
  margin: 3rem;
  padding: 0;
}

.auth-comparison {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.auth-old,
.auth-new {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.auth-method-label {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 2rem;
}

.danger-label {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
}

.success-label {
  background: rgba(99, 97, 154, 0.18);
  color: #312d57;
  border: 1px solid rgba(76, 74, 125, 0.36);
}

.auth-method-visual {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 3.5rem 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.auth-old .auth-method-visual:hover {
  border-color: #64748b;
  box-shadow: 0 8px 24px rgba(100, 116, 139, 0.12);
}

.auth-new .auth-method-visual {
  background: rgba(99, 97, 154, 0.08);
  border-color: rgba(76, 74, 125, 0.36);
}

.auth-new .auth-method-visual:hover {
  border-color: rgba(76, 74, 125, 0.45);
  box-shadow: 0 8px 24px rgba(76, 74, 125, 0.22);
}

.auth-visual-icon {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.danger-icon {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.success-icon {
  background: rgba(99, 97, 154, 0.25);
  box-shadow: 0 4px 12px rgba(76, 74, 125, 0.22);
}

.auth-method-visual:hover .auth-visual-icon {
  transform: scale(1.1);
}

.auth-visual-icon i {
  font-size: 3.5rem;
  color: white;
}

.success-icon i {
  color: #312d57;
}

.auth-visual-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-problems {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.benefit-item {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

.problem-item {
  color: #475569;
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.3);
  text-align: center;
}

.benefit-item {
  color: #312d57;
  background: rgba(99, 97, 154, 0.12);
  border-left: 3px solid rgba(76, 74, 125, 0.36);
}

.auth-old .benefit-item {
  color: #475569;
  background: rgba(100, 116, 139, 0.12);
  border-left-color: rgba(100, 116, 139, 0.4);
}

.auth-arrow-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  gap: 0.5rem;
}

.divider-arrow {
  font-size: 3.5rem;
  color: var(--magtek-red);
  font-weight: 300;
}

.divider-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-explanation {
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.8; /* Slightly less opacity for subtlety */
  }
  100% {
    transform: scale(1.25); /* Less expansion */
    opacity: 0;
  }
}

@keyframes pulse-online {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.services-nav-brand {
  backface-visibility: hidden; /* Prevent flickering */
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d; /* Enable 3D transforms */
  -webkit-transform-style: preserve-3d;
}

.reading-progress-bar {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style paint; /* Isolate rendering */
}

.services-nav-panel {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style paint;
}

.magensa-flow-visual {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  margin: 4rem 0;
  flex-wrap: nowrap;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.flow-step {
  flex: 1 1 0;
  min-width: 280px;
  background: white;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
}

.flow-step:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.flow-step-magtek {
  border-left: 4px solid #d21242;
}

.flow-step-magtek:hover {
  border-left-color: #d21242;
  box-shadow:
    0 4px 12px rgba(210, 18, 66, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.1);
}

.flow-step-tunnel {
  border-left: 4px solid #64748b;
}

.flow-step-tunnel:hover {
  border-left-color: #64748b;
}

.flow-step-magensa {
  border-left: 4px solid rgba(76, 74, 125, 0.5);
}

.flow-step-magensa:hover {
  border-left-color: rgba(76, 74, 125, 0.7);
  box-shadow:
    0 4px 12px rgba(76, 74, 125, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.1);
}

.flow-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.flow-step-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.flow-step:hover .flow-step-icon {
  transform: scale(1.05);
}

.flow-step-magtek .flow-step-icon {
  height: 120px;
}

.flow-step-magtek .flow-step-icon img {
  max-height: 80px;
  width: auto;
}

.flow-icon-tunnel {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: white;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon-tunnel i {
  font-size: 4rem;
  color: #64748b;
}

.flow-step:hover .flow-icon-tunnel {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.flow-icon-magensa {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon-magensa img {
  max-height: 80px;
  width: auto;
}

.flow-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  min-height: 3.2rem;
}

.flow-badge-magtek {
  background: rgba(210, 18, 66, 0.12);
  color: #d21242;
}

.flow-badge-tunnel {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.flow-badge-magensa {
  background: rgba(99, 97, 154, 0.18);
  color: #312d57;
  border: 1px solid rgba(76, 74, 125, 0.36);
}

.flow-step-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #263c50;
  margin: 0 0 0.8rem 0;
  line-height: 1.3;
}

.flow-step-magensa .flow-step-title {
  color: #312d57;
}

.flow-step-desc {
  font-size: 1.4rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.flow-step-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.flow-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 500;
  text-align: center;
}

.flow-feature i {
  font-size: 1.8rem;
  color: #263c50;
  margin-bottom: 0.2rem;
}

.flow-step-magtek .flow-feature i {
  color: #d21242;
}

.flow-step-magensa .flow-feature i {
  color: #4c4a7d;
}

.flow-feature span {
  font-size: 1.1rem;
  line-height: 1.3;
}

.flow-arrow {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 0 1rem;
  position: relative;
  margin-top: 40px; /* Align with logo center */
}

.flow-arrow-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(
    180deg,
    rgba(210, 18, 66, 0.2) 0%,
    rgba(100, 116, 139, 0.2) 50%,
    rgba(76, 74, 125, 0.3) 100%
  );
  margin: 0.5rem 0;
  border-radius: 2px;
}

.flow-arrow-head {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.flow-arrow:hover .flow-arrow-head {
  border-color: #263c50;
  color: #263c50;
  transform: scale(1.1);
}

.flow-arrow-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.6rem;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .magensa-flow-visual {
    gap: 1.5rem;
  }

  .flow-step {
    min-width: 240px;
    padding: 2.5rem 2rem;
  }

  .flow-arrow {
    min-width: 60px;
    padding: 0 0.5rem;
    margin-top: 40px;
  }

  .flow-arrow-line {
    height: 30px;
  }

  .flow-arrow-head {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .flow-arrow-label {
    font-size: 0.85rem;
  }

  .flow-step-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .flow-step-magtek .flow-step-icon,
  .flow-icon-magensa {
    height: 70px;
  }

  .flow-step-magtek .flow-step-icon img,
  .flow-icon-magensa img {
    max-height: 70px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .magensa-flow-visual {
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }

  .flow-step {
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
    max-width: 400px;
  }

  .flow-arrow {
    flex: 0 0 100%;
    order: 2;
    transform: rotate(90deg);
    min-width: auto;
    min-height: 60px;
    padding: 1rem 0;
    margin: 0.5rem 0;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }

  .flow-arrow-line {
    width: 50px;
    height: 2px;
  }

  .flow-arrow-label {
    transform: rotate(-90deg);
    margin-top: 0.4rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Hide second arrow when wrapping */
  .flow-step-tunnel + .flow-arrow {
    order: 4;
  }

  .flow-step-magensa {
    order: 3;
  }
}

@media (max-width: 767px) {
  .magensa-flow-visual {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 0 1rem;
  }

  .flow-step {
    max-width: 100%;
    width: 100%;
    max-width: 500px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    min-width: auto;
    min-height: 120px;
    padding: 2rem 0;
    margin: 0.5rem 0;
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .flow-arrow-line {
    width: 50px;
    height: 2px;
    order: 1;
    margin: 0;
    align-self: center;
  }

  .flow-arrow-head {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    order: 2;
    margin: 0.8rem 0;
    flex-shrink: 0;
    align-self: center;
  }

  .flow-arrow-label {
    transform: rotate(-90deg);
    margin-top: 0.8rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    order: 3;
    line-height: 1.3;
    flex-shrink: 0;
    min-width: 0;
    align-self: center;
  }

  .flow-step-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .flow-feature {
    font-size: 1.1rem;
  }

  .flow-feature i {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .audience-overview {
    padding: 2.2rem 1.6rem;
  }

  .magensa-tile {
    padding: 2.6rem 2.2rem;
  }

  .magensa-bridge {
    flex-direction: column;
    gap: 1.2rem;
    max-width: none;
  }

  .magensa-bridge::before,
  .magensa-bridge::after {
    width: 28px;
    height: 4px;
  }

  .magensa-bridge::before {
    margin: 0 0 0.8rem 0;
  }

  .magensa-bridge::after {
    margin: 0.8rem 0 0 0;
  }

  .magensa-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .magensa-cta .btn-primary,
  .magensa-cta .btn-secondary {
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Disable all AOS animations */
  [data-aos] {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  /* Disable all transitions */
  .services-nav-bar,
  .reading-progress-bar,
  .services-nav-link,
  .services-nav-panel {
    transition: none !important;
  }
}

#overview.hero-dark.hero-centered {
  background: linear-gradient(135deg, #0f172a 0%, #16263b 45%, #1b2f49 100%);
  position: relative;
  overflow: hidden;
}

#industries .small-card {
  min-height: 400px;
}

#industries .small-card-content {
  justify-content: center;
}

#overview.hero-dark.hero-centered::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
      /* Data grid */
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    /* Navy and red accent nodes */
    radial-gradient(
        circle at 20% 30%,
        rgba(210, 18, 66, 0.1) 0%,
        transparent 3%
      ),
    radial-gradient(
      circle at 80% 20%,
      rgba(38, 60, 80, 0.12) 0%,
      transparent 2.5%
    ),
    radial-gradient(
      circle at 60% 70%,
      rgba(210, 18, 66, 0.08) 0%,
      transparent 3.5%
    ),
    radial-gradient(
      circle at 30% 80%,
      rgba(38, 60, 80, 0.08) 0%,
      transparent 2%
    ),
    radial-gradient(
      circle at 90% 60%,
      rgba(210, 18, 66, 0.06) 0%,
      transparent 2.6%
    ),
    radial-gradient(
      circle at 45% 45%,
      rgba(99, 97, 154, 0.1) 0%,
      transparent 3%
    ),
    radial-gradient(
      circle at 15% 75%,
      rgba(99, 97, 154, 0.08) 0%,
      transparent 2.5%
    ),
    /* Subtle data streams */
    repeating-linear-gradient(
        0deg,
        transparent,
        transparent 100px,
        rgba(210, 18, 66, 0.04) 100px,
        rgba(210, 18, 66, 0.04) 101px
      ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 150px,
      rgba(99, 97, 154, 0.05) 150px,
      rgba(38, 60, 80, 0.05) 151px
    );
  background-size:
    50px 50px,
    50px 50px,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  opacity: 0.7;
  z-index: 1;
}

#overview.hero-dark.hero-centered::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background: radial-gradient(
    ellipse at 80% 50%,
    rgba(210, 18, 66, 0.14) 0%,
    rgba(99, 97, 154, 0.12) 40%,
    rgba(38, 60, 80, 0.12) 68%,
    transparent 78%
  );
  z-index: 1;
  pointer-events: none;
}

#overview.hero-dark.hero-centered .hero-content {
  position: relative;
  z-index: 2;
}

#overview.hero-dark.hero-centered .hero-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

body:has(#overview) .section-title::after {
  background: linear-gradient(
    135deg,
    var(--magtek-red) 0%,
    var(--magtek-red-dark) 100%
  );
}

body:has(#overview) .rms-metric-card {
  padding: 2.5rem 2rem;
}

body:has(#overview) .metric-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
}

body:has(#overview) .metric-icon i {
  font-size: 2.6rem;
}

body:has(#overview) .metric-value {
  font-size: 3rem;
  margin: 0 0 1rem;
}

body:has(#overview) .metric-label {
  font-size: 1.2rem;
  line-height: 1.4;
}

body:has(#overview) .comparison-icon {
  font-size: 5rem;
  margin: 2rem auto 2.5rem;
  line-height: 1;
}

body:has(#overview) .before-box h4,
body:has(#overview) .after-box h4 {
  margin-bottom: 2.5rem;
}

body:has(#overview) .auth-visual-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

body:has(#overview) .auth-visual-icon i {
  font-size: 3.5rem;
}

body:has(#overview) .auth-visual-text {
  font-size: 2rem;
  margin-bottom: 2rem;
}

body:has(#overview) .auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

body:has(#overview) .benefit-item {
  padding: 1rem 1.5rem;
}

body:has(#overview) .auth-method-visual {
  padding: 3.5rem 3rem;
}

body:has(#overview) .visual-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
}

body:has(#overview) .visual-icon i {
  font-size: 2.8rem;
}

body:has(#overview) .visual-box {
  padding: 2.5rem 2rem;
}

body:has(#overview) .visual-box-main {
  padding: 3rem 2.5rem;
}

.contact-cta-section.magensa-final-cta {
  background: linear-gradient(
    180deg,
    rgba(99, 97, 154, 0.06) 0%,
    rgba(76, 74, 125, 0.04) 100%
  );
  padding: 8rem 0;
  border-top: 1px solid rgba(76, 74, 125, 0.25);
  border-bottom: 1px solid rgba(76, 74, 125, 0.25);
}

.contact-cta-section.magensa-final-cta .container {
  position: relative;
}

.contact-cta-section.magensa-final-cta .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(99, 97, 154, 0.14) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(210, 18, 66, 0.08) 0%,
      transparent 60%
    );
  opacity: 0.6;
  pointer-events: none;
  border-radius: 28px;
}

.magensa-final-card .section-title {
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}

.magensa-final-card .section-subtitle {
  color: rgba(38, 60, 80, 0.78);
  font-size: 1.8rem;
}

.magcare-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem;
}

.magcare-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magcare-benefit-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.magcare-benefit-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #263c50 0%, #1e293b 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 2.2rem;
  box-shadow: 0 2px 8px rgba(38, 60, 80, 0.15);
  transition: all 0.3s ease;
}

.magcare-benefit-item:hover .magcare-benefit-icon {
  box-shadow: 0 4px 12px rgba(38, 60, 80, 0.2);
  transform: translateY(-2px);
}

.magcare-benefit-content {
  flex: 1;
}

.magcare-benefit-content h4 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #263c50;
  margin: 0 0 0.8rem 0;
  line-height: 1.2;
}

.magcare-benefit-content p {
  font-size: 1.4rem;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .magcare-benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
  }

  .magcare-benefit-item {
    padding: 1.5rem;
  }

  .magcare-benefit-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .magcare-benefit-content h4 {
    font-size: 1.6rem;
  }

  .magcare-benefit-content p {
    font-size: 1.3rem;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .container {
    max-width: 1100px;
    padding: 0 3rem;
  }

  .section-title {
    font-size: clamp(3rem, 4.5vw, 3.8rem);
  }

  .section-subtitle {
    font-size: clamp(1.7rem, 2.8vw, 2rem);
  }

  .magensa-flow-visual {
    gap: 1.5rem;
    max-width: 1200px;
  }

  .flow-step {
    min-width: 260px;
    padding: 2.5rem 2rem;
  }

  .gateway-visual {
    gap: 1.5rem;
  }

  .visual-step {
    max-width: 220px;
  }

  .visual-step-main {
    max-width: 260px;
  }

  .comparison-split {
    gap: 2.5rem;
    padding: 2.5rem;
  }

  .auth-comparison {
    gap: 1.5rem;
  }

  .cta-feature-boxes {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .magensa-final-card {
    padding: 4rem 3.5rem;
  }

  .magensa-final-pill {
    min-width: 200px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Container & Layout */
  .container {
    max-width: 100%;
    padding: 0 3rem;
  }

  /* Sections */
  .section-bg-white,
  .section-bg-alt {
    padding: 5rem 0;
  }

  .section-header {
    margin-bottom: 4rem;
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: clamp(2.8rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
  }

  .section-subtitle {
    font-size: clamp(1.6rem, 3vw, 1.9rem);
  }

  /* Typography */
  h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }

  h3 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
  }

  p {
    font-size: 1.6rem;
  }

  /* Hero */
  .hero-content {
    padding: 0 2rem;
  }

  .hero-text h1 {
    font-size: clamp(3.5rem, 7vw, 5rem);
  }

  .hero-subtitle {
    font-size: clamp(1.6rem, 3vw, 2rem);
  }

  .hero-badges {
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-badge {
    font-size: 1.3rem;
    padding: 0.8rem 1.5rem;
  }

  /* Magensa Flow Visual */
  .magensa-flow-visual {
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }

  .flow-step {
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
    max-width: 400px;
  }

  .flow-arrow {
    flex: 0 0 100%;
    order: 2;
    transform: rotate(90deg);
    min-width: auto;
    min-height: 120px;
    padding: 2rem 0;
    margin: 0.5rem 0;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .flow-arrow-line {
    width: 50px;
    height: 2px;
    order: 1;
    margin: 0;
    align-self: center;
  }

  .flow-arrow-head {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    order: 2;
    margin: 0.8rem 0;
    flex-shrink: 0;
    align-self: center;
  }

  .flow-arrow-label {
    transform: rotate(-90deg);
    margin-top: 0.8rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    max-width: none;
    padding: 0.5rem 0.8rem;
    line-height: 1.3;
    order: 3;
    flex-shrink: 0;
    min-width: 0;
    align-self: center;
  }

  /* Reorder elements for proper flow when wrapping */
  .flow-step-magtek {
    order: 1;
  }

  .flow-step-magtek + .flow-arrow {
    order: 2;
  }

  .flow-step-tunnel {
    order: 3;
  }

  .flow-step-tunnel + .flow-arrow {
    order: 4;
  }

  .flow-step-magensa {
    order: 5;
  }

  /* Gateway Visual */
  .gateway-visual {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }

  .visual-step {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 180px;
    max-width: 220px;
  }

  .visual-step-main {
    max-width: 240px;
  }

  .visual-connector {
    min-width: 50px;
  }

  /* Comparison Sections */
  .comparison-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 2rem;
  }

  .arrow-separator {
    transform: rotate(90deg);
    padding: 1rem 0;
  }

  .arrow-icon {
    font-size: 4rem;
  }

  /* Auth Comparison */
  .auth-comparison {
    flex-direction: column;
    gap: 2rem;
  }

  .auth-arrow-divider {
    transform: rotate(90deg);
    min-width: auto;
    min-height: 60px;
    padding: 1rem 0;
  }

  .divider-arrow {
    font-size: 3rem;
  }

  /* Small Cards Grid */
  #industries .row {
    margin: 0;
  }

  #industries .col-lg-3,
  #industries .col-md-6 {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .cta-feature-boxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cta-security-grid {
    gap: 1.5rem;
  }

  .cta-security-badge {
    padding: 1.2rem 2rem;
    font-size: 1.3rem;
  }

  /* Full Width CTA */
  .full-width-cta {
    padding: 5rem 0;
  }

  .cta-content {
    padding: 0 2rem;
  }

  .cta-title {
    font-size: clamp(2.8rem, 5vw, 3.5rem);
  }

  .cta-subtitle {
    font-size: clamp(1.6rem, 3vw, 2rem);
  }

  /* Magensa Final CTA */
  .magensa-final-card {
    padding: 3.5rem 2.5rem;
  }

  .magensa-final-pill-group {
    flex-direction: column;
    gap: 1.5rem;
  }

  .magensa-final-pill {
    min-width: 100%;
  }

  /* RMS Dashboard */
  .rms-api-notice {
    margin: 1.5rem;
    padding: 1.5rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  /* Container */
  .container {
    padding: 0 2rem;
  }

  /* Sections */
  .section-bg-white,
  .section-bg-alt {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
    padding: 0 1rem;
  }

  .section-title {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: 1.2rem;
  }

  .section-subtitle {
    font-size: clamp(1.5rem, 3.5vw, 1.8rem);
  }

  /* Typography */
  h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  h3 {
    font-size: clamp(1.7rem, 4vw, 2rem);
  }

  p {
    font-size: 1.5rem;
  }

  /* Hero */
  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-text h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 350px;
  }

  .hero-badges {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }

  .hero-badge {
    width: 100%;
    max-width: 300px;
    font-size: 1.2rem;
    padding: 0.7rem 1.2rem;
    justify-content: center;
  }

  /* Magensa Flow Visual */
  .magensa-flow-visual {
    flex-direction: column;
    gap: 2.5rem;
    margin: 3rem 0;
    padding: 0 1rem;
  }

  .flow-step {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
    min-width: auto;
    min-height: 115px;
    padding: 2rem 0;
    margin: 0.5rem 0;
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .flow-arrow-line {
    width: 50px;
    height: 2px;
    order: 1;
    margin: 0;
    align-self: center;
  }

  .flow-arrow-head {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
    order: 2;
    margin: 0.8rem 0;
    flex-shrink: 0;
    align-self: center;
  }

  .flow-arrow-label {
    transform: rotate(-90deg);
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    max-width: none;
    line-height: 1.3;
    order: 3;
    flex-shrink: 0;
    min-width: 0;
    align-self: center;
  }

  /* Gateway Visual */
  .gateway-visual {
    flex-direction: column;
    gap: 2rem;
  }

  .visual-step {
    width: 100%;
    max-width: 100%;
  }

  .visual-connector {
    transform: rotate(90deg);
    min-width: auto;
    min-height: 40px;
    padding: 0.5rem 0;
  }

  .connector-arrow {
    font-size: 3rem;
  }

  /* Comparison Sections */
  .comparison-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .before-box,
  .after-box {
    padding: 2.5rem 2rem;
  }

  .arrow-separator {
    transform: rotate(90deg);
    padding: 1rem 0;
    min-width: auto;
    min-height: 50px;
  }

  .arrow-icon {
    font-size: 3.5rem;
  }

  /* Auth Comparison */
  .auth-flow-educational {
    margin: 2rem 1rem;
  }

  .auth-comparison {
    flex-direction: column;
    gap: 2rem;
  }

  .auth-arrow-divider {
    transform: rotate(90deg);
    min-width: auto;
    min-height: 50px;
    padding: 1rem 0;
  }

  .divider-arrow {
    font-size: 3rem;
  }

  .cta-feature-boxes {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .cta-feature-box {
    padding: 2rem 1.5rem;
  }

  .cta-security-grid {
    flex-direction: column;
    gap: 1.2rem;
  }

  .cta-security-badge {
    width: 100%;
    padding: 1rem 1.5rem;
    justify-content: center;
  }

  /* Full Width CTA */
  .full-width-cta {
    padding: 4rem 0;
  }

  .cta-content {
    padding: 0 1.5rem;
  }

  .cta-title {
    font-size: clamp(2.5rem, 6vw, 3rem);
  }

  .cta-subtitle {
    font-size: clamp(1.5rem, 3.5vw, 1.8rem);
  }

  /* Magensa Final CTA */
  .magensa-final-card {
    padding: 3rem 2rem;
  }

  .magensa-final-header {
    margin-bottom: 2.5rem;
  }

  .magensa-final-pill-group {
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
  }

  .magensa-final-pill {
    min-width: 100%;
    padding: 1.5rem;
  }
}

@media (max-width: 479px) {
  /* Container */
  .container {
    padding: 0 1.5rem;
  }

  /* Sections */
  .section-bg-white,
  .section-bg-alt {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: clamp(2.2rem, 7vw, 2.8rem);
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
  }

  /* Typography */
  h2 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.6rem, 5vw, 1.9rem);
  }

  p {
    font-size: 1.4rem;
  }

  /* Hero */
  .hero-content {
    padding: 0 1rem;
  }

  .hero-text h1 {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1.4rem, 4.5vw, 1.7rem);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 100%;
    font-size: 1.4rem;
  }

  .hero-badges {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-badge {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    justify-content: center;
  }

  /* Magensa Flow Visual */
  .magensa-flow-visual {
    flex-direction: column;
    gap: 2rem;
    margin: 2.5rem 0;
  }

  .flow-step {
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .flow-step-icon {
    height: 100px;
    margin-bottom: 1.5rem;
  }

  .flow-step-title {
    font-size: 1.6rem;
  }

  .flow-step-desc {
    font-size: 1.3rem;
  }

  .flow-step-features {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .flow-feature {
    font-size: 1.1rem;
  }

  .flow-arrow {
    transform: rotate(90deg);
    min-width: auto;
    min-height: 110px;
    padding: 1.8rem 0;
    margin: 0.5rem 0;
    width: 100%;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .flow-arrow-line {
    width: 45px;
    height: 2px;
    order: 1;
    margin: 0;
    align-self: center;
  }

  .flow-arrow-head {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    order: 2;
    margin: 0.8rem 0;
    flex-shrink: 0;
    align-self: center;
  }

  .flow-arrow-label {
    transform: rotate(-90deg);
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 0.5rem 0.7rem;
    line-height: 1.2;
    order: 3;
    flex-shrink: 0;
    min-width: 0;
    align-self: center;
  }

  /* Gateway Visual */
  .gateway-visual {
    flex-direction: column;
    gap: 1.5rem;
  }

  .visual-step {
    width: 100%;
  }

  .visual-box {
    padding: 2rem 1.5rem;
  }

  .visual-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .visual-icon i {
    font-size: 2.2rem;
  }

  .visual-text {
    font-size: 1.4rem;
  }

  .visual-value {
    font-size: 1.7rem;
  }

  .visual-trust {
    font-size: 1.2rem;
  }

  .visual-connector {
    transform: rotate(90deg);
    min-width: auto;
    min-height: 35px;
    padding: 0.5rem 0;
  }

  .connector-arrow {
    font-size: 2.5rem;
  }

  .connector-text {
    font-size: 1rem;
  }

  /* Comparison Sections */
  .before-after-comparison {
    margin: 2rem 0 0 0;
  }

  .comparison-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .before-box,
  .after-box {
    padding: 2rem 1.5rem;
  }

  .comparison-badge {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
  }

  .comparison-icon {
    font-size: 4rem;
    margin: 1rem auto 1.5rem;
  }

  .before-box h4,
  .after-box h4 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
  }

  .simple-list li {
    padding: 1.5rem 1rem;
    font-size: 1.4rem;
  }

  .arrow-separator {
    transform: rotate(90deg);
    padding: 0.8rem 0;
    min-width: auto;
    min-height: 40px;
  }

  .arrow-icon {
    font-size: 3rem;
  }

  /* Auth Comparison */
  .auth-flow-educational {
    margin: 1.5rem 0.5rem;
  }

  .auth-comparison {
    flex-direction: column;
    gap: 1.5rem;
  }

  .auth-method-label {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  .auth-method-visual {
    padding: 2.5rem 2rem;
  }

  .auth-visual-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
  }

  .auth-visual-icon i {
    font-size: 3rem;
  }

  .auth-visual-text {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
  }

  .auth-problems,
  .auth-benefits {
    gap: 1rem;
  }

  .problem-item,
  .benefit-item {
    font-size: 1.3rem;
    padding: 0.8rem 1.2rem;
  }

  .auth-arrow-divider {
    transform: rotate(90deg);
    min-width: auto;
    min-height: 40px;
    padding: 0.8rem 0;
  }

  .divider-arrow {
    font-size: 2.5rem;
  }

  .divider-text {
    font-size: 1rem;
  }

  .auth-explanation {
    font-size: 1.4rem;
    padding: 0 1rem;
  }

  .cta-feature-boxes {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .cta-feature-box {
    padding: 1.5rem 1.2rem;
  }

  .cta-feature-box i {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .cta-feature-box h4 {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
  }

  .cta-feature-box p {
    font-size: 1.3rem;
  }

  .cta-security-grid {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .cta-security-badge {
    width: 100%;
    padding: 1rem 1.2rem;
    justify-content: center;
  }

  .cta-security-badge i {
    font-size: 1.8rem;
  }

  .cta-security-badge span {
    font-size: 1.3rem;
  }

  /* Full Width CTA */
  .full-width-cta {
    padding: 3rem 0;
  }

  .cta-content {
    padding: 0 1rem;
  }

  .cta-title {
    font-size: clamp(2.2rem, 7vw, 2.8rem);
    margin-bottom: 1.5rem;
  }

  .cta-subtitle {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    margin-bottom: 2rem;
  }

  /* Magensa Final CTA */
  .magensa-final-card {
    padding: 2.5rem 1.5rem;
  }

  .magensa-final-header {
    margin-bottom: 2rem;
  }

  .magensa-final-eyebrow {
    font-size: 1rem;
    padding: 0.4rem 1rem;
  }

  .magensa-final-card .section-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .magensa-final-card .section-subtitle {
    font-size: 1.5rem;
  }

  .magensa-final-pill-group {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .magensa-final-pill {
    min-width: 100%;
    padding: 1.2rem;
  }

  .magensa-pill-icon {
    width: 45px;
    height: 45px;
    font-size: 1.7rem;
  }

  .magensa-final-pill .magensa-pill-title {
    font-size: 1.3rem;
  }

  .magensa-final-pill p {
    font-size: 1.3rem;
  }

  /* Gateway Result */
  .gateway-result {
    font-size: 1.4rem;
    padding: 0 1rem;
  }

  /* Auth Explanation */
  .auth-explanation {
    font-size: 1.3rem;
    padding: 0 0.5rem;
  }

  /* RMS API Notice */
  .rms-api-notice {
    margin: 1rem;
    padding: 1rem;
  }

  .rms-api-notice-title {
    font-size: 1.5rem;
  }

  .rms-api-notice-text p {
    font-size: 1.3rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
    padding: 0 5rem;
  }

  .services-nav-container {
    max-width: 1400px;
    padding: 2rem 3rem;
  }

  .services-nav-bar.is-sticky .services-nav-container {
    padding: 1.5rem 3rem;
  }

  .section-bg-white,
  .section-bg-alt {
    padding: 8rem 0;
  }

  .section-header {
    max-width: 1000px;
  }

  .section-title {
    font-size: clamp(3.5rem, 5vw, 4.2rem);
  }

  .section-subtitle {
    font-size: clamp(2rem, 3vw, 2.3rem);
    max-width: 900px;
  }

  .magensa-flow-visual {
    max-width: 1600px;
    gap: 2.5rem;
  }

  .flow-step {
    min-width: 300px;
    padding: 3.5rem 3rem;
  }

  .gateway-visual {
    gap: 2.5rem;
  }

  .visual-step {
    max-width: 260px;
  }

  .visual-step-main {
    max-width: 300px;
  }

  .comparison-split {
    gap: 4rem;
    padding: 4rem;
  }

  .before-box,
  .after-box {
    padding: 4rem 3.5rem;
  }

  .auth-comparison {
    gap: 3rem;
  }

  .cta-content {
    max-width: 1200px;
    padding: 0 4rem;
  }

  .magensa-final-card {
    padding: 5rem 4.5rem;
  }

  .magensa-final-pill {
    min-width: 240px;
  }
}

.floating-get-started-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 850; /* Above content, below nav */
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #263c50 0%, #1e293b 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(38, 60, 80, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: linear-gradient(135deg, #1e293b 0%, #15202b 100%);
  box-shadow: 0 6px 20px rgba(38, 60, 80, 0.4);
  transform: translateY(-2px) scale(1.05);
}

.back-to-top-btn:active {
  transform: translateY(0) scale(0.95);
}

@media (max-width: 768px) {
  .floating-get-started-btn {
    top: 80px;
    right: 15px;
    padding: 10px 18px;
    font-size: 0.8125rem; /* 13px equivalent */
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 1rem; /* 16px equivalent - icon size */
  }
}

@media (max-width: 480px) {
  .floating-get-started-btn {
    top: 70px;
    right: 10px;
    padding: 8px 16px;
    font-size: 0.75rem; /* 12px equivalent */
  }

  .back-to-top-btn {
    bottom: 15px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 0.875rem; /* 14px equivalent - icon size */
  }
}

.services-marketing-banner {
  background: linear-gradient(135deg, #263c50 0%, #1e293b 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.services-marketing-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="banner-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23banner-grid)"/></svg>');
  opacity: 0.5;
  z-index: 1;
}

.marketing-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.marketing-banner-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(210, 18, 66, 0.15);
  border-radius: 16px;
  border: 2px solid rgba(210, 18, 66, 0.3);
}

.marketing-banner-icon i {
  font-size: 2.8rem;
  color: #d21242;
}

.marketing-banner-text {
  flex: 1;
  min-width: 0;
}

.marketing-banner-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.8rem 0;
  line-height: 1.2;
}

.marketing-banner-subtitle {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

.marketing-banner-cta {
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .marketing-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .marketing-banner-icon {
    width: 56px;
    height: 56px;
  }

  .marketing-banner-icon i {
    font-size: 2.4rem;
  }

  .marketing-banner-title {
    font-size: 2rem;
  }

  .marketing-banner-subtitle {
    font-size: 1.5rem;
  }

  .marketing-banner-cta {
    width: 100%;
    max-width: 300px;
  }

  .marketing-banner-cta .btn-primary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .services-marketing-banner {
    padding: 2.5rem 0;
  }

  .marketing-banner-content {
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .marketing-banner-title {
    font-size: 1.8rem;
  }

  .marketing-banner-subtitle {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .services-marketing-banner {
    padding: 2rem 0;
  }

  .marketing-banner-content {
    padding: 0 1rem;
  }

  .marketing-banner-icon {
    width: 48px;
    height: 48px;
  }

  .marketing-banner-icon i {
    font-size: 2rem;
  }

  .marketing-banner-title {
    font-size: 1.6rem;
  }

  .marketing-banner-subtitle {
    font-size: 1.3rem;
  }
}

.service-navigation-wrapper {
  margin-top: 4rem;
  padding-top: 3rem;
}

.service-navigation-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.service-navigation-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.service-navigation-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.service-navigation-card-inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-navigation-card:hover .service-navigation-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--magtek-red);
}

.service-navigation-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  gap: 1.5rem;
}

.service-navigation-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.service-navigation-card:hover .service-navigation-card-title {
  color: var(--magtek-red);
}

.service-navigation-card-arrow {
  color: var(--magtek-red);
  font-size: 1.8rem;
  font-weight: 700;
  margin-left: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  line-height: 1;
}

.service-navigation-card:hover .service-navigation-card-arrow {
  transform: translateX(4px);
}

.service-navigation-card-desc {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .service-navigation-wrapper {
    margin-top: 3rem;
    padding-top: 2.5rem;
  }

  .service-navigation-header {
    margin-bottom: 2rem;
  }

  .service-navigation-card-inner {
    padding: 2rem 2.5rem;
  }

  .service-navigation-card-title {
    font-size: 1.8rem;
  }

  .service-navigation-card-desc {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .service-navigation-section {
    padding: 3rem 0;
  }

  .service-navigation-header {
    margin-bottom: 2.5rem;
  }

  .service-navigation-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
  }

  .service-navigation-card-inner {
    padding: 2rem;
  }

  .service-navigation-card-header {
    margin-bottom: 1rem;
  }

  .service-navigation-card-title {
    font-size: 1.7rem;
  }

  .service-navigation-card-arrow {
    font-size: 1.6rem;
  }

  .service-navigation-card-desc {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .service-navigation-wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .service-navigation-header {
    margin-bottom: 1.5rem;
  }

  .service-navigation-title {
    font-size: 1.2rem;
  }

  .service-navigation-card-inner {
    padding: 1.8rem;
  }

  .service-navigation-card-title {
    font-size: 1.6rem;
  }

  .service-navigation-card-arrow {
    font-size: 1.5rem;
  }

  .service-navigation-card-desc {
    font-size: 1.3rem;
  }
}

.complementary-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.complementary-service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(38, 60, 80, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.complementary-service-card:hover {
  background: #ffffff;
  border-color: rgba(38, 60, 80, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.complementary-service-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 2rem;
}

.complementary-service-rms .complementary-service-icon {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.complementary-service-magcare .complementary-service-icon {
  background: rgba(210, 18, 66, 0.1);
  color: #d21242;
}

.complementary-service-content {
  flex: 1;
  min-width: 0;
}

.complementary-service-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #263c50;
  margin: 0 0 0.6rem 0;
  line-height: 1.3;
}

.complementary-service-desc {
  font-size: 1.4rem;
  color: rgba(38, 60, 80, 0.75);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .complementary-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  .complementary-service-card {
    padding: 1.8rem;
  }
}

@media (max-width: 768px) {
  .complementary-services-grid {
    margin: 2rem 0;
    gap: 1.2rem;
  }

  .complementary-service-card {
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .complementary-service-icon {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .complementary-service-title {
    font-size: 1.5rem;
  }

  .complementary-service-desc {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .complementary-service-card {
    padding: 1.2rem;
    gap: 1rem;
  }

  .complementary-service-icon {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .complementary-service-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .complementary-service-desc {
    font-size: 1.2rem;
  }
}
