/* Shared visual-regression fixes. Loaded last so every rendered page uses
   deterministic navigation, logo, icon, and product-tour behavior. */

:root {
  --sc-header-bg: rgba(5, 25, 48, 0.94);
  --sc-header-line: rgba(126, 198, 244, 0.18);
}

/* The global header is always dark. It no longer flashes or switches to white. */
.header,
.header-transparent,
.header.solution-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
}

.header .navbar,
.header-transparent .navbar,
.header .navbar.is-sticky,
.header-transparent .navbar.is-sticky,
.solution-header .navbar,
.solution-header .navbar.is-sticky {
  border-bottom: 1px solid var(--sc-header-line) !important;
  background: var(--sc-header-bg) !important;
  box-shadow: 0 12px 32px rgba(1, 13, 27, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header .navbar.is-sticky,
.header-transparent .navbar.is-sticky,
.solution-header .navbar.is-sticky {
  position: fixed !important;
  height: 80px !important;
  max-height: 80px !important;
}

.header .navbar-nav > .nav__item > .nav__item-link,
.header-transparent .navbar-nav > .nav__item > .nav__item-link,
.header .navbar.is-sticky .navbar-nav > .nav__item > .nav__item-link,
.header-transparent .navbar.is-sticky .navbar-nav > .nav__item > .nav__item-link {
  color: #fff !important;
}

.header .navbar-nav > .nav__item > .nav__item-link:before,
.header-transparent .navbar-nav > .nav__item > .nav__item-link:before {
  background-color: #35b5ff !important;
}

.header .navbar-toggler .menu-lines span,
.header .navbar-toggler .menu-lines:after,
.header .navbar-toggler .menu-lines:before,
.header-transparent .navbar-toggler .menu-lines span,
.header-transparent .navbar-toggler .menu-lines:after,
.header-transparent .navbar-toggler .menu-lines:before {
  background-color: #fff !important;
}

.header .action__btn-contact,
.header-transparent .action__btn-contact,
.header .navbar.is-sticky .action__btn-contact,
.header-transparent .navbar.is-sticky .action__btn-contact {
  border-color: #159ff5 !important;
  background: #159ff5 !important;
  color: #fff !important;
}

/* One full-color logo asset is used in every header state. */
.navbar .logo-light,
.navbar .logo-dark {
  width: auto;
  height: 58px;
  max-width: 72px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.24));
}

.header-transparent .logo-light,
.header-transparent .logo-dark,
.navbar.is-sticky .logo-light,
.navbar.is-sticky .logo-dark {
  display: inline-block !important;
}

.navbar .logo-dark {
  display: none !important;
}

.sc-mobile-logo img {
  width: auto;
  height: 48px;
  opacity: 1;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.24));
}

/* Security cards inherit a dark panel, so their headings must remain light. */
.platform-security-panel .security-card h3,
.platform-security-panel .security-card p {
  color: #fff !important;
}

.platform-security-panel .security-card p {
  color: #cfe3f2 !important;
}

.platform-security-panel .security-card i {
  background: #eaf7ff;
  color: #078ff0;
}

/* Product images are presented as real interface tours, not small thumbnails. */
@media (min-width: 768px) {
  .product-tour {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .product-shot,
  .product-shot--wide {
    grid-column: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
  }

  .product-shot__media {
    min-height: 0;
    padding: 42px 18px 18px;
    background:
      radial-gradient(circle at 28px 21px, #ff6b62 0 5px, transparent 6px),
      radial-gradient(circle at 48px 21px, #ffc14d 0 5px, transparent 6px),
      radial-gradient(circle at 68px 21px, #43cf72 0 5px, transparent 6px),
      linear-gradient(#dfe8ef 0 40px, #eef3f7 40px);
  }

  .product-shot__media img {
    width: 100%;
    max-height: none;
    border: 1px solid #d6e1e9;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
  }

  .product-shot--portrait .product-shot__media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 760px;
  }
}

.product-shot__zoom {
  position: relative;
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  color: inherit;
  cursor: zoom-in;
}

.product-shot__zoom:after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(4, 28, 51, 0.9);
  color: #fff;
  content: "Open full-size â†—";
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(2, 18, 33, 0.24);
}

.product-shot figcaption {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--sc-line);
}

.product-shot figcaption strong {
  font-size: 18px;
}

.product-shot figcaption span {
  font-size: 15px;
}

/* More deliberate breathing room on the contact hero and CTA promises. */
.contact-hero {
  padding-bottom: 108px !important;
}

.contact-hero .lead {
  margin-bottom: 26px !important;
}

.contact-hero .contact-promise {
  margin-top: 28px !important;
}

.contact-hero .contact-promise span {
  min-height: 42px;
  padding: 10px 16px;
}

@media (max-width: 991.98px) {
  .header .navbar,
  .header-transparent .navbar,
  .header .navbar.is-sticky,
  .header-transparent .navbar.is-sticky {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
  }

  .navbar .logo-light,
  .navbar .logo-dark {
    height: 48px !important;
    max-width: 58px;
  }
}

@media (max-width: 767.98px) {
  .product-shot figcaption {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
  }

  .product-shot__zoom:after {
    right: 10px;
    bottom: 10px;
    content: "Tap to expand â†—";
  }

  .contact-hero {
    padding-bottom: 64px !important;
  }

  .contact-hero .contact-promise {
    margin-top: 22px !important;
  }
}


/* Keep the colored brand mark anchored at the upper-left of navigation. */
@media (min-width: 992px) {
  .navbar .navbar-brand {
    order: 0;
    margin-right: 30px !important;
    margin-left: 0 !important;
  }

  .navbar .navbar-collapse {
    order: 1;
  }

  .navbar > .container > .d-flex,
  .navbar > .container-fluid > .d-flex {
    order: 2;
    margin-left: 18px;
  }
}

@media (max-width: 991.98px) {
  .navbar .navbar-brand {
    position: absolute;
    right: auto;
    left: 20px;
    margin: 0 !important;
  }

  .navbar .navbar-toggler {
    right: 20px !important;
    left: auto !important;
  }

  .navbar .close-mobile-menu {
    right: 22px;
    left: auto;
  }

  .sc-mobile-logo {
    right: auto;
    left: 24px;
  }
}


/* Modern platform footer */
.footer .footer-modern {
  position: relative;
  overflow: hidden;
  padding: 46px 0 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(20,159,245,.16), transparent 27%),
    linear-gradient(145deg,#041427,#071f39 58%,#082b49);
  color: #b9cede;
}
.footer-modern__cta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 44px;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 25px;
  background: rgba(255,255,255,.065);
  box-shadow: 0 22px 55px rgba(0,0,0,.18);
}
.footer-modern__eyebrow {
  color: #5ec5ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-modern__cta h2 {
  max-width: 700px;
  margin: 10px 0 10px;
  color: #fff;
  font-size: clamp(30px,3vw,42px);
  line-height: 1.12;
  text-transform: none;
}
.footer-modern__cta p {
  max-width: 730px;
  margin: 0;
  color: #c3d7e6;
  font-size: 16px;
}
.footer-modern__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.footer-modern__actions .btn { margin: 0; }
.footer-modern__grid {
  display: grid;
  grid-template-columns: minmax(250px,1.55fr) repeat(4,minmax(125px,1fr));
  gap: 34px;
  align-items: start;
  padding: 40px 0 34px;
}
.footer-modern__brand {
  align-self: start;
  padding: 0;
}
.footer-modern__brand img {
  width: auto;
  height: 58px;
  margin-bottom: 16px;
  filter: drop-shadow(0 7px 14px rgba(0,0,0,.3));
}
.footer-modern__brand h3,
.footer-modern__column h3 {
  color: #fff;
  text-transform: none;
}
.footer-modern__brand h3 {
  margin-bottom: 9px;
  font-size: 21px;
}
.footer-modern__brand p {
  max-width: 300px;
  margin-bottom: 20px;
  color: #a9c0d2;
  font-size: 14px;
  line-height: 1.65;
}
.footer-modern__contact {
  display: grid;
  gap: 9px;
}
.footer-modern__contact a,
.footer-modern__contact span {
  color: #c7d9e6;
  font-size: 13px;
}
.footer-modern__contact i {
  width: 20px;
  color: #45baff;
}
.footer-modern__social {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
}
.footer-modern__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-modern__column h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.footer-modern__column a {
  color: #a9c0d2;
  font-size: 13px;
  line-height: 1.5;
}
.footer-modern__column a:hover { color: #fff; }
.footer-modern__column .fa-external-link-alt {
  margin-left: 4px;
  font-size: 10px;
}
.footer-modern__soon {
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(20,159,245,.16);
  color: #62c7ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-modern__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255,255,255,.11);
  color: #86a4ba;
  font-size: 12px;
}
@media(max-width:1199.98px) {
  .footer-modern__grid {
    grid-template-columns: minmax(240px,1.5fr) repeat(2,1fr);
  }
}
@media(max-width:991.98px) {
  .footer-modern__cta {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-modern__actions { justify-content: flex-start; }
}
@media(max-width:767.98px) {
  .footer .footer-modern { padding-top: 38px; text-align: left; }
  .footer-modern__cta {
    padding: 25px 20px;
    border-radius: 20px;
  }
  .footer-modern__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .footer-modern__actions .btn { width: 100%; }
  .footer-modern__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
    padding: 34px 0 30px;
  }
  .footer-modern__brand {
    grid-column: 1 / -1;
  }
  .footer-modern__contact,
  .footer-modern__brand .footer-modern__social {
    align-items: flex-start;
  }
  .footer-modern__column { align-items: flex-start; }
  .footer-modern__bottom {
    flex-direction: column;
    padding-bottom: 92px;
  }
}
@media(max-width:420px) {
  .footer-modern__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-modern__brand { grid-column: 1 / -1; }
  .footer-modern__column a { font-size: 12px; }
}


/* Sparky stays a normal nav label, with a restrained warm signal. */
.navbar .nav__item .nav__item-link--sparky {
  background: radial-gradient(ellipse at center,rgba(255,139,40,.16) 0,rgba(255,139,40,.07) 42%,transparent 72%);
  color: #ff9b3e !important;
  text-shadow: 0 0 13px rgba(255,126,39,.42);
  transition: color .2s ease,text-shadow .2s ease,background .2s ease;
}
.navbar .nav__item .nav__item-link--sparky:hover {
  background: radial-gradient(ellipse at center,rgba(255,139,40,.24) 0,rgba(255,139,40,.1) 42%,transparent 72%);
  color: #ffb264 !important;
  text-shadow: 0 0 17px rgba(255,126,39,.58);
}
.is-sticky .navbar .nav__item .nav__item-link--sparky {
  background: radial-gradient(ellipse at center,rgba(239,111,24,.12) 0,rgba(239,111,24,.05) 45%,transparent 72%);
  color: #d95b0d !important;
  text-shadow: 0 0 12px rgba(239,111,24,.2);
}

/* Exactly one Demo CTA is visible for each navigation mode. */
@media(max-width:1199.98px) {
  .header .action__btn-contact,
  .header-transparent .action__btn-contact {
    display: none !important;
  }
}
@media(max-width:991.98px) {
  .navbar .nav__item .nav__item-link--sparky {
    background: radial-gradient(ellipse at 44px center,rgba(255,139,40,.2) 0,rgba(255,139,40,.08) 42%,transparent 76%);
    color: #ff9b3e !important;
    text-shadow: 0 0 14px rgba(255,126,39,.38);
  }
}
