/* ============================================
   PRNT — Responsive Styles (Mobile-First)
   ============================================ */

/* ── Max 1024px — Tablet & Below ── */
@media (max-width: 1024px) {

  /* Hero */
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero__text {
    order: 1;
  }

  .hero__description {
    margin-inline: auto;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__3d {
    order: 2;
    min-height: 350px;
  }

  .hero__3d-canvas {
    height: 380px;
  }

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


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

  .matrix-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .features__orbit-wrapper {
    min-height: 400px;
  }

  /* API Demo */
  .api-demo__playground {
    grid-template-columns: 1fr;
  }

  /* How It Works */
  .how-it-works__pipeline {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .how-it-works__connector {
    display: none !important;
  }

  /* Pricing */
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .pricing-card--featured {
    order: -1;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ── Max 768px — Mobile Landscape & Small Tablets ── */
@media (max-width: 768px) {

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

  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
  }

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

  .hero__badge {
    font-size: 0.65rem;
  }

  .hero__3d-canvas {
    height: 300px;
  }

  .hero__scroll-indicator {
    display: none;
  }

  /* Trust Bar */
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  /* Features */
  .features__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
  }

  .network-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .feature-card {
    padding: var(--space-lg);
  }

  /* API Demo */
  .api-demo__tabs {
    flex-wrap: wrap;
  }

  .api-demo__code {
    font-size: 0.75rem;
  }

  .api-demo__editor,
  .api-demo__preview {
    padding: var(--space-md);
  }

  /* How It Works */
  .how-it-works__step {
    padding: var(--space-lg);
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--space-lg);
  }

  .testimonial-card__quote {
    font-size: var(--fs-body);
  }

  /* CTA */
  .cta-section__form {
    flex-direction: column;
  }

  .cta-section__input {
    text-align: center;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .footer__bottom-links {
    justify-content: center;
  }
}

/* ── Max 480px — Small Mobile ── */
@media (max-width: 480px) {

  :root {
    --section-py: clamp(3rem, 8vw, 5rem);
    --section-px: clamp(1rem, 4vw, 1.5rem);
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero__description {
    font-size: var(--fs-body);
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__3d-canvas {
    height: 250px;
  }

  /* Trust Bar */
  .trust-bar__stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  /* Features */
  .feature-card__icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  /* Pricing */
  .pricing-card {
    padding: var(--space-lg);
  }

  .pricing-card__price-amount {
    font-size: var(--fs-h2);
  }

  /* Testimonials */
  .testimonial-card__author {
    flex-direction: column;
  }

  .testimonial-card__author-info {
    text-align: center;
  }

  /* Footer */
  .footer__social {
    justify-content: center;
  }

  .footer__newsletter-form {
    flex-direction: column;
  }
}

/* ── Min 1440px — Large Screens ── */
@media (min-width: 1440px) {

  .hero__3d-canvas {
    height: 550px;
  }

  .features__grid {
    gap: var(--space-xl);
  }

  .pricing__grid {
    gap: var(--space-xl);
  }
}

/* ── Landscape orientation mobile fixes ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: var(--space-2xl);
  }

  .preloader {
    display: none;
  }
}

/* ── High contrast mode ── */
@media (forced-colors: active) {
  .btn--primary,
  .btn--primary-glow {
    border: 2px solid ButtonText;
  }

  .glass-card,
  .feature-card,
  .pricing-card,
  .testimonial-card {
    border: 2px solid CanvasText;
  }
}

/* ── Print styles ── */
@media print {
  .preloader,
  .navbar,
  .hero__3d,
  .hero__bg,
  .hero__scroll-indicator,
  .trust-bar__marquee,
  .api-demo__bg-rain,
  .cta-section__particles,
  .footer__watermark {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding-block: 2rem;
    page-break-inside: avoid;
  }
}
