/* ============================================
   RESPONSIVE.CSS — Mobile-First Breakpoints
   ============================================ */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  /* Product expanded section */
  .product__layout {
    gap: 40px;
  }

  .card-swap-container {
    width: 360px;
    height: 320px;
    transform: translate(0%, 10%);
  }

  .swap-card {
    width: 360px;
    height: 320px;
  }

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

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

  .steps__line {
    display: none;
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

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

/* --- Mobile Large (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --header-height: 64px;
  }

  /* Disable fullpage snap on mobile */
  .section {
    min-height: auto;
    display: block;
  }

  .snap-section-overlay {
    display: none;
  }

  /* Header Mobile */
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 80px 24px 32px;
    border-left: 1px solid var(--color-border);
  }

  .header__nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .header__hamburger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  /* Gooey effects hidden on mobile */
  .gooey-effect {
    display: none !important;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

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

  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Problem */
  .problem__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .problem__stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Product expanded */
  .product--expanded {
    min-height: auto;
    padding: 80px 0;
  }

  .product__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product__text {
    text-align: center;
  }

  .product__text .section-desc {
    margin: 0 auto 24px;
  }

  .product__highlights {
    align-items: center;
  }

  .product__text .btn {
    margin: 24px auto 0;
  }

  .product__cards {
    min-height: 420px;
  }

  .card-swap-container {
    width: 320px;
    height: 300px;
    transform: translate(0%, 5%);
  }

  .swap-card {
    width: 320px;
    height: 300px;
  }

  .swap-card__inner {
    padding: 24px;
  }

  .swap-card__inner h3 {
    font-size: 1.1rem;
  }

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

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Benefits */
  .benefits__comparison {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefits__vs {
    padding: 8px 0;
  }

  .benefits__vs span {
    writing-mode: horizontal-tb;
  }

  /* Use Cases */
  .use-cases__grid {
    grid-template-columns: 1fr;
  }

  /* 6 use cases: even grid at mobile */

  /* About */
  .about__pillars {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team .section-title {
    max-width: none;
  }

  .team-section__lede {
    font-size: 1rem;
  }

  .team__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__form-wrapper {
    padding: 24px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- Mobile Small (max 480px) --- */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px;
  }

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .section-desc {
    font-size: 1rem;
  }

  .hero__badge {
    font-size: 0.7rem;
  }

  .product__cards {
    min-height: 360px;
  }

  .card-swap-container {
    width: 280px;
    height: 260px;
  }

  .swap-card {
    width: 280px;
    height: 260px;
  }

  .swap-card__inner {
    padding: 20px;
  }

  .swap-card__inner h3 {
    font-size: 1rem;
  }

  .swap-card__inner p {
    font-size: 0.82rem;
  }

  .feature-card,
  .step-card,
  .use-case-card,
  .about__pillar,
  .team-card {
    padding: 24px 20px;
  }

  .team-card__photo {
    width: 120px;
    height: 120px;
  }


  .benefits__column {
    padding: 24px 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-card__number {
    font-size: 1.4rem;
  }
}

/* --- Mobile Nav Overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}
