/* Licensing page hero — unified NAQDA government visual system */

.licensing-page .hero {
  --license-navy: #071f2b;
  --license-navy-2: #0b2f3e;
  --license-teal: #0f7b84;
  --license-teal-dark: #0c6873;
  --license-gold: #c69c46;
  --license-ink: #17262d;
  --license-muted: #53666e;
  --license-line: #d8e2e5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(62px, 7vw, 88px) 22px clamp(76px, 9vw, 108px);
  color: var(--license-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 250, 0.97) 62%, rgba(229, 241, 240, 0.95) 100%),
    #f5f8f8;
  border-bottom: 4px solid var(--license-gold);
}

.licensing-page .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--license-teal);
  opacity: 1;
}

.licensing-page .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -170px;
  right: -140px;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(15, 123, 132, 0.13);
  border-radius: 50%;
}

.licensing-page .hero__container {
  width: min(100%, 1240px);
  max-width: 1240px;
  margin: 0 auto;
}

.licensing-page .hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
  grid-template-rows: repeat(4, auto);
  gap: 20px clamp(40px, 6vw, 78px);
  align-items: center;
  max-width: none;
  min-height: 470px;
}

.licensing-page .hero__eyebrow,
.licensing-page .hero__title,
.licensing-page .hero__text,
.licensing-page .hero__actions {
  grid-column: 1;
}

.licensing-page .hero__eyebrow {
  align-self: end;
  width: fit-content;
  padding: 0 0 9px;
  color: var(--license-teal-dark);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--license-gold);
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.licensing-page .hero__title {
  max-width: 760px;
  margin: 0;
  color: var(--license-navy);
  font-family: "Inter", "Public Sans", sans-serif;
  font-size: clamp(2.65rem, 5vw, 4.3rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.052em;
  text-shadow: none;
}

.licensing-page .hero__text {
  max-width: 700px;
  margin: 0;
  color: var(--license-muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
}

.licensing-page .hero__actions {
  align-self: start;
  gap: 10px;
  margin-top: 4px;
}

.licensing-page .hero__actions a {
  min-height: 48px;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.licensing-page .hero__actions a.primary {
  color: #fff;
  background: var(--license-teal);
  border-color: var(--license-teal);
  box-shadow: none;
}

.licensing-page .hero__actions a.secondary {
  color: var(--license-navy-2);
  background: #fff;
  border-color: #aebfc4;
}

.licensing-page .hero__actions a:hover,
.licensing-page .hero__actions a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(12, 104, 115, 0.16);
}

.licensing-page .hero__actions a.primary:hover,
.licensing-page .hero__actions a.primary:focus-visible {
  color: #fff;
  background: var(--license-teal-dark);
  border-color: var(--license-teal-dark);
}

.licensing-page .hero__actions a.secondary:hover,
.licensing-page .hero__actions a.secondary:focus-visible {
  color: var(--license-teal-dark);
  background: #f1f9f8;
  border-color: var(--license-teal);
}

.licensing-page .hero__metrics {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  align-self: stretch;
  margin: 0;
  padding: clamp(34px, 4vw, 48px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 123, 132, 0.24), transparent 46%),
    var(--license-navy);
  border-left: 5px solid var(--license-gold);
  border-radius: 6px;
  box-shadow: 0 22px 54px rgba(7, 31, 43, 0.16);
}

.licensing-page .hero__metrics::before {
  content: "";
  display: block;
  align-self: end;
  width: 72px;
  height: 3px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--license-teal) 0 70%, var(--license-gold) 70% 100%);
}

.licensing-page .metric-card {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 23px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  backdrop-filter: none;
}

.licensing-page .metric-card:last-child {
  border-bottom: 0;
}

.licensing-page .metric-card strong {
  color: #fff;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.licensing-page .metric-card span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.81rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .licensing-page .hero__content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .licensing-page .hero__eyebrow,
  .licensing-page .hero__title,
  .licensing-page .hero__text,
  .licensing-page .hero__actions,
  .licensing-page .hero__metrics {
    grid-column: 1;
  }

  .licensing-page .hero__metrics {
    grid-row: auto;
    min-height: 420px;
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  .licensing-page .hero {
    padding: 48px 18px 76px;
  }

  .licensing-page .hero::before {
    width: 4px;
  }

  .licensing-page .hero__title {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
  }

  .licensing-page .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .licensing-page .hero__actions a {
    width: 100%;
  }

  .licensing-page .hero__metrics {
    min-height: auto;
    padding: 28px 24px;
  }

  .licensing-page .metric-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
  }

  .licensing-page .metric-card strong {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .licensing-page .hero__actions a {
    transition: none;
  }
}
