@media (max-width: 1199px) {
  .hero-grid,
  .astro-layout,
  .news-layout,
  .business-layout,
  .download-layout,
  .contact-layout,
  .page-hero-grid,
  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .showcase-stage {
    min-height: auto;
  }

  .showcase-stage {
    padding: 28px;
  }

  .phone-stack {
    position: relative;
    min-height: 620px;
  }

  .showcase-panel {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    display: none;
  }

  .showcase-panel.is-active {
    display: grid;
  }

  .footer-top,
  .values-grid,
  .testimonial-grid,
  .pricing-grid,
  .feature-grid,
  .grid-4,
  .info-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .site-header {
    padding-top: 12px;
  }

  .navbar {
    align-items: center;
    min-height: 72px;
    border-radius: 26px;
    padding: 12px 16px;
  }

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

  .nav-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 92px;
    z-index: 29;
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links,
  .nav-actions {
    display: grid;
    gap: 10px;
  }

  .nav-actions {
    grid-template-columns: 1fr;
  }

  .nav-links a,
  .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .lang-switch {
    justify-content: space-between;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy,
  .hero-visual,
  .showcase-tabs,
  .showcase-stage,
  .page-hero-grid > *,
  .business-layout > *,
  .download-layout > *,
  .contact-layout > * {
    min-width: 0;
  }

  .hero-stat-grid,
  .grid-3,
  .grid-2,
  .feature-grid,
  .astro-score-grid,
  .city-grid,
  .listing-actions {
    grid-template-columns: 1fr 1fr;
  }

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

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .phone-shell.primary {
    right: 2%;
  }
}

@media (max-width: 767px) {
  .section,
  .section-tight {
    padding: 56px 0;
  }

  .container {
    width: min(var(--page-max), calc(100% - 24px));
  }

  .site-header {
    padding-top: 10px;
  }

  .navbar {
    min-height: 66px;
    padding: 10px 12px;
    border-radius: 22px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    font-size: 0.67rem;
    letter-spacing: 0.08em;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .headline,
  .headline-lg {
    letter-spacing: -0.06em;
  }

  .display,
  .headline {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 1;
  }

  .headline-lg {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
    line-height: 1.02;
  }

  .headline-md {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    line-height: 1.06;
  }

  .headline-sm {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .meta-note,
  .tiny-note,
  .feature-card p,
  .info-card p,
  .quote-card p,
  .pricing-card p,
  .story-card p,
  .contact-card p,
  .faq-answer p,
  .footer-brand p,
  .footer-column a,
  .footer-column span,
  .legal-shell p,
  .legal-shell li {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .hero-grid,
  .showcase-layout,
  .news-layout,
  .business-layout,
  .download-layout,
  .contact-layout,
  .page-hero-grid,
  .grid-3,
  .grid-2,
  .grid-4,
  .feature-grid,
  .values-grid,
  .testimonial-grid,
  .pricing-grid,
  .info-grid-3,
  .footer-top,
  .footer-bottom,
  .hero-stat-grid,
  .listing-actions,
  .city-grid {
    grid-template-columns: 1fr;
  }

  .eyebrow-row,
  .section-head {
    flex-direction: column;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .btn-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 18px;
  }

  .hero-visual {
    order: -1;
    min-height: 460px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-grid {
    gap: 20px;
  }

  .phone-stack {
    min-height: 440px;
  }

  .phone-shell {
    width: min(250px, 78%);
    padding: 12px 10px 14px;
    border-radius: 30px;
  }

  .phone-shell.primary {
    right: 0;
    top: 0;
  }

  .phone-shell.secondary {
    left: 0;
    bottom: 20px;
  }

  .hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }

  .metric-card {
    padding: 16px;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .metric-label {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .phone-screen {
    border-radius: 22px;
  }

  .hero-float-card {
    max-width: 100%;
    padding: 14px 14px 12px;
    border-radius: 18px;
  }

  .hero-float-card strong {
    font-size: 1.02rem;
  }

  .hero-float-card span {
    font-size: 0.8rem;
  }

  .float-top,
  .float-bottom {
    position: relative;
    margin-top: 14px;
    inset: auto;
  }

  .showcase-stage {
    padding: 18px;
    border-radius: 24px;
  }

  .showcase-panel {
    gap: 18px;
  }

  .showcase-copy,
  .story-card,
  .feature-card,
  .quote-card,
  .pricing-card,
  .info-card,
  .contact-card,
  .download-panel,
  .page-hero-shell {
    padding: 20px;
  }

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

  .newsletter-form .btn,
  .contact-form .btn,
  .listing-actions .action-chip {
    width: 100%;
  }

  .listing-actions {
    gap: 10px;
  }

  .faq-question {
    align-items: flex-start;
    padding: 18px 18px 16px;
  }

  .faq-answer-inner {
    padding: 0 18px 18px;
  }

  .footer-shell {
    padding: 22px;
    border-radius: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .page-hero {
    padding: 18px 0 34px;
  }

  .page-hero-shell {
    border-radius: 26px;
  }

  .qr-box {
    width: 100%;
    max-width: 180px;
  }
}

@media (max-width: 575px) {
  .container {
    width: calc(100% - 20px);
  }

  .section,
  .section-tight {
    padding: 48px 0;
  }

  .navbar {
    min-height: 62px;
    border-radius: 20px;
  }

  .brand-copy span {
    display: none;
  }

  .nav-panel {
    left: 10px;
    right: 10px;
    top: 82px;
    padding: 16px;
    border-radius: 22px;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .lang-switch button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .hero {
    padding: 20px 0 44px;
  }

  .hero-copy .lead {
    margin-top: 16px;
  }

  .grid-3,
  .grid-2,
  .feature-grid,
  .astro-score-grid,
  .city-grid,
  .listing-actions,
  .info-grid-3 {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .showcase-copy,
  .story-card,
  .feature-card,
  .quote-card,
  .pricing-card,
  .info-card,
  .contact-card,
  .download-panel,
  .page-hero-shell,
  .listing-card {
    padding: 18px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .phone-stack {
    min-height: 360px;
  }

  .phone-shell {
    width: min(210px, 74%);
  }

  .hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-value {
    font-size: 1.3rem;
  }

  .metric-label {
    font-size: 0.78rem;
  }

  .floating-orb.teal,
  .floating-orb.orange,
  .story-card::after,
  .download-panel::after {
    display: none;
  }

  .ticker {
    overflow-x: auto;
    padding-top: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .ticker::-webkit-scrollbar {
    display: none;
  }

  .ticker-track {
    gap: 10px;
    padding-right: 12px;
  }

  .ticker-chip {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .showcase-stage {
    padding: 14px;
  }

  .showcase-tab {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .showcase-tab span,
  .showcase-list span,
  .pricing-list span {
    font-size: 0.88rem;
  }

  .feature-card {
    min-height: auto;
  }

  .price strong {
    font-size: 2.15rem;
  }

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

  .footer-bottom {
    gap: 14px;
  }

  .footer-social {
    flex-wrap: wrap;
  }

  .page-badge,
  .section-tag,
  .pricing-badge {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    white-space: normal;
  }

  .legal-shell ul {
    padding-left: 18px;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .phone-stack {
    min-height: 320px;
  }

  .phone-shell {
    width: min(188px, 72%);
    border-radius: 24px;
  }

  .phone-screen {
    border-radius: 18px;
  }

  .hero-float-card {
    padding: 12px;
  }

  .hero-stat-grid {
    gap: 8px;
  }
}
