.spex-page {
  --spex-blue: #0054a6;
  --spex-blue-dark: #0a345f;
  --spex-red: #c92435;
  --spex-ink: #17212b;
  --spex-muted: #52616d;
  background: #fff;
  color: var(--spex-ink);
}

.spex-page main {
  overflow: hidden;
}

.spex-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 58px;
  border-bottom: 1px solid #dfe8ef;
  background: #eef5fa;
  isolation: isolate;
}

.spex-hero::before,
.spex-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
}

.spex-hero::before {
  left: auto;
  width: min(55%, 780px);
  background: url("../images/aaicp/products/spex-certiprep-family.jpg") center / cover no-repeat;
  opacity: 0.62;
}

.spex-hero::after {
  background: linear-gradient(90deg, #eef5fa 0%, #eef5fa 42%, rgba(238, 245, 250, 0.92) 55%, rgba(238, 245, 250, 0.18) 100%);
}

.spex-hero > .container {
  position: relative;
  z-index: 1;
}

.spex-hero .spectrum-breadcrumb {
  margin-bottom: 34px;
}

.spex-hero-copy {
  max-width: 940px;
}

.spex-hero-copy h1 {
  margin: 0;
  color: var(--spex-blue-dark);
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.spex-hero-copy h1 span {
  color: #21384b;
}

.spex-hero-copy > p {
  max-width: 880px;
  margin: 20px 0 0;
  color: #405363;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.8;
  text-wrap: balance;
}

.spex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.spex-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--spex-blue);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.spex-button--primary {
  background: var(--spex-blue);
  color: #fff;
}

.spex-button--primary:hover {
  border-color: var(--spex-blue-dark);
  background: var(--spex-blue-dark);
  color: #fff;
}

.spex-button--secondary {
  background: #fff;
  color: var(--spex-blue);
}

.spex-button--secondary:hover {
  background: #f4f8fb;
  color: var(--spex-blue-dark);
}

.spex-button:focus-visible {
  outline: 3px solid rgba(0, 84, 166, 0.28);
  outline-offset: 4px;
}

.spex-section {
  background: #fff;
}

.spex-platforms,
.spex-families {
  padding: 68px 0 76px;
}

.spex-applications {
  padding: 70px 0 78px;
  background: #f6f8fa;
}

.spex-applications > .container > .spex-section-heading {
  max-width: none;
  text-align: center;
}

.spex-section-heading {
  max-width: 820px;
}

.spex-section-heading h2 {
  margin: 0;
  color: var(--spex-blue-dark);
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.spex-section-heading p {
  margin: 12px 0 0;
  color: var(--spex-muted);
  font-size: 16px;
  line-height: 1.8;
}

.spex-family-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 56px;
  max-width: 1060px;
  margin-top: 0;
}

.spex-family-item {
  position: relative;
  min-width: 0;
  padding-left: 24px;
}

.spex-family-item::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spex-red);
  content: "";
  transform: translateY(-50%);
}

.spex-family-item h3 {
  margin: 0;
  color: #243b4d;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
}

.spex-family-item p {
  margin: 10px 0 0;
  color: var(--spex-muted);
  font-size: 16px;
  line-height: 1.85;
}

.spex-family-image {
  width: min(100%, 360px);
  margin: 24px auto 0;
}

.spex-family-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.spex-platform-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 38px;
  border: 1px solid #c9d5df;
  border-radius: 4px;
}

.spex-platform-tab {
  min-width: 0;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid #c9d5df;
  background: #fff;
  color: var(--spex-ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.spex-platform-tab:last-child {
  border-right: 0;
}

.spex-platform-tab span,
.spex-platform-tab small {
  display: block;
}

.spex-platform-tab span {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.spex-platform-tab small {
  margin-top: 4px;
  color: var(--spex-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.spex-platform-tab:hover {
  color: var(--spex-blue);
}

.spex-platform-tab[aria-selected="true"] {
  background: var(--spex-blue);
  color: #fff;
}

.spex-platform-tab[aria-selected="true"] small {
  color: rgba(255, 255, 255, 0.84);
}

.spex-platform-tab:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(0, 84, 166, 0.28);
  outline-offset: -4px;
}

.spex-platform-panels {
  margin-top: 40px;
}

.js .spex-platform-panel {
  display: none;
}

.js .spex-platform-panel.is-active {
  display: block;
}

.no-js .spex-platform-panel + .spex-platform-panel {
  margin-top: 52px;
}

.spex-platform-intro {
  max-width: 860px;
}

.spex-platform-intro h3 {
  margin: 0;
  color: #243b4d;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.4;
}

.spex-platform-intro p {
  margin: 10px 0 0;
  color: var(--spex-muted);
  font-size: 16px;
  line-height: 1.8;
}

.spex-platform-grid,
.spex-application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 56px;
  margin-top: 34px;
}

.spex-platform-grid--four,
.spex-application-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spex-platform-item,
.spex-application-item {
  position: relative;
  min-width: 0;
  padding-left: 24px;
}

.spex-platform-item::before,
.spex-application-item::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spex-red);
  content: "";
  transform: translateY(-50%);
}

.spex-platform-item h4,
.spex-application-item h3 {
  margin: 0;
  color: #243b4d;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
}

.spex-platform-item p,
.spex-application-item > p {
  margin: 10px 0 0;
  color: var(--spex-muted);
  font-size: 16px;
  line-height: 1.85;
}

.spex-item-skus {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.spex-item-skus li {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 3px 10px;
  align-items: baseline;
  color: #405363;
  font-size: 14px;
  line-height: 1.6;
}

.spex-item-skus span {
  min-width: 0;
}

.spex-item-skus b,
.spex-application-sku b {
  flex: 0 0 auto;
  color: var(--spex-blue);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.6;
}

.spex-common-items {
  margin-top: 16px;
}

.spex-common-items > strong {
  color: var(--spex-blue-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.spex-common-items .spex-item-skus {
  margin-top: 7px;
}

.spex-application-sku {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 10px;
  align-items: baseline;
  margin-top: 16px !important;
  color: #405363 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.spex-application-sku strong {
  color: var(--spex-blue-dark);
  font-weight: 800;
}

.spex-application-sku b {
  grid-column: 3;
}

.spex-application-catalog {
  display: flex;
  min-width: 0;
  align-self: center;
  padding-left: 24px;
}

@media (max-width: 760px) {
  .spex-hero {
    padding-top: 88px;
    padding-bottom: 48px;
  }

  .spex-hero .spectrum-breadcrumb {
    margin-bottom: 24px;
  }

  .spex-platform-grid,
  .spex-platform-grid--four,
  .spex-application-grid,
  .spex-family-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 42px;
  }

}

@media (max-width: 520px) {
  .spex-hero::before {
    width: 100%;
    background-position: center;
    opacity: 0.36;
  }

  .spex-hero::after {
    background: linear-gradient(180deg, rgba(238, 245, 250, 0.96) 0%, rgba(238, 245, 250, 0.88) 62%, rgba(238, 245, 250, 0.72) 100%);
  }

  .spex-hero-copy h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .spex-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .spex-button {
    width: 100%;
  }

  .spex-platforms,
  .spex-families {
    padding-top: 54px;
    padding-bottom: 60px;
  }

  .spex-family-list {
    margin-top: 0;
  }

  .spex-family-image {
    width: min(100%, 320px);
  }

  .spex-applications {
    padding-top: 58px;
    padding-bottom: 60px;
  }

  .spex-platform-tab {
    padding: 14px 8px;
  }

  .spex-platform-tab small {
    display: none;
  }

  .spex-platform-panels {
    margin-top: 32px;
  }

  .spex-platform-grid,
  .spex-platform-grid--four,
  .spex-application-grid,
  .spex-family-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .spex-application-sku {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .spex-application-sku b {
    grid-column: 1;
  }

  .spex-application-catalog {
    padding-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spex-button {
    transition: none;
  }
}
