/* KOVA hero — original user-provided assets only */
.hero-stage4 {
  position: relative;
  min-height: 780px;
  height: min(86vh, 900px);
  overflow: hidden;
  isolation: isolate;
  background: #030405;
}
:root[data-theme="light"] .hero-stage4 {
  background: #f7f8fa;
}
.hero-galaxy-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: .98;
  transition: opacity .35s ease;
}
.hero-stage4::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,rgb(0 0 0 / 6%) 0%,transparent 22%,transparent 72%,rgb(0 0 0 / 24%) 100%);
}
:root[data-theme="light"] .hero-stage4::before {
  background: linear-gradient(180deg,rgb(255 255 255 / 6%) 0%,transparent 22%,transparent 72%,rgb(255 255 255 / 22%) 100%);
}
.hero-stage4::after { content: none; }
.hero-stage4 .hero-inner {
  height: 100%;
  min-height: inherit;
  position: relative;
  z-index: 2;
}
.hero-stage4 .desktop-hero-title,
.hero-stage4 .earth,
.hero-title-art,
.hero-wordmark,
.hero-horizon { display: none !important; }

.hero-title-original {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: clamp(128px, 14vh, 160px);
  transform: translateX(-50%);
  width: min(900px, 67vw);
  height: 360px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero-title-original img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: none;
  filter: none !important;
}
.hero-title-light { display: none; }
:root[data-theme="light"] .hero-title-dark { display: none; }
:root[data-theme="light"] .hero-title-light { display: block; }

.hero-stage4 .hero-side {
  z-index: 6;
  top: 285px;
  font: 500 10px/1.72 var(--mono);
  letter-spacing: .25em;
  opacity: .78;
  text-transform: uppercase;
}
.hero-stage4 .hero-side-left { left: 0; }
.hero-stage4 .hero-side-right { right: 0; padding-left: 28px; border-left: 0 !important; }

.hero-stage4 .desktop-hero-copy {
  z-index: 9;
  top: 430px;
  bottom: auto;
  width: min(560px, 52vw);
}
.hero-stage4 .desktop-hero-copy p {
  margin: 0;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 500;
  letter-spacing: .11em;
  text-wrap: balance;
}
.hero-stage4 .desktop-hero-copy strong { font-weight: 800; }
.hero-stage4 .desktop-hero-copy a {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: .02em;
  gap: 18px;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.hero-stage4 .desktop-hero-copy a:hover { text-decoration: none; opacity: .72; }
.hero-stage4 .desktop-hero-copy a span { transition: transform var(--transition-fast); }
.hero-stage4 .desktop-hero-copy a:hover span { transform: translate(2px,-2px); }

.hero-stage4 .hero-benefits {
  z-index: 10;
  bottom: 184px;
  width: min(790px, 68vw);
  grid-template-columns: repeat(3, 1fr);
}
.hero-stage4 .hero-benefits > div {
  min-height: 58px;
  gap: 13px;
  padding-inline: 25px;
  font-size: 11px;
  font-weight: 600;
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hero-stage4 .hero-benefits > div + div { border-left: 0 !important; }
.hero-stage4 .hero-benefits svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.2;
  opacity: .92;
}

.hero-earth-original {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -185px;
  transform: translateX(-50%);
  width: min(1620px, 102vw);
  aspect-ratio: 2048 / 728;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.hero-earth-original::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 5%;
  right: 5%;
  top: 28%;
  height: 36%;
  pointer-events: none;
  background: radial-gradient(ellipse at center,rgba(137,195,255,.20) 0%,rgba(137,195,255,.08) 34%,rgba(137,195,255,0) 74%);
  filter: blur(38px);
  opacity: .72;
}
.hero-earth-original::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: -5%;
  right: -5%;
  top: -4%;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(to bottom,var(--bg) 0%,color-mix(in srgb,var(--bg) 96%,transparent) 18%,color-mix(in srgb,var(--bg) 78%,transparent) 42%,color-mix(in srgb,var(--bg) 36%,transparent) 68%,transparent 100%);
  filter: blur(22px);
}
.hero-earth-original img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  filter: none !important;
  -webkit-mask-image: linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.03) 8%,rgba(0,0,0,.14) 16%,rgba(0,0,0,.38) 26%,rgba(0,0,0,.70) 36%,rgba(0,0,0,.92) 46%,#000 56%,#000 100%);
  mask-image: linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.03) 8%,rgba(0,0,0,.14) 16%,rgba(0,0,0,.38) 26%,rgba(0,0,0,.70) 36%,rgba(0,0,0,.92) 46%,#000 56%,#000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-stage4 .mobile-orbit { display: none; }

@media (min-width: 901px) {
  .site-header .brand-mark { width: 86px !important; height: 86px !important; }
  .site-header .brand-mark img { width: 76px !important; height: 76px !important; max-width: none !important; }
}

.hero-stage4 + .ticker {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: none;
  margin: -1px 0 0;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  background: #fff;
  color: #050608;
}
:root[data-theme="light"] .hero-stage4 + .ticker { background: #08090b; color: #fff; }
.hero-stage4 + .ticker .ticker-track {
  width: max-content;
  min-width: max-content;
  height: 66px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  padding: 0 30px;
  overflow: visible;
  white-space: nowrap;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
  font: 600 12px/1 var(--mono);
  letter-spacing: .18em;
  box-shadow: none;
  will-change: transform;
  animation: kovaTickerLoop 30s linear infinite;
}
.hero-stage4 + .ticker .ticker-track span,
.hero-stage4 + .ticker .ticker-track i,
.hero-stage4 + .ticker .ticker-track b { flex: none; color: inherit; }
.hero-stage4 + .ticker .ticker-track i { font-style: normal; opacity: .78; }
.hero-stage4 + .ticker .ticker-track b { font-size: 9px; line-height: 1; }
@keyframes kovaTickerLoop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 15px), 0, 0); }
}

@media (min-width: 1600px) {
  .hero-stage4 { min-height: 820px; }
  .hero-title-original { width: 980px; height: 390px; top: 135px; }
  .hero-stage4 .hero-side { top: 300px; }
  .hero-stage4 .desktop-hero-copy { top: 455px; }
  .hero-stage4 .hero-benefits { bottom: 202px; }
  .hero-earth-original { width: min(1720px, 102vw); bottom: -205px; }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .hero-stage4 { min-height: 720px; height: 780px; }
  .hero-title-original { width: 72vw; height: 320px; top: 135px; }
  .hero-stage4 .hero-side { top: 275px; }
  .hero-stage4 .desktop-hero-copy { top: 405px; }
  .hero-stage4 .hero-benefits { width: 680px; bottom: 170px; }
  .hero-earth-original { width: 103vw; bottom: -165px; }
}

/* Mobile hero: one deliberate composition, matching the approved reference. */
@media (max-width: 720px) {
  .hero-stage4 {
    height: 980px !important;
    min-height: 980px !important;
    overflow: hidden !important;
  }
  .hero-galaxy-canvas { opacity: .9 !important; }
  .hero-stage4 .hero-side,
  .hero-stage4 .desktop-hero-copy,
  .hero-stage4 .mobile-orbit { display: none !important; }

  .hero-stage4 .mobile-hero-copy {
    display: block !important;
    position: absolute !important;
    left: clamp(20px,5vw,28px) !important;
    right: clamp(20px,5vw,28px) !important;
    top: 112px !important;
    z-index: 12 !important;
  }
  .hero-stage4 .mobile-eyebrow {
    margin: 0 0 22px !important;
    font: 500 11px/1.25 var(--mono) !important;
    letter-spacing: .24em !important;
    white-space: nowrap;
  }
  .hero-stage4 .mobile-hero-copy .mobile-title {
    margin: 0 !important;
    max-width: 100% !important;
    font-size: clamp(2.65rem,11.4vw,3.55rem) !important;
    line-height: .9 !important;
    letter-spacing: -.065em !important;
    font-weight: 800 !important;
    color: var(--text) !important;
  }
  .hero-stage4 .mobile-hero-copy p:not(.mobile-title) {
    margin: 20px 0 0 !important;
    max-width: 100% !important;
    font-size: clamp(.93rem,3.8vw,1.04rem) !important;
    line-height: 1.52 !important;
    color: var(--muted) !important;
  }
  .hero-stage4 .mobile-primary {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    min-height: 56px !important;
    margin: 18px 0 0 !important;
    padding: 0 22px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid color-mix(in srgb,var(--text) 82%,transparent) !important;
    border-radius: 999px !important;
    background: var(--text) !important;
    color: var(--inverse) !important;
    font-size: 0 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }
  .hero-stage4 .mobile-primary::before {
    content: "Vamos conversar" !important;
    font-size: .98rem !important;
    line-height: 1 !important;
  }
  .hero-stage4 .mobile-primary span {
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  .hero-stage4 .hero-title-original {
    display: grid !important;
    position: absolute !important;
    left: 50% !important;
    top: 520px !important;
    transform: translateX(-50%) !important;
    width: 82vw !important;
    height: 150px !important;
    z-index: 6 !important;
    pointer-events: none !important;
  }
  .hero-stage4 .hero-title-original img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .hero-stage4 .hero-earth-original {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 92px !important;
    transform: translateX(-50%) !important;
    width: 168vw !important;
    max-width: none !important;
    z-index: 3 !important;
  }
  .hero-stage4 .hero-earth-original::before { opacity: .45 !important; }
  .hero-stage4 .hero-earth-original::after { display: none !important; }
  .hero-stage4 .hero-earth-original img {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .hero-stage4 .hero-benefits {
    display: grid !important;
    position: absolute !important;
    left: clamp(20px,5vw,28px) !important;
    right: clamp(20px,5vw,28px) !important;
    bottom: 94px !important;
    transform: none !important;
    width: auto !important;
    min-height: 112px !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    align-items: stretch !important;
    padding: 12px 6px !important;
    border: 1px solid color-mix(in srgb,var(--text) 22%,transparent) !important;
    border-radius: 24px !important;
    background: color-mix(in srgb,var(--bg) 82%,transparent) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 15 !important;
  }
  .hero-stage4 .hero-benefits > div {
    min-width: 0 !important;
    min-height: 86px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 7px !important;
    text-align: center !important;
    font-size: clamp(.66rem,2.8vw,.76rem) !important;
    line-height: 1.25 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .hero-stage4 .hero-benefits > div + div {
    border-left: 1px solid color-mix(in srgb,var(--text) 18%,transparent) !important;
  }
  .hero-stage4 .hero-benefits svg {
    width: 25px !important;
    height: 25px !important;
    margin: 0 !important;
  }

  .hero-stage4 .mobile-secondary {
    display: flex !important;
    position: absolute !important;
    left: clamp(20px,5vw,28px) !important;
    right: clamp(20px,5vw,28px) !important;
    bottom: 18px !important;
    width: auto !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    border: 1px solid color-mix(in srgb,var(--text) 82%,transparent) !important;
    border-radius: 999px !important;
    background: color-mix(in srgb,var(--bg) 72%,transparent) !important;
    color: var(--text) !important;
    backdrop-filter: blur(10px) !important;
    font-size: .96rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    z-index: 16 !important;
  }
  .hero-stage4 .mobile-secondary::before,
  .hero-stage4 .mobile-secondary::after { content: none !important; display: none !important; }

  .hero-stage4 + .ticker {
    display: block !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    overflow: hidden !important;
  }
  .hero-stage4 + .ticker .ticker-track {
    height: 56px !important;
    min-height: 56px !important;
    gap: 22px !important;
    padding-inline: 22px !important;
    font-size: 11px !important;
    animation-duration: 24s !important;
  }
}

@media (max-width: 380px) {
  .hero-stage4 { height: 950px !important; min-height: 950px !important; }
  .hero-stage4 .mobile-hero-copy { top: 104px !important; }
  .hero-stage4 .mobile-hero-copy .mobile-title { font-size: 2.48rem !important; }
  .hero-stage4 .hero-title-original { top: 506px !important; width: 84vw !important; }
  .hero-stage4 .hero-earth-original { width: 174vw !important; bottom: 88px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage4 .desktop-hero-copy a,
  .hero-stage4 .desktop-hero-copy a span { transition: none; }
  .hero-stage4 + .ticker .ticker-track { animation: none; }
  .hero-galaxy-canvas { opacity: .74; }
}
