:root {
  --ka-header-height: 104px;
  --ka-wrap: min(1200px, calc(100% - 56px));
  --ka-blue: #99cce9;
  --ka-blue-strong: #2fa8e8;
  --ka-blue-soft: #bce7fb;
  --ka-dark: #0c0c0d;
  --ka-ink: #0b1b2b;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.admin-bar .ka-site-header { top: 32px; }
a { outline-offset: 3px; }
.ka-site-main { min-height: 55vh; }
.ka-section-inner,
.ka-service-wrap {
  width: var(--ka-wrap);
  margin-inline: auto;
}

/* Header */
.ka-site-header {
  position: relative;
  z-index: 9999;
  width: 100%;
  height: var(--ka-header-height);
  background: #0c0c0d;
  border-bottom: 1px solid rgba(153, 204, 233, .28);
  font-family: 'Open Sans', Arial, sans-serif;
}
.home .ka-site-header {
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, rgba(8, 8, 9, .98), rgba(8, 8, 9, .94));
}
.ka-header-inner {
  width: min(1420px, calc(100% - 80px));
  height: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  align-items: center;
}
.ka-header-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}
.ka-header-logo img {
  display: block;
  width: auto;
  height: 63px;
  max-width: 138px;
  object-fit: contain;
}
.ka-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(44px, 7vw, 112px);
}
.ka-header-nav a {
  position: relative;
  color: rgba(255, 255, 255, .67);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.ka-header-nav a:hover,
.ka-header-nav a[aria-current="page"] { color: #fff; }
.ka-header-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -17px;
  height: 1px;
  background: #77c8f3;
  transition: left .2s, right .2s;
}
.ka-header-nav a:hover::after,
.ka-header-nav a[aria-current="page"]::after { left: 0; right: 0; }
.ka-header-spacer { width: 100%; }
.ka-menu-button {
  display: none;
  justify-self: end;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(153, 204, 233, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  color: #fff;
  cursor: pointer;
}
.ka-menu-button span,
.ka-menu-button::before,
.ka-menu-button::after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.ka-menu-button.is-open span { opacity: 0; }
.ka-menu-button.is-open::before { transform: translateY(6px) rotate(45deg); }
.ka-menu-button.is-open::after { transform: translateY(-6px) rotate(-45deg); }
.ka-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 20px;
  background: #0c0c0d;
  border-top: 1px solid rgba(153, 204, 233, .16);
}
.ka-mobile-menu.is-open { display: block; }
.ka-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  color: #fff;
  text-decoration: none;
  font: 600 15px 'Open Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ka-mobile-menu a::after { content: '→'; color: #99cce9; }

.ka-site-footer { position: relative; z-index: 2; }
.ka-form-status {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 10px;
  font: 600 14px 'Open Sans', Arial, sans-serif;
}
.ka-form-status.success { background: #e7f8f1; color: #14543f; }
.ka-form-status.error { background: #fff0f0; color: #7f2020; }

/* Shared buttons */
.ka-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ka-blue);
  border-radius: 999px;
  background: var(--ka-blue);
  color: #071827 !important;
  text-decoration: none !important;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.ka-button:hover {
  transform: translateY(-2px);
  background: var(--ka-blue-soft);
  box-shadow: 0 14px 30px rgba(104, 182, 229, .2);
}
.ka-button-ghost {
  background: rgba(255, 255, 255, .04);
  color: #eef7ff !important;
  border-color: rgba(155, 210, 241, .34);
}
.ka-button-light { background: #fff; color: #071827 !important; border-color: #fff; }

/* Individual service pages */
.ka-service-page {
  --service-bg: #0f1c33;
  --service-panel: #0b172b;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 620px at 76% 0%, rgba(58, 120, 210, .12), transparent 62%),
    linear-gradient(180deg, #0f1c33 0%, #1b2c4a 100%);
  color: #eef4fb;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ka-service-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .30;
  background-image:
    linear-gradient(rgba(130, 170, 225, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 170, 225, .05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.ka-service-page > * { position: relative; }
.ka-service-page h1,
.ka-service-page h2,
.ka-service-page h3,
.ka-service-page p { box-sizing: border-box; }

.ka-service-hero { padding: clamp(64px, 7vw, 94px) 0 78px; }
.ka-service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .78fr);
  gap: 52px;
  align-items: center;
}
.ka-service-copy { min-width: 0; }
.ka-back-link {
  display: inline-flex;
  margin: 0 0 35px;
  color: #afc1d1 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
}
.ka-back-link:hover { color: #fff !important; }
.ka-service-copy h1 {
  margin: 0 0 23px;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(48px, 5.6vw, 78px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.025em;
}
.ka-service-lead {
  max-width: 760px;
  margin: 0 0 30px;
  color: #afc1d1;
  font-family: 'Lora', Georgia, serif;
  font-size: 21px;
  line-height: 1.62;
}
.ka-service-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.ka-service-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(155, 210, 241, .16);
  border-radius: 28px;
  background: #081323;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .37);
}
.ka-service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--service-image), linear-gradient(150deg, #153f63, #071521);
  background-size: cover;
  background-position: var(--service-position, center center);
  background-repeat: no-repeat;
  filter: saturate(.9) brightness(.76);
}
.ka-service-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 11, 20, .97) 2%, rgba(5, 11, 20, .55) 52%, rgba(5, 11, 20, .06) 100%);
}
.ka-service-visual-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
}
.ka-service-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid var(--ka-blue);
  border-radius: 50%;
  background: rgba(12, 42, 82, .8);
  color: var(--ka-blue);
  font-size: 13px;
  font-weight: 800;
}
.ka-service-visual h2 {
  max-width: 450px;
  margin: 0 0 13px;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
}
.ka-service-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.ka-service-metrics div {
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(155, 210, 241, .17);
  border-radius: 14px;
  background: rgba(5, 12, 22, .72);
}
.ka-service-metrics span,
.ka-service-metrics strong { display: block; }
.ka-service-metrics span {
  margin-bottom: 5px;
  color: #71879b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ka-service-metrics strong {
  color: #fff;
  font-size: 11px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.ka-service-section,
.ka-service-explore {
  padding: 74px 0;
  border-top: 1px solid rgba(155, 210, 241, .11);
}
.ka-service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #7fb6f0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.ka-service-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: 0 0 26px;
  background: linear-gradient(90deg, #7fb6f0, transparent);
}
.ka-service-heading {
  max-width: 850px;
  margin: 0 0 35px;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.ka-service-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 17px;
  align-items: stretch;
}
.ka-service-features article,
.ka-service-process-grid > ol,
.ka-service-process-grid > aside,
.ka-service-explore-grid a {
  border: 1px solid rgba(155, 210, 241, .14);
  background: linear-gradient(180deg, rgba(18, 34, 62, .94), rgba(9, 18, 34, .92));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}
.ka-service-features article {
  height: 100%;
  min-height: 240px;
  padding: 24px;
  border-radius: 22px;
}
.ka-service-features article > span {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(104, 182, 229, .12);
  color: var(--ka-blue);
  font-size: 12px;
  font-weight: 800;
}
.ka-service-features h3 {
  margin: 25px 0 10px;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
}
.ka-service-features p {
  margin: 0;
  color: #aebfd0;
  font-family: 'Lora', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.58;
}

.ka-service-process-section { background: rgba(2, 8, 15, .20); }
.ka-service-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
}
.ka-service-process-grid--single { grid-template-columns: 1fr; }
.ka-service-process-grid > ol,
.ka-service-process-grid > aside {
  margin: 0;
  padding: 28px;
  border-radius: 25px;
}
.ka-service-process-grid ol {
  list-style: none;
  display: grid;
  gap: 18px;
}
.ka-service-process-grid ol > li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.ka-service-process-grid ol > li > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #3b7cc3;
  border-radius: 50%;
  background: #0c2a52;
  color: var(--ka-blue);
  font-weight: 800;
}
.ka-service-step-copy h3 {
  margin: 1px 0 5px;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.ka-service-step-copy p {
  margin: 4px 0 0;
  color: #b2c5d6;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
}
.ka-service-process-grid > aside h3 {
  margin: 0 0 18px;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
}
.ka-service-process-grid > aside ul {
  list-style: none;
  margin: 0 0 25px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ka-service-process-grid > aside li {
  position: relative;
  display: block;
  padding-left: 23px;
  color: #b2c5d6;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.45;
}
.ka-service-process-grid > aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55d2a4;
  box-shadow: 0 0 11px rgba(85, 210, 164, .48);
}

/* Exact eight-service grid used at the end of every service */
.ka-service-explore { padding: 48px 0 49px; }
.ka-service-explore .ka-service-heading { margin-bottom: 31px; }
.ka-service-explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}
.ka-service-explore-grid a,
.ka-service-explore-grid a:link,
.ka-service-explore-grid a:visited {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 134px;
  padding: 18px;
  border-radius: 18px;
  background: #0d192d;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: none;
  transition: border-color .2s ease, background .2s ease;
}
.ka-service-explore-grid a:hover {
  border-color: rgba(127, 182, 240, .48);
  background: #101f37;
}
.ka-service-explore-grid a[aria-current="page"] {
  border-color: #7fb6f0;
  box-shadow: 0 0 0 1px rgba(127, 182, 240, .18) inset;
}
.ka-service-explore-number { display: none; }
.ka-service-explore-grid strong {
  display: block;
  margin: 0;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: normal;
}

/* Legal / generic document pages */
.ka-document-section { padding: 75px 0 110px; }
.ka-document-content {
  width: min(850px, calc(100% - 48px));
  margin: auto;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(7, 24, 39, .08);
}
.ka-document-content h2 {
  margin: 38px 0 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 27px;
}
.ka-document-content h2:first-child { margin-top: 0; }
.ka-document-content p,
.ka-document-content li {
  color: #4f5c68;
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.72;
}
.ka-document-content a { color: #2277a6; }
.ka-error-page {
  min-height: 70vh;
  display: grid;
  align-items: center;
  padding: 90px 0;
  background: linear-gradient(135deg, #071827, #143655);
  color: #fff;
}
.ka-error-page h1 {
  max-width: 850px;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(45px, 6vw, 82px);
}
.ka-error-page p {
  color: #c2d4e2;
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
}
.ka-error-page .ka-button { margin-top: 20px; }

@media (max-width: 1100px) {
  .ka-service-hero-grid { gap: 38px; }
  .ka-service-visual { min-height: 460px; }
  .ka-service-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ka-service-process-grid { grid-template-columns: 1fr; }
  .ka-service-explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root {
    --ka-header-height: 78px;
    --ka-wrap: min(1200px, calc(100% - 40px));
  }
  .ka-header-inner {
    width: calc(100% - 36px);
    grid-template-columns: 1fr auto;
  }
  .ka-header-logo img { height: 42px; max-width: 92px; }
  .ka-header-nav,
  .ka-header-spacer { display: none; }
  .ka-menu-button { display: block; }

  .ka-service-hero-grid { grid-template-columns: 1fr; }
  .ka-service-copy { max-width: 760px; }
  .ka-service-visual { width: min(100%, 560px); }
}

@media (max-width: 600px) {
  body.admin-bar .ka-site-header { top: 46px; }
  .ka-service-hero { padding: 52px 0 60px; }
  .ka-back-link { margin-bottom: 28px; }
  .ka-service-copy h1 { font-size: 46px; }
  .ka-service-lead { font-size: 18px; }
  .ka-service-visual { min-height: 430px; }
  .ka-service-visual-content { padding: 20px; }
  .ka-service-visual h2 { font-size: 26px; }
  .ka-service-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ka-service-metrics div { min-height: 68px; padding: 9px 7px; }
  .ka-service-metrics strong { font-size: 10px; }
  .ka-service-section,
  .ka-service-explore { padding: 58px 0; }
  .ka-service-features,
  .ka-service-explore-grid { grid-template-columns: 1fr; }
  .ka-service-process-grid > ol,
  .ka-service-process-grid > aside { padding: 22px; }
  .ka-service-explore-grid a { min-height: 112px; }
}

@media (max-width: 390px) {
  .ka-service-metrics { grid-template-columns: 1fr; }
  .ka-service-visual { min-height: 510px; }
}
