/* Homepage V4.2.12 local-only candidate.
 * This is intentionally scoped to the three desktop product-direction rows.
 * It layers on V4.2.11.1 and does not alter shared navigation, product assets,
 * product routes, OEM/ODM, or the proven 390px/360px card flow. */

.aidcgo-home-v429 .home-platform > .home-shell {
  width: min(100% - 64px, 1440px);
}

@media (min-width: 1081px) {
  .aidcgo-home-v429 .home-platform-row {
    grid-template-columns: 48px minmax(280px, 1fr) clamp(300px, 24vw, 380px) 204px;
    column-gap: clamp(24px, 2.3vw, 40px);
    min-height: 364px;
    padding: 12px 0;
  }

  .aidcgo-home-v429 .home-platform-row > :is(div, .home-product-frame, .home-product-actions) {
    min-width: 0;
  }

  .aidcgo-home-v429 .home-platform-row .home-product-frame {
    width: 100%;
    height: 340px;
    min-height: 340px;
    margin: 0;
  }

  .aidcgo-home-v429 .home-product-actions {
    justify-self: stretch;
    align-content: center;
    gap: 8px;
  }

  .aidcgo-home-v429 .home-product-actions .home-product-detail-link,
  .aidcgo-home-v429 .home-product-actions .home-arrow {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
  }

  .aidcgo-home-v429 .home-product-actions .home-arrow span,
  .aidcgo-home-v429 .home-product-actions .home-product-detail-link span {
    margin-left: 8px;
  }
}

/* A compact two-column tablet reading order is clearer than compressing the
 * four desktop columns below their safe content widths. */
@media (min-width: 601px) and (max-width: 1080px) {
  .aidcgo-home-v429 .home-platform > .home-shell {
    width: min(100% - 48px, 720px);
  }

  .aidcgo-home-v429 .home-platform-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: 24px;
    row-gap: 16px;
    min-height: 0;
    padding: 32px 0;
  }

  .aidcgo-home-v429 .home-platform-row > div:not(.home-product-actions) {
    grid-column: 2;
    grid-row: 1;
  }

  .aidcgo-home-v429 .home-platform-row .home-product-frame {
    grid-column: 2;
    grid-row: 2;
    width: min(100%, 420px);
    height: 420px;
    min-height: 420px;
    margin: 0;
  }

  .aidcgo-home-v429 .home-platform-row .home-product-actions {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    min-height: 48px;
    padding: 0;
  }

  .aidcgo-home-v429 .home-product-actions .home-product-detail-link,
  .aidcgo-home-v429 .home-product-actions .home-arrow {
    min-height: 48px;
  }
}

/* V4.2.11.1's approved mobile card treatment remains the source of truth. */
@media (max-width: 600px) {
  .aidcgo-home-v429 .home-platform > .home-shell {
    width: min(100% - 40px, 1280px);
  }
}

/* The bottom project CTA keeps its approved dark surface.  Scope only its
 * foreground to the V4.2.12 candidate so the readable label and arrow retain
 * sufficient contrast without affecting the hero CTA or shared navigation. */
.aidcgo-home-v429 .home-cooperate .home-cta,
.aidcgo-home-v429 .home-cooperate .home-cta span {
  color: #ffffff;
}
