/* === Responsive === */

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .products-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .problems-grid { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  #integrationsCanvas { height: 560px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-mascot {
    flex-direction: row;
    position: static;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .mascot-img { width: 100px; height: 100px; }
  .mascot-bubble::before, .mascot-bubble::after {
    top: 50%;
    left: -8px;
    right: auto;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: none;
    border-right: 8px solid var(--border-subtle);
  }
  .mascot-bubble::after {
    left: -6px;
    border-right-color: var(--product-card-bg);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .container { padding: 0 1.25rem; }

  /* Nav mobile */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.5rem;
  }
  .nav-links.mobile-open {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav-links a:hover { background: rgba(46, 134, 171, 0.08); }
  .nav-links a::after { display: none; }
  .nav-links .btn-primary.nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
  }
  .mobile-toggle { display: block; font-size: 1.4rem; }
  #mobileThemeToggle { display: flex !important; }

  /* Hero */
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
  .hero-badge { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; }
  .hero-stats .stat-number { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline { width: 100%; justify-content: center; }

  /* Sections */
  .problems, .products, .integrations, .results, .how-it-works, .faq, .cta-section {
    padding: 4rem 0;
  }
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 1rem; }

  /* Problem cards */
  .problems-grid { grid-template-columns: 1fr; }

  /* Products */
  .products-grid { max-width: 100%; }
  .product-card { padding: 2rem 1.5rem; }
  .product-number { font-size: 3rem; }
  .product-badge { font-size: 0.6rem; padding: 0.3rem 0.7rem; }

  /* Integrations canvas */
  #integrationsCanvas { height: 480px; }
  .integrations-canvas-wrap { margin-top: 2rem; }

  /* Results */
  .results-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .result-card { padding: 1.75rem 1rem; }
  .result-number { font-size: 2.2rem; }

  /* Clients carousel */
  .clients-strip { margin-top: 2.5rem; padding-top: 2rem; }
  .client-item { padding: 0.7rem 1.5rem; }
  .client-item span { font-size: 0.85rem; }

  /* Timeline */
  .timeline { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }

  /* CTA */
  .cta-box { padding: 2.5rem 1.5rem; }
  .cta-box h2 { font-size: 1.5rem; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline { width: 100%; justify-content: center; }

  /* FAQ */
  .faq-question { padding: 1.1rem 1.25rem; font-size: 0.92rem; }
  .faq-answer-inner { padding: 0 1.25rem 1.25rem; font-size: 0.88rem; }

  /* Meta badge */
  .meta-badge { font-size: 0.78rem; padding: 0.85rem 1.25rem; flex-wrap: wrap; justify-content: center; text-align: center; }

  /* Footer */
  footer .container { text-align: center; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .container { padding: 0 1rem; }

  .hero { padding-top: 85px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats .stat-number { font-size: 1.4rem; }

  .section-title { font-size: 1.4rem; }

  .results-grid { grid-template-columns: 1fr; }
  .result-number { font-size: 2rem; }

  #integrationsCanvas { height: 400px; }

  .product-card { padding: 1.75rem 1.25rem; }
  .product-features li { font-size: 0.82rem; }

  .clients-track { gap: 1rem; }
  .client-item { padding: 0.6rem 1.2rem; }
  .client-item span { font-size: 0.8rem; }

  .cta-box h2 { font-size: 1.3rem; }
  .cta-box p { font-size: 0.95rem; }

  .nav-logo { font-size: 1.15rem; }

  .mascot-widget { bottom: 16px; right: 16px; }
  .widget-btn { width: 52px; height: 52px; }
  .widget-btn .widget-mascot-icon { width: 36px; height: 36px; }
  .widget-tooltip { max-width: 180px; font-size: 0.78rem; }
}
