/* ============================================================
   NeuAnalytics 2026, Responsive Breakpoints
   Mobile-first approach
   ============================================================ */

/* ---- Breakpoint Reference ----
   Mobile:       < 640px  (default styles)
   Tablet:       640px - 1023px
   Desktop:      1024px - 1279px
   Wide Desktop: 1280px+
   ---- */

/* ============================================================
   MOBILE (Default, < 640px)
   ============================================================ */

/* Navigation */
.nav__links {
  display: none;
}

.nav__hamburger {
  display: flex;
}

.nav__mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 999;
  padding: var(--space-20) var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.nav__mobile-menu.is-open {
  transform: translateX(0);
}

/* Typography scaling */
h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

.text-metric {
  font-size: var(--text-4xl);
}

/* Grids collapse to single column */
.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

/* Container padding */
.container {
  padding: 0 var(--space-4);
}

/* Section padding */
section {
  padding: var(--space-16) 0;
}

/* Button full width on mobile */
.btn--mobile-full {
  width: 100%;
  justify-content: center;
}

/* Hero */
.hero__cta-group {
  flex-direction: column;
  gap: var(--space-3);
}

/* Stats banner */
.stats-banner {
  flex-direction: column;
  gap: var(--space-6);
}

/* Glass panel */
.glass-panel {
  padding: var(--space-8) var(--space-5);
}

/* ============================================================
   TABLET (640px - 1023px)
   ============================================================ */
@media (min-width: 640px) {
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  .container {
    padding: 0 var(--space-6);
  }

  section {
    padding: var(--space-20) 0;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__cta-group {
    flex-direction: row;
  }

  .stats-banner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .glass-panel {
    padding: var(--space-10) var(--space-8);
  }
}

/* ============================================================
   DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  .text-metric {
    font-size: var(--text-5xl);
  }

  section {
    padding: var(--space-24) 0;
  }

  /* Navigation */
  .nav__links {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .glass-panel {
    padding: var(--space-12) var(--space-10);
  }
}

/* ============================================================
   WIDE DESKTOP (1280px+)
   ============================================================ */
@media (min-width: 1280px) {
  h1 {
    font-size: var(--text-6xl);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   ULTRA WIDE (1536px+)
   ============================================================ */
@media (min-width: 1536px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ============================================================
   HEIGHT BREAKPOINTS (for hero sections)
   ============================================================ */
@media (max-height: 700px) {
  .hero {
    min-height: auto;
    padding: var(--space-20) 0 var(--space-16);
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  body {
    background: white;
    color: black;
  }

  .nav,
  .footer,
  .btn,
  .dark-mode-toggle {
    display: none !important;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .glass,
  .glass-strong,
  .glass-dark {
    background: white;
    backdrop-filter: none;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}
