@media (max-width: 1100px) {
  :root {
    --container: 940px;
  }

  .site-nav__link {
    padding-inline: 8px;
    font-size: 0.78rem;
  }

  .site-header .btn-primary {
    padding-inline: 15px;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero__visual {
    height: 500px;
  }

  .download-card {
    grid-template-columns: auto 1fr;
  }

  .download-card .btn {
    grid-column: 1 / -1;
  }

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

@media (max-width: 960px) {
  :root {
    --header-height: 72px;
  }

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

  .section {
    padding-block: 92px;
  }

  .site-header__inner > .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    max-height: calc(100vh - var(--header-height));
    gap: 4px;
    padding: 20px;
    transform: translateY(-12px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    background: rgba(9, 13, 18, 0.97);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    visibility: hidden;
    backdrop-filter: blur(20px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

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

  .site-nav__link {
    min-height: 48px;
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
  }

  .site-nav__link.is-active {
    background: rgba(205, 181, 138, 0.07);
  }

  .site-nav__link::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 90px);
  }

  .hero__inner,
  .app-hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: 760px;
  }

  .hero__visual {
    width: min(100%, 600px);
    height: 480px;
    margin-inline: auto;
  }

  .orbit {
    width: min(76vw, 470px);
  }

  .hero__logo-frame {
    width: min(76vw, 470px);
  }

  .hero__scroll {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .purpose-grid,
  .ecosystem,
  .contact-layout,
  .requirements {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .purpose-copy,
  .contact-copy {
    position: static;
  }

  .ecosystem-map {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .app-hero__inner {
    gap: 52px;
  }

  .app-preview {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .site-footer__grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 34px;
  }
}

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

  h1 {
    font-size: clamp(2.75rem, 12vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }

  .section,
  .section--compact {
    padding-block: 76px;
  }

  .hero {
    padding-bottom: 70px;
  }

  .hero__visual {
    height: 390px;
  }

  .orbit__sphere {
    width: 82px;
  }

  .hero__metric {
    left: 4%;
  }

  .page-hero {
    padding: calc(var(--header-height) + 78px) 0 72px;
  }

  .app-grid,
  .download-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 390px;
  }

  .ecosystem-map {
    min-height: 430px;
  }

  .ecosystem-map__core {
    width: 150px;
  }

  .ecosystem-node {
    min-width: 135px;
    padding-inline: 11px;
    font-size: 0.68rem;
  }

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

  .stat + .stat {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .app-preview {
    min-height: 480px;
    padding: 28px;
  }

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

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

  .screenshots {
    gap: 12px;
  }

  .screenshot-placeholder {
    border-radius: 18px;
  }

  .development-panel {
    padding: 42px 24px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .form-field,
  .form-field--full {
    grid-column: 1;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 38px 30px;
  }

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

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

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

  .brand__logo {
    width: 48px;
    height: 48px;
  }

  .brand__text {
    font-size: 0.78rem;
  }

  .button-row,
  .app-card__actions,
  .download-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-row .btn,
  .app-card__actions .btn,
  .download-modal__actions .btn {
    width: 100%;
  }

  .hero {
    padding-top: calc(var(--header-height) + 62px);
  }

  .hero__visual {
    height: 315px;
  }

  .orbit {
    width: 285px;
  }

  .hero__logo-frame {
    width: min(86vw, 320px);
    border-radius: 24px;
  }

  .orbit__sphere {
    width: 66px;
  }

  .orbit__label {
    right: 0;
    font-size: 0.58rem;
  }

  .hero__metric {
    bottom: 0;
    left: 0;
    max-width: 190px;
    padding: 14px;
  }

  .app-card,
  .content-card {
    padding: 26px;
    border-radius: 24px;
  }

  .app-card__top {
    margin-bottom: 28px;
  }

  .app-card__icon {
    width: 62px;
    height: 62px;
  }

  .download-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .download-card__meta {
    flex-direction: column;
    gap: 2px;
  }

  .ecosystem-map {
    min-height: 540px;
  }

  .ecosystem-map::before { transform: rotate(66deg); }
  .ecosystem-map::after { transform: rotate(-66deg); }

  .ecosystem-node:nth-child(2) { top: 3%; left: 0; }
  .ecosystem-node:nth-child(3) { top: 20%; right: 0; }
  .ecosystem-node:nth-child(4) { bottom: 20%; left: 0; }
  .ecosystem-node:nth-child(5) { right: 0; bottom: 3%; }

  .app-hero__title-row {
    align-items: flex-start;
  }

  .app-hero__icon {
    width: 64px;
    height: 64px;
  }

  .app-preview {
    min-height: 430px;
    border-radius: 28px;
  }

  .phone {
    width: 185px;
  }

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

  .screenshot-placeholder {
    aspect-ratio: 4 / 5;
  }

  .contact-form {
    padding: 22px;
    border-radius: 22px;
  }

  .cta-panel {
    padding: 32px 24px;
    border-radius: 24px;
  }

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

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

  .site-footer__bottom {
    flex-direction: column;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 360px) {
  .brand__text small {
    display: none;
  }

  .status {
    font-size: 0.6rem;
  }

  .app-card {
    padding: 22px;
  }

  .ecosystem-node {
    min-width: 118px;
  }
}
