/* Acabamento visual: hierarquia clara, movimento contido e melhor uso no mobile. */
:root { --shadow-soft: 0 18px 48px rgba(6, 29, 55, .09); }

body { line-height: 1.5; text-rendering: optimizeLegibility; }
section[id] { scroll-margin-top: 76px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.nav { transition: background .25s ease, box-shadow .25s ease; }
.nav.is-scrolled { background: rgba(4, 21, 42, .97); box-shadow: 0 8px 30px rgba(2, 17, 34, .18); }
.nav nav a { position: relative; padding: 29px 0 27px; transition: color .2s ease; }
.nav nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: #56b5ff; transition: right .2s ease; }
.nav nav a:hover::after, .nav nav a:focus-visible::after { right: 0; }
.nav-cta, .button { transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.nav-cta:hover, .nav-cta:focus-visible, .button:hover, .button:focus-visible { transform: translateY(-2px); }

.hero-content { padding-bottom: 10px; }
.hero-content h1 { text-wrap: balance; }
.lead { text-wrap: pretty; }

.intro { border-top: 1px solid #edf2f6; }
.split-title h2, .coverage h2, .structure h2, .carriers-heading h2, .cta h2 { text-wrap: balance; }

.solution-grid .service {
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.solution-grid .service:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(14, 120, 209, .14); z-index: 1; }
.solution-grid .solution-main:hover { border-color: rgba(98, 184, 255, .3); }
.solution-grid img { transition: transform .55s ease; }
.solution-grid .service:hover img { transform: scale(1.025); }
.service-no { letter-spacing: .12em; }

.flow-steps li { position: relative; }
.flow-steps li::before { content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--blue); transition: width .3s ease; }
.flow-steps li:hover::before { width: 72%; }

.port-card { border-radius: 5px; }
.port-logo { transition: transform .25s ease; }
.port-card:hover .port-logo { transform: scale(1.025); }

.coverage {
  display: block;
  min-height: 0;
  background: var(--blue);
}
.coverage-copy {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr);
  align-items: end;
  gap: 9vw;
  padding: 86px max(6vw, 28px) 78px;
}
.coverage-title h2 { max-width: 680px; }
.coverage-summary { padding-bottom: 5px; }
.coverage-summary p { margin-top: 0; font-size: 18px; }
.coverage-summary a { margin-top: 22px; }

.port-network {
  display: block;
  overflow: hidden;
  align-content: initial;
  padding: 44px max(6vw, 28px) 50px;
  background: #071f39;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.port-track { display: flex; width: max-content; animation: ports-loop 30s linear infinite; }
.port-network:hover .port-track, .port-network:focus-within .port-track { animation-play-state: paused; }
.port-group { display: flex; gap: 12px; padding-right: 12px; }
.port-card, .port-card:last-child { width: 270px; min-height: 112px; grid-column: auto; flex: 0 0 270px; }
@keyframes ports-loop { to { transform: translateX(-50%); } }

.carrier-search input { border-radius: 5px; }
.carrier-link { border-radius: 2px; }

.structure-photo, .structure-photo img { border-radius: 5px; }
.structure-photo { overflow: hidden; box-shadow: var(--shadow-soft); }
.photo-label { border-radius: 0 4px 0 0; }
.proof { transition: padding-left .2s ease, background .2s ease; }
.proof:hover { padding-left: 10px; background: linear-gradient(90deg, rgba(14,120,209,.045), transparent 70%); }

.sectors-track.is-looping { animation: sectors-loop 34s linear infinite; }
.sectors-track.is-looping .sectors-group { padding-right: 12px; }
@keyframes sectors-loop { to { transform: translateX(-50%); } }
.sector-item { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.sector-item:hover { transform: translateY(-3px); border-color: rgba(14,120,209,.28); box-shadow: 0 12px 30px rgba(6,29,55,.08); }

.cta { position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; width: 360px; height: 360px; right: -150px; top: -190px; border: 1px solid rgba(97,183,255,.16); border-radius: 50%; box-shadow: 0 0 0 55px rgba(97,183,255,.025), 0 0 0 110px rgba(97,183,255,.018); pointer-events: none; }
.cta > div { position: relative; z-index: 1; }
.contact-box > a:not(.button) { border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-box > a:not(.button):hover strong { color: #8fc9fa; }

footer { border-top: 1px solid rgba(255,255,255,.08); }
.footer-meta { color: #91a5b7; }

:focus-visible { outline: 3px solid rgba(86,181,255,.55); outline-offset: 3px; }

@media (max-width: 850px) {
  .nav nav a { padding: 11px 0; }
  .nav nav a::after { display: none; }
  .menu { width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; }
  .services.solution-grid { gap: 12px; }
  .sectors-track.is-looping { animation: none; }
  .coverage-copy { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding-top: 66px; padding-bottom: 54px; }
  .coverage-summary { max-width: 620px; padding-bottom: 0; }
  .port-network { overflow-x: auto; mask-image: none; -webkit-mask-image: none; scrollbar-width: none; scroll-snap-type: x proximity; }
  .port-network::-webkit-scrollbar { display: none; }
  .port-track { animation: none; }
  .port-card, .port-card:last-child { width: min(78vw, 300px); flex-basis: min(78vw, 300px); scroll-snap-align: start; }
}

@media (max-width: 520px) {
  section[id] { scroll-margin-top: 66px; }
  .hero-actions .button { justify-content: space-between; }
  .split-title h2 { font-size: 35px; }
  .split-title p { font-size: 16px; }
  .solution-grid .service:hover, .sector-item:hover { transform: none; }
  .coverage-copy p:not(.eyebrow) { font-size: 16px; }
  .coverage-copy { padding-top: 58px; padding-bottom: 48px; }
  .coverage-title h2 { font-size: 39px; }
  .port-network { padding-top: 28px; padding-bottom: 34px; }
  .carriers-heading h2 { font-size: 35px; }
  .carrier-tools > p { font-size: 16px; }
  .carrier-search input { width: 100%; min-height: 48px; }
  .structure-copy h2 { font-size: 37px; }
  .proof:hover { padding-left: 0; background: none; }
  .cta::before { right: -230px; }
  footer { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
