/* Large tablets / small desktops */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .teaser-statement {
    font-size: 1.5rem;
  }

  /* Nav mobile — hamburger at 1024px */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-links .btn.btn-sm {
    width: 100%;
    justify-content: center;
  }

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

/* Tablets */
@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

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

  .arch-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  .specs-table th {
    width: 140px;
  }

  .chat-msg {
    font-size: 0.82rem;
  }

  .chat-msg.chat-bot {
    font-size: 0.78rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .hero-text .subtitle {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

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

  .terminal {
    font-size: 0.75rem;
  }

  .terminal-body {
    padding: var(--space-sm);
  }

  .badge {
    font-size: 0.7rem;
  }

  .btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
  }

  .specs-table th,
  .specs-table td {
    padding: 0.65rem var(--space-sm);
    font-size: 0.8rem;
  }

  .specs-table th {
    width: 110px;
  }

  .teaser-statement {
    font-size: 1.3rem;
  }

  .teaser-example {
    font-size: 0.78rem;
  }

  .code-block {
    font-size: 0.75rem;
    padding: var(--space-md);
  }

  .chat-msg {
    font-size: 0.78rem;
    padding: var(--space-sm);
  }

  .chat-msg.chat-bot {
    font-size: 0.74rem;
    padding-left: calc(var(--space-sm) + 3px);
  }
}
