@media (max-width: 1320px) {
  .nav-shell {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    gap: 0.9rem;
  }

  .btn {
    padding: 0.85rem 1.2rem;
  }

  .hero-grid {
    width: min(calc(100% - 3rem), 1240px);
  }

  .hero-visual {
    min-height: 35rem;
  }

  .device-frame {
    width: min(30rem, 90%);
  }
}

@media (max-width: 1440px) {
  .statement-cards,
  .service-slab,
  .belief-slab,
  .support-slab,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .service-slab,
  .belief-slab,
  .support-slab,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .metrics,
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .timeline,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .template-card.large,
  .template-card.medium,
  .template-card.small {
    grid-column: span 6;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    top: 5.4rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 10, 18, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

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

  .nav-links .btn {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 1.5rem;
  }

  .hero-grid {
    width: min(calc(100% - 2.5rem), 100%);
  }

  .hero-visual {
    min-height: 32rem;
    margin-top: 1rem;
    transform: none;
  }

  .hero-visual:hover {
    transform: none;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-grid {
    width: min(calc(100% - 2rem), 100%);
    gap: 1.5rem;
  }

  .hero-copy h1 {
    max-width: 8.5ch;
  }

  .hero-visual {
    min-height: 28rem;
    padding: 1.3rem;
  }

  .statement-wrap {
    padding: 2rem;
  }

  .template-card.large,
  .template-card.medium,
  .template-card.small {
    grid-column: 1 / -1;
  }

  .grid-2,
  .grid-4,
  .metrics,
  .footer-shell,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .image-stack {
    min-height: 26rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.1rem), var(--max));
  }

  .nav-shell {
    padding: 0.7rem 0.85rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .hero-visual,
  .cta-panel,
  .statement-wrap,
  .glass-panel {
    border-radius: 1.5rem;
  }

  .hero-visual {
    padding: 1rem;
    min-height: 24rem;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .device-frame {
    right: auto;
    left: 0.7rem;
    width: auto;
    bottom: 0.8rem;
    transform: none;
  }

  .section-heading {
    margin-bottom: 1.6rem;
  }

  .timeline-step::after {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .product-stage,
  .integration-field,
  .testimonial-strip,
  .showcase-mosaic,
  .home-metrics__grid {
    grid-template-columns: 1fr;
  }

  .showcase-panel--wide,
  .showcase-panel--stack,
  .showcase-panel--card,
  .showcase-panel--mobile {
    min-height: 22rem;
    grid-row: auto;
  }

  .home-hero__visual {
    min-height: 30rem;
    margin-top: 1rem;
  }

  .hero-browser {
    inset: 2rem 0.5rem 0 0.5rem;
  }

  .hero-phone,
  .hero-callout--two,
  .hero-callout--three {
    display: none;
  }

  .integration-map {
    min-height: 28rem;
  }
}

@media (max-width: 820px) {
  .hero-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-hero {
    padding: 1.25rem 0 3rem;
  }

  .home-hero__grid {
    min-height: auto;
    gap: 1.25rem;
  }

  .home-hero__copy h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .home-hero__lead,
  .home-showcase__intro,
  .home-workflow__intro,
  .home-testimonials__intro {
    max-width: 100%;
  }

  .home-hero__visual {
    min-height: 24rem;
  }

  .hero-browser {
    inset: 1rem 0 0 0;
    padding: 0.8rem;
  }

  .hero-browser__analytics,
  .hero-browser__support {
    flex-direction: column;
  }

  .hero-callout {
    display: none;
  }

  .product-stage,
  .integration-field,
  .home-testimonials__surface,
  .home-final-cta__panel {
    padding: 1.6rem;
  }

  .home-showcase,
  .home-product,
  .home-metrics,
  .home-workflow,
  .home-integrations,
  .home-testimonials,
  .home-final-cta {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
  }

  .product-stage__visual {
    min-height: 24rem;
  }

  .product-stage__screen {
    inset: 1rem 0 1rem 0;
  }

  .product-stage__label {
    position: static;
    display: inline-flex;
    margin: 0 0.5rem 0.5rem 0;
  }

  .integration-node {
    min-width: 6rem;
    min-height: 6rem;
    font-size: 0.84rem;
  }

  .workflow-rail {
    grid-auto-columns: minmax(16rem, 82vw);
  }
}

@media (max-width: 560px) {
  .hero-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-hero__copy h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .home-hero__lead {
    font-size: 0.98rem;
  }

  .home-hero__micro {
    gap: 0.7rem;
    justify-content: center;
  }

  .home-hero__visual {
    min-height: 20.5rem;
  }

  .hero-browser__overlay {
    padding: 0.8rem;
  }

  .hero-chip {
    padding: 0.75rem 0.8rem;
  }

  .hero-chip strong {
    font-size: 1.05rem;
  }

  .metric-stat {
    padding: 1.5rem 0.3rem;
  }

  .metric-stat span {
    max-width: none;
  }

  .integration-map {
    min-height: 22rem;
  }

  .integration-node--one {
    left: 0;
  }

  .integration-node--two {
    right: 0;
  }

  .integration-node--three {
    left: 2%;
  }

  .integration-node--four {
    right: 2%;
  }

  .home-showcase__intro h2,
  .product-stage__copy h2,
  .home-workflow__intro h2,
  .integration-field__copy h2,
  .home-testimonials__intro h2,
  .home-final-cta__panel h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }
}
