@media (max-width: 1240px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 56px;
  }

  .hero-copy {
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
  }

  .hero h1,
  .hero-subtitle,
  .feature-row,
  .lock-note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .lock-note {
    justify-content: center;
  }

  .app-preview-wrap {
    width: min(100%, 1050px);
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .pricing-wrap {
    overflow-x: auto;
  }

  .pricing-grid {
    min-width: 920px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 74px;
  }

  .site-header {
    height: var(--header-h);
    background: rgba(250, 251, 255, 0.9);
  }

  .header-inner {
    width: min(100% - 28px, 1500px);
  }

  .brand {
    font-size: 22px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 28, 58, 0.08);
    box-shadow: 0 18px 46px rgba(43, 50, 90, 0.14);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .main-nav a {
    padding: 14px;
    border-radius: 12px;
    color: #11182f;
  }

  .main-nav a:hover {
    background: rgba(109, 76, 255, 0.08);
    color: var(--primary);
  }

  .login-btn {
    display: none;
  }

  .mobile-auth-btn {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--primary), #6f42ff);
    color: #fff;
    border: 0;
    box-shadow: 0 14px 30px rgba(109, 76, 255, 0.22);
  }

  .mobile-menu-btn {
    display: block;
  }

  .app-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    display: none;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell,
  .header-inner,
  .footer-inner {
    width: min(100% - 28px, 1500px);
  }

  .hero {
    padding: 34px 0 32px;
    gap: 34px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 66px);
    letter-spacing: -0.08em;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-top: 22px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0 32px;
  }

  .feature {
    padding: 14px;
    border: 1px solid rgba(20, 28, 58, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
  }

  .feature + .feature {
    padding-left: 14px;
    border-left: 1px solid rgba(20, 28, 58, 0.08);
  }

  .hero-actions {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
  }

  .google-btn {
    width: 100%;
    min-height: 66px;
    gap: 14px;
    border-radius: 14px;
  }

  .secondary-link {
    width: 100%;
  }

  .google-icon {
    width: 46px;
    height: 46px;
  }

  .google-btn span:last-child {
    font-size: 17px;
  }

  .lock-note {
    justify-content: flex-start;
    font-size: 15px;
  }

  .app-preview {
    border-radius: 22px;
  }

  .app-top {
    height: 58px;
    padding: 0 18px;
  }

  .main-panel {
    padding: 24px 18px 22px;
  }

  .preview-head {
    display: block;
  }

  .score-circle {
    width: 96px;
    height: 96px;
    margin-top: 20px;
  }

  .welcome h2 {
    font-size: 25px;
  }

  .workspace-card,
  .ai-card {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 104px;
  }

  .section {
    padding: 66px 0;
  }

  .section-head {
    text-align: left;
    margin-bottom: 32px;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .step-card {
    min-height: auto;
    padding: 24px;
  }

  .pricing-section {
    padding-top: 58px;
  }

  .pricing-note {
    font-size: 13px;
  }

  .faq-section {
    padding-bottom: 76px;
  }

  .faq-question {
    padding: 20px;
    font-size: 17px;
  }

  .faq-answer {
    padding: 0 20px 22px;
    font-size: 15px;
  }

  .site-footer {
    padding: 28px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    font-size: 20px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .google-btn {
    justify-content: flex-start;
    padding: 0 13px;
  }

  .app-preview-wrap {
    margin-left: -2px;
    margin-right: -2px;
  }
}