/* ═══════════════════════════════════════════════════════
   GravinGo — Responsive Breakpoints
   ═══════════════════════════════════════════════════════ */

/* ── Tablet / Small Desktop (≤992px) ───────────────── */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: flex;
    background: rgba(6, 8, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.2rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s,
                visibility 0.4s;
    z-index: 1001;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

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

  body.nav-open {
    overflow: hidden;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1002;
    position: relative;
    flex-shrink: 0;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-right {
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-phones {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .hero-glow.glow-1 {
    width: 280px;
    height: 280px;
    left: -15%;
  }

  .hero-glow.glow-2 {
    width: 240px;
    height: 240px;
    right: -10%;
  }
}

/* ── Tablet (≤1024px) ──────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container {
    gap: 2.5rem;
  }

  .phone-mockup {
    width: 180px;
  }
}

/* ── Mobile Large (≤768px) ─────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  section {
    padding: 80px 0;
  }

  .navbar .container {
    gap: 0.75rem;
    min-width: 0;
  }

  .nav-logo {
    font-size: 1.15rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .nav-logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-logo-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .lang-switch button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.4rem 0;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-phones {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    padding: 0 0.25rem;
  }

  .hero-screenshot {
    width: min(168px, 42vw);
    max-width: calc(50% - 0.35rem);
    flex: 0 1 auto;
    min-width: 0;
    transform: none !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45), var(--glow-accent);
  }

  .hero-screenshot:first-child,
  .hero-screenshot:last-child {
    transform: none;
  }

  .hero-screenshot:hover {
    transform: none !important;
  }

  .phone-mockup {
    width: 150px;
  }

  .phone-mockup:first-child {
    transform: rotate(-3deg) translateY(10px);
  }

  .phone-mockup:last-child {
    transform: rotate(3deg) translateY(10px);
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Modes mobile */
  .modes-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* Gallery mobile */
  .gallery-item,
  .gallery-item--screenshot {
    flex: 0 0 min(220px, 72vw);
  }

  #gallery .container {
    overflow: hidden;
  }

  .hero-screenshot {
    width: min(148px, 44vw);
    max-width: calc(50% - 0.25rem);
  }

  .hero-phones {
    gap: 0.5rem;
  }

  /* Download mobile */
  .download-box {
    padding: 3rem 1.5rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Contact mobile */
  .contact-card {
    padding: 2rem 1.5rem;
    width: 100%;
  }

  /* Footer mobile */
  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* ── Mobile Small (≤480px) ─────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .phone-mockup {
    width: 130px;
  }

  .store-btn {
    padding: 12px 22px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .mode-card {
    padding: 2rem 1.5rem;
  }

  .gallery-item {
    flex: 0 0 200px;
  }
}

/* ── Prefers Reduced Motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-left, .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}
