.products-page {
  background: #030607;
}

.products-page .site-header {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.active-nav {
  color: var(--cyan) !important;
}

.products-page .nav-cta,
.products-page .primary-button,
.products-page .menu-toggle {
  border-radius: 8px;
  overflow: hidden;
}

.products-page .primary-button b {
  border-radius: 6px;
}

.products-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 82px;
  overflow: hidden;
  isolation: isolate;
}

.products-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 6, 7, .98) 5%, rgba(3, 6, 7, .73) 52%, rgba(3, 6, 7, .35)),
    linear-gradient(0deg, #030607, transparent 42%),
    url("./assets/yunnan-digital-core.png") center 42% / cover;
  filter: saturate(.75);
}

.products-hero::after {
  content: "PRODUCTS";
  position: absolute;
  right: -22px;
  bottom: -52px;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  font: 900 clamp(100px, 16vw, 235px) var(--sans);
}

.product-hero-inner {
  position: relative;
  z-index: 2;
  width: min(850px, 100%);
}

.product-breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 42px;
  color: #647476;
  font: 11px var(--mono);
}

.product-breadcrumb a:hover {
  color: var(--cyan);
}

.product-breadcrumb strong {
  color: #a5b4b5;
  font-weight: 400;
}

.products-hero h1 {
  margin: 24px 0;
  font-size: clamp(62px, 7vw, 105px);
  line-height: 1.03;
  letter-spacing: 0;
}

.products-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(180, 251, 255, .74);
}

.products-hero p {
  max-width: 660px;
  color: #9aabaa;
  font-size: 16px;
  line-height: 1.9;
}

.hero-product-stats {
  display: flex;
  gap: 1px;
  width: min(640px, 100%);
  margin-top: 45px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.hero-product-stats > div {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 17px 20px;
  background: rgba(5, 10, 11, .82);
}

.hero-product-stats strong {
  color: var(--cyan);
  font: 24px var(--mono);
}

[data-count] {
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

.hero-product-stats span {
  color: #77898a;
  font-size: 12px;
}

.product-catalog {
  padding: 110px max(24px, calc((100vw - 1180px) / 2)) 130px;
  color: #091315;
  background: linear-gradient(180deg, #e9efee 0%, #f5f8f7 52%, #e8eeee 100%);
}

.product-catalog .section-index {
  color: #087d87;
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 56px;
}

.catalog-head h2 {
  margin: 14px 0 0;
  font-size: clamp(40px, 5vw, 68px);
}

.product-search {
  width: min(390px, 100%);
  height: 48px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(132, 153, 151, .58);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 10px 30px rgba(36, 58, 59, .07);
}

.product-search > span {
  color: var(--cyan);
  font: 24px var(--mono);
  transform: rotate(-20deg);
}

.product-search input {
  min-width: 0;
  color: #071012;
  border: 0;
  outline: 0;
  background: transparent;
  font: 13px var(--sans);
}

.product-search input::placeholder {
  color: #697879;
}

.product-search kbd {
  color: #718081;
  border: 0;
  background: transparent;
  font: 11px var(--mono);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 44px;
  align-items: start;
}

.brand-tabs {
  position: sticky;
  top: 95px;
  display: grid;
  gap: 6px;
}

.brand-tabs button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  padding: 17px 12px;
  color: #4f5e60;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, .22);
  text-align: left;
  cursor: pointer;
  transition: color .25s, background .25s, padding .25s, box-shadow .25s;
}

.brand-tabs button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 40%;
  border-radius: 2px;
  background: var(--brand-accent, var(--cyan));
  opacity: 0;
  transform: translateY(75%);
  transition: height .3s, opacity .25s;
}

.brand-tabs button:nth-child(1) { --brand-accent: #ff5167; }
.brand-tabs button:nth-child(2) { --brand-accent: #57d1ff; }
.brand-tabs button:nth-child(3) { --brand-accent: #ff5858; }
.brand-tabs button:nth-child(4) { --brand-accent: #57a6ff; }
.brand-tabs button:nth-child(5) { --brand-accent: #65d28b; }
.brand-tabs button:nth-child(6) { --brand-accent: #ffae45; }

.brand-tabs button > span {
  grid-row: 1 / 3;
  padding-top: 3px;
  font: 11px var(--mono);
}

.brand-tabs strong {
  font-size: 13px;
  font-weight: 600;
}

.brand-tabs small {
  color: #7c898a;
  font-size: 11px;
}

.brand-tabs i {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  font: normal 11px var(--mono);
}

.brand-tabs button:hover,
.brand-tabs button.active {
  padding-left: 17px;
  color: #061012;
  border-color: rgba(148, 166, 164, .3);
  background: rgba(255, 255, 255, .82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 9px 24px rgba(42, 61, 62, .07);
}

.brand-tabs button.active::before {
  height: 54%;
  opacity: 1;
}

.brand-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 45px;
  align-items: end;
  min-height: 105px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(164, 183, 181, .58);
}

.brand-heading span {
  color: var(--brand-color, var(--cyan));
  font: 11px var(--mono);
}

.brand-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 2.5vw, 38px);
  word-break: keep-all;
}

.brand-heading p {
  margin: 0;
  color: #5f6d6f;
  font-size: 13px;
  line-height: 1.8;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  border: 0;
  background: transparent;
}

.product-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid rgba(163, 181, 179, .42);
  border-radius: 8px;
  color: #091315;
  background: rgba(255, 255, 255, .76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 10px 30px rgba(27, 49, 50, .06);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s;
}

.product-card:nth-child(3n + 2) {
  background: rgba(241, 247, 247, .84);
}

.product-card:nth-child(3n) {
  background: rgba(248, 249, 247, .86);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 12%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}

.product-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand-color);
  transition: width .35s;
}

.product-card:hover {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--brand-color) 34%, #c7d4d2);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 20px 46px rgba(27, 49, 50, .12);
  transform: translateY(-4px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover::after {
  width: 100%;
}

.product-symbol {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--brand-color);
  font: 600 15px var(--mono);
  text-transform: uppercase;
}

.product-symbol img {
  display: block;
  width: 88px;
  height: 68px;
  object-fit: contain;
}

.product-card[data-brand="matlab"] .product-symbol {
  width: 148px;
  height: 64px;
  justify-items: start;
  padding: 10px 12px;
  border-radius: 5px;
  background: #11242d;
  box-shadow: 0 8px 24px rgba(17, 36, 45, .14);
}

.product-card[data-brand="matlab"] .product-symbol img {
  width: 124px;
  height: 44px;
}

.product-symbol b {
  font: inherit;
}

.product-card-index {
  position: absolute;
  right: 21px;
  top: 20px;
  color: #a1adac;
  font: 11px var(--mono);
}

.product-card h3 {
  position: relative;
  z-index: 1;
  margin: auto 0 11px;
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: keep-all;
}

.product-card p {
  position: relative;
  z-index: 1;
  min-height: 43px;
  margin: 0;
  color: #687779;
  font-size: 12px;
  line-height: 1.7;
}

.product-card > i {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: var(--brand-color);
  font-style: normal;
}

.empty-state {
  min-height: 360px;
  place-items: center;
  align-content: center;
  margin-top: 34px;
  border: 1px solid #c2cfcd;
  border-radius: 8px;
  background: rgba(255, 255, 255, .48);
  text-align: center;
}

.empty-state:not([hidden]) {
  display: grid;
}

.empty-state span {
  color: var(--red);
  font: 11px var(--mono);
}

.empty-state h3 {
  margin: 12px 0 4px;
}

.empty-state p {
  color: #667476;
  font-size: 12px;
}

.product-service-band {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 55px;
  align-items: center;
  padding: 72px max(24px, calc((100vw - 1180px) / 2));
  color: #061012;
  border-top: 0;
  border-bottom: 0;
  background: #8cecf1;
}

.product-service-band .section-index {
  color: #0b6970;
}

.product-service-band h2 {
  max-width: 380px;
  margin: 15px 0 0;
  font-size: clamp(28px, 3vw, 42px);
}

.product-service-band .primary-button {
  color: #ffffff;
  border-radius: 8px;
  background: #071012;
  overflow: hidden;
}

.product-service-band .primary-button:hover {
  color: #071012;
}

.product-service-band .primary-button b {
  background: rgba(255, 255, 255, .12);
}

.service-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 25px;
}

.service-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #173b3e;
  font-size: 13px;
}

.service-steps b {
  color: #d93c2c;
  font: 11px var(--mono);
}

.product-disclaimer {
  margin: 0;
  padding: 28px 20px;
  color: #667476;
  background: #dfe8e6;
  font-size: 11px;
  text-align: center;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.product-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 8, 10, .76);
  backdrop-filter: blur(14px) saturate(.72);
  cursor: default;
}

.modal-panel {
  --modal-accent: #29dce5;
  --modal-accent-soft: rgba(41, 220, 229, .09);
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100svh - 40px);
  overflow: hidden;
  border: 1px solid rgba(98, 242, 255, .28);
  border-radius: 8px;
  background: #f4f7f6;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(255, 255, 255, .03);
}

.modal-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 17px;
  border-bottom: 1px solid #1c2d30;
  background: #081214;
}

.modal-bar span {
  color: #829497;
  font: 11px var(--mono);
}

.modal-close {
  width: 46px;
  height: 46px;
  padding: 0;
  color: #d9e5e6;
  border: 0;
  border-left: 1px solid #1c2d30;
  border-bottom-left-radius: 6px;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: #061012;
  background: var(--modal-accent);
}

.modal-close:focus-visible,
.modal-detail .primary-button:focus-visible {
  outline: 2px solid var(--modal-accent);
  outline-offset: -2px;
}

.modal-body {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
}

.modal-identity {
  min-height: 530px;
  padding: 34px;
  border-right: 1px solid #1b2b2e;
  background:
    linear-gradient(145deg, rgba(38, 91, 97, .34), transparent 46%),
    #050a0c;
}

.modal-symbol {
  width: 158px;
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 76px;
  color: var(--brand-color);
  font: 600 22px var(--mono);
}

.modal-symbol img {
  display: block;
  width: 145px;
  height: 105px;
  object-fit: contain;
}

.modal-symbol b {
  font: inherit;
}

.modal-identity > span {
  color: #70eaf0;
  font: 11px var(--mono);
}

.modal-identity h2 {
  margin: 12px 0 15px;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.2;
  word-break: keep-all;
}

.modal-identity p {
  color: #9aabad;
  font-size: 13px;
  line-height: 1.8;
}

.modal-detail {
  padding: 28px 34px;
  color: #0b1b1e;
  background: #f4f7f6;
}

.modal-detail > div {
  margin-bottom: 18px;
}

.detail-label {
  display: block;
  margin-bottom: 8px;
  color: #5d7376;
  font: 11px var(--mono);
}

.modal-detail p {
  margin: 0;
  color: #344a4d;
  font-size: 13px;
  line-height: 1.72;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.feature-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d3dfdd;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 5px 14px rgba(28, 53, 56, .035);
}

.feature-item strong {
  display: block;
  margin-bottom: 4px;
  color: #102629;
  font-size: 12px;
  line-height: 1.45;
}

.feature-item p {
  color: #5b6f72;
  font-size: 11px;
  line-height: 1.5;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-tags span {
  padding: 5px 8px;
  color: #087f89;
  border: 1px solid rgba(8, 127, 137, .22);
  border-radius: 6px;
  background: var(--modal-accent-soft);
  font-size: 11px;
  white-space: nowrap;
}

.modal-detail ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-detail li {
  position: relative;
  padding-left: 13px;
  color: #465d60;
  font-size: 12px;
}

.modal-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  background: #ff654d;
}

.modal-detail .primary-button {
  color: #f4fbfb;
  border: 1px solid #193033;
  border-radius: 8px;
  background: #0a1719;
  overflow: hidden;
}

.modal-detail .primary-button::before {
  background: var(--modal-accent);
}

.modal-detail .primary-button:hover {
  color: #061012;
}

.modal-detail .primary-button b {
  background: rgba(41, 220, 229, .14);
}

body.modal-open {
  overflow: hidden;
}

.contact-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-qr-modal[hidden] {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
}

.qr-modal-panel {
  position: relative;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  border: 1px solid rgba(98, 242, 255, .35);
  border-radius: 8px;
  background: #edf3f2;
  box-shadow: 0 28px 110px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.qr-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #071012;
  border: 0;
  border-left: 1px solid #bdcac8;
  border-bottom: 1px solid #bdcac8;
  border-bottom-left-radius: 6px;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

.qr-modal-close:hover {
  color: #ffffff;
  background: #071012;
}

.qr-visual {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 44px;
  background: #071012;
}

.qr-visual img {
  width: min(250px, 100%);
  aspect-ratio: 1;
  display: block;
  border-radius: 6px;
}

.qr-visual span {
  color: var(--cyan);
  font: 11px var(--mono);
}

.qr-contact {
  align-self: center;
  padding: 58px 44px 44px;
  color: #071012;
}

.qr-contact .section-index {
  color: #087d87;
  font-size: 11px;
}

.qr-contact h2 {
  margin: 18px 0;
  font-size: 42px;
  line-height: 1.2;
}

.qr-contact > p {
  color: #5a696a;
  font-size: 13px;
  line-height: 1.8;
}

.qr-contact-list {
  margin-top: 28px;
  border-top: 1px solid #bdcac8;
}

.qr-contact-list a {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #bdcac8;
}

.qr-contact-list span {
  color: #768586;
  font-size: 11px;
}

.qr-contact-list strong {
  font-size: 12px;
  font-weight: 600;
}

.qr-contact-list a:hover strong {
  color: #087d87;
}

@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-service-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .products-hero {
    min-height: 680px;
    padding: 135px 20px 65px;
  }

  .products-hero-image {
    background:
      linear-gradient(90deg, rgba(3, 6, 7, .86), rgba(3, 6, 7, .28)),
      linear-gradient(0deg, #030607, transparent 52%),
      url("./assets/yunnan-digital-core.png") 62% center / cover;
  }

  .products-hero h1 {
    font-size: 47px;
  }

  .products-hero p {
    font-size: 13px;
  }

  .hero-product-stats > div {
    flex-direction: column;
    gap: 4px;
    padding: 15px 11px;
  }

  .product-catalog {
    padding: 80px 20px 90px;
  }

  .catalog-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-search {
    width: 100%;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .brand-tabs {
    position: static;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    border: 1px solid #c2cfcd;
    border-radius: 8px;
    padding: 6px;
    scrollbar-width: none;
  }

  .brand-tabs button {
    min-width: 145px;
    border: 1px solid rgba(148, 166, 164, .3);
  }

  .brand-tabs button::before {
    width: 0;
    height: 2px;
  }

  .brand-tabs button.active::before {
    width: 100%;
    height: 2px;
  }

  .brand-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .product-card {
    min-height: 190px;
    padding: 16px;
  }

  .product-symbol {
    width: 70px;
    height: 56px;
  }

  .product-symbol img {
    width: 64px;
    height: 48px;
  }

  .product-card[data-brand="matlab"] .product-symbol {
    width: 100%;
    max-width: 116px;
    height: 52px;
    padding: 8px;
  }

  .product-card[data-brand="matlab"] .product-symbol img {
    width: 92px;
    height: 34px;
  }

  .product-card-index {
    top: 12px;
    right: 12px;
    font-size: 10px;
  }

  .product-card h3 {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.35;
  }

  .product-card p {
    min-height: 31px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-card > i {
    right: 12px;
    bottom: 10px;
  }

  .product-service-band {
    padding: 70px 20px;
  }

  .service-steps {
    grid-template-columns: 1fr;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    max-height: calc(100svh - 24px);
    overflow-y: auto;
  }

  .modal-identity {
    min-height: auto;
    padding: 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .modal-symbol {
    margin-bottom: 55px;
  }

  .modal-detail {
    padding: 30px;
  }

  .modal-features {
    grid-template-columns: 1fr;
  }

  .qr-modal-panel {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 24px);
    overflow-y: auto;
  }

  .qr-modal-close {
    color: #ffffff;
    border-color: rgba(255, 255, 255, .34);
  }

  .qr-visual {
    min-height: 330px;
    padding: 34px;
  }

  .qr-visual img {
    width: 230px;
  }

  .qr-contact {
    padding: 42px 28px 34px;
  }

  .qr-contact h2 {
    font-size: 36px;
  }
}

@media (min-width: 600px) and (max-width: 760px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
