/* Keep destinations readable and in the same order as the page. */
.nav-links a { gap: 7px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.nav-links svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-links .nav-contact { display: none; }
.nav-links a[aria-current="location"] { color: #00c8ed; }
main [tabindex="-1"]:focus { outline: none; }
#resultados { scroll-margin-top: calc(var(--scroll-header-height, var(--header-h)) + 16px); }
@media (min-width: 821px) {
  /* Desktop already reserves the header through scroll-padding on html. */
  #exemplos, #resultados, #integracao, #demonstracoes, #investimento, #faq, #contato { scroll-margin-top: 16px; }
}
.footer { padding-block: 64px; }
.footer .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-block: 0; }
.footer h2 { font-size: 11px; font-weight: 650; letter-spacing: .09em; margin-bottom: 18px; }
.footer nav ul { gap: 4px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 36px; color: #a9bbd0; font-size: 13px; line-height: 1.6; }
.footer nav a:hover { color: #00c8ed; }
.footer .footer-contact-title { margin-top: 32px; margin-bottom: 10px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer .footer-socials a { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #243447; border-radius: 4px; color: #a9bbd0; background: transparent; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.footer .footer-socials a:hover, .footer .footer-socials a:focus-visible { color: #00c8ed; border-color: #00a9cf; background: #092131; }
.footer-socials svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.footer-socials .social-outline { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-socials .social-dot { fill: currentColor; stroke: none; }

@media (min-width: 1101px) {
  .site-header .nav { gap: clamp(20px, 2.5vw, 40px); }
  .site-header .brand, .site-header .nav-actions { flex: 0 0 auto; }
  .site-header .nav-links {
    position: static;
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(16px, 1.8vw, 28px);
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    transform: none;
  }
  .nav-links a { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 13px; }
  .nav-links a::after { content: ''; position: absolute; bottom: 3px; left: 0; right: 0; height: 1px; background: #00c8ed; transform: scaleX(0); transition: transform 160ms ease; }
  .nav-links a[aria-current="location"]::after { transform: scaleX(1); }
}

@media (max-width: 1100px) {
  .site-header .nav { display: flex; justify-content: space-between; gap: 14px; }
  .site-header .nav-actions { flex: 0 0 auto; gap: 8px; }
  .site-header .nav-actions > .button-primary { display: none; }
  .site-header .nav-toggle {
    position: relative; z-index: 31; display: flex; flex: 0 0 40px; width: 40px; height: 40px; padding: 0;
    color: #00c8ed; border: 1px solid rgba(0, 216, 255, .22); border-radius: 4px; background: rgba(0, 216, 255, .06);
  }
  .nav-toggle span { position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: currentColor; transition: transform 180ms ease, opacity 150ms ease; }
  .nav-toggle span:nth-child(1) { transform: translateY(-5px); }
  .nav-toggle span:nth-child(2) { transform: translateY(0); }
  .nav-toggle span:nth-child(3) { transform: translateY(5px); }
  .site-header.is-menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
  .site-header.is-menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }
  .site-header .nav-links {
    position: fixed; top: calc(var(--scroll-header-height, var(--header-h)) + 8px); left: 12px; right: 12px; z-index: 30;
    display: grid; gap: 0; width: auto; max-width: 480px; max-height: calc(100dvh - var(--scroll-header-height, var(--header-h)) - 24px);
    margin-inline: auto; padding: 8px 16px; overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid #1b3549; border-radius: 6px; background: #071320; box-shadow: 0 16px 40px #0004;
    visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }
  .site-header .nav-links a {
    display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 4px; text-align: left;
    border: 0; border-bottom: 1px solid #1b2c3d; border-radius: 0; background: transparent; box-shadow: none; color: #c5d2df; font-size: 14px;
  }
  .site-header .nav-links a:hover, .site-header .nav-links a:focus-visible, .site-header .nav-links a[aria-current="location"] { color: #00c8ed; background: transparent; }
  .site-header .nav-links .nav-contact { margin-top: 8px; padding-inline: 12px; border: 1px solid #00accf; border-radius: 3px; color: #00c8ed; }
  .site-header.is-menu-open .nav-links { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition-delay: 0s; }
  html:not(.reveal-ready) .site-header { position: relative; }
  html:not(.reveal-ready) .site-header .nav { flex-wrap: wrap; }
  html:not(.reveal-ready) .site-header .nav-toggle { display: none; }
  html:not(.reveal-ready) .site-header .nav-links { position: static; flex: 0 0 100%; order: 3; max-width: none; max-height: none; visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
}
@media (max-width: 640px) {
  .footer { padding-block: 40px; }
  .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer nav a { min-height: 44px; font-size: 12px; }
  .footer nav a[href^="mailto:"] { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .nav-links, .site-header .nav-links a, .nav-links a::after, .nav-toggle span { animation: none !important; transition: none !important; }
}
