/* Global no-horizontal-scroll + image safety */
html, body { overflow-x: hidden !important; max-width: 100vw !important; }
img { max-width: 100%; height: auto; }
img.object-cover, .object-cover { object-fit: cover; }

/* Responsive headline scaling */
.text-headline-xl { font-size: clamp(32px, 6vw, 64px) !important; line-height: 1.1 !important; }
.text-headline-lg { font-size: clamp(22px, 3.6vw, 40px) !important; line-height: 1.2 !important; }
.text-body-lg     { font-size: clamp(15px, 1.4vw, 18px) !important; }
.text-body-md     { font-size: clamp(14px, 1.2vw, 16px) !important; }

/* Tablet (<=1023px): shrink desktop padding */
@media (max-width: 1023px) {
  .px-margin-desktop { padding-left: 32px !important; padding-right: 32px !important; }
  .py-xl { padding-top: 56px !important; padding-bottom: 56px !important; }
  .gap-xl { gap: 32px !important; }
  /* Footer 4 -> 2 columns */
  footer .md\:grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Mobile (<=767px) */
@media (max-width: 767px) {
  .px-margin-desktop { padding-left: 20px !important; padding-right: 20px !important; }
  .py-xl { padding-top: 40px !important; padding-bottom: 40px !important; }
  .gap-xl { gap: 24px !important; }
  .gap-lg { gap: 20px !important; }
  .mt-xl, .mb-xl { margin-top: 32px !important; margin-bottom: 32px !important; }

  /* Touch targets */
  button, .nb-hamburger, [type="submit"], [type="button"] { min-height: 48px; }
  header nav button { min-height: 40px; }

  /* Disable custom cursor on touch / small screens */
  body { cursor: auto !important; }
  .custom-cursor, .custom-cursor-outline { display: none !important; }

  /* Footer single column */
  footer .md\:grid-cols-4 { grid-template-columns: 1fr !important; }

  /* Hero - stack and center on mobile */
  section .grid.lg\:grid-cols-2 > div { width: 100%; }
  section .grid.lg\:grid-cols-2 .float-animation { max-width: 100% !important; }

  /* Stats bar: stack neatly, hide vertical dividers */
  .glass.py-md .w-px { display: none !important; }
  .glass.py-md .flex.flex-wrap { gap: 20px !important; justify-content: flex-start !important; }

  /* Showcase rows - tighten negative-positioned badges */
  .reveal-on-scroll .absolute.-bottom-6 { bottom: -12px !important; }
  .reveal-on-scroll .-right-6 { right: 8px !important; }
  .reveal-on-scroll .-left-6 { left: 8px !important; }

  /* Comparison table - allow horizontal scroll inside its container only */
  table { font-size: 12px; }
  table th, table td { padding: 10px !important; }

  /* Contact page: keep map visible */
  .map-marker { width: 10px; height: 10px; }
}

/* ===== Hamburger Menu (visible <768px) ===== */
.nb-hamburger {
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid #00d4ff;
  color: #00d4ff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(0,212,255,0.55), inset 0 0 8px rgba(0,212,255,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}
.nb-hamburger:hover { background: rgba(0,212,255,0.18); box-shadow: 0 0 22px rgba(0,212,255,0.85); }
.nb-hamburger svg { width: 22px; height: 22px; filter: drop-shadow(0 0 4px #00d4ff); }

.nb-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(1, 21, 36, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,212,255,0.3);
  border-bottom: 1px solid rgba(0,212,255,0.3);
  padding: 16px 20px;
  z-index: 49;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,212,255,0.2);
}
.nb-mobile-menu.open { display: flex; }
.nb-mobile-menu a {
  color: #bbc9cf;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(0,212,255,0.12);
  text-transform: uppercase;
  text-decoration: none;
}
.nb-mobile-menu a:last-child { border-bottom: none; }
.nb-mobile-menu a:hover { color: #00d4ff; text-shadow: 0 0 8px rgba(0,212,255,0.6); }

@media (max-width: 767px) {
  header nav > div.hidden.md\:flex,
  header nav > div.md\:flex { display: none !important; }
  header nav > button { display: none !important; }
  .nb-hamburger { display: inline-flex !important; }
}

/* ===== Unified Footer ===== */
.nb-footer {
  position: relative;
  background: rgba(0, 16, 29, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 212, 255, 0.25);
  margin-top: 80px;
  color: #d0e5fa;
}
.nb-footer-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff 20%, #3cd7ff 50%, #00d4ff 80%, transparent);
  box-shadow: 0 0 16px #00d4ff, 0 0 32px rgba(0, 212, 255, 0.6);
}
.nb-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 64px 24px;
}
.nb-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.nb-footer-logo {
  font-family: 'Space Grotesk', 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #00d4ff;
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.55);
  margin-bottom: 12px;
}
.nb-footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #bbc9cf;
  max-width: 260px;
  font-style: italic;
}
.nb-footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #00d4ff;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.nb-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nb-footer-col a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #bbc9cf;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.nb-footer-col a:hover { color: #00d4ff; text-shadow: 0 0 8px rgba(0, 212, 255, 0.7); }

.nb-footer-social { display: flex; gap: 14px; flex-wrap: wrap; }
.nb-footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #bbc9cf;
  transition: all 0.25s ease;
  background: rgba(0, 212, 255, 0.04);
}
.nb-footer-social a svg { width: 18px; height: 18px; }
.nb-footer-social a:hover {
  color: #00d4ff;
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.7), inset 0 0 10px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.nb-footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.nb-footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #859398;
}
.nb-footer-pay { display: flex; gap: 10px; flex-wrap: wrap; }
.nb-pay {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #bbc9cf;
  padding: 6px 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.05);
}

@media (max-width: 1023px) {
  .nb-footer-inner { padding: 48px 32px 20px; }
  .nb-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .nb-footer-inner { padding: 36px 20px 20px; }
  .nb-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nb-footer-bottom { flex-direction: column; align-items: flex-start; }
  .nb-footer-tagline { max-width: 100%; }
}
