/* FROZEN COPY of app/assets/stylesheets/pages/pages/home/hero.css — /partners only.
   UNLAYERED ON PURPOSE: wrapping the home page CSS in a cascade layer is exactly
   the regression commit e8a8b6e shipped and 8623049 reverted (unlayered Bootstrap
   in /landing/css/styles.css then stomps the page and the hero collapses). */
.btn.hero-apply-btn {
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.6);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.95));
  color: #eff6ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.36);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn.hero-apply-btn:hover {
  border-color: rgba(191, 219, 254, 0.78);
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.98), rgba(37, 99, 235, 0.98));
  color: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(30, 64, 175, 0.42);
}
.btn.hero-apply-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.38), 0 12px 24px rgba(30, 64, 175, 0.36);
}
.btn.hero-secondary-btn {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.52);
  background: rgba(15, 23, 42, 0.48);
  color: var(--home-ink-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn.hero-secondary-btn:hover {
  border-color: rgba(147, 197, 253, 0.72);
  background: rgba(30, 41, 59, 0.66);
  color: var(--home-ink-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.38);
}
.btn.hero-secondary-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.3), 0 12px 24px rgba(2, 6, 23, 0.34);
}

.home-hero {
  position: relative;
  background: var(--home-bg-deep);
  overflow: hidden;
  padding: 136px 0 118px;
  min-height: 860px;
}
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 38%, rgba(59, 130, 246, 0.26), transparent 48%);
  pointer-events: none;
}
.home-hero__container {
  position: relative;
  max-width: 1320px;
}
.home-hero__row {
  --bs-gutter-x: 0;
  display: block;
  position: relative;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.home-hero__row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
[data-hero-kpi-column] {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.home-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.home-hero .home-hero__title {
  line-height: 1.02;
  max-width: 720px;
  font-size: clamp(3.7rem, 3.9vw, 4.35rem);
  letter-spacing: 0;
}
.home-hero__title-line {
  display: block;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: home-hero-title-line-enter 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.home-hero__title-line:nth-child(2) {
  animation-delay: 90ms;
}
.home-hero__title-line:nth-child(3) {
  animation-delay: 180ms;
}
.home-hero__title-line:nth-child(4) {
  animation-delay: 270ms;
}
.home-hero__title-rotator {
  position: relative;
  height: 1.16em;
  width: 100%;
  max-width: 100%;
  padding-bottom: 0.2em;
  overflow: hidden;
  color: #2563eb;
}
.home-hero__title-rotator-track {
  display: grid;
  grid-auto-rows: 1fr;
  animation: home-hero-title-rotate-down 12s cubic-bezier(0.76, 0, 0.24, 1) 840ms infinite;
}
.home-hero__title-rotator-item {
  min-height: 1.16em;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1;
  padding-bottom: 0.2em;
  white-space: nowrap;
  background: linear-gradient(135deg, #2563eb 0%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.home-hero__lead {
  max-width: 620px;
  color: #f1f5f9;
  line-height: 1.68;
  font-size: 1.16rem;
}
.home-hero__list {
  max-width: 640px;
  color: #e2e8f0;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.55;
  list-style: none;
  padding-left: 0;
}
.home-hero__kicker {
  color: #e2e8f0;
}
.home-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  max-width: 620px;
  margin: 0 0 15px;
}
.home-hero-proof-item {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.46);
  padding: 13px 14px;
  min-width: 0;
}
.home-hero-proof-item__value {
  display: block;
  color: var(--home-ink-bright);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.home-hero-proof-item__label {
  display: block;
  margin-top: 6px;
  color: var(--home-ink-mid);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.home-hero__actions {
  max-width: 620px;
}
.hero-kpi-panel {
  position: absolute;
  top: 53%;
  right: clamp(-340px, -15vw, -190px);
  width: clamp(630px, 49vw, 810px);
  max-width: none;
  transform: translateY(-50%);
  margin: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  pointer-events: auto;
  color: var(--home-ink-soft);
  transition: box-shadow 260ms ease, border-color 260ms ease;
  will-change: transform, opacity;
}
.hero-kpi-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(125, 211, 252, 0.26);
  opacity: 0;
  pointer-events: none;
}
.hero-kpi-panel.is-entering {
  animation: hero-kpi-enter 520ms cubic-bezier(0.16, 1, 0.3, 1) 560ms both;
}
@keyframes hero-kpi-enter {
  from {
    opacity: 0;
    transform: translate3d(42px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes hero-kpi-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 11px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.hero-kpi-panel.is-entering .hero-globe-stage {
  animation: hero-kpi-fade-up 420ms cubic-bezier(0.22, 1, 0.36, 1) 720ms both;
}
.hero-globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  isolation: isolate;
  margin: 0;
}
.hero-globe-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 54% 44%, rgba(30, 41, 59, 0.34), transparent 48%),
    radial-gradient(circle at 34% 62%, rgba(125, 211, 252, 0.08), transparent 42%);
  filter: blur(14px);
  opacity: 0.95;
  pointer-events: none;
}
.hero-globe-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  border-radius: 50%;
  mix-blend-mode: normal;
  cursor: default;
  touch-action: auto;
  transform: none;
  filter: saturate(1.08) contrast(1.05);
}
.hero-globe-badges {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  overflow: hidden;
}
.hero-globe-badge {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  background: transparent;
  color: var(--badge-color, #bfdbfe);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  transform-origin: 0 0;
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.hero-globe-badge.is-on-globe {
  opacity: 1;
  transform: scale(1);
}
.hero-globe-badge__leader {
  position: absolute;
  left: 0;
  top: -48px;
  width: 2px;
  height: 46px;
  transform: translateX(-50%);
  transform-origin: bottom center;
  background: linear-gradient(0deg, var(--badge-color, #bfdbfe), rgba(226, 232, 240, 0.56), rgba(226, 232, 240, 0.08));
}
.hero-globe-badge__leader {
  border-radius: 999px;
  box-shadow:
    0 0 8px var(--badge-glow, rgba(96, 165, 250, 0.35)),
    0 0 18px var(--badge-glow, rgba(96, 165, 250, 0.22));
  opacity: 0.62;
  transition: opacity 180ms ease, box-shadow 180ms ease;
}
.hero-globe-badge__panel {
  position: absolute;
  left: 0;
  top: -77px;
  min-width: 78px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.34),
    0 12px 24px rgba(2, 6, 23, 0.28),
    0 0 14px var(--badge-glow, rgba(96, 165, 250, 0.18));
  opacity: 0;
  transform: translate(-50%, 4px) scale(0.96);
  transform-origin: center bottom;
  transition: opacity 180ms ease, transform 180ms ease;
}
.hero-globe-badge[data-callout-side="left"] .hero-globe-badge__leader {
  left: 0;
  background: linear-gradient(0deg, var(--badge-color, #bfdbfe), rgba(226, 232, 240, 0.56), rgba(226, 232, 240, 0.08));
  transform: translateX(-50%);
  transform-origin: bottom center;
}
.hero-globe-badge[data-callout-side="left"] .hero-globe-badge__panel {
  left: 0;
  right: auto;
}
.hero-globe-badge__city,
.hero-globe-badge__status {
  display: block;
  line-height: 1;
}
.hero-globe-badge__city {
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
}
.hero-globe-badge__status {
  margin-top: 4px;
  color: var(--badge-color, #bfdbfe);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.94;
}
.hero-globe-badge.is-visible {
  pointer-events: auto;
}
.hero-globe-badge.is-visible .hero-globe-badge__leader {
  opacity: 0.96;
}
.hero-globe-badge.is-visible .hero-globe-badge__panel {
  opacity: 1;
}
.hero-globe-badge.is-visible .hero-globe-badge__panel {
  transform: translate(-50%, 0) scale(1);
}
.hero-globe-badge.is-featured .hero-globe-badge__panel {
  animation: hero-globe-badge-pulse 1.8s ease-in-out infinite;
}
.hero-globe-badge--live {
  --badge-color: var(--home-accent-green);
  --badge-glow: rgba(34, 197, 94, 0.28);
}
.hero-globe-badge--amber {
  --badge-color: var(--home-accent-amber);
  --badge-glow: rgba(245, 158, 11, 0.3);
}
.hero-globe-badge--gold {
  --badge-color: var(--home-accent-gold);
  --badge-glow: rgba(251, 191, 36, 0.3);
}
.hero-globe-badge--violet {
  --badge-color: var(--home-accent-violet);
  --badge-glow: rgba(167, 139, 250, 0.3);
}
.hero-globe-badge--blue {
  --badge-color: #60a5fa;
  --badge-glow: rgba(96, 165, 250, 0.3);
}
@keyframes hero-globe-badge-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(15, 23, 42, 0.34),
      0 12px 24px rgba(2, 6, 23, 0.24),
      0 0 14px var(--badge-glow, rgba(96, 165, 250, 0.2));
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(15, 23, 42, 0.34),
      0 14px 28px rgba(2, 6, 23, 0.3),
      0 0 24px var(--badge-glow, rgba(96, 165, 250, 0.38));
  }
}
@keyframes home-hero-title-line-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes home-hero-title-rotate-down {
  0%, 13% {
    transform: translateY(0%);
  }

  18%, 31% {
    transform: translateY(-20%);
  }

  36%, 49% {
    transform: translateY(-40%);
  }

  54%, 67% {
    transform: translateY(-60%);
  }

  72%, 100% {
    transform: translateY(-80%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kpi-panel,
  .hero-kpi-panel::after,
  .hero-kpi-panel *,
  .home-hero__title-line,
  .home-hero__title-rotator-track {
    animation: none !important;
    transition: none !important;
  }
  .home-hero__title-line {
    opacity: 1;
    transform: none;
  }
  .home-hero__title-rotator-track {
    transform: none;
  }
  .home-hero__title-rotator-item:not(:first-child) {
    display: none;
  }
}
@media (max-width: 1500px) {
  .hero-kpi-panel {
    right: clamp(-110px, -5vw, -56px);
    width: clamp(560px, 43vw, 690px);
    max-width: none;
  }
}
/* 1200–1399: Bootstrap's .container collapses to 1140px (its xl breakpoint), which
   crams the hero and slides the copy right — so the globe, right-anchored, would tuck
   under the text. Push it further right (and trim width a touch so it stays fully on
   screen) across this whole band so its left edge clears the copy. Above 1400 the
   container is 1320 again and the roomier ≤1500 values are correct. */
@media (max-width: 1399.98px) {
  .hero-kpi-panel {
    right: clamp(-185px, -12vw, -150px);
    width: clamp(490px, 38vw, 545px);
    max-width: none;
  }
}
@media (max-width: 1366px) {
  .home-hero__row {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
    gap: 50px;
  }
  .home-hero .home-hero__title {
    font-size: clamp(3.65rem, 4.1vw, 4.25rem);
  }
  .hero-kpi-panel {
    right: clamp(-155px, -10vw, -110px);
    width: clamp(520px, 41vw, 610px);
    max-width: none;
  }
}
@media (max-width: 1280px) {
  .home-hero__row {
    grid-template-columns: minmax(0, 1fr) minmax(410px, 0.8fr);
    gap: 42px;
  }
  .home-hero .home-hero__title {
    font-size: clamp(3.35rem, 3.9vw, 3.9rem);
  }
  .hero-kpi-panel {
    right: clamp(-140px, -9.5vw, -100px);
    width: clamp(490px, 39vw, 560px);
    max-width: none;
  }
}
@media (max-width: 992px) {
  .home-hero {
    padding: 124px 0 92px;
    min-height: auto;
  }
  .home-hero__row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 28px;
  }
  .home-hero__row > [class*="col-"] {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  [data-hero-kpi-column] {
    position: static !important;
    min-height: auto;
  }
  .home-hero__copy {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  .home-hero .home-hero__title {
    max-width: none;
    font-size: clamp(3.2rem, 8.4vw, 4rem);
  }
  .home-hero__lead {
    max-width: none;
    font-size: 1.1rem;
  }
  .home-hero__list,
  .home-hero__proof,
  .home-hero__actions {
    max-width: none;
  }
  .home-hero__list {
    font-size: 1rem;
  }
  .home-hero__actions {
    gap: 12px !important;
  }
  .hero-kpi-panel {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 620px;
    transform: none;
    margin: 12px auto 0;
    padding: 14px;
  }
  .hero-globe-stage {
    width: min(100%, 520px);
    margin: 0 auto;
  }
  .hero-globe-canvas {
    width: 100%;
    height: 100%;
  }
}
@media (max-width: 576px) {
  .home-hero {
    padding: 128px 0 78px;
  }
  header.home-hero .home-hero__container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .home-hero .home-hero__title {
    font-size: clamp(1.65rem, 6.7vw, 2.1rem);
    line-height: 1.02;
  }
  .home-hero__title-line {
    white-space: normal;
  }
  .home-hero__lead {
    font-size: clamp(0.95rem, 4.2vw, 1rem);
    line-height: 1.55;
  }
  .home-hero__list {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .home-hero__kicker {
    font-size: 12px;
  }
  .home-hero__proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .home-hero-proof-item {
    padding: 10px 12px;
  }
  .home-hero-proof-item__value {
    font-size: 20px;
  }
  .home-hero-proof-item__label {
    font-size: 10px;
  }
  .home-hero__actions .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    font-size: 13px;
  }
  .hero-kpi-panel {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
  }
  .hero-globe-stage {
    width: min(100%, 360px);
    min-height: 300px;
    margin: 0 auto;
  }
  .hero-globe-canvas {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 420px) {
  .home-hero {
    padding: 120px 0 68px;
  }
  header.home-hero .home-hero__container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .home-hero .home-hero__title {
    font-size: clamp(1.4rem, 6.2vw, 1.72rem);
  }
  .home-hero__lead {
    font-size: clamp(0.9rem, 4vw, 0.96rem);
  }
  .home-hero__proof {
    gap: 7px;
  }
  .home-hero-proof-item {
    padding: 9px 10px;
  }
  .hero-kpi-panel {
    padding: 10px;
  }
}


/* The hero globe is a right-anchored background visual sitting BEHIND the copy
   (z-index 0). It scales down via the per-breakpoint width/right clamps above, but
   below ~1200px the viewport is too narrow to fit the globe beside the full-size
   copy, so a large chunk of it would be occluded by the text and read as an awkward
   half-globe. Rather than shrink it into a sliver (or shrink the hero copy), hide it
   — same as on mobile — until there's room for it to show cleanly. */
@media (max-width: 1199.98px) {
  [data-hero-kpi-column] {
    display: none;
  }
}
