/* ==========================================================================
   Global design tokens & shared components
   ========================================================================== */
:root {
  --page-max: 100%;
  --gutter: 150px;
  --content: 1200px;

  --navy: #121348;
  --navy-dark: #051643;
  --navy-footer: #041643;
  --text: #0b0c38;
  --blue-accent: #3b82f6;
  --nav-active: #2671fb;
  --orange-header: #cc6923;
  --orange-hero: #ff8e3f;
  --purple: #5045e8;
  --purple-text: #443ac7;
  --purple-light: #f5f0ff;
  --purple-icon: #ede4ff;

  --ghost-bg: rgba(242, 242, 242, 0.81);
  --hero-secondary: #f2f2f2;
  --bg-light: #f9f9f9;
  --bg-panel: #f8f8f8;
  --white: #ffffff;
  --black: #000000;

  --font: 'Manrope', sans-serif;
  --font-alt: 'Roboto', sans-serif;

  --header-h: 118px;
  --radius-btn: 10px;
  --radius-card: 20px;
  --radius-panel: 30px;
  --radius-cta-icon: 25px;
  --radius-cta: 15px;
  --radius-story: 40px;
  --radius-value-icon: 9px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  scroll-padding-top: var(--header-h);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

.scroll-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(8px);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

.scroll-word.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 37px;
  padding: 4px 16px;
  border-radius: var(--radius-btn);
  font-size: 17px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.92; }
.btn img { flex-shrink: 0; }

.btn--primary { background: var(--orange-header); color: var(--white); min-width: 193px; }
.btn--ghost { background: var(--ghost-bg); color: rgba(0,0,0,0.7); min-width: 117px; }
.btn--hero-primary { background: var(--orange-hero); color: var(--white); min-width: 145px; }
.btn--hero-secondary { background: var(--hero-secondary); color: rgba(0,0,0,0.7); min-width: 97px; }
.btn--purple { background: var(--purple); color: var(--white); min-width: 221px; }
.btn--outline-purple {
  background: rgba(255,255,255,0.81);
  color: var(--purple-text);
  border: 0.8px solid var(--purple);
  min-width: 117px;
}
.btn--white { background: var(--white); color: var(--navy-footer); font-size: 15px; min-width: 107px; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-top: none;
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: visible;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.header.is-hidden {
  transform: translateY(calc(-100% - 2px));
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding-top: 12px;
  padding-bottom: 12px;
}

.header__logo {
  margin-left: -40px;
}

.header__logo img { width: 240px; height: 57px; object-fit: contain; }

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px; padding: 8px;
}
.header__toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--navy); border-radius: 2px;
}

.header__nav { flex: 1; display: flex; justify-content: center; overflow: visible; }

.header__menu {
  display: flex;
  align-items: center;
  gap: 23px;
}

.header__menu a,
.header__menu-dropdown-btn {
  font-size: 17px;
  font-weight: 500;
  line-height: normal;
  color: var(--black);
  transition: color 0.2s ease;
}

.header__menu-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  font-family: var(--font);
  cursor: pointer;
}

.header__menu a:hover,
.header__menu a:active,
.header__menu a:focus-visible,
.header__menu-dropdown-btn:hover,
.header__menu-dropdown-btn:active,
.header__menu-dropdown-btn:focus-visible,
.header__menu a.is-active,
.header__menu-dropdown-btn.is-active,
.header__menu [data-nav].is-active {
  color: var(--nav-active);
}

.header__menu a.is-active,
.header__menu-dropdown-btn.is-active,
.header__menu [data-nav].is-active {
  font-weight: 800;
}

body[data-active-nav="solutions"] #site-header .header__menu-dropdown-btn[data-nav="solutions"],
.header__menu-dropdown.is-open .header__menu-dropdown-btn {
  color: #2671fb;
  font-weight: 800;
}

/* While solutions menu is open, only Our Solutions looks active */
#site-header:has(.header__menu-dropdown.is-open) .header__menu [data-nav].is-active:not([data-nav="solutions"]):not(:hover):not(:active) {
  color: var(--black);
  font-weight: 500;
}

#site-header .header__actions .btn--ghost {
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

#site-header .header__actions .btn--ghost:hover,
#site-header .header__actions .btn--ghost:focus-visible,
#site-header .header__actions .btn--ghost:active,
#site-header .header__actions .btn--ghost.is-active,
body[data-active-nav="contact"] #site-header .header__actions .btn--ghost[data-nav="contact"] {
  opacity: 1;
  background: var(--blue-accent);
  color: var(--white);
  font-weight: 400;
}

#site-header .header__actions .btn--ghost:active {
  background: #2563eb;
}

.header__menu-dropdown-btn img {
  flex-shrink: 0;
  width: 12px;
  height: 8px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.header__menu-dropdown.is-open .header__menu-dropdown-btn img {
  transform: rotate(180deg);
}

/* .header__menu-item--blogs { display: none; }
body[data-show-blogs="true"] .header__menu-item--blogs { display: list-item; } */

.header__menu-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
}

.header__menu-dropdown > a {
  font-weight: 700;
}

.header__menu-dropdown.is-open > a {
  font-weight: 700;
}

/* Our Solutions dropdown panel */
.solutions-nav {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 940px;
  height: 322px;
  background: #fbfcff;
  border-radius: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
}

.solutions-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.solutions-nav[hidden]:not(.is-open) {
  display: none;
}

.solutions-nav::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .solutions-nav {
    transition: none;
  }

  .header__menu-dropdown-btn,
  .header__menu-dropdown-btn img {
    transition: none;
  }
}

.solutions-nav__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 11px 16px 11px 0;
  box-sizing: border-box;
}

.solutions-nav__main {
  flex: 1;
  min-width: 0;
  padding: 20px 0 0 36px;
}

.solutions-nav__label {
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 2px;
  color: #747474;
  text-transform: uppercase;
}

.solutions-nav__heading {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.128;
  color: var(--text);
}

.solutions-nav__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  row-gap: 18px;
  margin-top: 32px;
}

.solutions-nav__item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 62px;
  color: var(--text);
  transition: opacity 0.2s;
}

.solutions-nav__item:hover {
  opacity: 0.88;
}

.solutions-nav__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  background: #eef1fa;
  border-radius: 10px;
}

.solutions-nav__icon-wrap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.solutions-nav__copy {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.solutions-nav__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.128;
  color: var(--text);
}

.solutions-nav__desc {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.7);
}

.solutions-nav__arrow {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  margin-left: auto;
  object-fit: contain;
  transform: rotate(-90deg);
}

.solutions-nav__approach {
  flex: 0 0 226px;
  width: 226px;
  height: 300px;
  padding: 28px 18px 0;
  background: #e8edfb;
  border-radius: 18px;
}

.solutions-nav__approach-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  font-size: 7px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1px;
  color: var(--text);
  text-transform: uppercase;
}

.solutions-nav__approach-title {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.128;
  color: var(--text);
}

.solutions-nav__approach-text {
  margin-top: 14px;
  width: 180px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.33;
  color: var(--text);
}

.solutions-nav__approach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 148px;
  height: 30px;
  margin-top: 24px;
  padding: 5px 8px;
  background: var(--nav-active);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: var(--white);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.solutions-nav__approach-btn:hover {
  opacity: 0.92;
}

.solutions-nav__approach-btn img {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#site-header .header__actions .btn--primary {
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

#site-header .header__actions .btn--primary:hover,
#site-header .header__actions .btn--primary:focus-visible {
  opacity: 1;
  background: #9e4f16;
}

#site-header .header__actions .btn--primary:active {
  opacity: 1;
  background: #7d3e11;
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  margin-bottom: 40px;
  opacity: 0.68;
  font-size: 15px;
  line-height: normal;
  color: var(--black);
}

.breadcrumb a { font-weight: 300; }
.breadcrumb span { font-weight: 600; }
.breadcrumb__sep { transform: rotate(-90deg); width: 16px; height: 16px; object-fit: contain; }

/* Page hero shell (shared bg/wrap) */
.page-hero {
  position: relative;
  padding-bottom: 90px;
}

.page-hero__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  width: 100%;
  height: 660px;
  background: var(--bg-light);
  border-radius: 0 0 60px 60px;
  z-index: 0;
}

.page-hero__wrap {
  position: relative;
  z-index: 1;
  padding-top: 18px;
}

.page-hero__actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}

/* Trusted Brands */
.brands { padding-bottom: 63px; }

.brands__title {
  font-size: 35px;
  font-weight: 500;
  line-height: normal;
  color: var(--text);
  margin-bottom: 30px;
}

.brands__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  background: var(--bg-panel);
  border-radius: var(--radius-panel);
  padding: 0;
  min-height: 378px;
  overflow: hidden;
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 211px);
  grid-template-rows: 190px 188px;
  gap: 0;
}

.brands__cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-panel);
  min-height: 188px;
}

.brands__cell:nth-child(-n+4) { min-height: 190px; }

.brands__logo {
  object-fit: contain;
  flex-shrink: 0;
}

.brands__cell:nth-child(1) .brands__logo { width: 153px; height: 70px; opacity: 1; }
.brands__cell:nth-child(2) .brands__logo { width: 158px; height: 72px; opacity: 1; }
.brands__cell:nth-child(3) .brands__logo { width: 138px; height: 63px; opacity: 1; }
.brands__cell:nth-child(4) .brands__logo { width: 118px; height: 54px; opacity: 0.57; }
.brands__cell:nth-child(5) .brands__logo { width: 88px; height: 81px; opacity: 1; }
.brands__cell:nth-child(6) .brands__logo { width: 130px; height: 60px; opacity: 1; }
.brands__cell:nth-child(7) .brands__logo { width: 114px; height: 105px; opacity: 1; }
.brands__cell:nth-child(8) .brands__logo { width: 99.076px; height: 91px; opacity: 0.98; }

.brands__feature {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  min-height: 378px;
}

.brands__feature-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.brands__feature-text {
  position: absolute;
  left: 33px;
  bottom: 24px;
  color: var(--white);
  z-index: 1;
}

.brands__feature-text strong {
  display: block;
  font-size: 60px;
  font-weight: 800;
  line-height: normal;
}

.brands__feature-text span {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
}

.brands__feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 37.05%, rgba(0,0,0,0.88) 84.28%);
  pointer-events: none;
}

/* CTA */
.cta { padding-bottom: 71px; }

.cta__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 136px;
  padding: 24px 44px;
  background: var(--purple-light);
  border-radius: var(--radius-cta);
  width: 100%;
}

.cta__icon {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-icon);
  border-radius: var(--radius-cta-icon);
}

.cta__icon img { width: 54px; height: 50px; object-fit: contain; }

.cta__text { flex: 1; min-width: 200px; }

.cta__text h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: normal;
  color: var(--navy);
}

.cta__text p {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  color: var(--navy);
}

.cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  position: relative;
  color: var(--white);
  padding: 83px 0 40px;
  overflow: hidden;
}

.footer__bg {
  position: absolute;
  inset: 0;
  border-radius: 60px 60px 0 0;
  overflow: hidden;
  z-index: 0;
}

.footer__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.footer__inner { position: relative; z-index: 1; }

.footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 8px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 300px;
  flex-shrink: 0;
}

.footer__brand > a {
  display: block;
  line-height: 0;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
}

.footer__brand > a img {
  display: block;
  width: 100%;
  height: 88px;
  max-width: none;
  object-fit: contain;
  object-position: left top;
}

.footer__brand p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
}

.footer__social-wrap {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  margin-left: -40px;
}

.footer__brand img.footer__social {
  display: block;
  width: 300px;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.footer__aside {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  margin-left: auto;
  padding-top: 20px;
}

.footer__links {
  width: 273px;
  flex-shrink: 0;
}

.footer__contact {
  width: 242px;
  flex-shrink: 0;
  margin-left: -71px;
}

.footer__links h3,
.footer__contact h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 2.13;
  margin-bottom: 16px;
}

.footer__links ul { display: flex; flex-direction: column; }

.footer__links a {
  font-size: 16px;
  font-weight: 500;
  line-height: 2.13;
  color: var(--white);
}

.footer__contact ul { display: flex; flex-direction: column; gap: 16px; }

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.68;
  width: 260px;
}

.footer__contact img { flex-shrink: 0; margin-top: 2px; }
.footer__contact a { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__copy {
  font-family: var(--font-alt);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.235;
}

.footer__newsletter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__newsletter input {
  width: 262px;
  min-height: 37px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.13);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
}

.footer__newsletter input::placeholder { color: rgba(255,255,255,0.8); }
.footer__newsletter input:focus {
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: 2px;
}

/* Shared responsive */
@media (max-width: 1320px) {
  :root { --gutter: 40px; }
  .header__logo { margin-left: 0; }
  .brands__panel { grid-template-columns: 1fr; }
  .brands__feature { min-height: 280px; }
  .footer__grid {
    flex-direction: column;
  }

  .footer__brand {
    width: 100%;
    max-width: 300px;
  }

  .footer__aside {
    width: 100%;
    flex-wrap: wrap;
    gap: 32px;
    margin-left: 0;
  }

  .footer__contact {
    margin-left: 0;
  }
}

@media (max-width: 992px) {
  .header__toggle { display: flex; }
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
  }
  .header.is-open .header__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .header__menu { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header__actions { display: none; }
  .header.is-open .header__actions {
    display: flex;
    position: fixed;
    bottom: 24px; left: 24px; right: 24px;
    flex-direction: column;
    z-index: 101;
  }
  .header.is-open .header__actions .btn { width: 100%; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta__actions { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__aside {
    flex-direction: column;
  }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__newsletter { width: 100%; }
  .footer__newsletter input { flex: 1; width: auto; }
}
