/* ============================================
   RESPONSIVE — All Breakpoints
   ============================================ */

/* ═══════════════════════════════════════════
   TABLET: 768px – 1023px
   ═══════════════════════════════════════════ */

@media (max-width: 1023px) {

  /* Typography Scale Down */
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }

  .section {
    padding: var(--space-16) 0;
  }

  /* Navigation */
  .navbar__links {
    display: none;
  }

  .navbar__actions .btn--ghost-light,
  .navbar__actions .btn:not(.btn--primary) {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Hero */
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__floating-cards {
    display: none;
  }

  /* Steps Grid */
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .steps-grid::before {
    display: none;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-card--wide {
    grid-column: span 2;
  }

  /* Tool Layout */
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-layout__input {
    position: static;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: span 2;
    max-width: none;
  }

  /* Bento Stats */
  .bento-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .bento-stat-divider {
    display: none;
  }
}


/* ═══════════════════════════════════════════
   MOBILE: 320px – 767px
   ═══════════════════════════════════════════ */

@media (max-width: 767px) {

  :root {
    --container-padding: var(--space-4);
  }

  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }

  .section {
    padding: var(--space-16) 0;
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .section-header p {
    font-size: var(--text-base);
  }

  /* Navbar */
  .navbar__actions {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__ticker {
    flex-direction: column;
    gap: var(--space-1);
  }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__proof {
    flex-direction: column;
    gap: var(--space-2);
  }

  .hero__floating-cards {
    display: none;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .steps-grid::before {
    display: none;
  }

  /* Roadmap Form */
  .roadmap-form {
    padding: var(--space-6);
  }

  .tag-grid {
    gap: var(--space-2);
  }

  .tag-option {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }

  .step-indicator {
    gap: 0;
  }

  .step-indicator__label {
    display: none;
  }

  .step-indicator__line {
    width: 32px;
  }

  .step-nav {
    flex-direction: column;
  }

  .step-nav .btn {
    width: 100%;
  }

  /* Pill toggle */
  .pill-toggle {
    width: 100%;
  }

  .pill-toggle__option {
    flex: 1;
    text-align: center;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr;
  }

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

  .bento-card {
    padding: var(--space-6);
  }

  .bento-stats {
    flex-direction: column;
    gap: var(--space-6);
  }

  /* Tool Layout */
  .tool-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Results Panel */
  .results-header {
    padding: var(--space-4) var(--space-5);
    flex-direction: column;
    text-align: center;
  }

  .results-header__actions {
    width: 100%;
    flex-direction: column;
  }

  .results-body {
    padding: var(--space-5);
  }

  .markdown-content h2 {
    font-size: var(--text-xl);
  }

  .markdown-content h3 {
    font-size: var(--text-lg);
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid .testimonial-card:last-child {
    grid-column: span 1;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .stat-card {
    padding: var(--space-6) var(--space-4);
  }

  .stat-card__number {
    font-size: var(--text-3xl);
  }

  /* FAQ */
  .faq-item__question {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
  }

  .faq-item__answer-inner {
    padding: 0 var(--space-5) var(--space-5);
    font-size: var(--text-sm);
  }

  /* CTA Section */
  .cta-section h2 {
    font-size: var(--text-3xl);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__disclaimer {
    text-align: center;
  }

  /* API Key FAB */
  .api-key-fab {
    bottom: var(--space-4);
    right: var(--space-4);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }

  /* Modal */
  .modal {
    padding: var(--space-6);
    margin: var(--space-4);
  }

  /* Toast */
  .toast-container {
    top: var(--space-4);
    right: var(--space-4);
    left: var(--space-4);
  }

  .toast {
    max-width: none;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════
   SMALL MOBILE: 320px – 374px
   ═══════════════════════════════════════════ */

@media (max-width: 374px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero__title {
    font-size: 2rem;
  }

  .hero__badge {
    font-size: var(--text-xs);
  }

  .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }

  .roadmap-form {
    padding: var(--space-4);
  }
}


/* ═══════════════════════════════════════════
   WIDE SCREENS: 1441px+
   ═══════════════════════════════════════════ */

@media (min-width: 1441px) {
  .container {
    max-width: var(--max-width);
  }

  .hero__title {
    font-size: 5rem;
  }

  .section {
    padding: 120px 0;
  }
}
