/* Final static-site polish loaded after page styles. */

:root {
  --accent-cool: #35d3ff;
  --focus-ring: rgba(53, 211, 255, 0.38);
}

html {
  background: #0b0f19;
}

/* Performance pass: avoid expensive repaint work during scroll. */
body::after,
.site-noise,
.site-network {
  display: none !important;
}

main {
  background-attachment: scroll !important;
}

body *,
body *::before,
body *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

main > section:not(.page-hero) {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

h1,
h2,
.lead,
.section-desc {
  text-wrap: balance;
}

.btn,
.nav a,
.cookie-btn,
.field,
.menu-toggle,
.whatsapp-close {
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
.nav a:focus-visible,
.cookie-btn:focus-visible,
.field:focus-visible,
.menu-toggle:focus-visible,
.whatsapp-close:focus-visible,
.cookie-modal-close:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.nav a.active {
  box-shadow: inset 0 0 0 1px rgba(255, 176, 102, 0.18);
}

.topbar-cta {
  background:
    linear-gradient(135deg, rgba(53, 211, 255, 0.10), rgba(255, 255, 255, 0.06)) !important;
}

.page-hero-home .page-hero-content h1 {
  max-width: 12.8ch;
}

.page-hero-home .lead {
  max-width: 64ch;
}

.home-command-header,
.home-value-panel,
.contato-hero-side,
.solution-map-panel,
.segmentos-hero-panel,
.contact-form-wrap {
  background-color: rgba(7, 13, 22, 0.84);
}

.home-insight-panel article {
  border-color: rgba(53, 211, 255, 0.16);
}

.nn-product-card,
.nn-method-panel article,
.nn-front-list article {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.nn-product-card:hover,
.nn-method-panel article:hover,
.nn-front-list article:hover {
  border-color: rgba(53, 211, 255, 0.22);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.22),
    0 0 38px rgba(53, 211, 255, 0.055);
}

.contact-details a,
.footer a {
  text-underline-offset: 4px;
}

.footer a:hover {
  color: #ffffff;
}

body.cookie-modal-open {
  overflow: hidden;
}

.cookie-consent {
  right: 18px;
  bottom: 18px;
}

.cookie-consent-card {
  width: min(430px, calc(100vw - 36px));
  padding: 12px;
  border-radius: 10px;
}

.cookie-consent-content {
  gap: 9px;
}

.cookie-consent-badge {
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 10px;
}

.cookie-consent-card h2 {
  font-size: 15px;
  line-height: 1.16;
}

.cookie-consent-card p {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.38;
}

.cookie-consent-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.cookie-consent-actions .cookie-btn-primary {
  grid-column: auto;
}

.cookie-btn {
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 8px;
}

.cookie-modal-card,
.cookie-preference-item,
.cookie-policy-card,
.cookie-policy-item,
.cookie-policy-note {
  border-radius: 10px;
}

@media (max-width: 980px) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  main::after,
  .page-hero::before {
    display: none !important;
  }

  .card,
  .service-card,
  .feature-card,
  .step-card,
  .about-item,
  .solution-step,
  .solution-map-card,
  .segment-item,
  .contato-hero-point,
  .contato-side-item,
  .proof-card,
  .stat {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
  }

  .nav.is-open {
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  .nav.is-open a {
    min-height: 46px;
  }
}

@media (max-width: 760px) {
  .page-hero-home .page-hero-inner {
    min-height: auto;
    padding-top: 54px;
  }

  .page-hero-home .page-hero-content h1 {
    max-width: 10.7ch;
    font-size: clamp(30px, 9.6vw, 40px);
    line-height: 1.05;
  }

  .page-hero-home .lead {
    max-width: 31ch;
    font-size: 16px;
    line-height: 1.68;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .page-hero-home .page-hero-image {
    min-height: 520px;
  }

  .page-hero-home .page-hero-image img {
    min-height: 520px;
  }

  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .cookie-consent-card {
    max-height: min(36vh, 268px);
    padding: 10px;
  }

  .cookie-consent-card h2 {
    font-size: 14.5px;
  }

  .cookie-consent-card p {
    font-size: 11px;
    line-height: 1.32;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-consent-actions .cookie-btn-primary {
    grid-column: 1 / -1;
    order: -1;
  }

  .cookie-btn,
  .cookie-consent-actions .cookie-btn,
  .cookie-modal-actions .cookie-btn {
    min-height: 32px;
    font-size: 10px;
  }

  .footer-inner {
    align-items: center;
    text-align: center;
  }
}
