/* ==========================================================================
   Responsive — breakpoints: 768px (tablet/mobile), 1024px (desktop)
   ========================================================================== */

/* ----- Tablet (1024px and below) ----- */
@media (max-width: 1023px) {
  .signup-shell__stage {
    min-height: 820px;
    padding-top: 52px;
  }

  .signup-shell__art {
    bottom: 28px;
    width: min(34vw, 380px);
  }

  .signup-card {
    width: min(100%, 470px);
    padding: 36px 30px 30px;
  }

  .site-footer {
    margin-top: -132px;
    padding: 196px 24px 64px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 56px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .overview-rail {
    gap: 20px;
    margin-bottom: 72px;
  }

  .overview-rail__item {
    gap: 18px;
  }

  .overview-rail__icon {
    width: 88px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .overview-card {
    max-width: none;
  }

  .overview-card p {
    max-width: none;
  }

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

  .why-card {
    min-height: 284px;
  }

  .why-card__quote {
    min-height: 0;
  }

  .hero__visual {
    height: 820px;
    transform: none;
  }

  .dash-card--balance      { width: 300px; }
  .dash-card--storage      { width: 320px; }
  .dash-card--contributors { width: 300px; top: 42%; }
  .dash-card--temp         { width: 150px; right: 32%; }
  .dash-card--quality      { width: 210px; }
  .dash-card--optimal      { width: 130px; right: 30%; }
  .dash-card--performance  { width: 160px; }
  .dash-card--report       { left: 8%; right: 30%; }

  .pricing-card--featured {
    transform: none;
  }
}

/* ----- Mobile (768px and below) ----- */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  section {
    padding: 72px 24px;
  }

  .hero,
  #features,
  #about-product.product-showcase {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .feature-note {
    display: none !important;
  }

  .signup-shell__stage {
    min-height: 760px;
    padding: 18px 16px 0;
  }

  .signup-shell__art {
    bottom: 96px;
    width: 190px;
    opacity: 0.98;
  }

  .signup-shell__art--left {
    left: -48px;
  }

  .signup-shell__art--right {
    right: -48px;
  }

  .signup-card {
    width: min(100%, 278px);
    margin-top: 8px;
    padding: 18px 18px 20px;
    border-radius: 18px;
  }

  .site-footer {
    margin-top: -94px;
    padding-top: 126px;
  }

  .signup-card__title {
    font-size: clamp(18px, 6.2vw, 30px);
    text-underline-offset: 6px;
  }

  .signup-card__subtitle {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .signup-card__split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .signup-field + .signup-field {
    margin-top: 16px;
  }

  .signup-field label {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .signup-card__submit {
    margin-top: 20px;
    min-height: 42px;
    font-size: 16px;
  }

  .signup-card__social-btn {
    min-height: 36px;
    gap: 12px;
    font-size: 14px;
  }

  .site-footer {
    padding: 126px 24px 48px;
  }

  .site-footer__grid {
    max-width: 312px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer__brand {
    align-items: flex-start;
    gap: 18px;
  }

  .site-footer__logo {
    width: 138px;
  }

  .site-footer__social {
    gap: 12px;
  }

  .site-footer__social a svg {
    width: 24px;
    height: 24px;
  }

  .site-footer__column {
    gap: 10px;
    max-width: 288px;
  }

  .site-footer__column h3 {
    margin-bottom: 6px;
    font-size: 16px;
  }

  .site-footer__column a {
    font-size: 14px;
    line-height: 1.3;
  }

  .overview-section {
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .overview-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 40px;
  }

  .overview-rail__icon {
    width: 52px;
  }

  .overview-rail__label {
    font-size: 10px;
  }

  .overview-card__head {
    gap: 12px;
    margin-bottom: 10px;
  }

  .overview-card__info {
    width: 28px;
    height: 28px;
  }

  .overview-card h3 {
    font-size: clamp(18px, 5.4vw, 28px);
  }

  .overview-card p {
    margin-left: 40px;
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.16;
  }

  .overview-grid {
    gap: 30px;
  }

  .overview-card {
    max-width: 320px;
    margin: 0 auto;
  }

  .why-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .why-section__header {
    max-width: 320px;
    margin: 0 auto 28px;
    text-align: center;
  }

  .why-section__header h2 {
    margin-bottom: 14px;
    font-size: clamp(30px, 8.8vw, 42px);
    line-height: 1.08;
  }

  .why-section__subtitle {
    margin: 0 auto;
    max-width: 290px;
    font-size: clamp(15px, 4.1vw, 18px);
    line-height: 1.18;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }

  .why-card {
    min-height: 0;
    width: 100%;
    max-width: 270px;
    padding: 14px 18px 16px;
    border-radius: 18px;
    box-shadow:
      0 2px 4px rgba(82, 98, 138, 0.06),
      0 12px 24px rgba(82, 98, 138, 0.12);
  }

  .why-card__quote-mark {
    margin-bottom: 2px;
    font-size: 46px;
    line-height: 0.72;
  }

  .why-card__quote {
    max-width: 220px;
    min-height: 0;
    margin-bottom: 12px;
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.18;
  }

  .why-card__avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }

  .why-card__role {
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.15;
  }

  .why-card__name {
    font-size: clamp(15px, 4.2vw, 20px);
    text-underline-offset: 5px;
    text-decoration-thickness: 1.5px;
  }

  h1 { font-size: var(--font-size-32); }
  h2 { font-size: var(--font-size-24); }
  h3 { font-size: var(--font-size-20); }

  /* Navbar */
  .navbar {
    max-width: 680px;
    padding: 20px 28px 10px;
    gap: 10px;
  }

  .navbar__logo {
    height: 68px;
  }

  .navbar__logo img {
    transform: scale(1.65);
  }

  .navbar__menu {
    display: none;
  }

  .navbar__more {
    display: inline-flex;
    margin-left: auto;
  }

  .navbar__mobile-menu.is-open {
    display: block;
  }

  .navbar__actions {
    gap: 12px;
  }

  .navbar__actions > .lang-switcher {
    display: none;
  }

  .navbar__mobile-menu .lang-switcher--mobile {
    display: inline-flex;
  }

  .navbar__actions .btn--ghost {
    display: inline-flex;
  }

  .navbar__actions .btn {
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: clamp(15px, 2.3vw, 18px);
  }

  /* Hero */
  .hero {
    padding: 26px 24px 72px;
  }

  .hero h1 {
    max-width: 640px;
    font-size: clamp(44px, 7.1vw, 68px);
    line-height: 1.12;
    margin-bottom: 28px;
  }

  .hero__subtitle {
    max-width: 620px;
    font-size: clamp(20px, 3.6vw, 28px);
    line-height: 1.36;
  }

  .hero__visual {
    width: 100%;
    max-width: 620px;
    height: 1110px;
    margin: 58px auto 0;
    transform: none;
  }

  .hero__centerpiece {
    top: 306px;
    width: min(76vw, 540px);
    max-width: 540px;
    z-index: 1;
  }

  .hero__centerpiece-art {
    display: block;
  }

  .dash-card {
    position: absolute !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 24px;
  }

  .dash-card--balance,
  .dash-card--contributors,
  .dash-card--report {
    display: none;
  }

  .dash-card--storage {
    left: 50% !important;
    top: 0 !important;
    width: min(68vw, 480px) !important;
    padding: 24px 26px 22px;
    transform: translateX(-50%);
    z-index: 6;
  }

  .dash-card--performance {
    left: 0 !important;
    top: 342px !important;
    width: min(29vw, 206px) !important;
    padding: 18px 20px 14px;
    z-index: 5;
  }

  .dash-card--optimal {
    right: 0 !important;
    top: 248px !important;
    width: min(24vw, 170px) !important;
    padding: 20px 24px 18px;
    z-index: 5;
  }

  .dash-card--clock {
    right: 0 !important;
    top: 564px !important;
    width: min(14vw, 96px) !important;
    height: min(14vw, 96px) !important;
    z-index: 4;
  }

  .dash-card--quality {
    left: 0 !important;
    top: 732px !important;
    width: min(42vw, 300px) !important;
    padding: 18px 18px 20px;
    z-index: 4;
  }

  .dash-card--temp {
    right: 0 !important;
    left: auto !important;
    top: 804px !important;
    width: min(31vw, 218px) !important;
    padding: 18px 18px 14px;
    z-index: 4;
  }

  .hero__cta {
    max-width: 620px;
    margin: 28px auto 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
  }

  .hero__cta .input {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 52px;
  }

  .hero__cta .btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 52px;
    padding: 0 24px;
  }

}

@media (max-width: 560px) {
  html,
  body {
    overflow-x: clip;
  }

  .signup-shell__art {
    display: none;
  }

  .signup-card__terms,
  .signup-card__divider {
    font-size: 14px;
  }

  .overview-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .overview-card p {
    margin-left: 38px;
  }

  .overview-rail__icon {
    width: 46px;
  }

  .overview-rail__label {
    font-size: 9px;
  }

  .signup-card {
    width: min(100%, 276px);
    padding: 18px 16px 18px;
  }

  .signup-card .input {
    min-height: 30px;
    border-radius: 8px;
    font-size: 14px;
  }

  .signup-card__social-icon {
    width: 24px;
    height: 24px;
  }

  .signup-card__social-icon svg {
    width: 18px;
    height: 18px;
  }

  .site-footer__brand {
    gap: 14px;
  }

  .site-footer__logo {
    width: 132px;
  }

  .site-footer__social {
    gap: 10px;
  }

  .site-footer__social a svg {
    width: 22px;
    height: 22px;
  }

  .site-footer__column h3 {
    font-size: 15px;
  }

  .site-footer__column a {
    font-size: 13px;
  }

  .why-section__header h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .why-section__subtitle {
    max-width: 270px;
    font-size: clamp(14px, 4.2vw, 17px);
    line-height: 1.18;
  }

  .navbar {
    padding: 16px 16px 10px;
    gap: 6px;
  }

  .navbar__logo {
    height: 56px;
  }

  .navbar__logo img {
    transform: scale(1.5);
  }

  .navbar__more {
    display: inline-flex;
    margin-left: auto;
    gap: 6px;
    padding: 8px 6px;
    font-size: 12px;
  }

  .navbar__mobile-menu {
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .navbar__more svg {
    width: 20px;
    height: 20px;
  }

  .navbar__mobile-link {
    padding: 10px 12px;
    font-size: 14px;
  }

  .navbar__mobile-menu .lang-switcher--mobile {
    display: inline-flex;
  }

  .navbar__actions {
    gap: 6px;
  }

  .navbar__actions .btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: clamp(32px, 10.2vw, 46px);
    line-height: 1.14;
  }

  .hero__subtitle {
    font-size: clamp(16px, 5.4vw, 22px);
  }

  .hero__visual {
    max-width: 380px;
    height: 890px;
    margin-top: 44px;
    transform: none;
  }

  .hero__centerpiece {
    top: 284px;
    width: min(86vw, 336px);
  }

  .dash-card--storage {
    width: calc(100% - 24px) !important;
    padding: 20px 18px 18px;
  }

  .dash-card--performance {
    top: 310px !important;
    width: 138px !important;
    padding: 16px 16px 12px;
  }

  .dash-card--optimal {
    top: 246px !important;
    width: 132px !important;
    padding: 16px 16px 14px;
  }

  .dash-card--clock {
    top: 520px !important;
    width: 82px !important;
    height: 82px !important;
  }

  .dash-card--quality {
    top: 648px !important;
    width: 210px !important;
  }

  .dash-card--temp {
    top: 728px !important;
    width: 168px !important;
  }

  .quality-circles {
    height: 198px;
  }

  .quality-circle--orange {
    width: 112px;
    height: 112px;
    left: 44px;
  }

  .quality-circle--orange .quality-circle__pct {
    font-size: 30px;
  }

  .quality-circle--blue {
    width: 82px;
    height: 82px;
    top: 106px;
    left: 4px;
  }

  .quality-circle--purple {
    width: 78px;
    height: 78px;
    top: 112px;
    left: 110px;
  }

  .hero__cta {
    gap: 12px;
  }

  .hero__cta .input {
    min-height: 48px;
  }

  .hero__cta .btn {
    min-height: 48px;
    padding-inline: 18px;
  }
}

/* ----- Desktop (1024px and above) ----- */
@media (min-width: 1024px) {
  section {
    padding: clamp(72px, 6vw, 104px) clamp(24px, 3vw, 40px);
  }

  h1 { font-size: var(--font-size-48); }
}
