/* ===================================================== */
/* =============== INDEX RESPONSIVE CLEAN ============== */
/* ===================================================== */

/* Base safety */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

header,
.header-inner,
main,
footer {
  width: 100%;
  max-width: 100%;
}

/* -------------------- <= 1200px -------------------- */
@media (max-width: 1200px) {
  .header-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  nav {
    gap: 1rem;
  }

  .nav-btn,
  header .lang-btn {
    font-size: 18px;
  }

  .welcome-cards-sides {
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pricing-wide,
  .pricing-grid-glass,
  .commit-wide-cols {
    width: 100%;
    max-width: 100%;
  }
}

/* -------------------- <= 1024px -------------------- */
@media (max-width: 1024px) {
  .main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .main-strap {
    font-size: clamp(0.98rem, 2.6vw, 1.18rem);
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .pricing-grid-glass {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-grid-glass table,
  .pricing-grid {
    min-width: 760px;
  }
}

/* -------------------- <= 900px -------------------- */
@media (max-width: 900px) {
  .twitch-center {
    position: static;
    transform: none;
    order: 3;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.55rem;
    justify-content: space-between;
    align-items: center;
  }

  nav {
    width: 100%;
    order: 4;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin-left: 0;
  }

  .lang-dropdown {
    margin-left: 0;
  }

  .nav-btn,
  header .lang-btn {
    font-size: 15px;
    padding: 0.28rem 0.5rem;
  }

  .welcome-cards-sides {
    flex-direction: column;
    align-items: stretch;
  }

  .card-left,
  .card-right {
    width: 100%;
  }

  .faq-row-minimal {
    flex-direction: column;
    gap: 0.9rem;
  }
}

/* -------------------- <= 760px -------------------- */
@media (max-width: 760px) {
  #main-header {
    position: sticky;
  }

  .logo-nov {
    font-size: 18px;
  }

  .logo-img {
    width: 20px;
    height: 20px;
  }

  .main-section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .main-title {
    line-height: 1.15;
  }

  .main-strap {
    line-height: 1.45;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-choose-btn,
  .price-choice,
  .beta-access-btn {
    width: 100%;
    max-width: 100%;
  }

  .copy-pro {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    text-align: center;
  }
}

/* -------------------- <= 600px -------------------- */
@media (max-width: 600px) {
  .header-inner {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .nav-btn,
  header .lang-btn {
    font-size: 14px;
  }

  .main-title {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .main-strap {
    font-size: 0.95rem;
  }

  .feature-title {
    font-size: 0.98rem;
  }

  .feature-desc {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .pricing-grid-glass table,
  .pricing-grid {
    min-width: 680px;
  }

  footer,
  .footer {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

/* -------------------- <= 480px -------------------- */
@media (max-width: 480px) {
  .logo-nov {
    font-size: 16px;
  }

  nav {
    gap: 0.3rem 0.45rem;
  }

  .nav-btn,
  header .lang-btn {
    font-size: 13px;
    padding: 0.24rem 0.34rem;
  }

  .main-title {
    font-size: clamp(1.3rem, 8vw, 1.7rem);
  }

  .main-strap {
    font-size: 0.9rem;
  }

  .card-title,
  .card-title-right {
    font-size: 1rem;
  }

  .card-desc,
  .card-list a {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .pricing-grid-glass table,
  .pricing-grid {
    min-width: 620px;
  }
}

/* Landscape phones / low height */
@media (max-height: 520px) and (orientation: landscape) {
  .header-inner {
    row-gap: 0.35rem;
  }

  nav {
    gap: 0.2rem 0.45rem;
  }

  .nav-btn,
  header .lang-btn {
    font-size: 12px;
  }
}
