/* =========================================================
   modelmesh.top — responsive rules
   ========================================================= */

@media (max-width: 1240px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    gap: 16px;
  }
  .site-nav__link {
    padding-inline: 9px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
    gap: 40px;
  }
  .models-grid--market {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .models-grid.is-list .model-card {
    grid-template-columns: minmax(190px, 1.2fr) minmax(150px, 1.5fr) minmax(140px, 1fr) auto;
    gap: 17px;
  }
  .docs-shell {
    grid-template-columns: 206px minmax(0, 1fr);
    gap: 28px;
  }
  .docs-toc {
    display: none;
  }
  .docs-topbar {
    min-height: 84px;
  }
  .footer-main {
    gap: 28px;
  }
.feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .feature-card:nth-child(4) {
    border-top: 1px solid var(--border);
  }
  .feature-card {
    min-height: 230px;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    margin-left: 0;
  }
  .site-nav__link {
    font-size: 12px;
    padding-inline: 8px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn {
    padding-inline: 12px;
    font-size: 12px;
  }
  .header-login {
    font-size: 11.5px;
  }
  .hero h1 {
    font-size: clamp(42px, 5.2vw, 62px);
  }
  .hero__stats {
    gap: 0;
  }
  .hero__stat + .hero__stat {
    padding-left: 20px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(365px, 0.9fr);
    gap: 30px;
  }
  .route-demo__inner {
    padding: 13px;
  }
  .route-node {
    padding: 7px;
  }
  .route-nodes {
    gap: 5px;
  }
  .footer-main {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
  .footer-col:last-child {
    display: none;
  }
  .compare-builder__copy {
    padding: 30px 28px;
  }
  .market-layout {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 20px;
  }
  .model-detail-grid {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 24px;
  }
  .leaderboard-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }
  .ranking-head,
  .ranking-row__main {
    grid-template-columns: 45px minmax(190px, 1.4fr) 135px 78px 103px 20px;
    gap: 10px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 710px) 190px;
    gap: 35px;
  }
.docs-shell {
    grid-template-columns: 198px minmax(0, 1fr);
    gap: 22px;
  }
  .pricing-preview {
    gap: 8px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }
  .header-actions .lang-toggle {
    display: none;
  }
  .header-actions .header-login {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header-inner {
    height: 60px;
  }
  .site-header.is-compact .header-inner {
    height: 54px;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero {
    padding: 50px 0 44px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 39px;
  }
  .hero__copy {
    max-width: 690px;
  }
  .hero h1 {
    font-size: clamp(41px, 6.3vw, 64px);
  }
  .hero__sub {
    max-width: 600px;
  }
  .hero__stats {
    max-width: 620px;
  }
  .hero__demo {
    max-width: 660px;
    width: 100%;
    justify-self: center;
  }
  .section {
    padding: 65px 0;
  }
  .section-head {
    margin-bottom: 29px;
  }
  .split-feature,
  .split-feature--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-feature--reverse .split-feature__copy {
    order: 2;
  }
  .compare-builder {
    grid-template-columns: 1fr;
  }
  .compare-builder__copy {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .compare-builder__visual {
    min-height: auto;
    padding: 22px 26px;
  }
  .pricing-preview {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .updates-grid {
    grid-template-columns: 1fr;
  }
  .quickstart-card {
    min-height: 230px;
  }
  .footer-main {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .footer-col:nth-last-child(2) {
    display: none;
  }
  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 13px;
  }
  .footer-bottom__meta {
    justify-content: flex-start;
  }

  .market-layout {
    display: block;
    padding-top: 22px;
  }
  .filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 96;
    width: min(320px, 90vw);
    max-height: none;
    border-radius: 0;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    transform: translateX(-105%);
    transition: transform 0.25s var(--ease);
    background: #0e1016;
    box-shadow: 25px 0 70px rgba(0, 0, 0, 0.4);
  }
  .filter-panel.is-open {
    transform: none;
  }
  .filter-mobile-close {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
  }
  .filter-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(3, 4, 7, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
  }
  .filter-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
  .market-mobile-filter {
    display: inline-flex;
  }
  .models-grid--market {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .model-detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .detail-action-card__head {
    padding-bottom: 12px;
  }
  .detail-links {
    height: 100%;
  }
  .model-overview__title-row {
    align-items: flex-start;
  }
  .compare-selector {
    gap: 7px;
  }
  .compare-slot {
    flex: 1 1 calc(50% - 7px);
    min-width: 180px;
  }
  .add-model-pop {
    flex: 1 1 100%;
  }
  .add-model-pop > .btn {
    width: 100%;
  }
  .add-model-pop__panel {
    width: 100%;
  }
  .compare-table {
    min-width: 760px;
  }
  .leaderboard-layout {
    grid-template-columns: 1fr;
  }
  .leaderboard-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .leaderboard-methodology {
    grid-column: span 2;
  }
.about-hero__grid {
    grid-template-columns: 1fr;
    gap: 29px;
  }
  .about-hero__aside {
    max-width: 500px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .about-stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 15px;
  }
  .about-stat:nth-child(4) {
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 15px;
  }
  .about-contact {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post__visual {
    min-height: 240px;
    border-left: 0;
    border-top: 1px solid var(--border-soft);
    order: -1;
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: minmax(0, 780px);
    justify-content: start;
    padding-top: 28px;
  }
  .article-sidebar {
    display: none;
  }
  .blog-toolbar {
    align-items: flex-start;
  }
  .subscribe-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .subscribe-form {
    width: 100%;
  }
  .docs-topbar {
    min-height: 74px;
    padding: 17px 0;
  }
  .docs-shell {
    display: block;
    padding-top: 18px;
  }
  .docs-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 97;
    width: min(300px, 88vw);
    max-height: none;
    padding: 0;
    border-right: 1px solid var(--border);
    background: #0e1016;
    transform: translateX(-105%);
    transition: transform 0.25s var(--ease);
    overflow-y: auto;
  }
  .docs-sidebar.is-open {
    transform: none;
  }
  .docs-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 52px;
    padding: 0 15px;
    border-bottom: 1px solid var(--border);
    background: #0e1016;
    color: var(--text-soft);
    font-size: 12px;
  }
  .docs-nav-group {
    padding: 0 9px;
  }
  .docs-nav-group + .docs-nav-group {
    margin-top: 15px;
  }
  .docs-nav-group:last-child {
    padding-bottom: 20px;
  }
  .docs-nav-link {
    min-height: 34px;
    font-size: 11px;
  }
  .docs-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(3, 4, 7, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
  }
  .docs-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  .docs-mobile-trigger {
    display: inline-flex !important;
  }
  .docs-mobile-head .docs-close {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
  }
  .docs-topbar__status {
    display: none;
  }
  .docs-mobile-trigger {
    display: none;
  }
  .docs-search {
    margin-top: 14px;
  }
  .pricing-hero {
    padding-top: 48px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }
  .plan-card {
    min-height: auto;
  }
  .plan-card__spacer {
    display: none;
  }
  .billing-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .estimator__body {
    grid-template-columns: 1fr;
  }
  .estimator__controls {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .estimator__result {
    min-height: 220px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .enterprise-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  .enterprise-banner__actions {
    align-items: flex-start;
    flex-direction: row;
    align-items: center;
  }
.playground-page {
    padding-top: 14px;
  }
.playground-head p {
    display: none;
  }
  .playground-head__actions .lang-toggle {
    display: none;
  }
.notfound-code {
    font-size: 68px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    width: calc(100% - 32px);
  }
  .mobile-nav {
    padding-inline: 16px;
  }
  .hero {
    padding: 38px 0 30px;
  }
  .hero__badge-row {
    gap: 7px;
  }
  .hero__badge {
    font-size: 7.5px;
    padding: 3px 6px;
  }
  .hero__badge-row .eyebrow {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .hero h1 {
    margin-top: 17px;
    font-size: clamp(37px, 10vw, 54px);
    line-height: 1.04;
  }
  .hero__sub {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.68;
  }
  .hero__actions {
    margin-top: 20px;
    gap: 8px;
  }
  .hero__actions .btn {
    flex: 1;
    min-height: 44px;
    padding-inline: 10px;
    font-size: 12px;
  }
  .hero__secondary-note {
    margin-top: 10px;
    font-size: 8px;
  }
  .hero__stats {
    margin-top: 23px;
    padding-top: 16px;
    max-width: none;
  }
  .hero__stat + .hero__stat {
    padding-left: 15px;
  }
  .hero__stat-value {
    font-size: 17px;
  }
  .hero__stat-label {
    font-size: 8px;
    white-space: normal;
  }
  .hero__stat-label br {
    display: none;
  }
  .hero__stats-note {
    display: none;
  }
  .hero__grid {
    gap: 25px;
  }
  .hero__demo-caption {
    margin-bottom: 7px;
    font-size: 7.5px;
  }
  .route-demo {
    border-radius: 12px;
  }
  .route-demo__bar {
    min-height: 36px;
    padding: 0 11px;
  }
  .route-demo__endpoint {
    font-size: 8px;
  }
  .route-demo__inner {
    padding: 10px;
  }
  .route-request {
    padding: 8px 9px;
  }
  .route-request__path {
    font-size: 8.5px;
  }
  .route-request__meta {
    gap: 5px;
    font-size: 7.5px;
  }
  .route-request__meta span + span {
    padding-left: 5px;
  }
  .route-link {
    height: 14px;
  }
  .route-gateway {
    padding: 7px 8px;
    gap: 7px;
  }
  .route-gateway__icon {
    width: 22px;
    height: 22px;
  }
  .route-gateway__copy strong {
    font-size: 8.5px;
  }
  .route-gateway__copy span {
    font-size: 7px;
  }
  .route-gateway__meta {
    font-size: 7px;
  }
  .route-nodes {
    margin-top: 11px;
    gap: 4px;
  }
  .route-nodes::before,
  .route-node::before {
    display: none;
  }
  .route-node {
    padding: 6px;
  }
  .route-node__provider {
    font-size: 6.5px;
  }
  .route-node__name {
    font-size: 7.2px;
  }
  .route-node__latency {
    font-size: 6.5px;
  }
  .route-response {
    padding: 8px 9px;
  }
  .route-response__text {
    margin-top: 6px;
    font-size: 9.5px;
    line-height: 1.5;
    min-height: 28px;
  }
  .route-metrics {
    gap: 8px;
    margin-top: 7px;
    padding-top: 7px;
    font-size: 6.5px;
    flex-wrap: wrap;
  }
  .route-metrics__cost {
    margin-left: 0;
  }
  .route-demo__footer {
    margin-top: 8px;
    padding-top: 7px;
    gap: 7px;
    font-size: 6.5px;
  }
  .route-demo__footer span + span {
    padding-left: 7px;
  }
  .route-demo__footer span:nth-child(3) {
    display: none;
  }
  .provider-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 0;
  }
  .provider-strip__label {
    max-width: none;
  }
  .provider-strip__items {
    width: 100%;
    justify-content: flex-start;
    gap: 13px 20px;
  }
  .provider-strip__item {
    font-size: 10.5px;
  }
  .section {
    padding: 48px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 23px;
  }
  .section-head h2 {
    font-size: 29px;
  }
  .section-head p {
    font-size: 13px;
  }
  .section-head__side {
    width: 100%;
  }
  .home-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 21px;
  }
  .home-section-heading h2 {
    font-size: 28px;
  }
  .home-section-heading__link {
    margin: 0;
  }
  .home-models__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .feature-card {
    min-height: 195px;
    padding: 20px;
  }
  .feature-card + .feature-card {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .feature-card:nth-child(3) {
    border-top: 1px solid var(--border);
  }
  .feature-card h3 {
    margin-top: 23px;
  }
  .feature-card .link-arrow {
    bottom: 20px;
    left: 20px;
  }
  .feature-card__index {
    top: 22px;
    right: 20px;
  }
  .compare-builder__copy {
    padding: 24px 20px;
  }
  .compare-builder__copy h2 {
    font-size: 28px;
  }
  .compare-builder__visual {
    padding: 16px 18px;
  }
  .compare-builder__slot {
    padding: 7px 8px;
  }
  .compare-builder__hint {
    text-align: left;
  }
  .pricing-preview {
    grid-template-columns: 1fr;
  }
  .pricing-preview-card {
    min-height: 135px;
  }
  .pricing-preview-card__spacer {
    min-height: 14px;
  }
  .pricing-preview-card .link-arrow {
    margin-top: 14px;
  }
  .updates-grid {
    gap: 9px;
  }
  .update-item {
    grid-template-columns: 68px minmax(0, 1fr) 17px;
    gap: 10px;
    padding: 14px;
  }
  .update-item__title {
    font-size: 11.5px;
  }
  .quickstart-card {
    padding: 20px;
  }
  .home-footer-cta {
    padding: 31px 22px;
  }
  .home-footer-cta h2 {
    font-size: 31px;
  }
  .home-footer-cta__actions {
    flex-direction: column;
  }
  .home-footer-cta__actions .btn {
    width: 100%;
  }
  .models-grid,
  .models-grid--home,
  .models-grid--market {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .model-card {
    padding: 13px;
  }
  .model-card__desc {
    font-size: 10px;
    min-height: 32px;
  }
  .model-card__name {
    font-size: 13px;
  }
  .model-card__vendor {
    font-size: 7.5px;
  }
  .model-card__specs {
    gap: 0;
    padding: 9px 0;
  }
  .model-card__spec + .model-card__spec {
    padding-left: 7px;
  }
  .model-card__spec-label {
    font-size: 7px;
  }
  .model-card__spec-value {
    font-size: 9.5px;
  }
  .model-card__price strong {
    font-size: 11.5px;
  }
  .model-card__price small,
  .model-card__price span {
    font-size: 7px;
  }
  .model-card__actions {
    margin-top: 10px;
    padding-top: 9px;
  }
  .model-card__actions .btn-detail {
    font-size: 9.5px;
  }
  .model-card__compare {
    width: 24px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .models-grid.is-list .model-card {
    grid-template-columns: minmax(160px, 1.5fr) minmax(150px, 1.2fr) auto;
    gap: 12px;
    padding: 12px;
  }
  .models-grid.is-list .model-card__prices {
    display: none;
  }
  .models-grid.is-list .model-card__compare span {
    display: none;
  }
  .loading-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skeleton-card {
    height: 225px;
  }
  .page-hero {
    padding: 40px 0 32px;
  }
  .page-hero h1 {
    font-size: 37px;
  }
  .page-hero__lede {
    font-size: 13.5px;
  }
  .market-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .market-head__aside {
    padding: 0;
  }
  .market-toolbar {
    flex-wrap: wrap;
  }
  .market-search {
    flex-basis: 100%;
    order: 1;
  }
  .market-mobile-filter {
    order: 2;
  }
  .market-sort {
    order: 3;
    flex: 1;
    min-width: 0;
  }
  .view-toggle {
    order: 4;
  }
  .market-subbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .market-layout {
    padding-bottom: 55px;
  }
  .market-help {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
  }
  .market-help__actions {
    width: 100%;
  }
  .market-help__actions .btn {
    flex: 1;
  }
  .market-compare-bar {
    flex-wrap: wrap;
  }
  .market-compare-bar__models {
    flex-basis: 100%;
  }
  .model-detail-head {
    padding: 29px 0 25px;
  }
  .model-detail-grid {
    padding-top: 20px;
    padding-bottom: 55px;
  }
  .detail-aside {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .detail-action-card__body {
    padding: 13px;
  }
  .detail-action-card .btn {
    margin-top: 7px;
  }
  .model-overview__title-row {
    flex-direction: column;
    gap: 12px;
  }
  .model-overview__heading h1 {
    font-size: 37px;
  }
  .model-overview__desc {
    margin-top: 15px;
    font-size: 13px;
  }
  .model-overview__meta {
    gap: 7px 14px;
    margin-top: 16px;
  }
  .model-main {
    gap: 10px;
  }
  .model-section__head {
    padding: 14px 15px;
  }
  .model-section__body {
    padding: 15px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-item + .pricing-item {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }
  .capability-columns,
  .fit-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fit-columns {
    padding-top: 17px;
  }
  .performance-grid {
    grid-template-columns: 1fr 1fr;
  }
  .performance-metric:first-child {
    grid-column: span 2;
  }
  .similar-list {
    grid-template-columns: 1fr;
  }
  .compare-page-head {
    padding-top: 35px;
  }
  .compare-selector {
    gap: 6px;
  }
  .compare-slot {
    flex-basis: 100%;
    min-height: 43px;
  }
  .compare-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .compare-actions-row__right {
    width: 100%;
  }
  .compare-actions-row__right .btn {
    flex: 1;
  }
  .compare-table {
    min-width: 690px;
  }
  .compare-table thead th:first-child {
    width: 145px;
  }
  .compare-summary {
    grid-template-columns: 1fr;
  }
  .compare-summary-card--wide {
    grid-column: auto;
  }
  .ranking-head {
    display: none;
  }
  .ranking-row__main {
    grid-template-columns: 36px minmax(0, 1fr) 90px 20px;
    gap: 8px;
    padding: 0 12px;
    min-height: 66px;
  }
  .rank-trend,
  .rank-price {
    display: none;
  }
  .rank-metric {
    font-size: 13px;
  }
  .ranking-method {
    padding: 0 12px 14px 56px;
  }
  .metric-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .metric-tabs::-webkit-scrollbar {
    display: none;
  }
  .metric-tab {
    padding: 9px 9px;
    font-size: 10.5px;
    white-space: nowrap;
  }
  .leaderboard-controls {
    align-items: flex-start;
  }
  .leaderboard-aside {
    grid-template-columns: 1fr;
  }
  .leaderboard-methodology {
    grid-column: auto;
  }
  .ranking-foot {
    flex-direction: column;
    gap: 7px;
  }
  .article-header {
    padding: 33px 0 24px;
  }
  .article-header h1 {
    font-size: 34px;
  }
  .article-header__excerpt {
    font-size: 13.5px;
  }
  .article-layout {
    padding-bottom: 50px;
    padding-top: 22px;
  }
  .article-body {
    font-size: 13px;
  }
  .article-body h2 {
    font-size: 21px;
    margin-top: 31px;
  }
  .article-body .code-block pre {
    font-size: 10px;
  }
  .related-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .related-posts {
    padding-bottom: 54px;
  }
  .blog-head {
    padding-top: 39px;
  }
  .blog-head h1 {
    font-size: 38px;
  }
  .blog-toolbar {
    padding: 11px 0;
  }
  .blog-toolbar__note {
    display: none;
  }
  .featured-post__copy {
    padding: 21px;
  }
  .featured-post__visual {
    min-height: 195px;
  }
  .featured-post h2 {
    font-size: 24px;
    margin-top: 14px;
  }
  .featured-post__bottom {
    padding-top: 20px;
  }
  .post-cover {
    height: 125px;
  }
  .post-card {
    min-height: auto;
  }
  .subscribe-form {
    flex-direction: column;
  }
  .subscribe-form .input,
  .subscribe-form .btn {
    width: 100%;
  }
  .docs-topbar {
    display: block;
    padding: 16px 0;
  }
  .docs-topbar__copy h1 {
    font-size: 22px;
  }
  .docs-topbar__copy p {
    max-width: 95%;
    line-height: 1.6;
  }
  .docs-mobile-trigger {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text-soft);
    background: #141720;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  .docs-intro {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
  .doc-section h2 {
    font-size: 24px;
  }
  .doc-section {
    padding: 22px 0 24px;
  }
  .docs-feedback {
    flex-wrap: wrap;
  }
  .docs-prevnext a {
    min-width: 0;
    flex: 1;
    padding: 10px;
  }
  .pricing-hero h1 {
    font-size: 39px;
  }
  .pricing-hero__lede {
    font-size: 13.5px;
  }
  .plan-grid {
    margin-top: 5px;
  }
  .plan-card {
    padding: 21px;
  }
  .estimator__head {
    padding: 20px;
  }
  .estimator__controls,
  .estimator__result {
    padding: 20px;
  }
  .estimator__result {
    min-height: 190px;
  }
  .estimator__head {
    flex-direction: column;
  }
  .faq-layout__intro p {
    max-width: none;
  }
  .enterprise-banner {
    padding: 22px;
  }
  .enterprise-banner__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-hero {
    padding: 45px 0 36px;
  }
  .about-hero h1 {
    font-size: 41px;
  }
  .about-hero__lede {
    font-size: 13.5px;
  }
  .about-stats {
    margin-top: 20px;
  }
  .about-stat {
    padding-right: 9px;
  }
  .about-stat + .about-stat {
    padding-left: 9px;
  }
  .about-stat__value {
    font-size: 14px;
  }
  .about-stat__label {
    font-size: 8px;
  }
  .about-contact {
    padding: 21px;
  }
  .about-contact__actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .about-contact__actions .btn {
    width: 100%;
  }
  .about-provider-list .provider-chip {
    height: 27px;
  }
  .legal-page {
    padding: 37px 0 55px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .legal-side {
    position: static;
    order: -1;
  }
  .legal-header h1 {
    font-size: 35px;
  }
.footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 25px;
    padding: 34px 0 30px;
  }
  .footer-col:nth-child(4) {
    display: none;
  }
  .footer-col:nth-child(5) {
    display: block;
  }
  .footer-cta {
    padding: 29px 0;
  }
  .footer-cta h2 {
    font-size: 27px;
  }
  .footer-cta__actions {
    width: 100%;
  }
  .footer-cta__actions .btn {
    flex: 1;
  }
  .footer-bottom__meta {
    flex-wrap: wrap;
  }
  .toast-region {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
  .modal-root {
    padding: 14px;
  }
  .modal {
    max-height: 90vh;
  }
  .modal__head {
    padding: 18px 17px 14px;
  }
  .modal__body {
    padding: 17px;
  }
  .modal__footer {
    padding: 13px 17px;
  }
.profile-row {
    align-items: flex-start;
  }
  .danger-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .danger-row .btn {
    width: 100%;
  }
.chart-summary {
    flex-wrap: wrap;
  }
  .playground-page {
    padding: 11px 0 15px;
    width: calc(100% - 20px);
  }
  .playground-head {
    margin-bottom: 9px;
  }
  .playground-head h1 {
    font-size: 18px;
  }
  .playground-head__copy {
    gap: 7px;
  }
  .playground-demo-badge {
    font-size: 6.5px;
  }
  .playground-head__actions .btn span {
    display: none;
  }
  .playground-head__actions .btn {
    width: 32px;
    padding: 0;
  }
.footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-col:nth-child(4) {
    display: block;
  }
  .footer-col:nth-child(5) {
    display: block;
  }
  .footer-status {
    margin-top: 13px;
  }
  .footer-col ul {
    gap: 7px;
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: 37px;
  }
  .hero__actions .btn {
    font-size: 11px;
    gap: 5px;
  }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .hero__stat + .hero__stat {
    padding-left: 10px;
  }
  .hero__stat-value {
    font-size: 15px;
  }
  .hero__stat-label {
    font-size: 7px;
    line-height: 1.3;
    margin-top: 2px;
  }
  .hero__demo {
    margin-inline: -4px;
  }
  .route-demo__bar-status {
    display: none;
  }
  .route-request__meta span:nth-child(3) {
    display: none;
  }
  .route-gateway__meta {
    display: none;
  }
  .route-node__provider .dot {
    display: none;
  }
  .route-metrics span:nth-child(2) {
    display: none;
  }
  .route-demo__footer span:nth-child(2) {
    display: none;
  }
  .models-grid,
  .models-grid--home,
  .models-grid--market {
    grid-template-columns: 1fr;
  }
  .model-card__desc {
    min-height: 0;
    -webkit-line-clamp: 2;
  }
  .models-grid.is-list {
    display: flex;
  }
  .models-grid.is-list .model-card {
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .models-grid.is-list .model-card__specs {
    display: none;
  }
  .models-grid.is-list .model-card__actions {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--border-soft);
    justify-content: space-between;
  }
  .market-toolbar {
    gap: 6px;
  }
  .market-mobile-filter .btn-text {
    display: none;
  }
  .market-mobile-filter {
    width: 38px;
    padding: 0;
  }
  .active-filter-tags {
    width: 100%;
  }
  .model-detail-breadcrumb {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pricing-grid {
    border: 0;
    gap: 8px;
  }
  .pricing-item {
    border: 1px solid var(--border-soft);
    border-radius: 7px;
  }
  .pricing-item + .pricing-item {
    border: 1px solid var(--border-soft);
  }
  .compare-summary-card {
    padding: 14px;
  }
  .rank-model__copy strong {
    font-size: 11px;
  }
  .ranking-row__main {
    grid-template-columns: 30px minmax(0, 1fr) 82px 15px;
    padding: 0 9px;
    gap: 7px;
  }
  .rank-number {
    font-size: 11px;
  }
  .ranking-method {
    padding-left: 45px;
    font-size: 9.5px;
  }
  .blog-head h1 {
    font-size: 35px;
  }
  .featured-post__visual {
    min-height: 160px;
  }
  .article-header h1 {
    font-size: 30px;
  }
  .article-body h2 {
    font-size: 20px;
  }
  .article-header__tools {
    flex-wrap: wrap;
  }
  .pricing-hero h1 {
    font-size: 35px;
  }
  .plan-card__price {
    font-size: 33px;
  }
  .estimator__result-value {
    font-size: 28px;
    white-space: normal;
  }
  .about-hero h1 {
    font-size: 36px;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .about-stat + .about-stat {
    padding-left: 9px;
  }
  .footer-cta__actions {
    flex-direction: column;
  }
  .footer-cta__actions .btn {
    width: 100%;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-col {
    display: block !important;
  }
  .footer-col:nth-child(4),
  .footer-col:nth-child(5) {
    display: block;
  }
  .footer-bottom__meta {
    gap: 8px;
  }}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 34px;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .brand {
    font-size: 15px;
  }
  .route-nodes {
    grid-template-columns: 1fr 1fr;
  }
  .route-node:nth-child(3) {
    display: none;
  }
  .route-node__name {
    font-size: 7px;
  }
  .route-metrics span:nth-child(3) {
    display: none;
  }
  .compare-slot {
    flex-basis: 100%;
  }
  .playground-head__copy .playground-demo-badge {
    display: none;
  }
}
