/* TheRealConnect — Responsive Overrides */

/* ── MOBILE MENU ── */
.mobile-menu-overlay { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.4); }
.mobile-menu-overlay.open { display: flex; justify-content: flex-end; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu-panel {
  width: 85vw; max-width: 320px; height: 100%; background: #ffffff;
  display: flex; flex-direction: column; box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.mobile-menu-close { width: 40px; height: 40px; border: none; background: #f5f5f5; border-radius: 10px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mobile-menu-nav { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-link {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  font-size: 17px; font-weight: 600; color: #1a1a2e; text-decoration: none;
  border-radius: 12px; min-height: 56px; -webkit-tap-highlight-color: transparent;
}
.mobile-menu-link:active { background: #f0f7f6; }
.mobile-menu-link span { font-size: 20px; width: 28px; text-align: center; }
.mobile-menu-footer { padding: 20px; border-top: 1px solid #f0f0f0; }
.mobile-menu-cta {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 16px 24px; background: linear-gradient(135deg, #0d9488, #2563eb);
  color: #fff; font-weight: 700; font-size: 16px; border-radius: 12px;
  text-decoration: none; min-height: 52px;
}

/* ── Tablet & below: 968px ── */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 100%; }
  .feature-section-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-section-inner.reverse { direction: ltr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .token-explainer { grid-template-columns: 1fr 1fr; }
  .data-flow { flex-direction: column; }
  .data-arrow { transform: rotate(90deg); }
  .pixeldo-showcase { grid-template-columns: 1fr 1fr; }
  .pixeldo-cta-strip { flex-direction: column; text-align: center; }

  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ── Small tablet / Large phone: 640px ── */
@media (max-width: 640px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 16px 40px; }
  .pricing { padding: 60px 16px; }
  .how-it-works { padding: 60px 16px; }
  .platform { padding: 60px 16px; }
  .feature-section { padding: 50px 16px; }
  .data-section { padding: 60px 16px; }
  .trusted-logos { gap: 20px; }
  .logo-item { font-size: 15px; }
}

/* ── PHONE: 480px and below ── */
@media (max-width: 480px) {
  .navbar { height: 56px; padding: 0 12px; }
  .nav-inner { height: 56px; }
  .nav-brand-icon { width: 32px; height: 32px; font-size: 16px; }
  .nav-brand-text { font-size: 16px; }

  .hero { padding: 72px 14px 32px; min-height: auto; }
  .hero h1 { font-size: clamp(24px, 7vw, 32px) !important; line-height: 1.2; }
  .hero-badge { font-size: 11px; padding: 6px 12px; }
  .hero-desc { font-size: 14px; line-height: 1.6; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary {
    width: 100%; text-align: center; justify-content: center;
    padding: 14px 20px; font-size: 15px; min-height: 48px;
  }
  .hero-card { border-radius: 14px; }
  .cp-name { font-size: 13px; }

  .stats { padding: 24px 14px; }
  .stat-number { font-size: clamp(22px, 6vw, 28px); }
  .stat-label { font-size: 11px; }

  .trusted-by { padding: 24px 14px; }
  .trusted-logos { gap: 16px; }
  .logo-item { font-size: 13px; }

  .section-header h2 { font-size: clamp(22px, 6vw, 28px) !important; }
  .section-header p { font-size: 14px; }
  .section-tag { font-size: 11px; }

  .pillar-card { padding: 20px 16px; }
  .pillar-card h3 { font-size: 15px; }
  .pillar-card p { font-size: 13px; }
  .pillar-number { font-size: 36px; }

  .feature-content h2 { font-size: clamp(20px, 5.5vw, 26px) !important; }
  .feature-content p { font-size: 14px; }
  .feature-list-item div { font-size: 13px; }

  .token-explainer { grid-template-columns: 1fr 1fr; gap: 10px; }
  .token-card { padding: 14px; }
  .token-cost { font-size: 15px; }
  .token-action { font-size: 12px; }

  .price-card { padding: 24px 18px; }
  .price-amount { font-size: 28px; }
  .price-btn { padding: 14px; font-size: 15px; min-height: 48px; }

  .data-step { padding: 20px 14px; min-width: auto; }
  .data-icon { font-size: 28px; }

  .step-card { padding: 20px 16px; }
  .step-number { width: 40px; height: 40px; font-size: 16px; }

  .cta { padding: 50px 16px; }
  .cta h2 { font-size: clamp(22px, 6vw, 30px); }
  .cta p { font-size: 14px; }
  .cta-actions { flex-direction: column; }
  .btn-cta, .btn-cta-secondary { width: 100%; justify-content: center; padding: 14px 24px; font-size: 15px; }

  .footer { padding: 28px 14px; }
  .footer-links { gap: 16px; }

  a, button { -webkit-tap-highlight-color: transparent; }
}

/* ── iPhone safe areas ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .cta, .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* ── Desktop hide mobile menu ── */
@media (min-width: 969px) {
  .mobile-menu-overlay { display: none !important; }
}

/* ── Print ── */
@media print {
  .navbar, .cta, .footer, .mobile-menu-overlay { display: none; }
}
