/* Shared preview header. The original uploaded logo stays unchanged. */
.site-header,
body.is-light .site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: block;
  width: calc(100% - 32px);
  max-width: 1600px;
  height: auto;
  min-height: 0;
  margin: 18px auto 0;
  padding: 0;
  color: #142c50;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #ffffffc9;
  border-radius: 15px;
  box-shadow: 0 4px 12px #05183005, 0 16px 45px #061a4021;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
}
.site-header .brand {
  margin: 0;
  padding: 0;
  gap: 0;
  border-radius: 0;
  background: transparent;
  justify-self: start;
}
.site-header .brand .brand-logo { width: 174px; height: auto; }
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  order: initial;
  width: auto;
  margin: 0;
  padding: 0;
  justify-self: center;
}
.header-menu-links { display: flex; align-items: center; gap: 6px; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  color: #56667e;
  border: 0;
  border-radius: 8px;
  font-size: var(--text-nav);
  font-weight: 600;
  white-space: nowrap;
  opacity: 1;
  transition: color .18s, background .18s;
  line-height: 1.5;
}
.site-header nav a:hover { color: #1d5fd1; background: #f2f6fc; }
.site-header nav a.active { color: #185ad0; background: #edf3ff; font-weight: 650; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 10px;
  color: #183d72;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: var(--text-button);
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s;
  line-height: 1.5;
}
.header-login:hover,
.header-login.active { color: #0755df; background: transparent; }
.site-header .header-trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid #245cb0;
  border-radius: 9px;
  color: #18417d;
  background: transparent;
  font-size: var(--text-button);
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
  line-height: 1.5;
}
.site-header .header-trial:hover,
.site-header .header-trial.active { color: #104a9e; background: #edf4ff; border-color: #125cf3; }
.site-header svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.site-header .button {
  min-height: 44px;
  padding: 12px 18px;
  gap: 0;
  border-radius: 9px;
  font-size: var(--text-button);
  font-weight: 600;
  color: white;
  background: #125cf3;
  border: 1px solid #125cf3;
  box-shadow: none;
  white-space: nowrap;
  line-height: 1.5;
}
.site-header .button:hover { color: white; background: #064bd9; border-color: #064bd9; transform: none; }
.header-menu-toggle { display: none; }
.site-header nav .header-mobile-contact { display: none; }
.site-header .header-mobile-actions { display: none; }
.header-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#why-choose-us, #ai { scroll-margin-top: 115px; }

@media (max-width: 1240px) {
  .header-inner { gap: 16px; padding: 15px 20px; }
  .site-header .brand .brand-logo { width: 157px; }
  .site-header nav a { padding: 11px 12px; font-size: var(--text-nav); line-height: 1.5; font-weight: 600; }
  .header-actions { gap: 8px; }
  .header-login { font-size: var(--text-button); padding-inline: 8px; line-height: 1.5; font-weight: 600; }
  .site-header .header-actions .header-trial,
  .site-header .header-actions > .button { font-size: var(--text-button); padding-inline: 13px; line-height: 1.5; font-weight: 600; }
}
@media (max-width: 1340px) {
  .site-header,
  body.is-light .site-header { width: calc(100% - 28px); border-radius: 13px; }
  .header-inner { grid-template-columns: auto 1fr; gap: 14px; padding: 15px 18px; }
  .site-header .brand .brand-logo { width: 162px; }
  .header-actions { justify-self: end; gap: 9px; }
  .site-header .header-actions .header-trial,
  .site-header .header-actions > .button { font-size: var(--text-button); padding-inline: 14px; min-height: 40px; line-height: 1.5; font-weight: 600; }
  .header-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dce4f0;
    border-radius: 8px;
    background: #fff;
    color: #2f4c72;
    cursor: pointer;
  }
  .header-menu-toggle:hover { background: #f2f6ff; }
  .header-menu-toggle svg { width: 19px; height: 19px; }
  .header-menu-toggle .menu-close-icon { display: none; }
  .header-menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
  .header-menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }
  .site-header nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    order: initial;
    align-items: stretch;
    flex-direction: column;
    border-top: 1px solid #eaf0f8;
    padding-top: 12px;
  }
  .site-header[data-menu-open="true"] nav { display: flex; }
  .header-menu-links { align-items: stretch; flex-direction: column; gap: 4px; }
  .site-header nav a { justify-content: space-between; min-height: 44px; padding: 13px 12px; font-size: var(--text-nav); border-radius: 8px; line-height: 1.5; font-weight: 600; }
  .site-header nav .header-mobile-contact { display: inline-flex; }
}
@media (max-width: 720px) {
  .site-header,
  body.is-light .site-header { top: 10px; width: calc(100% - 20px); margin-top: 12px; border-radius: 12px; }
  .header-inner { gap: 10px; padding: 13px 14px; }
  .site-header .brand .brand-logo { width: 143px; }
  .header-login { min-height: 37px; padding: 9px 8px; font-size: var(--text-button); line-height: 1.5; font-weight: 600; }
  .header-actions { gap: 7px; }
  .header-actions > .header-demo,
  .header-actions > .header-trial { display: none; }
  .header-menu-toggle { width: 37px; height: 37px; }
  .site-header .header-mobile-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #eaf0f8; }
  .site-header .header-mobile-actions > a { flex: 1; justify-content: center; min-height: 44px; padding: 12px 8px; font-size: var(--text-button); line-height: 1.5; font-weight: 600; }
  #why-choose-us, #ai { scroll-margin-top: 95px; }
}
@media (max-width: 360px) {
  .header-inner { padding: 12px; gap: 8px; }
  .site-header .brand .brand-logo { width: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header a { transition: none; }
}

/* The homepage header shares the hero's continuous blue background. */
body.is-home .site-header {
  color: #d9e6fb;
  background: #08172c70;
  border-color: #a8c8ff24;
  box-shadow: 0 8px 30px #030b181a;
}
body.is-home .site-header .brand {
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff;
}
body.is-home .site-header nav a { color: #b7c8e3; }
body.is-home .site-header nav a:hover { color: #fff; background: #adcaff0e; }
body.is-home .site-header nav a.active { color: #e0edff; background: #81aeff18; }
body.is-home .header-login {
  color: #dce9fb;
  background: transparent;
}
body.is-home .header-login:hover { color: #fff; background: transparent; }
body.is-home .site-header .header-trial { color: #dce9fb; border-color: #91b6ee; background: transparent; }
body.is-home .site-header .header-trial:hover,
body.is-home .site-header .header-trial.active { color: #fff; border-color: #c5dbff; background: #91b6ee12; }
body.is-home .header-menu-toggle { color: #d4e4fb; background: #8eb8ff08; border-color: #a3c5fb36; }
body.is-home .header-menu-toggle:hover { background: #6b9fef1a; }
body.is-home .site-header nav,
body.is-home .site-header .header-mobile-actions { border-top-color: #a3c5fb24; }
body.is-home .site-header nav a.button { color: #fff; background: #125cf3; }
body.is-home .site-header nav a.button:hover { background: #064bd9; }
