/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1023px) {
  .approach-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .approach-step:not(:last-child)::after {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-right .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .tab-panel {
    grid-template-columns: 1fr;
  }

  .tab-panel-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tab-panel-features li {
    font-size: 15px;
  }

  .tab-panel-text h3 {
    font-size: 24px;
  }

  .tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: calc(100% - 40px);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 32px;
    box-shadow: none;
  }

  .tab-pill {
    justify-content: center;
    border-radius: 12px;
    padding: 11px 8px;
    font-size: 12.5px;
    gap: 5px;
  }

  .tab-pill.active {
    border-radius: 12px;
  }

  .section {
    padding: 80px 20px;
  }

  .feature-tabs {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .faq {
    padding: 36px 20px 48px;
  }

  .faq .section-header {
    margin-bottom: 24px;
  }

  .terminal-body { font-size: 11px; padding: 16px; height: 280px; }
  .terminal-capabilities { grid-template-columns: 1fr !important; gap: 20px !important; }
  .terminal-window { margin: 0 -8px; }

  .form-row {
    gap: 10px;
    margin-bottom: 12px;
  }

  .form-group { margin-bottom: 12px; }

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

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

  .hero h1 {
    font-size: clamp(32px, 8vw, 52px);
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 200px;
  }

  /* Swap mouse icon for a smartphone with swipe-up gesture */
  .hero-mouse-icon {
    width: 22px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.3);
  }

  /* Notch */
  .hero-mouse-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    border-radius: 1px;
  }

  /* Swipe-up pill inside phone (matches desktop mouse scroll pill) */
  .hero-mouse-icon::after {
    width: 3px;
    height: 7px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    border: none;
    top: auto;
    bottom: 10px;
    transform: translateX(-50%);
    animation: phoneSwipe 2s ease-in-out infinite;
  }

  @keyframes phoneSwipe {
    0%   { opacity: 1;   bottom: 10px; }
    100% { opacity: 0;   bottom: 22px; }
  }

  .blog-hero {
    padding: 140px 20px 60px;
  }

  .blog-article {
    padding: 60px 20px 80px;
  }

  .blog-parts-grid {
    grid-template-columns: 1fr;
  }

  .blog-prose pre code {
    font-size: 11px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .portal-card {
    padding: 32px 24px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero-subtitle, .hero-buttons {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .blog-hero h1, .blog-hero p {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .pulse-dot { animation: none; }
  .btn-primary, .btn-secondary, .btn-dark, .btn-light-section, .card, .compare-card {
    transition: none;
  }
  .hero-mesh, .blog-hero-mesh, .portal-mesh { animation: none; }
  .hero-mouse-icon::after { animation: none !important; }
  .hero-particles { display: none; }
  .btn-signin { transition: none; }
  .portal-view.is-active { animation: none; opacity: 1; }
  .portal-view.is-leaving { animation: none; }
}
