.models-section {
  color: #aeb8c8;
  background:
    radial-gradient(circle at 12% 4%, #25cbe32e, transparent 27%),
    radial-gradient(circle at 92% 88%, #8857e433, transparent 30%),
    linear-gradient(150deg, #03050a 0%, #080d17 52%, #060913 100%);
  padding: 112px 0;
  overflow: hidden;
}

.models-section::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, #0008, transparent 75%);
  mask-image: linear-gradient(to bottom, #0008, transparent 75%);
}

.models-heading {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 58px;
  position: relative;
}

.models-kicker {
  color: #78ebf7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #1cc7de14;
  border: 1px solid #65e4f43b;
  border-radius: 999px;
  width: max-content;
  margin: 0 auto 20px;
  padding: 7px 13px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 800;
  display: block;
}

.models-heading h2 {
  color: #fff;
  text-wrap: balance;
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(46px, 5vw, 68px);
  line-height: 0.98;
}

.models-heading > p {
  color: #9da8ba;
  max-width: 750px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.65;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}

.model-card {
  background: linear-gradient(145deg, #121b2bf2, #080c14fa);
  border: 1px solid #ffffff17;
  border-radius: 22px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 24px 70px #0000004d;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.model-card:hover {
  border-color: #3cd9eb6b;
  transform: translateY(-6px);
  box-shadow: 0 32px 84px #0000006b, 0 0 42px #2bcfe90f;
}

.model-brand {
  height: 118px;
  border-bottom: 1px solid #ffffff14;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 25px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.model-brand::after {
  content: "";
  pointer-events: none;
  border: 1px solid #ffffff0f;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  position: absolute;
  top: -80px;
  right: -45px;
}

.model-brand-dark {
  background: radial-gradient(circle at 50% 20%, #ffffff12, transparent 55%), #05070b;
}

.model-brand-gemini {
  background: radial-gradient(circle at 50% 50%, #b35af53b, transparent 42%), linear-gradient(135deg, #14265c, #48257a);
}

.model-brand-gemini .model-logo {
  filter: invert(1);
}

.model-brand-seedance {
  color: #fff;
  background: radial-gradient(circle at 75% 30%, #ff5fc94d, transparent 38%), linear-gradient(120deg, #182347, #5d2e8b);
}

.model-brand-seedance > span {
  letter-spacing: 0.01em;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.model-brand-light {
  background: #f7f5ef;
}

.model-logo {
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.model-logo-wide {
  width: min(210px, 82%);
  max-height: 48px;
}

.model-logo-symbol {
  width: 62px;
  height: 62px;
}

.model-logo-byteplus {
  width: 106px;
  max-height: 38px;
}

.model-brand-tag {
  color: #d8f8fc;
  letter-spacing: 0.18em;
  border-left: 1px solid #ffffff38;
  padding-left: 14px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.model-brand-light .model-brand-tag {
  color: #172033;
  border-left-color: #17203338;
}

.model-card-body {
  min-height: 200px;
  padding: 27px 28px 30px;
}

.model-specialty {
  color: #5fddea;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.model-card h3 {
  color: #f7f9fc;
  margin: 8px 0 12px;
  font-family: Montserrat, sans-serif;
  font-size: 23px;
  line-height: 1.2;
}

.model-card p {
  color: #9da8ba;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.models-note {
  color: #aeb8c8;
  text-align: center;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  max-width: 900px;
  margin: 34px auto 0;
  padding: 16px 22px;
  font-size: 14px;
  position: relative;
}

html[data-theme="light"] .models-section {
  color: #344054;
  background:
    radial-gradient(circle at 12% 4%, #19bedb20, transparent 28%),
    radial-gradient(circle at 90% 85%, #7b57db18, transparent 30%),
    linear-gradient(#f8fbfe, #eef3f8);
}

html[data-theme="light"] .models-section::before {
  background-image:
    linear-gradient(#263f5b0a 1px, transparent 1px),
    linear-gradient(90deg, #263f5b0a 1px, transparent 1px);
}

html[data-theme="light"] .models-heading h2 {
  color: #101828;
}

html[data-theme="light"] .models-heading > p {
  color: #536174;
}

html[data-theme="light"] .models-kicker {
  color: #087c96;
  background: #e7fafd;
  border-color: #b8e2e9;
}

html[data-theme="light"] .model-card {
  background: #fff;
  border-color: #d7e0ea;
  box-shadow: 0 18px 50px #2236521a;
}

html[data-theme="light"] .model-card h3 {
  color: #17243a;
}

html[data-theme="light"] .model-card p {
  color: #536174;
}

html[data-theme="light"] .model-specialty {
  color: #087f99;
}

html[data-theme="light"] .models-note {
  color: #46566b;
  background: #ffffffa8;
  border-color: #d6e0ea;
}

@media (max-width: 1050px) {
  .models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .models-section {
    padding: 72px 0;
  }

  .models-heading {
    margin-bottom: 40px;
  }

  .models-heading h2 {
    font-size: 43px;
  }

  .models-heading > p {
    font-size: 17px;
  }

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

  .model-brand {
    height: 108px;
  }

  .model-card-body {
    min-height: 0;
    padding: 24px;
  }

  .models-note {
    text-align: left;
  }
}
