/* ==========================================================================
   RESPONSIVIDADE & MEDIA QUERIES
   ========================================================================== */

/* Botão do Menu Mobile */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-highlight);
  font-size: 1.5rem;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 110;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(6, 8, 16, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
    gap: 24px;
    border-top: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: 99;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  /* Ajustes Mobile para Dropdown */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-dropdown .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    margin-top: 6px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.open .dropdown-menu,
  .nav-dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .innovations-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-grid {
    grid-template-columns: 1fr 1fr;
  }

  .telemetry-card {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 16px;
  }

  .telemetry-card:last-child {
    border-bottom: none;
  }

  .pipeline-track {
    flex-direction: column;
    align-items: flex-start;
  }

  .track-label {
    width: 100%;
  }

  .track-flow {
    width: 100%;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .arch-toggle-container {
    flex-direction: column;
  }

  .arch-toggle-btn {
    width: 100%;
  }
}
