@media (max-width: 1120px) {
  .nav-actions .btn--ghost {
    display: none;
  }

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

  .hero__visual {
    min-height: 620px;
  }

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

  .feature-card--large,
  .feature-card--wide {
    grid-column: span 1;
  }

  .mode-grid,
  .pricing-grid,
  .testimonial-grid,
  .roadmap-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: fixed;
    top: 92px;
    right: clamp(16px, 4vw, 40px);
    left: clamp(16px, 4vw, 40px);
    display: grid;
    max-height: calc(100svh - 116px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(9,13,31,.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }

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

  .nav-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    justify-content: flex-start;
  }

  .split,
  .analytics-panel,
  .discord-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading--sticky {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(190px, 34vw);
  }

  .trailer-copy {
    max-width: min(620px, calc(100% - 40px));
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 24px, 1240px);
    --section-y: 64px;
  }

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

  .cursor-light {
    display: none;
  }

  .navbar {
    min-height: 62px;
    border-radius: 18px;
    gap: 10px;
    padding: 8px 10px;
  }

  .nav-toggle {
    width: 42px;
    flex: 0 0 auto;
  }

  .nav-panel {
    top: 82px;
    right: 10px;
    left: 10px;
    max-height: calc(100svh - 98px);
    border-radius: 18px;
  }

  .brand__text {
    font-size: .98rem;
  }

  .brand__mark {
    width: 38px;
  }

  .nav-actions .btn {
    min-height: 42px;
    padding-inline: 12px;
    width: 42px;
    flex: 0 0 42px;
  }

  .nav-actions .btn span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-title {
    font-size: clamp(2.15rem, 12vw, 3.8rem);
    line-height: 1.08;
  }

  .section-heading h2,
  .discord-panel h2,
  .trailer-copy h2,
  .hero-title,
  .feature-card h3,
  .mode-card h3,
  .timeline h3,
  .price-card h3,
  .testimonial-card h3,
  .roadmap-track h3,
  .btn,
  .glass-card strong {
    overflow-wrap: anywhere;
  }

  .hero__content {
    gap: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.9;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

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

  .hero-stats div {
    min-width: 0;
    padding: 13px 10px;
  }

  .hero-stats strong {
    font-size: 1.1rem;
  }

  .hero-stats span {
    font-size: .75rem;
  }

  .hero__visual {
    min-height: 430px;
    margin-top: 10px;
  }

  .character-stage {
    inset: 2% 0 18%;
    border-radius: 24px;
  }

  .status-card,
  .ip-card {
    width: min(94%, 340px);
    padding: 14px;
  }

  .status-card {
    top: 6%;
    right: 3%;
  }

  .ip-card {
    left: 3%;
    bottom: 6%;
  }

  .floating-cube {
    opacity: .45;
  }

  .stats-grid,
  .bento-grid,
  .mode-grid,
  .pricing-grid,
  .testimonial-grid,
  .roadmap-track,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 360px;
    border-radius: 22px;
    padding: 16px;
  }

  .mode-card__content {
    padding: 18px;
    border-radius: 16px;
  }

  .gallery-item--tall,
  .gallery-item--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .trailer-frame {
    border-radius: 24px;
    min-height: 360px;
  }

  .trailer-copy {
    right: 18px;
    bottom: 18px;
  }

  .play-fab {
    width: 66px;
  }

  .price-card--popular {
    transform: none;
  }

  .analytics-panel,
  .discord-panel {
    border-radius: 24px;
  }

  #statsChart {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .accordion__item {
    min-height: 64px;
    padding-inline: 16px;
  }

  .accordion__panel p {
    padding-inline: 16px;
  }

  .discord-panel .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .newsletter div {
    align-items: center;
  }

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

@media (max-width: 420px) {
  :root {
    --container: min(100% - 18px, 1240px);
    --section-y: 56px;
  }

  .navbar {
    min-height: 58px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark,
  .nav-toggle,
  .nav-actions .btn {
    width: 38px;
  }

  .nav-actions .btn {
    min-height: 38px;
    flex-basis: 38px;
    padding-inline: 0;
  }

  .brand__text {
    font-size: .9rem;
  }

  .hero {
    padding-top: 92px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 11vw, 2.8rem);
  }

  .section-heading h2,
  .discord-panel h2,
  .trailer-copy h2 {
    font-size: clamp(1.65rem, 9vw, 2.25rem);
  }

  .eyebrow {
    font-size: .82rem;
  }

  .hero__visual {
    min-height: 360px;
  }

  .hero-character {
    width: min(72%, 280px);
  }

  .status-card,
  .ip-card {
    gap: 10px;
    font-size: .88rem;
  }

  .glass-card small {
    display: none;
  }

  .feature-card,
  .stat-card,
  .roadmap-track article,
  .price-card,
  .testimonial-card,
  .timeline article {
    border-radius: 18px;
  }

  .timeline::before {
    right: 20px;
  }

  .timeline article {
    padding: 22px 62px 22px 18px;
  }

  .timeline article span {
    width: 42px;
    border-radius: 12px;
    font-size: .82rem;
  }

  .mode-card {
    min-height: 330px;
  }

  .gallery-grid {
    grid-auto-rows: minmax(180px, 68vw);
  }

  .trailer-frame {
    min-height: 320px;
  }

  .footer {
    padding-block: 42px 24px;
  }
}

@media (min-width: 1600px) {
  :root {
    --container: min(100% - 140px, 1480px);
  }
}
