/* ============================================================
   CIMA TECH SERVICES — Main Stylesheet  (Light Theme)
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Light base — single white canvas, sections tint via gradient */
  --color-bg:            #ffffff;
  --color-bg-raised:     #ffffff;
  --color-bg-card:       #ffffff;
  --color-bg-tint:       #f5f2ff;   /* used only inside section gradients */
  --color-border:        rgba(110, 69, 255, 0.13);
  --color-border-subtle: rgba(110, 69, 255, 0.06);

  /* Text */
  --color-text:          #07001f;
  --color-text-mid:      #3d3657;
  --color-muted:         #7a7490;
  --color-white:         #ffffff;

  /* Brand accents */
  --color-purple:        #6e45ff;
  --color-purple-dark:   #5535d4;
  --color-purple-200:    #c6b5ff;
  --color-purple-100:    #ede8ff;

  --color-green:         #3dfd98;
  --color-green-dark:    #0d9f5c;
  --color-green-200:     #b3fed7;
  --color-green-100:     #eafff5;

  /* Layout */
  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  30px;

  --shadow-card:  0 2px 16px rgba(110,69,255,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 36px rgba(110,69,255,0.16), 0 2px 8px rgba(0,0,0,0.05);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --container-width: 1180px;
  --section-padding: clamp(72px, 9vw, 112px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, button { font-family: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ── Typography ── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: 14px;
}
.section-heading {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-top: 16px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--color-purple) 0%, #a855f7 50%, var(--color-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Hero-specific gradient (bright, on dark shader) */
.hero .text-gradient {
  background: linear-gradient(135deg, var(--color-purple-200) 0%, var(--color-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-green  { color: var(--color-green-dark) !important; }
.text-purple { color: var(--color-purple)     !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  padding: 0.65em 1.4em;
  line-height: 1;
}
.btn--primary {
  background: var(--color-purple);
  color: var(--color-white);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-purple-dark);
  box-shadow: 0 0 24px rgba(110,69,255,0.35);
}
/* Ghost on dark background (hero) */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
}
/* Outline used in nav */
.btn--outline-sm {
  background: transparent;
  color: var(--color-purple);
  border: 1.5px solid var(--color-purple);
  font-size: 0.82rem;
  padding: 0.5em 1.1em;
}
.btn--outline-sm:hover, .btn--outline-sm:focus-visible {
  background: var(--color-purple);
  color: var(--color-white);
}
.btn--lg { padding: 0.82em 1.9em; font-size: 0.95rem; }
.btn--full { width: 100%; }

.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

/* ============================================================
   NAV  (always light)
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.0);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled,
.nav--solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(110,69,255,0.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.nav__logo { flex-shrink: 0; }
.logo-svg  { height: 38px; width: auto; }

/* Logo text adapts: white over shader, dark when nav is scrolled */
.nav .logo-wordmark-main   { fill: white; transition: fill var(--transition); }
.nav .logo-wordmark-sub    { fill: rgba(255,255,255,0.55); transition: fill var(--transition); }
.nav.scrolled .logo-wordmark-main,
.nav--solid .logo-wordmark-main { fill: #07001f; }
.nav.scrolled .logo-wordmark-sub,
.nav--solid .logo-wordmark-sub  { fill: #7a7490; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.nav__links a:hover { color: white; }
.nav.scrolled .nav__links a,
.nav--solid .nav__links a           { color: var(--color-text-mid); }
.nav.scrolled .nav__links a:hover,
.nav--solid .nav__links a:hover     { color: var(--color-text); }

/* ── Services dropdown ── */
.nav__item {
  position: relative;
}
.nav__item-link {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav__chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.nav__item--has-dropdown.is-open .nav__chevron,
.nav__item--has-dropdown:focus-within .nav__chevron,
.nav__item--has-dropdown:hover .nav__chevron {
  transform: rotate(180deg);
}
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  /* Padding-top bridges the visual gap so hover doesn't break */
  padding: 20px 0 6px;
  list-style: none;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
/* Arrow tip */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  background: rgba(255,255,255,0.98);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
.nav__item--has-dropdown.is-open .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown,
.nav__item--has-dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--color-text-mid) !important;
  transition: background var(--transition), color var(--transition) !important;
  white-space: nowrap;
  letter-spacing: 0;
}
.nav__dropdown li a:hover {
  background: var(--color-purple-100);
  color: var(--color-purple) !important;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
}
.nav__phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.nav__phone:hover { color: white; }
.nav.scrolled .nav__phone,
.nav--solid .nav__phone         { color: var(--color-muted); }
.nav.scrolled .nav__phone:hover,
.nav--solid .nav__phone:hover   { color: var(--color-text); }

/* scrolled outline btn already handled by .btn--outline-sm */

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}
.nav.scrolled .nav__burger span,
.nav--solid .nav__burger span   { background: var(--color-text); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px clamp(20px,5vw,48px) 28px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border-subtle);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--color-text); }
.mobile-menu__phone { font-weight: 600; }
.mobile-menu .btn         { margin-top: 12px; align-self: flex-start; }
.mobile-menu .btn--primary { color: var(--color-white); }
.mobile-menu__group {
  border-bottom: 1px solid var(--color-border-subtle);
}
.mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.mobile-menu__toggle:hover { color: var(--color-text); }
.mobile-menu__toggle .nav__chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
}
.mobile-menu__toggle[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
.mobile-menu__sub {
  list-style: none;
  padding: 0 0 8px 16px;
}
.mobile-menu__sub[hidden] { display: none; }
.mobile-menu__sub li a {
  display: block;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  border-bottom: none;
  transition: color var(--transition);
}
.mobile-menu__sub li a:hover { color: var(--color-purple); }

/* ============================================================
   HERO  (dark — shader canvas is the background)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 80px;
}

/* WebGL canvas fills the hero */
.hero__shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Subtle dark vignette so text pops */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(7,0,31,0.18) 0%, rgba(7,0,31,0.52) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Bottom fade — dissolves the shader into the page */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(
    to bottom,
    transparent                        0%,
    rgba(80, 30, 160, 0.18)           30%,
    rgba(120, 60, 200, 0.32)          52%,
    rgba(180, 130, 255, 0.55)         70%,
    rgba(220, 200, 255, 0.82)         85%,
    #ede8ff                           100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.hero__content {
  text-align: center;
  max-width: 700px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green);
  border: 1px solid rgba(61,253,152,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
  background: rgba(61,253,152,0.07);
}

.hero__heading {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 22px;
}

.hero__sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.72;
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HEADER (inner pages — no WebGL hero)
   ============================================================ */
.page-header {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
}
.page-header::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(110,69,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.page-header__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 700px;
}
.page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.page-header__breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.page-header__breadcrumb a:hover { color: var(--color-purple); }
.page-header__breadcrumb svg {
  width: 12px; height: 12px;
  opacity: 0.45;
  flex-shrink: 0;
}
.page-header__heading {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 20px;
}
.page-header__sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 36px;
}
.page-header__cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .page-header { padding: 110px 0 60px; }
  .page-header__heading { font-size: 2rem; }
  .page-header__cta-row { flex-direction: column; align-items: stretch; }
  .page-header__cta-row .btn { text-align: center; }
}

/* ============================================================
   WHAT WE DO
   ============================================================ */
/* Extra top padding when section is the first element on the page (no hero above) */
.what-we-do--first {
  padding-top: calc(var(--section-padding) + 68px);
}
.what-we-do {
  padding-block: var(--section-padding);
  background: linear-gradient(180deg,
    #ede8ff 0%,
    var(--color-bg-tint) 12%,
    var(--color-bg-tint) 82%,
    #ffffff 100%
  );
}
.what-we-do__header {
  text-align: center;
  margin-bottom: 60px;
}
.what-we-do__header .section-sub { margin-inline: auto; max-width: 640px; }
.heading-br { display: none; }

/* Services intro: text left + photo right */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}
.services-intro__text .section-heading {
  margin-bottom: 16px;
}
.services-intro__text .section-sub {
  margin-bottom: 28px;
}
.services-intro__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(110,69,255,0.12), 0 4px 16px rgba(0,0,0,0.08);
}
.services-intro__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4 / 3;
}
@media (max-width: 900px) {
  .services-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .services-intro__media { max-width: 560px; }
}

.core-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}
.core-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.core-card:hover {
  border-color: rgba(110,69,255,0.3);
  box-shadow: var(--shadow-hover);
}
.core-card__icon { width: 44px; height: 44px; margin-bottom: 20px; flex-shrink: 0; }
.core-card__icon svg { width: 100%; height: 100%; }
.core-card h3 { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: 10px; line-height: 1.3; }
.core-card p  { font-size: 0.875rem; color: var(--color-muted); line-height: 1.68; margin: 0; }
a.core-card   { text-decoration: none; color: inherit; }
/* Full-width feature card at end of grid */
.ts-card--full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  padding: 36px 48px;
  background: linear-gradient(135deg, #f5f2ff 0%, #eafff5 100%);
  border-color: rgba(110,69,255,0.2);
}
.ts-card--full .core-card__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.ts-card--full-text { flex: 1; }
.ts-card--full h3 { font-size: 1.15rem; margin-bottom: 8px; }
.ts-card--full .ts-card--full-cta {
  margin-top: 16px;
}
@media (max-width: 640px) {
  .ts-card--full { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

.reinforcement-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 8px;
}
.reinforcement-strip__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(110,69,255,0.25), transparent);
}
.reinforcement-strip__text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--color-purple) 0%, #a855f7 50%, var(--color-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   HOW WE HELP
   ============================================================ */
.how-we-help {
  padding-block: var(--section-padding);
  background: #ffffff;
}
.how-we-help__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-list-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.feature-list-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-purple);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  margin-bottom: 28px;
  background: var(--color-purple-100);
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-check { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.feature-check svg { width: 100%; height: 100%; }
.feature-list li strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.feature-list li p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}
.how-we-help__content .section-sub { max-width: 440px; margin-bottom: 32px; }

/* Ghost button on light bg */
.cta-band__actions .btn--ghost {
  color: var(--color-text);
  border-color: rgba(110,69,255,0.35);
}

/* ============================================================
   WHY CIMA
   ============================================================ */
.why-cima {
  position: relative;
  padding-block: var(--section-padding);
  background: #ffffff;
  overflow: hidden;
}
.why-cima__bg-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: var(--color-purple-100);
  border-radius: 50%;
  filter: blur(90px);
  top: 50%; right: -100px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}
.why-cima__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.why-cima__content .section-sub { margin-bottom: 32px; }
.why-cima__photo {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(110,69,255,0.13), 0 4px 12px rgba(0,0,0,0.07);
}
.why-cima__photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.why-cima__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.why-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover {
  border-color: var(--color-purple);
  box-shadow: var(--shadow-hover);
}
.why-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--color-purple);
}
.why-card__icon svg { width: 100%; height: 100%; }
.why-card__title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 7px;
  line-height: 1.35;
}
.why-card__body {
  font-size: 0.8rem;
  color: var(--color-text-mid);
  line-height: 1.65;
}
/* ── Credibility strip ── */
.cred-strip {
  border-top: 1px solid var(--color-border);
  margin-top: 56px;
  padding-top: 28px;
  padding-bottom: 4px;
}
.cred-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: center;
}
.cred-strip__item {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cred-strip__item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
}
.cred-strip__divider {
  width: 1px;
  height: 16px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding-block: var(--section-padding);
  background: linear-gradient(180deg,
    #ffffff 0%,
    var(--color-bg-tint) 18%,
    var(--color-bg-tint) 82%,
    #ffffff 100%
  );
}
.process__header {
  text-align: center;
  margin-bottom: 64px;
}
.process__header .section-sub { margin-inline: auto; }
.process__steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.process-step {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.process-step:hover {
  border-color: rgba(110,69,255,0.3);
  box-shadow: var(--shadow-hover);
}
.process-step__num {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-purple-200) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.process-step__content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}
.process-step__content p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.process-step__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-purple);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 12px;
  background: var(--color-purple-100);
}
.process-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  color: var(--color-purple);
  opacity: 0.5;
}
.process-connector svg { width: 24px; height: 24px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  padding-block: clamp(64px, 8vw, 100px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-purple) 0%, #8b5cf6 60%, #6366f1 100%);
}
.cta-band__glow {
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  filter: blur(80px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-band__content { max-width: 520px; }
.cta-band__content .section-eyebrow { color: var(--color-green); }
.cta-band__content .section-heading { color: white; }
.cta-band__content .section-sub     { color: rgba(255,255,255,0.75); max-width: 100%; }
.cta-band__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cta-band__actions .btn--ghost {
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.cta-band__actions .btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}
.cta-band__actions .btn--primary {
  background: white;
  color: var(--color-purple);
}
.cta-band__actions .btn--primary:hover {
  background: var(--color-purple-100);
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding-block: var(--section-padding);
  background: #ffffff;
}
/* Single centered card */
.contact__card {
  max-width: 680px;
  margin-inline: auto;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
/* Header band inside the card */
.contact__header {
  padding: 36px 40px 28px;
  border-bottom: 1px solid var(--color-border);
}
.contact__header .section-eyebrow { margin-bottom: 10px; }
.contact__header .section-heading { margin-bottom: 10px; font-size: clamp(1.5rem, 3vw, 2rem); }
.contact__header .section-sub { margin-bottom: 20px; max-width: 100%; }
.contact__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.contact-item__icon { width: 18px; height: 18px; flex-shrink: 0; }
.contact-item__icon svg { width: 100%; height: 100%; }
.contact-item a {
  color: var(--color-muted);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--color-text); }
/* Form area inside the card */
.contact__form {
  padding: 28px 40px 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-mid);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  background: #f9f8ff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-muted); opacity: 0.6; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(110,69,255,0.1);
  background: var(--color-bg-raised);
}

/* ============================================================
   HUBSPOT FORM OVERRIDES
   Styles HubSpot's injected markup to match the site theme.
   ============================================================ */
.contact__form .hs-form-frame { display: block; }

/* Remove HubSpot's default chrome */
.contact__form .hs-form fieldset {
  max-width: 100% !important;
  border: none;
  padding: 0;
  margin: 0;
}
.contact__form .hs-form .hs-form-field {
  margin-bottom: 12px;
}
/* Two-column pairs (first/last name, city/state) */
.contact__form .hs-form fieldset.form-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact__form .hs-form fieldset.form-columns-2 .hs-form-field {
  margin-bottom: 0;
}
/* Labels */
.contact__form .hs-form label:not(.hs-error-msg) {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-mid);
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}
/* Inputs, selects, textareas */
.contact__form .hs-form input[type="text"],
.contact__form .hs-form input[type="email"],
.contact__form .hs-form input[type="tel"],
.contact__form .hs-form input[type="number"],
.contact__form .hs-form select,
.contact__form .hs-form textarea {
  width: 100%;
  background: #f9f8ff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.contact__form .hs-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236e45ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.contact__form .hs-form input::placeholder,
.contact__form .hs-form textarea::placeholder { color: var(--color-muted); opacity: 0.6; }
.contact__form .hs-form input:focus,
.contact__form .hs-form select:focus,
.contact__form .hs-form textarea:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(110,69,255,0.1);
  background: var(--color-bg-raised);
}
/* Cap textarea height */
.contact__form .hs-form textarea { max-height: 90px; }
/* Input wrapper HubSpot adds */
.contact__form .hs-form .input { margin-right: 0 !important; }
/* Submit button */
.contact__form .hs-form .hs-button {
  width: 100%;
  background: var(--color-purple);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-top: 4px;
}
.contact__form .hs-form .hs-button:hover {
  background: var(--color-purple-200);
  box-shadow: 0 4px 18px rgba(110,69,255,0.28);
}
/* Error messages */
.contact__form .hs-form .hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: 5px 0 0;
}
.contact__form .hs-form .hs-error-msg,
.contact__form .hs-form .hs-error-msgs label {
  font-size: 0.75rem;
  color: #e53e3e;
  font-weight: 500;
}
/* Required asterisk */
.contact__form .hs-form .hs-form-required { color: var(--color-purple); }
/* Success message */
.contact__form .hs-form .submitted-message {
  text-align: center;
  padding: 32px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}
/* GDPR / legal consent */
.contact__form .hs-form .legal-consent-container {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.5;
}
/* Remove HubSpot branding */
.contact__form .hs-form .hs_submit { margin-top: 4px; }

@media (max-width: 480px) {
  .contact__form .hs-form fieldset.form-columns-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.65);
  padding-top: clamp(56px, 7vw, 88px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 56px;
}
.footer__brand .nav__logo { margin-bottom: 16px; }
.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 16px;
}
.footer__phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-purple-200);
  transition: color var(--transition);
}
.footer__phone:hover { color: white; }
.footer__email {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-purple-200);
  transition: color var(--transition);
  margin-top: 6px;
}
.footer__email:hover { color: white; }
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer__col a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 20px;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .how-we-help__inner,
  .why-cima__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* Reset RTL column-flip on single-column layout */
  .how-we-help__inner--reverse {
    direction: ltr;
  }
  .process__steps {
    flex-direction: column;
    gap: 16px;
  }
  .process-connector { transform: rotate(90deg); width: 100%; height: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .core-services__grid { grid-template-columns: 1fr 1fr; }
  .why-cima__cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact__header { padding: 28px 24px 20px; }
  .contact__form { padding: 20px 24px 24px; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  /* Allow reinforcement strip text to wrap */
  .reinforcement-strip__text { white-space: normal; text-align: center; }
  .reinforcement-strip { flex-wrap: wrap; }
  /* Cred strip — hide vertical dividers, stack items, align bullets consistently */
  .cred-strip__divider { display: none; }
  .cred-strip__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cred-strip__item { width: 100%; align-items: flex-start; }
  .cred-strip__item::before { margin-top: 4px; }
}

@media (max-width: 480px) {
  .core-services__grid { grid-template-columns: 1fr; }
  .why-cima__cards { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr; }
  .hero__cta-row { flex-direction: column; align-items: center; }
  .hero__cta-row .btn { width: 100%; max-width: 320px; text-align: center; }
  /* Fixed-height photo stacks should not overflow on small screens */
  .infra-photos__stack--fixed { height: auto; }
}

/* ============================================================
   INFRASTRUCTURE & CLOUD — Stacked photos in how-we-help section
   ============================================================ */
.infra-photos__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: stretch;
}
.infra-showcase__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(110,69,255,0.12), 0 4px 16px rgba(0,0,0,0.08);
  flex: 1;
  min-height: 0;
}
.infra-showcase__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 3 / 2;
}
@media (max-width: 1024px) {
  .infra-photos__stack { flex-direction: row; }
  .infra-showcase__photo img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .infra-photos__stack { flex-direction: column; }
}

/* ============================================================
   PLATFORMS & TECHNOLOGIES
   ============================================================ */
.ic-platforms {
  padding-block: var(--section-padding);
  background: linear-gradient(180deg,
    #ffffff 0%,
    var(--color-bg-tint) 20%,
    var(--color-bg-tint) 80%,
    #ffffff 100%
  );
}
.ic-platforms__header {
  text-align: center;
  margin-bottom: 56px;
}
.ic-platforms__header .section-sub { margin-inline: auto; }
.ic-platforms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.platform-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.platform-card:hover {
  border-color: rgba(110,69,255,0.3);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}
.platform-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-tint);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.platform-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.platform-card:hover .platform-card__media img {
  transform: scale(1.04);
}
/* Logo-style media: white padded background, contain instead of cover */
.platform-card__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
  background: #f8f7ff;
}
.platform-card__media--logo img {
  object-fit: contain;
  max-height: 64px;
  width: auto;
}
/* Product photo: neutral bg, contain so product isn't cropped */
.platform-card__media--product {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  background: #f4f3f8;
}
.platform-card__media--product img {
  object-fit: contain;
  max-height: 80px;
  width: auto;
}
.platform-card__body {
  padding: 24px 26px 28px;
}
.platform-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}
.platform-card__desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.68;
  margin: 0;
}
@media (max-width: 960px) {
  .ic-platforms__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ic-platforms__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTAIN VARIANT FOR PNG SCREENSHOTS / GRAPHIC IMAGES
   Use when object-fit:cover would crop important content
   ============================================================ */
.infra-showcase__photo--contain {
  background: #08001a;
}
.infra-showcase__photo--contain img {
  object-fit: contain;
  object-position: center;
}
.infra-showcase__photo--padded img {
  padding: 16px;
}
.infra-showcase__photo--full {
  aspect-ratio: 560 / 373;
  align-self: center;
  width: 100%;
}

/* Portrait 9:16 image — preserves original aspect ratio */
.infra-showcase__photo--portrait {
  aspect-ratio: 9 / 16;
  align-self: center;
  width: 100%;
}

/* Phone/portrait image — shows full device, light bg */
.infra-showcase__photo--phone {
  background: var(--color-bg-tint);
  min-height: 220px;
}
.infra-showcase__photo--phone img {
  object-fit: contain;
  aspect-ratio: unset;
  height: 100%;
  width: 100%;
  padding: 20px;
}

/* Fixed-height photo stack for stacked photos */
.infra-photos__stack--fixed {
  height: 780px;
  align-self: start;
}

/* Light-background contain — UI screenshots, dashboards */
.infra-showcase__photo--contain-light {
  background: var(--color-bg-tint);
  align-self: stretch;
  min-height: 260px;
}
.infra-showcase__photo--contain-light img {
  object-fit: contain;
  aspect-ratio: unset;
  padding: 20px;
  border-radius: var(--radius-md);
}

/* Phone intro hero — preserves full phone in 4:3 container */
.services-intro__media--phone {
  background: var(--color-bg-tint);
}
.services-intro__media--phone .services-intro__img {
  object-fit: contain;
}

/* ============================================================
   ROUNDED PHOTO TREATMENT
   Applied to all stock photo containers across service pages.
   ============================================================ */
.services-intro__media,
.why-cima__photo,
.infra-showcase__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* Ensure images within these containers also respect the radius */
.services-intro__media img,
.why-cima__photo-img,
.infra-showcase__photo img {
  border-radius: 0; /* radius is on parent, no double-rounding */
  display: block;
  width: 100%;
}

/* Top-align both columns in the grid */
.how-we-help__inner--top {
  align-items: start;
}

/* ============================================================
   SECURITY PAGE — Alternate how-we-help layout (photo right)
   ============================================================ */
.how-we-help--alt {
  background: var(--color-bg-tint);
}
.how-we-help__inner--reverse {
  direction: rtl;
}
.how-we-help__inner--reverse > * {
  direction: ltr;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq {
  padding-block: var(--section-padding);
  background: #ffffff;
}
.faq__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.faq__header .section-sub {
  margin: 0 auto;
}
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq__item[open] {
  border-color: rgba(110, 69, 255, 0.28);
  box-shadow: var(--shadow-hover);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  user-select: none;
  transition: color var(--transition);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; }
.faq__question:hover { color: var(--color-purple); }
.faq__question span { flex: 1; }
.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-purple);
  transition: transform var(--transition);
}
.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}
.faq__answer {
  padding: 0 28px 24px;
  border-top: 1px solid var(--color-border-subtle);
}
.faq__answer p {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.72;
  margin: 20px 0 0;
}

@media (max-width: 640px) {
  .faq__question { padding: 18px 20px; font-size: 0.92rem; }
  .faq__answer { padding: 0 20px 20px; }
}

/* ============================================================
   PERFORMANCE HINTS FOR GSAP TARGETS
   ============================================================ */
.btn,
.core-card,
.why-card,
.process-step,
.feature-list-card,
.hero__eyebrow,
.hero__heading,
.hero__sub {
  will-change: transform;
}
