/* HQ Software — visual refresh 1.0.
   Scoped additions; layout and marketing copy remain intact. */

:root {
  --hq-visual-electric: #5497ff;
  --hq-visual-ice: #dfeeff;
}

.hq-nav {
  border-bottom: 1px solid rgba(207, 222, 243, 0.65);
  box-shadow: 0 8px 35px rgba(10, 32, 63, 0.055);
}

.hq-hero--visual {
  position: relative;
  padding: clamp(6.3rem, 10vw, 8.5rem) 0 clamp(3.6rem, 6vw, 5.25rem);
  background:
    radial-gradient(650px 440px at 84% 40%, rgba(54, 113, 246, 0.28), transparent 75%),
    radial-gradient(500px 320px at 17% 100%, rgba(27, 82, 159, 0.42), transparent 78%),
    linear-gradient(127deg, #071426 0%, #0c2343 52%, #101c35 100%);
}

.hq-hero--visual::before {
  opacity: 0.60;
}

.hq-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3.5rem);
}

.hq-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hq-hero--visual h1 {
  max-width: 18ch;
  font-size: clamp(2.55rem, 3.65vw, 4.15rem);
  line-height: 1.09;
  letter-spacing: -0.042em;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

.hq-hero--home h1 {
  max-width: 13ch;
  font-size: clamp(3.05rem, 4.25vw, 4.65rem);
}

.hq-hero--visual .hq-lead {
  max-width: 37rem;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.63;
  margin-bottom: 1rem;
  color: #dce9fb;
}

.hq-hero--visual .hq-hero-actions {
  margin-top: 1.65rem;
  gap: 0.7rem;
}

.hq-hero--visual .hq-signature {
  font-weight: 700;
  letter-spacing: 0.025em;
  color: #c9dfff;
}

.hq-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  isolation: isolate;
  pointer-events: none;
}

.hq-hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(80%, 32rem);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(56, 117, 245, 0.20), transparent 65%);
  filter: blur(15px);
}

.hq-hero-art img {
  display: block;
  width: 100%;
  max-width: 610px;
  height: auto;
  filter: drop-shadow(0 27px 55px rgba(2, 9, 25, 0.20));
}

.hq-hero--visual .hq-breadcrumb {
  position: relative;
  margin-bottom: 1.1rem;
}

.hq-home-section {
  position: relative;
  padding-top: clamp(3.2rem, 5.5vw, 5.2rem);
  padding-bottom: clamp(3.2rem, 5.5vw, 5.2rem);
}

.hq-home-section--white {
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
}

.hq-home-section h2,
.hq-page-head h1 {
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hq-home-section > .container > h2 {
  max-width: 25ch;
}

.hq-home-section .hq-lead {
  max-width: 51rem;
  line-height: 1.65;
}

.hq-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hq-card:hover {
  border-color: rgba(83, 128, 205, 0.35);
  box-shadow: 0 18px 46px rgba(12, 31, 61, 0.075);
}

.hq-home-card {
  position: relative;
}

.hq-service-number {
  position: absolute;
  top: 1.2rem;
  right: 1.35rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #d7e5f8;
  border-radius: 11px;
  background: #f0f6ff;
  color: #2a63c3;
  font: 700 0.85rem/1 Manrope, sans-serif;
}

.hq-service-number + .hq-kicker {
  padding-right: 2.8rem;
}

.hq-btn {
  transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.hq-btn:hover {
  transform: translateY(-1px);
}

.hq-btn:focus-visible,
.hq-card a:focus-visible {
  outline: 3px solid #6ea9ff;
  outline-offset: 3px;
}

.hq-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: stretch;
}

.hq-feature-layout > .hq-product-feature {
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(196, 223, 255, 0.35), transparent),
    #fff;
}

.hq-feature-layout > .hq-product-feature .hq-btn {
  align-self: flex-start;
  margin-top: 1rem;
}

.hq-feature-image {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(159, 188, 233, .35);
  border-radius: 23px;
  background: #10213d;
  box-shadow: 0 18px 52px rgba(8, 29, 60, 0.10);
}

.hq-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 250ms ease;
}

.hq-feature-image:hover img,
.hq-feature-image:focus-visible img {
  transform: scale(1.025);
}

.hq-feature-image > span {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  left: 0.85rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  background: rgba(6, 19, 40, 0.90);
  color: #fff;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.hq-editorial-grid {
  margin-bottom: 1.25rem;
}

.hq-editorial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.7rem;
  overflow: hidden;
}

.hq-editorial-card__accent {
  display: block;
  width: 3.5rem;
  height: 0.3rem;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #377df1, #81bbff);
}

.hq-editorial-card h3 {
  line-height: 1.26;
  font-size: clamp(1.08rem, 1.25vw, 1.27rem);
}

.hq-editorial-card h3 a {
  color: var(--hq-navy, #0b1f3a);
  text-decoration: none;
}

.hq-editorial-card h3 a:hover {
  color: var(--hq-accent, #256ee1);
}

.hq-editorial-card p:not(.hq-kicker) {
  color: var(--hq-muted, #51627b);
  line-height: 1.6;
  flex-grow: 1;
}

.hq-editorial-card > .hq-card-more {
  align-self: flex-start;
  margin-top: 1rem;
}

.hq-page-head {
  background:
    radial-gradient(550px 280px at 92% 4%, rgba(191, 215, 251, 0.32), transparent 77%),
    linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
}

.hq-cta {
  background:
    radial-gradient(550px 290px at 85% 15%, rgba(48, 113, 248, .35), transparent 65%),
    linear-gradient(128deg, #08182e 0%, #102b50 100%);
}

.hq-portfolio-card .hq-kicker {
  margin-top: 0.2rem;
}

@media (max-width: 991.98px) {
  .hq-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .hq-hero-art {
    max-width: 510px;
    width: min(100%, 80vw);
    margin: 0 auto;
  }

  .hq-hero-art img {
    max-height: 360px;
    object-fit: contain;
  }

  .hq-hero--visual {
    padding-bottom: 2.5rem;
  }

  .hq-feature-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hq-feature-image {
    min-height: 270px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 575.98px) {
  .hq-hero--visual {
    padding-top: 6.5rem;
    padding-bottom: 2rem;
  }

  .hq-hero--visual h1,
  .hq-hero--home h1 {
    font-size: clamp(2.35rem, 8.3vw, 3.1rem);
    max-width: 18ch;
  }

  .hq-hero-art {
    width: 100%;
    max-width: 370px;
    margin-top: 0.2rem;
  }

  .hq-hero-art img {
    max-height: 265px;
  }

  .hq-feature-image {
    min-height: 225px;
  }

  .hq-editorial-card {
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hq-btn,
  .hq-card,
  .hq-feature-image img {
    transition: none !important;
  }
}

/* Lighter editorial and company page headers */
.hq-page-head--illustrated {
  padding: clamp(3rem, 4.5vw, 4.5rem) 0;
  overflow: hidden;
}

.hq-page-head-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.6rem);
}

.hq-page-head-copy {
  min-width: 0;
}

.hq-page-head--illustrated h1 {
  max-width: 19ch;
  line-height: 1.1;
  font-size: clamp(2.15rem, 3.15vw, 3.35rem);
}

.hq-page-head--illustrated .hq-lead {
  line-height: 1.65;
  max-width: 44rem;
}

.hq-page-head-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 15px 38px rgba(32, 82, 147, 0.12));
}

.hq-knowledge-card h2 {
  font-size: clamp(1.2rem, 1.45vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hq-knowledge-card .hq-btn {
  margin-top: auto;
  align-self: flex-start;
}

.hq-knowledge-card .hq-editorial-card__accent {
  margin-bottom: 0.9rem;
}

@media (max-width: 991.98px) {
  .hq-page-head-layout {
    grid-template-columns: 1fr;
  }
  .hq-page-head-art {
    width: min(100%, 360px);
    margin: -0.5rem auto -1rem;
    max-height: 230px;
  }
}

@media (max-width: 575.98px) {
  .hq-page-head-art {
    max-height: 180px;
  }
}
