:root {
  --navy-900: #06003B;
  --navy-700: #11207D;
  --navy-600: #012F8F;
  --navy-500: #012B7D;
  --gray-50: #F8F8F8;
  --white: #FFFFFF;
  --grad: linear-gradient(180deg, #4B8DF8 0%, #7F2DF1 100%);
  --font: 'Open Sans', Helvetica, Arial, sans-serif;
  --pad-x: clamp(18px, 4vw, 48px);
  --max: 1360px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy-500);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-500); }

h1, h2, h3 { font-family: var(--font); font-weight: 600; margin: 0; }

.container { max-width: var(--max); margin: 0 auto; }

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

/* progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--white); z-index: 90;
}

/* header */
.header {
  position: sticky; top: 0; z-index: 80;
  padding: 15px var(--pad-x);
  background: var(--navy-900); color: var(--white);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: rgba(6, 0, 59, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(6, 0, 59, .22);
}
.header__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand__logo { height: clamp(42px, 9vw, 64px); width: auto; display: block; }

.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 34px); font-size: clamp(13px, 1.15vw, 14.5px); }
.nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 2.4vw, 34px); }
.nav__link { color: rgba(255, 255, 255, .74); }
.nav__link:hover { color: var(--white); }

.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 600; color: var(--white);
  background: var(--grad); border-radius: 999px;
  transition: filter .25s ease, box-shadow .25s ease;
}
.btn:hover { filter: brightness(1.08); color: var(--white); }
.btn--sm { padding: 11px 20px; font-size: 14px; box-shadow: 0 6px 18px rgba(101, 74, 244, .35); }
.btn--sm:hover { box-shadow: 0 10px 24px rgba(101, 74, 244, .45); }
.btn--lg { padding: 16px 30px; font-size: 15.5px; box-shadow: 0 10px 26px rgba(101, 74, 244, .38); }
.btn--lg:hover { box-shadow: 0 14px 32px rgba(101, 74, 244, .5); }
.btn--ghost {
  display: inline-block; padding: 16px 30px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 15.5px; font-weight: 500; color: var(--white);
}
.btn--ghost:hover { color: var(--white); background: rgba(255, 255, 255, .08); }

.burger {
  display: none; flex: none; width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .32); border-radius: 12px;
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger__bar {
  display: block; width: 20px; height: 2px; background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 10px var(--pad-x) 22px; box-shadow: 0 26px 44px rgba(6, 0, 59, .45);
}
.drawer.is-open { display: block; }
.drawer__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; }
.drawer__link {
  padding: 15px 4px; font-size: 17px; color: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.drawer__cta { margin-top: 16px; padding: 15px 24px; text-align: center; font-size: 15.5px; }

@media (max-width: 899px) {
  .nav__links { display: none; }
  .burger { display: flex; }
}

/* hero */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); }
.hero__lines, .hero__glow { position: absolute; pointer-events: none; }
.hero__lines {
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 1px, rgba(255, 255, 255, 0) 1px 132px);
}
.hero__glow {
  top: -320px; left: 50%; transform: translateX(-50%);
  width: min(1200px, 140vw); height: 760px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 66%);
}
.hero__inner {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(46px, 6vw, 84px) var(--pad-x) clamp(38px, 4.6vw, 64px);
}
.hero__title {
  font-size: clamp(44px, 8.4vw, 104px); line-height: .96; letter-spacing: -.03em;
  max-width: 1040px; text-wrap: balance;
}
.hero__title em { font-style: italic; color: rgba(255, 255, 255, .58); }
.hero__lead {
  margin: clamp(18px, 2.2vw, 26px) 0 0; max-width: 640px;
  font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.62;
  color: rgba(255, 255, 255, .76); text-wrap: pretty;
}
.hero__actions {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px; margin-top: clamp(22px, 2.8vw, 32px);
}

/* sections */
.section { padding: clamp(42px, 5.2vw, 82px) var(--pad-x); }
.section--white { background: var(--white); }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--blue { background: var(--navy-700); color: var(--white); }
.section--partners { padding: clamp(38px, 4.6vw, 68px) var(--pad-x); background: var(--white); }

.h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.025em; color: var(--navy-500); text-wrap: balance; }
.h2--lg { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
.h2--on-navy { color: var(--white); font-size: clamp(30px, 3.8vw, 56px); line-height: 1.04; letter-spacing: -.028em; }
.h2--faq { font-size: clamp(30px, 3.8vw, 56px); line-height: 1.04; letter-spacing: -.028em; }
.lead { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.68; color: rgba(1, 43, 125, .7); text-wrap: pretty; }

.partners__head { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 26px); max-width: var(--max); margin: 0 auto; }

/* logo marquees */
.marquees {
  display: flex; flex-direction: column; gap: 12px;
  margin: clamp(26px, 3vw, 40px) calc(-1 * var(--pad-x)) 0;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.marquee__track {
  display: flex; gap: 12px; width: max-content;
  list-style: none; margin: 0; padding: 0;
  animation: marquee-left 46s linear infinite;
}
.marquee__track--reverse { animation: marquee-right 56s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-tile {
  flex: none; width: 196px; height: 82px;
  background: var(--navy-900); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: 18px 24px;
}
.logo-tile--tight { padding: 14px 22px; }
.logo-tile img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 6px)); }
}
@keyframes marquee-right {
  from { transform: translateX(calc(-50% - 6px)); }
  to { transform: translateX(0); }
}

/* steps */
.steps__head { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 30px); }
.steps { position: relative; margin-top: clamp(24px, 3vw, 44px); }
.steps::before {
  content: ""; position: absolute; left: 26px; top: 40px; bottom: 40px; width: 2px;
  background: linear-gradient(180deg, rgba(17, 32, 125, .45), rgba(17, 32, 125, .08));
}
.step {
  position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 34px); align-items: start; padding: clamp(16px, 2vw, 26px) 0;
}
.step__num {
  position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy-700); color: var(--white); font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px var(--gray-50);
}
.step__body { padding-top: 6px; }
.step__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(1, 43, 125, .75);
}
.step__title {
  margin: 12px 0 0; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1;
  letter-spacing: -.02em; color: var(--navy-500);
}
.step__text {
  margin: 12px 0 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.66;
  color: rgba(1, 43, 125, .7); text-wrap: pretty;
}

/* services bento */
.bento {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.4vw, 18px);
}
.bento__lead {
  grid-column: span 2; min-width: 0; position: relative; overflow: hidden;
  background: var(--navy-700); color: var(--white); border-radius: 20px;
  padding: clamp(24px, 2.8vw, 40px);
  display: flex; flex-direction: column; justify-content: center;
}
.bento__lead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 1px, rgba(255, 255, 255, 0) 1px 96px);
}
.bento__lead h2 {
  position: relative; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.028em;
}
@media (max-width: 619px) { .bento__lead { grid-column: span 1; } }

.card {
  min-width: 0; background: var(--gray-50);
  border: 1px solid rgba(1, 47, 143, .12); border-radius: 20px;
  padding: clamp(20px, 2.2vw, 30px);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(1, 47, 143, .12); }
.card--dark { background: var(--navy-900); color: var(--white); }
.card__head { display: flex; align-items: center; gap: 14px; }
.card__num {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--navy-700); color: var(--white); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.card--dark .card__num { background: var(--white); color: var(--navy-600); }
.card__title { font-size: 20px; line-height: 1.2; color: var(--navy-500); }
.card--dark .card__title { color: var(--white); }
.card__text { margin: 0; font-size: 15px; line-height: 1.62; color: rgba(1, 43, 125, .7); }
.card--dark .card__text { color: rgba(255, 255, 255, .78); }

/* testimonials */
.quotes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 2.4vw, 28px); margin-top: clamp(24px, 3vw, 40px);
}
.quote {
  margin: 0; height: 100%;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 20px;
  padding: clamp(20px, 2.2vw, 28px);
  display: flex; flex-direction: column; gap: 22px;
}
.quote blockquote {
  margin: 0; font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4;
}
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote__logo {
  flex: none; width: 96px; height: 42px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.quote__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote__logo--kng { width: 110px; background: #2A1046; }
.quote__logo--kng img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.quote__who { display: flex; flex-direction: column; gap: 3px; }
.quote__name { font-size: 15.5px; font-weight: 600; color: var(--white); }
.quote__role { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

/* faq */
.faq { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.faq__intro { margin: 22px 0 0; font-size: 16.5px; line-height: 1.66; color: rgba(1, 43, 125, .66); }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid rgba(1, 47, 143, .16); padding: 17px 0; }
.faq__item:last-child { border-bottom: 1px solid rgba(1, 47, 143, .16); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  list-style: none; cursor: pointer;
  font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; color: var(--navy-500);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chev { flex: none; font-size: 20px; color: var(--navy-600); transition: transform .25s ease; }
.faq__item[open] .faq__chev { transform: rotate(45deg); }
.faq__a { margin: 16px 0 0; font-size: 16px; line-height: 1.66; color: rgba(1, 43, 125, .68); }

/* contact */
.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 4vw, 72px); align-items: center;
}
.contact h2 { font-size: clamp(32px, 4vw, 60px); line-height: 1.02; letter-spacing: -.03em; }
.contact__lead {
  margin: 24px 0 0; font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.62;
  color: rgba(255, 255, 255, .76); max-width: 520px; text-wrap: pretty;
}
.contact__mail {
  display: inline-block; margin-top: 30px; font-weight: 600; font-size: clamp(20px, 2vw, 28px);
  color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .55); padding-bottom: 4px;
}
.contact__mail:hover { color: var(--white); }
.form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--white); border-radius: 22px; padding: clamp(20px, 2.4vw, 30px);
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field__label { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(1, 47, 143, .6); }
.field__input {
  background: var(--gray-50); border: 1px solid rgba(1, 47, 143, .2); border-radius: 12px;
  padding: 15px 16px; font-family: var(--font); font-size: 16px; color: var(--navy-500); outline: none;
}
.field__input:focus { border-color: var(--navy-600); }
.form .btn { margin-top: 4px; box-shadow: 0 10px 26px rgba(101, 74, 244, .32); }
.form .btn:disabled { cursor: default; filter: grayscale(.35) brightness(.95); box-shadow: none; }
.form__turnstile { min-height: 65px; }
.form__turnstile:empty { min-height: 0; }
.form__status { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(1, 43, 125, .7); }
.form__status--success { color: #127a4a; }
.form__status--error { color: #c02637; }

/* footer */
.footer { background: var(--navy-900); color: var(--white); padding: clamp(32px, 3.8vw, 54px) var(--pad-x) 26px; }
.footer__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px, 3vw, 56px);
}
.footer__logo { height: 54px; width: auto; display: block; }
.footer__tagline { margin: 20px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .62); max-width: 300px; }
.footer__h { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.footer__text { margin: 18px 0 0; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.footer__meta { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .55); }
.footer__mail { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .45); }
.footer__mail:hover { color: var(--white); }
.footer__nav { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 15px; }
.footer__nav a { color: rgba(255, 255, 255, .78); }
.footer__nav a:hover { color: var(--white); }
.footer__bottom {
  max-width: var(--max); margin: clamp(24px, 3vw, 38px) auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13.5px; color: rgba(255, 255, 255, .55);
}

/* reveal on scroll */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal-up .72s cubic-bezier(.16, .84, .44, 1) both; }
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; }
  .js .reveal.is-visible { animation: none; }
  .marquee__track { animation: none; }
}
