/* 
  GrowBeyond Tech Design System
  Theme: Modern Enterprise / High-Contrast Blue / Precision Layout
*/

:root {
  --navbar-h: 80px;

  /* Core Palette - Audi & Apple Sophistication */
  --bg-primary: #ffffff;
  --bg-secondary: #fbfbfd;
  /* Apple Off-white */
  --bg-tertiary: #f5f5f7;
  /* Apple Gray */
  --bg-metallic: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);

  --text-primary: #1d1d1f;
  /* Apple Deep Black */
  --text-secondary: #424245;
  /* Apple Gray Text */
  --text-muted: #86868b;

  --accent-blue: #0066cc;
  /* Premium Enterprise Blue */
  --accent-blue-soft: rgba(0, 102, 204, 0.05);
  --accent-blue-hover: #0077ed;
  --accent-silver: #d2d2d7;
  --accent-gray: #e8e8ed;

  /* Luxury Tokens */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 40px 100px rgba(0, 0, 0, 0.08);

  --transition-cinematic: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: clip;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  padding-top: var(--navbar-h);
}

html {
  overflow-x: clip;
}

/* Prevent horizontal overflow without breaking sticky */
img, video, svg, canvas {
  max-width: 100%;
}

body.loaded {
  opacity: 1;
}

/* Cursor glow - light blue ambient blob */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(0, 120, 255, 0.07) 0%,
      rgba(0, 102, 204, 0.04) 40%,
      transparent 70%);
  top: -280px;
  left: -280px;
  will-change: transform;
  mix-blend-mode: normal;
}

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

#page-loader.fade-out {
  transform: translateY(-100%);
}


.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 6%;
  width: 100%;
}

section {
  padding: clamp(1.75rem, 4vw, 3.25rem) 0;
}



/* Typography Hierarchy */
h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.6rem;
}


h3 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 850px;
  line-height: 1.75;
}

.text-blue {
  color: var(--accent-blue);
}

.text-red {
  color: #FF2800;
}

.text-green {
  color: #22c55e;
}

.text-left {
  text-align: left !important;
}

/* Buttons - Premium Audi/Apple Style */
.btn {
  padding: 0.94rem 2.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  text-align: center;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 102, 204, 0.3);
}


.btn-outline {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.btn-outline:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


.btn-sm {
  padding: 0.94rem 1.35rem;
  font-size: 0.9rem;
  border-radius: 40px;
}

.btn-outline-nav {
  background: transparent;
  color: var(--text-primary) !important;
  border-color: transparent;
  border-radius: 0;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-nav:hover {
  background: transparent;
  color: var(--accent-blue) !important;
  transform: none;
  box-shadow: none;
}

.btn-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link:hover .arrow {
  transform: translateX(5px);
}

.arrow {
  transition: transform 0.3s ease;
}

/* Navbar — glassmorphism */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--navbar-h);
  padding: 0 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}




.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-logo a {
  display: block;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo.logo-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
}

.nav-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.28) translateY(-2px);
  transition: transform 0.3s ease;
}

.nav-logo a:hover img {
  transform: scale(1.34) translateY(-2px);
}




.mobile-menu-toggle {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-links a.active {
  color: var(--accent-blue);
}

body:has(.hero-interrupt) #navbar {
  opacity: 0;
  pointer-events: none;
}

.home-hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-h));
  background: var(--bg-primary);
}

.hero-interrupt {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem;
  background: #fff;
  text-align: center;
  will-change: transform;
}

.hero-interrupt-logo {
  position: relative;
  width: clamp(150px, 24vw, 286px);
  aspect-ratio: 1;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.hero-interrupt-logo img {
  position: absolute;
  top: -8%;
  left: -3.9%;
  width: 108%;
  height: 108%;
  max-width: none;
  display: block;
  object-fit: cover;
}

.hero-interrupt-copy h1 {
  max-width: 980px;
  margin: 0 auto 1rem;
  color: var(--text-primary);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-interrupt-copy p {
  max-width: none;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-skip {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 3rem);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.hero-skip:hover {
  color: var(--accent-blue);
}

.home-main-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--navbar-h));
  overflow: hidden;
  background:
    radial-gradient(circle at center 34%, rgba(0, 102, 204, 0.06), transparent 60%),
    var(--bg-primary);
  opacity: 0;
  visibility: hidden;
}

.home-main-hero.is-visible {
  visibility: visible;
}

.home-hero-content {
  --home-hero-gap: clamp(1.05rem, 2vh, 1.45rem);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--navbar-h));
  padding-top: clamp(0.84rem, 2.1vh, 1.26rem);
  padding-bottom: clamp(0.84rem, 2.1vh, 1.26rem);
  text-align: center;
}

.home-hero-animate {
  opacity: 0;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.32rem 0.8rem;
  border: 1px solid var(--accent-gray);
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--text-secondary);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.home-hero-check {
  color: var(--accent-blue);
  font-weight: 700;
}

.home-hero-heading {
  margin-top: var(--home-hero-gap);
}

.home-hero-line {
  max-width: none;
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.home-hero-line-muted {
  color: var(--text-muted);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
}

.home-hero-line-strong {
  color: var(--text-primary);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

.hero-period {
  display: inline-block;
  color: var(--accent-blue);
  transform-origin: center center;
  opacity: 0;
}

.home-hero-subline {
  max-width: none;
  margin: var(--home-hero-gap) 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.home-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: var(--home-hero-gap);
}

.home-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.94rem 2rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--text-primary);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.home-hero-secondary:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.home-hero-ctas .btn-primary {
  padding-top: 0.94rem;
  padding-bottom: 0.94rem;
}

.hero-stat-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 3vw, 2rem);
  margin-top: var(--home-hero-gap);
}

.hero-stat {
  min-width: 160px;
  text-align: center;
}

.hero-stat-value {
  color: var(--accent-blue);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat p {
  max-width: 150px;
  margin: 0.5rem auto 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--accent-gray);
}

@media (max-width: 768px) {
  .home-hero-content {
    --home-hero-gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .home-hero-ctas {
    flex-direction: column;
    gap: 0.9rem;
    margin-top: var(--home-hero-gap);
  }

  .hero-stat-strip {
    flex-direction: column;
    gap: 1rem;
    margin-top: var(--home-hero-gap);
  }

  .hero-stat-divider {
    width: 48px;
    height: 1px;
  }
}


/* Cinematic Hero Section — starts right below navbar */
.hero-cinematic {
  position: relative;
  height: calc(100vh - var(--navbar-h));
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-primary);
  background: white;
  overflow: hidden;
}

.hero-bg-visual {
  display: none;
}

.hero-bg-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: grayscale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.25) 45%,
      rgba(255, 255, 255, 0.55) 100%);
  z-index: 2;
}

.hero-bottom-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  height: calc(100vh - var(--navbar-h));
  padding: 2.4rem 0 0.5rem;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  align-items: center;
  text-align: center;
}

/* Hero brand logo */
.hero-brand-section {
  margin-bottom: 0.75rem;
}

.big-hero-logo {
  height: clamp(140px, 22vh, 200px);
  width: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.big-hero-logo:hover {
  transform: scale(1.03);
}

/* Scrolling marquee train */
.marquee-container {
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 1.25rem 0;
  margin: 0 0 3rem;
  position: relative;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll-marquee 55s linear infinite;
  will-change: transform;
}

.marquee-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  min-width: 72px;
  padding: 0 0.625rem;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.marquee-icon:hover {
  transform: translateY(-6px) scale(1.18);
}

.marquee-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 5px;
  border: 1px solid var(--accent-gray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease;
}

.marquee-icon:hover img {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.marquee-icon span {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.25s ease;
}

.marquee-icon:hover span {
  color: var(--accent-blue);
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.home-main-hero .marquee-container {
  max-width: 980px;
  margin: var(--home-hero-gap) auto 0;
  padding: 0.75rem 0 0.25rem;
}

.home-main-hero .marquee-track {
  align-items: flex-start;
}

.home-main-hero .marquee-icon {
  flex: 0 0 68px;
  width: 68px;
  min-width: 68px;
  box-sizing: border-box;
  padding: 0 0.1rem;
  gap: 0.32rem;
}

.home-main-hero .marquee-icon img {
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  padding: 5px;
  object-fit: contain;
}

.home-main-hero .marquee-icon span {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.home-main-hero .marquee-container::before {
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.home-main-hero .marquee-container::after {
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

@keyframes scroll-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(calc(-1 * var(--marquee-distance, 50%)), 0, 0);
  }
}

/* Hero text block */
.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-top: 0;
}


.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 0.25rem;
  color: var(--accent-blue);
  font-weight: 700;
  display: block;
  text-align: center;
  width: 100%;
}

.hero-main-title {
  font-size: clamp(2.45rem, 4.8vw, 4.35rem);
  line-height: 1.08;
  margin-bottom: 1.65rem;
  color: var(--text-primary);
  font-weight: 800;
  text-align: center;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  margin: 0 auto 0.9rem;
  max-width: 700px;
  font-weight: 400;
  text-align: center;
  line-height: 1.6;
}


.text-glow {
  color: var(--accent-blue);
  display: inline-block;
}

.hero-btns {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero-scroll-indicator {
  display: none !important;
}

.btn-lg {
  padding: 0.94rem 2rem;
  font-size: 0.86rem;
}

.btn-outline-white {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}

.btn-outline-white:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
  transform: translateY(-4px);
}

/* Redesign Hero Section as a standard section */
.hero {
  display: none;
}


/* Reduced sub-block inside a section — no card, just smaller and bordered top/bottom */
.home-sub-block {
  margin: 2rem 0 2.5rem;
  padding: 2rem 0;
}

.home-sub-block h3 {
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

/* Comparison Graphic */
.comparison-container {
  display: flex;
  gap: 1.5rem;
}

.comparison-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--accent-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 420px;
}

.comparison-card .tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Comparison Visuals */
.flow-visual,
.messy-visual {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow-line,
.messy-lines {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-nodes {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  z-index: 2;
  width: 100%;
}

.flow-node {
  background: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent-gray);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.messy-nodes {
  position: relative;
  width: 100%;
  height: 100%;
}

.m-node {
  position: absolute;
  background: white;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  max-width: 44%;
}

.m-node.crm {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-color: #fca5a5;
  background: #fff1f2;
}

.m-node.n1 {
  top: 90px;
  left: 2%;
}

.m-node.n2 {
  top: 90px;
  right: 2%;
}

.m-node.n3 {
  top: 170px;
  left: 2%;
}

.m-node.n4 {
  top: 170px;
  right: 2%;
}

.m-node.n5 {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  border-color: #fca5a5;
  white-space: normal;
  width: 90px;
  padding: 0.5rem 0.7rem;
  max-width: 60%;
}


.status-msg {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  color: var(--accent-blue);
}

.status-msg.danger {
  color: #ef4444;
}

/* Sections */
.section-white {
  background: white;
}

.section-gray {
  background: var(--bg-secondary);
}

.page-hero-compact {
  padding: 0 0 1.75rem;
}

.page-hero-compact p {
  max-width: 760px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.indicator-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--accent-gray);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.indicator-card:hover {
  transform: translateY(-5px);
}

.indicator-card .icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.indicator-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.indicator-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--accent-gray);
  position: relative;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.stat-card .icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  opacity: 0.15;
  font-size: 1.5rem;
}

.fix-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.fix-step {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  background: #f1f5f9;
  border-radius: 12px;
}

.step-num {
  font-weight: 700;
  color: var(--accent-blue);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.solution-card {
  display: flex;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--accent-gray);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 280px;
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2);
}

.sol-image {
  flex: 0 0 35%;
  max-width: 35%;
  position: relative;
  overflow: hidden;
}

.sol-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sol-image--logo {
  background: #ffffff;
}

.sol-image--logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  box-sizing: border-box;
  transition: transform 0.4s ease;
}

.solution-card:hover .sol-image--logo img {
  transform: scale(1.06);
}

.sol-content {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sol-content h3 {
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
}

.sol-content p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Solutions Tile System */
.solution-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.solution-tile {
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(0, 102, 204, 0.08);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.solution-tile:hover {
  transform: translateY(-15px);
  border-color: var(--accent-blue);
  box-shadow: 0 40px 80px rgba(0, 71, 255, 0.12);
}

.tile-image {
  height: 280px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-tile:hover .tile-image img {
  transform: scale(1.1);
}

.tile-content {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  display: block;
}

.solution-tile h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.solution-tile p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Industries */
.center-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-content p {
  margin-left: auto;
  margin-right: auto;
}

.industry-page-hero {
  padding: 0 0 24px;
  background: #ffffff;
}

.industry-page-hero h1 {
  color: var(--text-primary);
  font-size: clamp(2.65rem, 5.4vw, 4.8rem);
  max-width: 950px;
}

.industry-page-hero p {
  max-width: 760px;
}

.industry-showcase {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: #f8f9fc;
}

.industry-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2);
  border-color: var(--accent-blue);
}

.industry-card-img {
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.industry-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.industry-card:hover .industry-card-img img {
  transform: scale(1.06);
}

.industry-card-body {
  padding: 1.4rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.industry-card h3 {
  color: var(--text-primary);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

.industry-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.industry-custom-cta {
  background: var(--bg-secondary);
}



.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

.logo-tile {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--accent-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  min-height: 80px;
}

.logo-tile img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-tile:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(0, 102, 204, 0.2);
}



/* Footer CTA */
.footer-cta {
  background: var(--bg-dark);
  color: white;
  padding: 28px 0 16px;
}


.footer-cta h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-cta p {
  color: #94a3b8;
}

.cta-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.cta-center-content {
  text-align: center;
  margin-bottom: 1rem;
}


.cta-center-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.9rem;
}

.cta-center-content p {
  margin: 0 auto 1.2rem;
  max-width: 700px;
  color: #94a3b8 !important;
}

.cta-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.cta-tile {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.6rem 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-fast);
}

.cta-tile:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 0 40px rgba(0, 102, 204, 0.3);
}


.tile-icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.cta-tile h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.cta-tile p {
  font-size: 0.95rem !important;
  color: #64748b !important;
  line-height: 1.6;
  margin: 0 !important;
  text-align: left;
}



.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-bottom img {
  margin: 0 auto 1.5rem auto;
}

/* Responsive Image Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sol-image,
.industry-image {
  overflow: hidden;
  border-radius: 12px;
}

.sol-image img,
.industry-image img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .sol-image img,
.industry-block:hover img,
.premium-card:hover .card-image img {
  transform: scale(1.08);
}


/* Mobile Responsive - Comprehensive Update */
@media (max-width: 1180px) {}

@media (max-width: 1024px) {

  .hero-layout,
  .split-layout,
  .cta-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .indicator-grid,
  .cta-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cursor-glow {
    display: none;
  }

  /* Freeze navbar — always visible even when zoomed */
  nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    transform: none !important;
    z-index: 9999;
  }

  /* Mobile Menu Styles */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    position: relative;
  }

  .mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
    display: block;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--navbar-h) + 8px);
    right: 0.75rem;
    left: auto;
    width: 30%;
    min-width: 190px;
    height: auto;
    max-height: calc(100vh - var(--navbar-h) - 24px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 0.6rem;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links a,
  .nav-links .nav-dropdown a {
    font-size: 1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    width: 100%;
    display: block;
  }

  .nav-links a:hover {
    background: rgba(0, 102, 204, 0.07);
  }

  .nav-links .btn-outline-nav {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin-top: 0.35rem;
    padding-top: 0.75rem !important;
    border-radius: 0 0 12px 12px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  section {
    padding: 2rem 0;
  }

  .hero-cinematic {
    min-height: 520px;
  }

  .hero-main-title {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .hero-tagline {
    margin: 0 auto 0.85rem;
    font-size: 0.9rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
    gap: 0.6rem;
  }

  .btn-lg {
    padding: 0.76rem 1.65rem;
    font-size: 0.86rem;
    width: 100%;
    justify-content: center;
  }

  .big-hero-logo {
    height: clamp(120px, 18vh, 160px);
  }

  .hero-bottom-content {
    transform: translateY(-20px);
  }

  .indicator-grid,
  .fix-steps,
  .stat-grid,
  .solutions-grid,
  .cta-tile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .solution-card {
    flex-direction: column;
    min-height: auto;
  }

  .sol-image {
    flex: 0 0 auto;
    max-width: 100%;
    height: 220px;
  }

  .sol-content {
    padding: 1.5rem;
  }

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

  .page-hero-compact {
    padding: 0 0 1.5rem;
  }

  .industry-page-hero {
    padding: 0 0 24px;
  }

  .industry-showcase {
    padding: clamp(2rem, 4vw, 3rem) 0;
  }

  .industry-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-logo a {
    width: 35px;
    height: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: 1.8rem;
  }

  .hero-eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .section-white,
  .section-gray {
    padding: 2rem 0;
  }
}

/* =============================================
   PREMIUM CARD TILES (.grid-centered / .premium-card)
   ============================================= */
.grid-centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.premium-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--accent-gray);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.12);
  border-color: rgba(0, 102, 204, 0.35);
}

.premium-card h3 {
  margin-bottom: 0.75rem;
}

.card-icon-container {
  width: 76px;
  height: 76px;
  background: rgba(0, 102, 204, 0.07);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  flex-shrink: 0;
}

.card-icon,
.card-icon-container .icon {
  font-size: 2.4rem;
  line-height: 1;
}

/* =============================================
   PAGE HERO RED (why-systems-fail)
   ============================================= */
.page-hero-red {
  background: linear-gradient(135deg, #8b0000 0%, #FF2800 55%, #7f1d1d 100%);
  padding: 0 0 2.75rem;
}

.page-hero-red h1 {
  color: #ffffff;
}

/* =============================================
   HOME SECTIONS — ALTERNATING SPLIT REDESIGN
   ============================================= */

.home-section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

#what-we-do {
  padding-top: clamp(2.7rem, 4.8vw, 4.8rem);
  padding-bottom: clamp(2.7rem, 4.8vw, 4.8rem);
}

#what-we-do .hs-split {
  grid-template-columns: 3fr 2fr;
}

#solutions {
  padding-top: clamp(2.25rem, 4vw, 4rem);
  padding-bottom: clamp(2.7rem, 4.8vw, 4.8rem);
}

#how-we-fix-it {
  padding: clamp(1.5rem, 2.7vw, 2.7rem) 0;
}

.section-alt-white { background: #ffffff; }
.section-alt-grey  { background: #F7F6F3; }

.hs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.hs-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  max-width: none;
  line-height: 1;
}

/* Section 1 — Oversized stats */
.hs-stat-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  margin: 2rem 0 2.5rem;
}

/* Home page override: make the two-paragraph copy stack vertically (1 column) */
#what-we-do .hs-stat-stack {
  grid-template-columns: 1fr;
  gap: 0;
}

#what-we-do .hs-stat-stack > p {
  margin: 0;
}

/* Home page metrics (horizontal, big, blue, with separators) */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}

.solutions-metrics {
  margin-top: 2.5rem;
}

.metrics-item {
  background: #ffffff;
  border: 1.5px solid #b0b0bc;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.metrics-value {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metrics-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .metrics-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-row > .metrics-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}



.hs-stat-num {
  display: block;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hs-stat-num--text {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
}

.hs-stat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  max-width: none;
}

/* Section 2 — Vertical steps path */
.hs-steps-path {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0.5rem 0;
}

.hs-step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1.8rem;
}

.hs-step:last-child { padding-bottom: 0; }

.hs-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--accent-gray);
}

.hs-step-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.28);
}

.hs-step-content { padding-top: 0.45rem; }

.hs-step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.hs-step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

/* Section 3 — Stacked service list */
.hs-service-list {
  display: flex;
  flex-direction: column;
}

/* Solutions section — 2×2 lift-on-hover cards */
.hs-solutions-heading {
  text-align: left;
  margin-bottom: 2.5rem;
}

.hs-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.hs-service-card {
  display: grid;
  grid-template-columns: 3fr 7fr;
  background: #ffffff;
  border: 1.5px solid #b0b0bc;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  cursor: pointer;
  min-height: 180px;
}

.hs-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.18);
  border-color: var(--accent-blue);
}

.hs-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #ffffff;
}

.hs-card-img img {
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
  mix-blend-mode: multiply;
}

.hs-service-card:hover .hs-card-img img {
  transform: scale(1.08);
}

.hs-card-text {
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.hs-card-text h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.hs-card-text p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .hs-service-grid {
    grid-template-columns: 1fr;
  }
}

.hs-service-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1rem;
  border-bottom: 1px solid var(--accent-gray);
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 6px;
  transition: background 0.2s ease, padding-left 0.25s ease;
}

.hs-service-row:first-child { border-top: 1px solid var(--accent-gray); }

.hs-service-row:hover {
  background: rgba(0, 102, 204, 0.04);
  padding-left: 1.5rem;
}

.hs-service-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--accent-gray);
  padding: 6px;
  background: #fff;
}

.hs-service-info { flex: 1; min-width: 0; }

.hs-service-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.hs-service-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
  max-width: none;
}

.hs-service-arrow {
  color: var(--accent-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  font-weight: 500;
}

.hs-service-row:hover .hs-service-arrow { transform: translateX(4px); }

/* Patterns of Failure full-width sub-section */
.hs-sub {
  background: #ffffff;
  padding: 2.5rem 0;
}

.hs-sub h3 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.6rem;
  color: var(--text-primary);
}

/* Flip card container */
.hs-sub .indicator-card {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hs-sub .indicator-card:hover {
  transform: none;
  box-shadow: none;
}

.hs-sub .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hs-sub .indicator-card:hover .card-inner {
  transform: rotateY(180deg);
}

.hs-sub .card-front,
.hs-sub .card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  border: 1.5px solid #b0b0bc;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Front: 4:6 image left, heading right */
.hs-sub .card-front {
  display: grid;
  grid-template-columns: 4fr 6fr;
  background: #ffffff;
}

.hs-sub .card-front-img {
  height: 100%;
  overflow: hidden;
}

.hs-sub .card-front-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hs-sub .card-front-text {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.hs-sub .card-front-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.hs-sub .card-flip-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Back: description centered */
.hs-sub .card-back {
  transform: rotateY(180deg);
  background: #0d1b2a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hs-sub .card-back p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

@media (max-width: 640px) {
  .hs-sub .indicator-card {
    height: 160px;
  }
}

/* =============================================
   TESTIMONIALS
   ============================================= */

.section-testimonials {
  background: #ffffff;
  padding: clamp(2rem, 3.5vw, 3.5rem) 0;
}

.section-testimonials h2 {
  color: var(--text-primary);
  margin-bottom: 3rem;
}

/* Carousel */
.t-carousel {
  overflow: hidden;
}

.t-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--accent-gray);
}

.t-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent-gray);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
  padding: 0;
}

.t-dot--active {
  background: var(--accent-blue);
  width: 24px;
}

.t-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.t-rating-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.t-stars { display: flex; gap: 2px; }

.t-star {
  color: #ef4444;
  font-size: 0.9rem;
  line-height: 1;
}

.t-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.72;
  flex: 1;
  margin: 0;
  max-width: none;
}

.t-divider {
  height: 1px;
  background: var(--accent-gray);
  margin: 1.5rem 0;
  flex-shrink: 0;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--accent-gray);
}

.t-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t-client-logo {
  height: 26px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  margin-left: auto;
  opacity: 1;
  flex-shrink: 0;
}

.t-author-info h5 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.15rem;
}

.t-author-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
  line-height: 1.3;
}

/* =============================================
   STICKY CTA
   ============================================= */

.sticky-talk {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticky-talk.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-talk a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.sticky-talk a:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 12px 32px rgba(0, 102, 204, 0.45);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE — HOME SECTIONS
   ============================================= */

@media (max-width: 1024px) {
  .hs-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .testimonial-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 768px) {
  .home-section { padding: 3.5rem 0; }

  .hs-stat-stack {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Section 2: show copy first on mobile */
  .hs-split--visual-first {
    display: flex;
    flex-direction: column;
  }

  .hs-split--visual-first .hs-left { order: 2; }
  .hs-split--visual-first .hs-right { order: 1; }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .sticky-talk {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .sticky-talk a {
    font-size: 0.85rem;
    padding: 0.65rem 1.2rem;
  }
}

.page-hero-red p {
  color: rgba(255, 255, 255, 0.83);
}

/* Why Systems Fail — white hero */
.page-hero-white {
  background: #ffffff;
  padding: 3rem 0 2.75rem;
}

.page-hero-white p {
  max-width: 100%;
}

.wsf-fix-btn {
  display: inline-flex;
  width: fit-content;
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.95rem;
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.wsf-fix-btn:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

/* Why Systems Fail — hero title matches home page hero-main-title size */
.wsf-hero-title {
  font-size: clamp(2.45rem, 4.8vw, 4.35rem);
  color: var(--text-primary);
}

/* "FAIL" is red on white background */
.wsf-fail-word {
  color: #FF2800;
}

/* Section headings — shared size (+5px from original) */
.wsf-section-heading {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* GBT callout — bold, full-width, left-aligned */
.wsf-gbt-callout {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 100%;
  width: 100%;
  text-align: left;
  margin-top: 1.75rem;
  line-height: 1.7;
}

/* Card title — used in split cards */
.wsf-acc-title {
  flex: 1;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--text-primary);
}

/* Data quote — Section 4 */
.wsf-data-quote {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--text-primary);
  font-style: italic;
  max-width: 100%;
  margin: 0;
  padding: 2.5rem 3rem;
  background: #ffffff;
  border-left: 5px solid #FF2800;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* Split left-right cards */
.wsf-split-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.wsf-split-card {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.wsf-split-card--reverse {
  flex-direction: row-reverse;
}

.wsf-split-card--wide-text .wsf-split-content {
  flex: 0 0 70%;
  gap: 0;
}

.wsf-split-card--wide-text .wsf-split-image {
  flex: 0 0 30%;
}

.wsf-split-card--wide-text .wsf-split-header {
  margin-bottom: 0;
}

.wsf-split-card--wide-text .wsf-split-content p + p {
  margin-top: 1rem;
}

.wsf-split-card--wide-text .wsf-fix-btn {
  margin-top: 1rem;
}

.wsf-split-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.wsf-split-content p {
  max-width: 100%;
  margin: 0;
}

.wsf-split-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.wsf-split-image {
  flex: 0 0 42%;
  overflow: hidden;
  position: relative;
  min-height: 1px;
}

.wsf-split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .wsf-hero-title {
    font-size: 2.2rem;
  }

  .wsf-split-card,
  .wsf-split-card--reverse {
    flex-direction: column;
  }

  .wsf-split-image {
    flex: none;
    width: 100%;
  }

  .wsf-split-content {
    padding: 1.75rem 1.25rem;
  }

  .wsf-data-quote {
    padding: 1.75rem 1.5rem;
    font-size: 1.05rem;
  }

  .hwfi-panel-logo {
    height: 64px;
    max-width: 130px;
  }
}

/* =============================================
   HOW WE FIX IT — Tech Accordions + Step Flow
   ============================================= */

/* Sticky technology nav pills */
.hwfi-tech-nav-bar {
  background: white;
  border-bottom: 1px solid var(--accent-gray);
  padding: 0.85rem 0;
  position: sticky;
  top: var(--navbar-h);
  z-index: 90;
}

.hwfi-tech-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hwfi-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 40px;
  border: 1.5px solid var(--accent-gray);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  background: transparent;
  transition: var(--transition-fast);
}

.hwfi-tech-pill:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-primary);
  transform: none;
  box-shadow: none;
}

/* Accordion panels */
.hwfi-panel {
  scroll-margin-top: var(--navbar-h, 72px);
  background: white;
  border: 1.5px solid var(--accent-gray);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.hwfi-panel[open] {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
}

/* Per-technology colour tints */
.hwfi-panel--zoho {
  background: rgba(232, 87, 42, 0.04);
  border-color: rgba(232, 87, 42, 0.25);
  border-left: 4px solid #E8572A;
}

.hwfi-panel--mainframe {
  background: rgba(136, 146, 164, 0.04);
  border-color: rgba(136, 146, 164, 0.25);
  border-left: 4px solid #8892A4;
}

.hwfi-panel--sap {
  background: rgba(0, 112, 192, 0.04);
  border-color: rgba(0, 112, 192, 0.25);
  border-left: 4px solid #0070C0;
}

.hwfi-panel--custom {
  background: rgba(245, 166, 35, 0.04);
  border-color: rgba(245, 166, 35, 0.25);
  border-left: 4px solid #F5A623;
}

.hwfi-panel--zoho[open] {
  box-shadow: 0 4px 28px rgba(232, 87, 42, 0.12);
}

.hwfi-panel--mainframe[open] {
  box-shadow: 0 4px 28px rgba(136, 146, 164, 0.12);
}

.hwfi-panel--sap[open] {
  box-shadow: 0 4px 28px rgba(0, 112, 192, 0.12);
}

.hwfi-panel--custom[open] {
  box-shadow: 0 4px 28px rgba(245, 166, 35, 0.12);
}

.hwfi-panel-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.hwfi-panel-header::-webkit-details-marker {
  display: none;
}

.hwfi-panel-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hwfi-dot-blue {
  background: #2563eb;
}

.hwfi-dot-orange {
  background: #ea580c;
}

.hwfi-dot-green {
  background: #22c55e;
}

.hwfi-dot-gray {
  background: #9ca3af;
}

.hwfi-panel-title-block {
  flex: 1;
  min-width: 0;
}

.hwfi-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.hwfi-panel-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
  max-width: none;
  line-height: 1.4;
}

.hwfi-chevron {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  line-height: 1;
  flex-shrink: 0;
}

.hwfi-panel[open] .hwfi-chevron {
  transform: rotate(90deg);
}

.hwfi-panel-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--accent-gray);
}

.hwfi-lead-line {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  max-width: 100%;
  line-height: 1.5;
}

.hwfi-context {
  color: var(--text-secondary);
  margin-top: 0.6rem;
  max-width: 100%;
}

/* Step flow — horizontal boxes with arrows */
.hwfi-steps-flow {
  display: flex;
  align-items: stretch;
  margin: 1.75rem 0 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  gap: 0;
}

.hwfi-step-box {
  flex: 1 1 190px;
  min-width: 180px;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-gray);
  border-radius: 12px;
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hwfi-step-box h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.hwfi-step-box p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

.hwfi-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hwfi-panel-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.hwfi-explore-tablet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hwfi-explore-tablet:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.hwfi-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  font-size: 1.3rem;
  color: var(--accent-blue);
  flex-shrink: 0;
  opacity: 0.5;
}

/* Meta footer bar inside each panel */
.hwfi-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-tertiary);
  border-radius: 10px;
  margin-top: 0.25rem;
}

.hwfi-meta-item {
  font-size: 0.83rem;
  color: var(--text-secondary);
  max-width: none;
}

/* Section 3 — constants flow (white bg, larger numbers) */
.hwfi-constants-flow {
  margin-top: 1.75rem;
}

.hwfi-constant-box {
  background: white;
  border-color: var(--accent-gray);
}

.hwfi-step-num-lg {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.hwfi-arrow-lg {
  font-size: 1.8rem;
  opacity: 0.4;
  padding: 0 0.75rem;
}

/* Mobile */
@media (max-width: 768px) {
  .hwfi-tech-nav-bar {
    position: static;
  }

  .hwfi-panel-header {
    padding: 0.8rem 1rem;
    gap: 0.75rem;
  }

  .hwfi-panel-body {
    padding: 0 1rem 1rem;
  }

  .hwfi-panel-title {
    font-size: 0.98rem;
  }

  .hwfi-steps-flow {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .hwfi-arrow {
    transform: rotate(90deg);
    padding: 0.2rem 0;
    justify-content: flex-start;
    padding-left: 0.75rem;
  }

  .hwfi-step-box {
    min-width: 0;
  }
}

/* "FIX" green word in How We Fix It hero */
.hwfi-fix-word {
  color: #22c55e;
}

/* How We Fix It — illustration sits below hero text, same treatment as wsf-hero-image */
.hwfi-illustration-wrap {
  margin-top: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  line-height: 0;
}

#gbt-canvas {
  display: block;
  width: 100%;
}

/* =============================================
   SITE FOOTER — unified across all pages
   ============================================= */

.site-footer {
  background: #F7F6F3;
  color: var(--text-primary);
  padding: clamp(2.6rem, 4vw, 3.5rem) 0 0;
}

/* Uniform spacing between last pre-footer section and footer across all pages */
section:has(+ footer.site-footer),
div:has(+ footer.site-footer),
section:has(+ [data-shared-footer]),
div:has(+ [data-shared-footer]) {
  padding-bottom: clamp(3.5rem, 6vw, 5rem) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.25fr) repeat(3, minmax(150px, 0.75fr));
  grid-template-areas:
    "brand company approach services"
    "action action action action";
  column-gap: clamp(1.75rem, 3vw, 2.6rem);
  row-gap: 0;
  padding-bottom: clamp(2rem, 3.2vw, 2.8rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  grid-area: brand;
}

.footer-col-company {
  grid-area: company;
}

.footer-col-approach {
  grid-area: approach;
}

.footer-col-services {
  grid-area: services;
}

.footer-logo-wrap {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  display: block;
}

/* Logo images replacing colored dots in panel headers */
.hwfi-panel-logo {
  height: 104px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.wsf-hero-image {
  margin-top: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
}

.wsf-hero-image img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.wsf-page-hero {
  padding-bottom: 0;
}

.wsf-standard-gap {
  padding-top: clamp(2.5rem, 4.5vw, 3.75rem);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 340px;
}

.footer-talk-btn {
  justify-content: flex-start;
}

.footer-email-link {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email-link:hover {
  color: var(--accent-blue);
}

.footer-action-row {
  grid-area: action;
  display: grid;
  grid-template-columns: minmax(340px, 1.25fr) repeat(3, minmax(150px, 0.75fr));
  column-gap: clamp(1.75rem, 3vw, 2.6rem);
  padding-top: 1.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

.footer-action-cta {
  grid-column: 1;
  align-self: center;
  width: fit-content;
}

.footer-action-right {
  grid-column: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-social-link svg {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-social-link img {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.footer-social-side {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-social-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-social-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.footer-social-link svg {
  display: block;
  width: 28px;
  height: 28px;
}

.footer-col h5 {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #0066cc;
}

.privacy-hero {
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.privacy-policy-content {
  max-width: 900px;
}

.privacy-policy-content h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: 0;
  margin: 2rem 0 0.65rem;
}

.privacy-policy-content h2:first-of-type {
  margin-top: 0;
}

.privacy-policy-content p {
  max-width: 100%;
  margin: 0;
}

.privacy-policy-content a {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
}

.privacy-policy-content a:hover {
  text-decoration: underline;
}

.privacy-updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2rem !important;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  border-top: 1px solid var(--accent-gray);
}

.footer-bar p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}

/* ─── FOOTER SOCIAL LINKS ─── */
.footer-social-section {
  grid-column: 2 / 4;
}

.footer-social-heading {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}

.footer-social-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.footer-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-social-item:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

.footer-social-icon svg {
  display: block;
  border-radius: 8px;
}

.footer-social-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .footer-social-section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-social-section {
    grid-column: 1 / -1;
  }
}

/* ─── CONTACT SOCIAL TILE ICON ─── */
.ci-icon--social {
  font-size: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-icon--social svg {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 10px;
}

.ci-icon--social img {
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 10px;
  mix-blend-mode: multiply;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "company approach"
      "services services"
      "action action";
    gap: 2.5rem;
  }

  .footer-brand {
    grid-area: brand;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-action-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-action-right {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "company"
      "approach"
      "services"
      "action";
    gap: 2rem;
  }

  .footer-action-row {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  .footer-action-cta,
  .footer-action-right {
    grid-column: 1;
  }

  .footer-bar {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    padding: 1.25rem 0;
  }
}

/* =============================================
   NAV DROPDOWN — Services mega-menu
   ============================================= */

.nav-dropdown {
  position: relative;
}

.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.nav-dd-trigger:hover,
.nav-dropdown.open .nav-dd-trigger {
  color: var(--accent-blue);
}

.nav-dd-arrow {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.nav-dropdown.open .nav-dd-arrow {
  transform: rotate(90deg);
}

.nav-dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: white;
  border: 1px solid var(--accent-gray);
  border-radius: 14px;
  min-width: 210px;
  padding: 0.45rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}

.nav-dropdown.open .nav-dd-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dd-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dd-menu a:hover,
.nav-dd-menu a.active {
  background: var(--bg-tertiary);
  color: var(--accent-blue);
}

/* Mobile — show dropdown items inline in the stacked nav */
@media (max-width: 768px) {
  .nav-dd-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 1rem;
    border-left: 2px solid var(--accent-gray);
    margin-top: 0.25rem;
    margin-left: 0.85rem;
  }

  .nav-dd-trigger {
    width: 100%;
  }

  .nav-dd-arrow {
    display: none;
  }
}

/* =============================================
   ZOHO SERVICE PAGE
   ============================================= */

.zs-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  max-width: none;
}

.zs-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  max-width: none;
}

.zs-one-split .split-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.zs-one-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-tertiary);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  border: 1px solid var(--accent-gray);
  width: 100%;
}

.zs-one-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 20px;
}

.zs-one-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: 40px;
  padding: 0.4rem 1rem;
}

/* Zoho One — revised layout (image left, text right) */
.zs-one-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2rem;
}

.zs-one-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

.zs-one-logo-compact {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--accent-gray);
  background: var(--bg-tertiary);
  padding: 10px;
}

.zs-one-text-col h2,
.zs-one-heading {
  font-size: clamp(1.4rem, 2.8vw, 2rem) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.zs-one-text-col p {
  max-width: none;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .zs-one-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .zs-one-image-col {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* Marquee */
.zs-marquee-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 2.5rem 0 0.75rem;
  max-width: none;
}

.zoho-marquee-wrapper {
  overflow: hidden;
  background: var(--bg-tertiary);
  border-radius: 14px;
  border: 1px solid var(--accent-gray);
  padding: 1.25rem 0;
  position: relative;
}

.zoho-marquee-wrapper::before,
.zoho-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.zoho-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-tertiary), transparent);
}

.zoho-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-tertiary), transparent);
}

.zoho-marquee-track {
  display: flex;
  gap: 1.25rem;
  animation: zoho-scroll 55s linear infinite;
  width: max-content;
}

.zm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 72px;
}

.zm-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 5px;
  border: 1px solid var(--accent-gray);
}

.zm-item span {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

@keyframes zoho-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-1 * var(--marquee-distance, 50%)));
  }
}

.zs-marquee-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 100%;
  text-align: center;
}

/* Function divider */
.zs-function-divider {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--accent-gray);
  border-bottom: 1px solid var(--accent-gray);
  padding: 2rem 0;
  text-align: center;
}

.zs-divider-headline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  max-width: none;
}

.zs-divider-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
  max-width: none;
}

/* =============================================
   FLIP TILES
   ============================================= */

.zt-slider-shell {
  position: relative;
  margin-top: 2rem;
  padding: 0 3.25rem;
}

.zoho-tiles-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 3);
  grid-template-rows: 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem 1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.zoho-tiles-grid::-webkit-scrollbar {
  display: none;
}

.zt-card {
  aspect-ratio: 1 / 1;
  height: auto;
  perspective: 1200px;
  cursor: pointer;
  border-radius: 18px;
  scroll-snap-align: start;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14), 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: var(--transition-fast);
}

.zt-card:not(.zt-flipped):hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2);
}

.zt-slide-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease, color 0.2s ease;
}

.zt-slide-btn:hover {
  color: var(--accent-blue);
  transform: translateY(-50%) scale(1.35);
}

.zt-slide-btn--prev {
  left: 0;
}

.zt-slide-btn--next {
  right: 0;
}

.zt-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.zt-card.zt-flipped .zt-card-inner {
  transform: rotateY(180deg);
}

.zt-front,
.zt-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Front face */
.zt-front {
  background: white;
  display: flex;
  flex-direction: column;
}

.zt-front-top {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zt-front-img {
  position: relative;
  height: 30%;
  padding: 0;
  overflow: hidden;
}

.zt-front-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.zt-card .zt-front-img {
  height: 50%;
}

.zt-card .zt-front-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.82));
  pointer-events: none;
}

.zt-card .zt-front-body-40 {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0;
  height: 50%;
  padding-block: 0;
  padding-inline: 0.85rem;
}

.zt-card .zt-front-body-40 .zt-front-apps-zm {
  grid-row: 2;
  align-self: center;
}

.zt-card .zt-front-body-40 .zt-flip-hint {
  grid-row: 4;
  align-self: center;
  justify-self: start;
}

.zt-image-copy {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.75rem;
  z-index: 1;
  color: #fff;
}

.zt-image-copy h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.zt-image-copy p {
  font-size: 0.68rem;
  line-height: 1.25;
  margin: 0;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.zt-front-body-40 {
  height: 70%;
  flex: none;
  justify-content: space-between;
  overflow: visible;
}

.zt-front-body-40 h3 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.zt-front-body-40 p {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.zt-front-apps-zm {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
}

.zt-front-apps-zm .zm-item {
  min-width: 50px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.zt-front-apps-zm .zm-item:hover {
  transform: translateY(-6px) scale(1.18);
}

.zt-front-apps-zm .zm-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-tertiary);
  padding: 5px;
  border: 1px solid var(--accent-gray);
  transition: box-shadow 0.25s ease;
}

.zt-front-apps-zm .zm-item:hover img {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.zt-front-apps-zm .zm-item span {
  font-size: 0.54rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.25s ease;
}

.zt-front-apps-zm .zm-item:hover span {
  color: var(--accent-blue);
}

.zt-talk-btn {
  display: inline-block;
  background: var(--accent-blue);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.zt-talk-btn:hover {
  opacity: 0.88;
}

.zt-color-blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.zt-color-green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.zt-color-orange {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

.zt-color-purple {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.zt-front-icon {
  font-size: 3rem;
}

.zt-front-body {
  padding: 0.55rem 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.zt-front-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.zt-card .zt-front-body-40 h3 {
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.05;
}

.zt-front-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 100%;
  line-height: 1.5;
}

.zt-front-apps {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
}

.zt-mini-app {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-gray);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
}

.zt-mini-app img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

.zt-mini-app span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.zt-flip-hint {
  font-size: 0.64rem;
  color: var(--accent-blue);
  font-weight: 600;
  align-self: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  padding: 0.25rem 0.55rem;
  display: inline-block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.zt-flip-hint:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

/* Back face */
.zt-back {
  background: #0f1117;
  transform: rotateY(180deg);
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: white;
}

.zt-back-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 1rem;
  display: inline-block;
  transition: background 0.15s;
}

.zt-back-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.zt-back h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.6rem;
}

.zt-back h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0.85rem 0 0.35rem;
}

.zt-back-intro {
  font-size: 0.83rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 100%;
}

.zt-back h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 1rem 0 0.5rem;
}

.zt-back ul {
  padding-left: 1rem;
  margin: 0;
}

.zt-back ul li {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 0.25rem;
}

.zt-back p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

.zt-product-line {
  color: #cbd5e1 !important;
  margin-bottom: 0.85rem !important;
}

.zt-included-line {
  font-size: 0.8rem !important;
  color: #64748b !important;
  font-style: italic;
}

/* HR sub-tabs */
.zt-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0 0.5rem;
  flex-wrap: wrap;
}

.zt-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.zt-tab.active,
.zt-tab:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.zt-tab-panel {
  display: none;
}

.zt-tab-panel.active {
  display: block;
}

/* App cards on back face */
.zt-app-cards {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zt-app-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
}

.zt-app-card img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 5px;
  background: white;
  padding: 2px;
}

.zt-app-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
}

/* Zoho CTA block */
.zs-cta-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}

.zs-cta-block h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 1rem;
}

.zs-cta-block p {
  max-width: 100%;
  margin-bottom: 1.75rem;
}

@media (max-width: 1024px) {
  .zoho-tiles-grid {
    grid-auto-columns: calc((100% - 1.5rem) / 2);
  }
}

/* Mobile: one card per slide */
@media (max-width: 768px) {
  .zt-slider-shell {
    padding: 0 2.75rem;
  }

  .zoho-tiles-grid {
    grid-auto-columns: 100%;
  }

  .zt-card {
    height: auto;
  }

  .zt-slide-btn {
    width: 36px;
    height: 36px;
    font-size: 1.65rem;
  }
}

/* =============================================
   SECTION SECONDARY
   ============================================= */
.section-secondary {
  background: var(--bg-secondary);
}

/* SAP: Three SAP Capabilities layout (70% content / 30% heading) */
.three-sap-capabilities-layout {
  display: grid;
  grid-template-columns: 3fr 7fr; /* heading | content */
  gap: 4rem;
  align-items: start;
}

.three-sap-capabilities-content {
  max-width: 100%;
}

.three-sap-capabilities-content strong {
  color: var(--text-primary);
  font-weight: 800;
}

.three-sap-capabilities-heading {
  justify-self: start;
  align-self: start;
  text-align: left;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .three-sap-capabilities-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .three-sap-capabilities-heading {
    justify-self: start;
    text-align: left;
  }
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about-hero .wsf-hero-title {
  max-width: 900px;
}

.about-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  margin-top: 2rem;
  max-width: 1120px;
}

.about-hero-copy p,
.about-copy p,
.about-founder-copy p,
.about-cta p {
  max-width: none;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-hero-emphasis {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--accent-gray);
  color: var(--text-primary) !important;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-section {
  padding: clamp(3.2rem, 6vw, 5rem) 0;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-section-heading {
  position: sticky;
  top: calc(var(--navbar-h) + 1.5rem);
}

.about-section-heading .wsf-section-heading,
.about-founder .wsf-section-heading {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.about-copy p + p,
.about-founder-copy p + p {
  margin-top: 1rem;
}

.about-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.about-focus-list span {
  border: 1px solid var(--accent-gray);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
}

.about-values {
  border-top: 1px solid var(--accent-gray);
}

.about-value-row {
  display: grid;
  grid-template-columns: minmax(190px, 32%) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--accent-gray);
}

.about-value-row h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.about-value-row p {
  margin: 0;
  max-width: none;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-founder {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-founder-copy {
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 3px solid var(--accent-blue);
}

.about-founder-line {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.about-cta-section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.about-cta {
  max-width: 820px;
}

.about-cta h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.about-cta p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin-bottom: 1.75rem;
}

@media (max-width: 900px) {
  .about-hero-copy,
  .about-split,
  .about-value-row,
  .about-founder {
    grid-template-columns: 1fr;
  }

  .about-section-heading {
    position: static;
  }

  .about-founder-copy {
    padding-left: 0;
    padding-top: 1.25rem;
    border-left: none;
    border-top: 3px solid var(--accent-blue);
  }
}





/* =============================================
   HERO SUB-LINE TILES (home page only)
   ============================================= */
.hero-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
  justify-content: center;
}

.hero-tile {
  background: rgba(0, 102, 204, 0.05);
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero-tile .ht-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}


/* =============================================
   ABOUT PAGE — VERTICAL FULL-WIDTH TILES
   ============================================= */
.about-tiles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.about-tiles-list .premium-card {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 2.25rem;
}

.about-tiles-list .premium-card .card-icon-container {
  flex-shrink: 0;
  margin-bottom: 0;
}

.about-tiles-list .premium-card .tile-text {
  flex: 1;
}

.about-tiles-list .premium-card .tile-text h3 {
  margin-bottom: 0.4rem;
}

.about-tiles-list .premium-card .tile-text p {
  margin: 0;
  max-width: none;
}

/* =============================================
   CONTACT PAGE — INFO TILES
   ============================================= */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.contact-info-tile {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--accent-gray);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-info-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.25);
}

.contact-info-tile .ci-icon {
  font-size: 1.75rem;
  width: 64px;
  height: 64px;
  background: rgba(0, 102, 204, 0.07);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-info-tile .ci-icon:hover,
.contact-info-tile .ci-icon:focus-visible {
  background: rgba(0, 102, 204, 0.12);
  transform: translateY(-2px);
}

.contact-info-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact-info-tile .ci-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.contact-info-tile .ci-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}

/* =============================================
   CONTACT PAGE — FORM LAYOUT
   ============================================= */
.contact-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1rem;
}

.contact-form-info h2 {
  margin-bottom: 1rem;
}

.contact-form-info>p {
  margin-bottom: 2rem;
}

.expect-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.expect-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.expect-item .expect-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(0, 102, 204, 0.08);
  border-radius: 8px;
  padding: 0.28rem 0.6rem;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.expect-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: none;
}

/* =============================================
   CONTACT PAGE — PREMIUM FORM
   ============================================= */
.premium-form-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--accent-gray);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.premium-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1.35rem 1rem 0.5rem;
  border: 1.5px solid var(--accent-gray);
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.08);
}

.input-group label {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
}

.input-group input:not(:placeholder-shown)+label,
.input-group input:focus+label,
.input-group textarea:not(:placeholder-shown)+label,
.input-group textarea:focus+label {
  top: 0.28rem;
  font-size: 0.68rem;
  color: var(--accent-blue);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.input-group textarea {
  resize: vertical;
  min-height: 130px;
  padding-top: 1.75rem;
  line-height: 1.6;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  margin-top: 0.25rem;
}

@media (max-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .premium-form-container {
    padding: 1.5rem;
  }

  .about-tiles-list .premium-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }

  .about-tiles-list .premium-card .card-icon-container {
    margin-bottom: 0;
  }

  .hero-tiles {
    gap: 0.5rem;
  }

  .hero-tile {
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
  }
}

/* =============================================
   SERVICE-CONSULTING PAGE
   ============================================= */

/* Hero credential strip — inline with pipe separators */
.sc-cred-inline {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  max-width: none;
}

.sc-cred-pipe {
  color: var(--accent-silver);
  margin: 0 0.45rem;
  font-weight: 300;
}

/* Section 2 — Problem Framing */
.sc-problem-text {
  max-width: 860px;
  margin-top: 1.5rem;
}

/* Section 3 — Who This Is For */
.sc-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.sc-who-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--accent-gray);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sc-who-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.25);
}

.sc-who-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 1.1rem;
}

.sc-who-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: none;
  margin: 0;
}

/* Section 4 — Service Tiles (expandable, full-width) */
.sc-service-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--accent-gray);
}

.sc-service-tile {
  border-bottom: 1px solid var(--accent-gray);
  background: #ffffff;
  transition: background 0.25s ease;
}

.sc-service-tile[open] {
  background: #ffffff;
}

.sc-service-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 2rem 0;
}

.sc-service-summary::-webkit-details-marker {
  display: none;
}

.sc-service-summary-inner {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  gap: 1.5rem;
  align-items: center;
}

.sc-service-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 0.2rem;
}

.sc-service-title-block h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.sc-service-tile:hover .sc-service-title-block h3,
.sc-service-tile[open] .sc-service-title-block h3 {
  color: var(--accent-blue);
}

.sc-service-teaser {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
  line-height: 1.5;
}

.sc-service-chevron {
  font-size: 1.6rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  text-align: center;
}

.sc-service-tile[open] .sc-service-chevron {
  transform: rotate(90deg);
  color: var(--accent-blue);
}

.sc-service-body {
  padding-bottom: 2.5rem;
}

.sc-service-body-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-left: calc(56px + 1.5rem);
}

.sc-service-desc p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: none;
}

.sc-service-desc p:last-child {
  margin-bottom: 0;
}

.sc-who-for {
  color: var(--text-primary) !important;
  font-size: 0.9rem !important;
  padding: 0.9rem 1rem;
  background: rgba(0, 102, 204, 0.04);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 8px 8px 0;
  margin-top: 1.25rem !important;
}

.sc-service-deliverables h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sc-service-deliverables ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sc-service-deliverables ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 1.4rem;
  position: relative;
}

.sc-service-deliverables ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.85rem;
}

/* Section 5 — Engagement Tiles (horizontal, 3 columns) */
.sc-engage-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.sc-engage-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--accent-gray);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sc-engage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.25);
}

.sc-engage-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.sc-engage-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.sc-engage-duration {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(0, 102, 204, 0.07);
  border: 1px solid rgba(0, 102, 204, 0.15);
  border-radius: 40px;
  padding: 0.22rem 0.8rem;
  max-width: none;
  display: inline-block;
  width: fit-content;
}

.sc-engage-card p {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

.sc-engage-note {
  font-weight: 600;
  color: var(--accent-blue) !important;
  font-size: 0.88rem !important;
}

/* Section 6 — Why GBT */
.sc-why-body {
  margin-top: 1.5rem;
}

.sc-why-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.sc-why-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
  max-width: none;
}

.sc-case-study {
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-gray);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
}

.sc-case-study::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.75rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-blue);
  opacity: 0.15;
  font-family: Georgia, serif;
}

.sc-case-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  max-width: none;
}

.sc-case-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 400;
  max-width: none;
  margin: 0;
}

/* Section 7 — CTA */
.sc-cta-sub {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  margin-top: 1.25rem !important;
  max-width: 600px;
  text-align: center;
}

.sc-cta-sub a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.sc-cta-sub a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .sc-why-text {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .sc-service-body-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sc-engage-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sc-who-grid {
    grid-template-columns: 1fr;
  }

  .sc-service-summary-inner {
    grid-template-columns: 40px 1fr 32px;
    gap: 1rem;
  }

  .sc-service-body-inner {
    padding-left: 0;
  }
}

/* =============================================
   SERVICE-MAINFRAME PAGE
   ============================================= */

.mf-hero-subline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  max-width: none;
}

/* Path selector */
.mf-selector-label {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: none;
}

.mf-path-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mf-path-btn {
  padding: 0.75rem 2.25rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--accent-gray);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  font-family: var(--font-main);
  letter-spacing: 0.01em;
}

.mf-path-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(0, 102, 204, 0.04);
}

.mf-path-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.mf-path-divider {
  height: 1px;
  background: var(--accent-gray);
  margin: 2rem 0;
}

/* Path panels */
.mf-path-panel {
  display: none;
}

.mf-path-panel.active {
  display: block;
  animation: mf-fade-in 0.35s ease;
}

.mf-path-panel-bg {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 18px;
  background: #071421;
  isolation: isolate;
}

.mf-path-panel-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--mf-panel-image);
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  z-index: -2;
}

.mf-path-panel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 45%, rgba(7, 20, 33, 0.96) 100%),
    linear-gradient(90deg, rgba(3, 10, 20, 0.68) 0%, rgba(6, 20, 36, 0.48) 52%, rgba(6, 20, 36, 0.28) 100%);
  z-index: -1;
}

.mf-path-panel-support {
  --mf-panel-image: url("../assets/Mainframe_App_Support.png");
}

.mf-path-panel-modernization {
  --mf-panel-image: url("../assets/Mainframe_modernization.png");
}

.mf-path-panel-migration {
  --mf-panel-image: url("../assets/Mainframe_migration.png");
}

.mf-path-panel-bg .mf-path-eyebrow,
.mf-path-panel-bg .black {
  color: #bfdbfe;
}

.mf-path-panel-bg .mf-path-headline {
  color: #ffffff;
}

.mf-path-panel-bg .mf-path-body {
  color: rgba(255, 255, 255, 0.86);
}

.mf-path-panel-bg .mf-path-body strong {
  color: #ffffff;
}

.mf-path-panel-bg .mf-layers,
.mf-path-panel-bg .mf-tech-bar,
.mf-path-panel-bg .mf-case-study {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Layer dividers inside glass panel */
.mf-path-panel-bg .mf-layer {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Layer summary hover/open states */
.mf-path-panel-bg .mf-layer-summary:hover,
.mf-path-panel-bg .mf-layer[open] > .mf-layer-summary {
  background: rgba(255, 255, 255, 0.07);
}

/* Layer title text */
.mf-path-panel-bg .mf-layer-title {
  color: rgba(255, 255, 255, 0.92);
}

/* Chevron on glass */
.mf-path-panel-bg .mf-layer-chevron {
  color: rgba(255, 255, 255, 0.55);
}

/* Body border and list text */
.mf-path-panel-bg .mf-layer-body {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.mf-path-panel-bg .mf-layer-body ul li {
  color: rgba(255, 255, 255, 0.78);
}

.mf-path-panel-bg .mf-layer-body ul li::before {
  color: #93c5fd;
}

/* Tech bar label and tags */
.mf-path-panel-bg .mf-tech-label {
  color: rgba(255, 255, 255, 0.5);
}

.mf-path-panel-bg .mf-tech-tags span {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Case study text on glass */
.mf-path-panel-bg .mf-case-study {
  color: rgba(255, 255, 255, 0.85);
}
.mf-path-panel-bg .mf-case-study p,
.mf-path-panel-bg .mf-case-study h4,
.mf-path-panel-bg .mf-case-study strong {
  color: rgba(255, 255, 255, 0.88);
}
.mf-path-panel-bg .mf-case-study .sc-case-label {
  color: #93c5fd;
}
.mf-path-panel-bg .mf-case-study::before {
  color: #93c5fd;
  opacity: 0.3;
}

@keyframes mf-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mf-path-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  max-width: none;
}

.mf-path-headline {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  max-width: 900px;
  color: var(--text-primary);
}

.mf-path-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 860px;
  margin-bottom: 1rem;
}

/* Layers — numbered accordion list */
.mf-layers {
  margin-top: 2.5rem;
  border: 1px solid var(--accent-gray);
  border-radius: 14px;
  overflow: hidden;
}

.mf-layer {
  border-bottom: 1px solid var(--accent-gray);
}

.mf-layer:last-child {
  border-bottom: none;
}

.mf-layer-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}

.mf-layer-summary::-webkit-details-marker {
  display: none;
}

.mf-layer-summary:hover {
  background: var(--bg-secondary);
}

.mf-layer[open]>.mf-layer-summary {
  background: var(--bg-secondary);
}

/* Coloured number badge */
.mf-layer-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.mf-layer-1 .mf-layer-num {
  background: #93c5fd;
}

.mf-layer-2 .mf-layer-num {
  background: #60a5fa;
}

.mf-layer-3 .mf-layer-num {
  background: #3b82f6;
}

.mf-layer-4 .mf-layer-num {
  background: #2563eb;
}

.mf-layer-5 .mf-layer-num {
  background: #1e3a8a;
}

.mf-layer-title {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.mf-layer-chevron {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.22s ease;
  flex-shrink: 0;
  line-height: 1;
}

.mf-layer[open] .mf-layer-chevron {
  transform: rotate(45deg);
}

/* Expanded body */
.mf-layer-body {
  padding: 0.75rem 1.25rem 1.1rem 3.75rem;
  border-top: 1px solid var(--accent-gray);
}

.mf-layer-body ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mf-layer-body ul li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
}

.mf-layer-body ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 600;
}

/* Tech bar */
.mf-tech-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gray);
  border-radius: 12px;
  flex-wrap: wrap;
}

.mf-tech-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  max-width: none;
}

.mf-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mf-tech-tags span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: white;
  border: 1px solid var(--accent-gray);
  border-radius: 6px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

/* Case study (migration path) */
.mf-case-study {
  margin-top: 2rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-gray);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  position: relative;
  max-width: 100%;
}

.mf-case-study::before {
  content: '"';
  position: absolute;
  top: 0.75rem;
  left: 1.75rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-blue);
  opacity: 0.12;
  font-family: Georgia, serif;
}

/* Stats bar */
.mf-stats-bar {
  display: flex;
  align-items: stretch;
  margin-top: 2.5rem;
  background: white;
  border: 1px solid var(--accent-gray);
  border-radius: 16px;
  overflow: hidden;
}

.mf-stat {
  flex: 1;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.mf-stat-divider {
  width: 1px;
  background: var(--accent-gray);
  flex-shrink: 0;
  align-self: stretch;
}

.mf-stat-value {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: -0.03em;
  line-height: 1;
}

.mf-stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 140px;
}

/* Differentiator blocks */
.mf-differentiators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.mf-diff-block {
  background: white;
  border: 1px solid var(--accent-gray);
  border-radius: 16px;
  padding: 2rem 2.25rem;
}

.mf-diff-block h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.mf-diff-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

/* =============================================
   SAP SERVICE PAGE
   ============================================= */

/* Hero badges */
.sap-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.sap-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--accent-gray);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  transition: var(--transition-fast);
  cursor: default;
}

.sap-badge:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Hub — card row */
.sap-hub-cards {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.sap-hub-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 2rem;
}

.sap-hub-connector::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--accent-gray);
}

.sap-hub-card {
  flex: 1;
  background: white;
  border-radius: 32px;
  border: 1px solid var(--accent-gray);
  box-shadow: var(--shadow-premium);
  padding: 2.5rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.sap-hub-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2);
}

.sap-hub-center {
  flex: 1.4;
  border: 1.5px solid var(--accent-blue);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.12);
}

.sap-hub-center:hover {
  box-shadow: 0 28px 60px rgba(0, 102, 204, 0.22);
}

.sap-card-active {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2) !important;
  transform: translateY(-4px);
}

/* Card internals */
.sap-label-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(0, 102, 204, 0.06);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sap-hub-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.sap-hub-card>p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.sap-expand-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.sap-expand-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.sap-expand-link.active .sap-expand-arrow {
  transform: rotate(90deg);
}

/* Expanded panel */
.sap-hub-panel {
  display: none;
  width: 100%;
  margin-top: 1.5rem;
  border-top: 1px solid var(--accent-gray);
  padding-top: 2rem;
}

.sap-hub-panel.active {
  display: block;
  animation: sapFadeDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sapFadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sap-panel-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.sap-panel-col {
  flex: 1;
  min-width: 190px;
}

.sap-panel-section-label {
  font-size: clamp(1.35rem, 2vw, 1.7rem) !important;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

.sap-panel-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sap-panel-list li {
  padding: 0.4rem 0 0.4rem 1.2rem;
  position: relative;
  font-size: 1.05rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.75 !important;
  margin-bottom: 0.25rem;
}

.sap-panel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.sap-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent-gray);
  width: 100%;
}

.sap-tech-tags span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
}

/* Section label (above h2) */
.sap-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

/* Three-node diagram */
.sap-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.sap-node {
  background: white;
  border: 1px solid var(--accent-gray);
  border-radius: 16px;
  padding: 1rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sap-node-center {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08);
}

.sap-node-connector {
  width: 3rem;
  height: 1px;
  background: linear-gradient(to right, var(--accent-gray), var(--accent-blue), var(--accent-gray));
  flex-shrink: 0;
}

/* Client outcome quote card */
.sap-quote-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.sap-quote-card {
  background: white;
  border: 1px solid var(--accent-gray);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: var(--shadow-premium);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.sap-quote-mark {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-blue);
  text-align: center;
}

.sap-quote-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.sap-quote-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Why GBT cards */
.sap-why-card {
  transition: var(--transition-fast);
}

.sap-why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.sap-why-icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.sap-why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.sap-why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* CTA block */
.sap-cta-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.sap-cta-wrap h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.sap-cta-wrap>p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.sap-cta-subnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* SAP responsive */
@media (max-width: 1024px) {
  .sap-hub-cards {
    flex-direction: column;
    gap: 1.25rem;
  }

  .sap-hub-connector {
    display: none;
  }

  .sap-hub-center {
    flex: 1;
  }

  .sap-quote-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sap-quote-mark {
    font-size: 3rem;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .sap-nodes {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sap-node-connector {
    width: 1px;
    height: 2rem;
    background: linear-gradient(to bottom, var(--accent-gray), var(--accent-blue), var(--accent-gray));
  }

  .sap-panel-col {
    min-width: 100%;
  }

  .sap-quote-card {
    padding: 2rem;
  }

  .sap-hub-card {
    border-radius: 20px;
    padding: 1.75rem;
  }
}

/* SAP page refinements */
.sap-products-section {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(3rem, 5vw, 4rem);
}

.sap-hub-cards-equal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sap-product-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
  isolation: isolate;
  background: #111827;
  cursor: default;
}

.sap-product-card:hover {
  transform: translateY(-4px);
}

.sap-product-img,
.sap-product-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sap-product-img {
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
  transform: scale(1.02);
}

.sap-product-shade {
  background: linear-gradient(180deg, rgba(4, 12, 24, 0.22) 0%, rgba(5, 17, 32, 0.72) 56%, rgba(5, 17, 32, 0.92) 100%);
  z-index: 1;
}

.sap-product-content {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
}

.sap-product-content .sap-label-tag {
  width: fit-content;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sap-product-content h3,
.sap-product-content p {
  color: #ffffff;
}

.sap-product-content p {
  margin-bottom: 0;
  opacity: 0.88;
}

.sap-static-scope {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--accent-gray);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-premium);
}

.sap-static-scope-head {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.75rem;
}

.sap-static-scope-head .sap-section-label {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}

.sap-static-scope-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  margin: 0;
}

.sap-stat-section {
  padding: clamp(1.6rem, 3vw, 2.35rem) 0;
  border-top: 1px solid var(--accent-gray);
  border-bottom: 1px solid var(--accent-gray);
}

.sap-stat-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.sap-stat-card {
  background: #ffffff;
  border: 1px solid var(--accent-gray);
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  text-align: center;
  box-shadow: var(--shadow-premium);
}

.sap-stat-number {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.sap-stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.sap-pillars-section {
  padding: clamp(3rem, 4.8vw, 4.2rem) 0;
}

.sap-pillars-title {
  max-width: 720px;
  margin: 0;
  text-align: left;
}

.sap-pillars-subtitle {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0.45rem 0 2.4rem;
}

.sap-pillar-grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 48px;
  align-items: start;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--accent-gray);
  margin-bottom: 2.4rem;
}

.sap-pillar-grid:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sap-pillar-left {
  position: sticky;
  top: calc(var(--navbar-h) + 1.2rem);
}

.sap-pillar-left-inner {
  position: relative;
  padding-top: 1.2rem;
}

.sap-pillar-number {
  position: absolute;
  top: -1rem;
  left: -0.8rem;
  font-size: 5.6rem;
  font-weight: 800;
  color: var(--accent-gray);
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
  z-index: 0;
  pointer-events: none;
}

.sap-pillar-content {
  position: relative;
  z-index: 1;
}

.sap-pillar-heading {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.sap-pillar-right {
  display: grid;
  gap: 0.75rem;
}

.sap-pillar-right > .sap-panel-col {
  min-width: 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--accent-gray);
  border-radius: 10px;
  background: var(--bg-tertiary);
}

.sap-pillar-right .sap-panel-section-label {
  color: var(--text-primary);
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--accent-silver);
}

.sap-pillar-right .sap-panel-list li {
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

.sap-pillar-right .sap-tech-tags {
  margin-top: 0.35rem !important;
}

.sap-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sap-bento-wide-left {
  grid-column: 1 / 3;
}

.sap-bento-wide-right {
  grid-column: 2 / 4;
}

.sap-why-section {
  padding: clamp(2rem, 3vw, 2.75rem) 0 clamp(4rem, 6vw, 5.5rem);
}

.sap-why-card {
  background: white;
  border: 1px solid var(--accent-gray);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-fast);
}

.sap-why-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.sap-why-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.sap-cta-section {
  padding: 0 0 clamp(1.7rem, 2.9vw, 2.45rem) !important;
}

.sap-cta-subnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

@media (max-width: 900px) {
  .sap-hub-cards-equal,
  .sap-stat-cards,
  .sap-bento-grid,
  .sap-static-scope-head,
  .sap-pillar-grid {
    grid-template-columns: 1fr;
  }

  .sap-bento-wide-left,
  .sap-bento-wide-right {
    grid-column: 1;
  }

  .sap-pillar-left {
    position: static;
  }

  .sap-pillar-number {
    font-size: 4rem;
    top: -0.5rem;
  }
}

/* Engagement cards */
.mf-eng-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--accent-gray);
  border-radius: 16px;
  overflow: hidden;
}

.mf-eng-card {
  border-right: 1px solid var(--accent-gray);
}

.mf-eng-card:last-child {
  border-right: none;
}

.mf-eng-card[open] {
  background: var(--bg-secondary);
}

.mf-eng-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.mf-eng-card-header::-webkit-details-marker {
  display: none;
}

.mf-eng-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.mf-eng-card-best {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.mf-eng-card-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-top: 0.25rem;
}

.mf-eng-card-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.mf-eng-card[open] .mf-eng-card-arrow {
  transform: rotate(180deg);
}

.mf-eng-card-body {
  padding: 0 1.25rem 1.5rem;
  border-top: 1px solid var(--accent-gray);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
}

.mf-eng-card-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mf-eng-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mf-eng-card-value {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1100px) {
  .mf-layer-body {
    padding-left: 1.25rem;
  }
}

@media (max-width: 1024px) {
  .mf-stats-bar {
    flex-wrap: wrap;
    border-radius: 12px;
  }

  .mf-stat {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--accent-gray);
  }

  .mf-stat-divider {
    display: none;
  }

  .mf-differentiators {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mf-layer-body {
    padding-left: 1rem;
  }

  .mf-stat {
    flex: 1 1 100%;
  }

  .mf-eng-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .mf-eng-card:nth-child(2) {
    border-right: none;
  }

  .mf-eng-card:nth-child(1),
  .mf-eng-card:nth-child(2) {
    border-bottom: 1px solid var(--accent-gray);
  }

  .mf-case-study {
    padding: 1.5rem;
  }
}

/* =============================================
   CUSTOM DEV PAGE
   ============================================= */

/* — Match-Wise Pro card — */
.mwp-card {
  border: 1.5px solid var(--accent-blue);
  border-radius: 32px;
  overflow: hidden;
  margin: 2.5rem 0 0;
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.1);
}

.mwp-label-bar {
  background: var(--accent-blue);
  padding: 0.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mwp-label-product {
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mwp-label-status {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 0.2rem 0.8rem;
  font-size: 0.7rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.mwp-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3rem;
  align-items: start;
}

/* Left col */
.mwp-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.mwp-sublabel {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.mwp-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.mwp-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 16px;
}

.mwp-stat {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mwp-stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.mwp-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

.mwp-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Right col */
.mwp-features-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

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

.mwp-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--accent-gray);
}

.mwp-feature-item:last-child {
  border-bottom: none;
}

.mwp-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.5rem;
  color: var(--accent-blue);
  margin-top: 1px;
}

.mwp-feature-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.mwp-feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.mwp-context-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  font-style: italic;
}

/* — What We Build header — */
.wb-header {
  margin-bottom: 2rem;
}
.wb-header .wsf-section-heading { margin: 0 0 0.75rem; }
.wb-sub {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 640px;
  margin: 0;
}

/* — Greeting-card flip grid — */
.gc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.gc-card {
  perspective: 1400px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.gc-card:not(.gc-open):hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.gc-front {
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: opacity 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}
.gc-card.gc-open .gc-front {
  opacity: 0.5;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.gc-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.gc-heading {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}
.gc-cue {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-blue);
  opacity: 0.5;
  margin-top: 0.25rem;
  transition: opacity 0.2s;
}
.gc-card:hover .gc-cue { opacity: 1; }
.gc-card.gc-open .gc-cue { display: none; }

/* Page flip — inside panel hidden by default */
.gc-inside {
  display: none;
  padding: 1.25rem 1.5rem 1.5rem;
  transform-origin: top center;
}

/* Open: snap layout into place, animate the page flip */
.gc-card.gc-open .gc-inside {
  display: block;
  animation: gcFlipOpen 450ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Closing: keep visible while animating out */
.gc-card.gc-closing .gc-inside {
  display: block;
  animation: gcFlipClose 320ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes gcFlipOpen {
  from { transform: rotateX(-90deg); opacity: 0; }
  to   { transform: rotateX(0deg);   opacity: 1; }
}
@keyframes gcFlipClose {
  from { transform: rotateX(0deg);   opacity: 1; }
  to   { transform: rotateX(-90deg); opacity: 0; }
}

.gc-inside p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.gc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.gc-tags span {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .gc-grid { grid-template-columns: 1fr; }
}

/* — How We Engage Timeline Cards — */
.hwe-section {
  background: #fff;
  padding: clamp(2.8rem, 5.6vw, 4.9rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.hwe-cards {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.hwe-card {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-right: none;
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  transition: background 0.3s ease, flex 0.45s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.hwe-card:first-child { border-radius: 14px 0 0 14px; }
.hwe-card:last-child  { border-radius: 0 14px 14px 0; border-right: 1px solid #e2e8f0; }

.hwe-card:not(.hwe-card--active):hover {
  background: #f8fafc;
}

.hwe-card--active {
  flex: 2.2;
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}
.hwe-card--active + .hwe-card {
  border-left-color: var(--accent-blue);
}

.hwe-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0;
}

.hwe-card-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  transition: color 0.3s;
}
.hwe-card--active .hwe-card-num {
  color: rgba(255,255,255,0.6);
}

.hwe-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s;
}
.hwe-card--active .hwe-card-title {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: #fff;
  font-weight: 700;
}

.hwe-card-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin: 1rem 0 0;
  display: none;
  opacity: 1;
}
.hwe-card--active .hwe-card-desc {
  display: block;
}
.hwe-card-desc.hwe-desc-animate {
  animation: hweFadeIn 350ms cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes hweFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Inactive cards — vertically centre the top content */
.hwe-card:not(.hwe-card--active) {
  justify-content: center;
}

@media (max-width: 768px) {
  .hwe-cards { flex-direction: column; }
  .hwe-card { border-right: 1px solid #e2e8f0; border-bottom: none; border-radius: 0; min-height: auto; }
  .hwe-card:first-child { border-radius: 14px 14px 0 0; }
  .hwe-card:last-child  { border-radius: 0 0 14px 14px; border-bottom: 1px solid #e2e8f0; }
  .hwe-card--active { flex: none; }
}

/* — Industry tiles — */
.cd-tile {
  background: white;
  border-radius: 32px;
  border: 1px solid var(--accent-gray);
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.cd-tile:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2);
}

.cd-tile-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  background: rgba(0, 102, 204, 0.06);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.2rem;
  align-self: flex-start;
}

.cd-tile h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.cd-tile p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* — Process steps — */
.cd-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.cd-step {
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--accent-gray);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.cd-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--accent-gray);
  z-index: 1;
}

.cd-step-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: -0.04em;
  opacity: 0.4;
  line-height: 1;
}

.cd-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cd-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* — Tech strip marquee — */
.cd-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.cd-tech-strip {
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid var(--accent-gray);
  border-bottom: 1px solid var(--accent-gray);
  position: relative;
}

.cd-tech-strip::before,
.cd-tech-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.cd-tech-strip::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.cd-tech-strip::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.cd-tech-track {
  display: flex;
  gap: 1rem;
  animation: zoho-scroll 30s linear infinite;
  width: max-content;
  align-items: center;
}

.cd-tech-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent-gray);
  border-radius: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  background: white;
}

/* — CTA — */
.cd-cta-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cd-cta-wrap>p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.cd-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cd-cta-subnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* — Responsive — */
@media (max-width: 1100px) {
  .cd-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .cd-step:nth-child(3)::after,
  .cd-step:nth-child(5)::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  .mwp-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }

  .mwp-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .mwp-stat {
    flex: 1 1 40%;
  }
}

@media (max-width: 768px) {
  .cd-steps {
    grid-template-columns: 1fr;
  }

  .cd-step::after {
    display: none;
  }

  .mwp-label-bar {
    padding: 0.5rem 1.25rem;
  }

  .mwp-body {
    padding: 1.5rem;
  }

  .cd-tile {
    border-radius: 20px;
    padding: 1.75rem;
  }
}

/* =============================================
   PRODUCTS SHOWCASE
   ============================================= */
.ps-outer {
  background: #ffffff;
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2.25rem, 4vw, 3.5rem);
}

.ps-outer + .section-white {
  padding-top: clamp(2.8rem, 5.6vw, 4.9rem) !important;
}

.ps-header {
  max-width: 860px;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.ps-header .wsf-section-heading {
  margin-bottom: 0;
}

.ps-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.ps-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.ps-product-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  grid-template-areas: "body media";
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--accent-gray);
  border-radius: 18px;
  box-shadow: var(--shadow-premium);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ps-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 204, 0.28);
  box-shadow: 0 20px 48px rgba(0, 102, 204, 0.12);
}

.ps-card-media {
  grid-area: media;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  background: #fff;
}

.ps-card-media--contain {
  background: #f7f8fb;
}

.ps-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ps-card-body {
  display: flex;
  grid-area: body;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.ps-card-body h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  margin-bottom: 0.75rem;
}

.ps-card-body p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  max-width: 100%;
}

.ps-tech-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--accent-blue);
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  margin-top: auto;
}

.ps-tech-btn:hover {
  background: var(--accent-blue);
  color: #fff;
  transform: translateY(-1px);
}

/* Key Features Modal */
.ts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ts-overlay.open { opacity: 1; pointer-events: all; }

.ts-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  z-index: 9001;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  width: min(480px, 90vw);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ts-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.ts-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ts-close:hover { background: #e2e8f0; color: #1e293b; }

.ts-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

.ts-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.ts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 1.4rem;
}
.ts-tags span {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.ts-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ts-features li {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.ts-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .ps-outer {
    padding: 2.6rem 0;
  }

  .ps-product-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body";
  }

  .ps-product-card {
    border-radius: 14px;
  }

  .ps-card-media {
    min-height: 190px;
    aspect-ratio: 16 / 11;
  }

  .ps-card-body {
    justify-content: flex-start;
  }
}

/* ==============================================
   PROJECT ONE — Image Slider
   ============================================= */
.p1-slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.p1-slider {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.p1-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p1-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.p1-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s, background 0.2s;
  z-index: 2;
}
.p1-arrow:hover { transform: translateY(-50%) scale(1.15); background: #fff; }
.p1-arrow--prev { left: 14px; }
.p1-arrow--next { right: 14px; }
.p1-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.p1-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.p1-dot--active { background: #fff; transform: scale(1.3); }

/* ==============================================
   MOBILE STABILITY PATCH
   Keeps all pages at the device width and prevents desktop layouts from
   forcing browser zoom-out on phones.
   ============================================== */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

@media (max-width: 1024px) {
  nav {
    width: 100% !important;
    max-width: 100%;
  }

  .nav-content {
    position: relative;
    height: 100%;
    justify-content: flex-end;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
  }

  .nav-logo.logo-hidden {
    transform: translate(-50%, -50%) scale(0.82);
  }

  .nav-links {
    width: min(320px, calc(100vw - 2rem));
    min-width: 0;
    right: 1rem;
  }

  .nav-dropdown,
  .nav-dd-trigger,
  .nav-dd-menu {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-h: 72px;
  }

  body {
    width: 100%;
    min-width: 0;
  }

  .container {
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav-logo a {
    width: 42px;
    height: 42px;
  }

  .mobile-menu-toggle {
    margin-left: auto;
  }

  .nav-links {
    top: calc(var(--navbar-h) + 0.75rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: calc(100dvh - var(--navbar-h) - 1.5rem);
    border-radius: 16px;
  }

  h1,
  h2,
  .wsf-hero-title,
  .wsf-section-heading {
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  h1,
  .wsf-hero-title {
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 1.08;
  }

  h2,
  .wsf-section-heading {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
    line-height: 1.12;
  }

  p {
    font-size: 1rem;
    line-height: 1.7;
  }

  [style*="white-space:nowrap"] {
    white-space: normal !important;
  }

  .hero-interrupt {
    width: 100%;
    min-height: 100dvh;
    padding: 1.25rem;
  }

  .hero-interrupt-logo {
    width: clamp(132px, 42vw, 184px);
    margin: auto;
  }

  .home-hero,
  .home-main-hero,
  .home-hero-content {
    min-height: auto;
  }

  .home-main-hero {
    overflow: hidden;
  }

  .home-hero-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .home-hero-badge {
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    letter-spacing: 0.08em;
    line-height: 1.45;
  }

  .home-hero-line {
    max-width: 100%;
    letter-spacing: -0.03em;
  }

  .home-hero-line-muted {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .home-hero-line-strong {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .home-hero-subline {
    max-width: 100%;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
  }

  .home-hero-ctas {
    width: min(100%, 290px);
  }

  .home-hero-ctas .btn-primary,
  .home-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stat-strip,
  .hero-stat {
    width: 100%;
    min-width: 0;
  }

  .home-main-hero .marquee-container {
    width: 100%;
    max-width: 100%;
  }

  #what-we-do .hs-split,
  .hs-split,
  .split-layout,
  .cta-content,
  .zs-one-layout,
  .three-sap-capabilities-layout,
  .premium-form-container,
  .contact-content,
  .mf-differentiators,
  .sap-quote-card,
  .cd-steps {
    grid-template-columns: 1fr !important;
  }

  .comparison-container {
    flex-direction: column;
  }

  .comparison-card {
    min-height: auto;
    padding: 1.15rem;
  }

  .flow-visual,
  .messy-visual {
    transform: scale(0.92);
    transform-origin: center;
  }

  .indicator-grid,
  .solutions-grid,
  .logo-grid,
  .grid-centered,
  .mf-eng-cards,
  .zt-app-cards,
  .industry-card-grid {
    grid-template-columns: 1fr !important;
  }

  .hs-sub {
    margin-top: 2.5rem;
  }

  .hs-sub .indicator-card {
    height: auto;
    min-height: 220px;
  }

  .hs-sub .card-front {
    grid-template-columns: 1fr;
  }

  .hs-sub .card-front-img {
    height: 110px;
  }

  .hs-sub .card-front-text {
    padding: 1.15rem;
  }

  .mf-path-btns {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mf-path-btn {
    width: 100%;
  }

  .mf-tech-bar,
  .sap-panel-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .mf-tech-label,
  .mf-tech-tags span,
  .sap-tech-tags span {
    white-space: normal;
  }

  .mf-eng-cards {
    border-radius: 12px;
  }

  .mf-eng-card {
    border-right: none;
    border-bottom: 1px solid var(--accent-gray);
  }

  .mf-eng-card:last-child {
    border-bottom: none;
  }

  .sap-hub-card,
  .cd-tile,
  .premium-card,
  .gc-card {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "company"
      "approach"
      "services"
      "action";
    gap: 1.75rem;
  }

  .footer-brand {
    grid-area: brand;
  }

  .footer-action-row {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  .footer-action-cta,
  .footer-action-right {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-hero-badge {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.65rem;
  }

  .home-hero-line-strong {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .hero-stat-value {
    font-size: 2rem;
  }
}


/* ── Thank-you overlay (contact page) ── */
.ty-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.ty-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}
.ty-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
    padding: 48px 56px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ty-overlay.is-visible .ty-card {
    transform: translateY(0);
}
.ty-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
}
.ty-check svg {
    width: 100%;
    height: 100%;
}
.ty-checkmark {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    transition: stroke-dashoffset 0.5s ease 0.3s;
}
.ty-overlay.is-visible .ty-checkmark {
    stroke-dashoffset: 0;
}
.ty-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 12px;
}
.ty-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 28px;
}
.ty-progress {
    height: 3px;
    background: #e8e8e8;
    border-radius: 99px;
    overflow: hidden;
}
.ty-progress-bar {
    height: 100%;
    width: 100%;
    background: #0066cc;
    border-radius: 99px;
    transform-origin: left;
    transform: scaleX(0);
}
.ty-overlay.is-visible .ty-progress-bar {
    animation: ty-drain 3s linear forwards;
}
@keyframes ty-drain {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
