.page-products {
  background: var(--indigo-950);
  color: var(--gray-050);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .prod-h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 4.4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 10px 0 0;
  color: var(--gray-050);
}

.page-products .prod-sub {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-products .prod-head {
  margin-bottom: 28px;
}

/* ---------- hero ---------- */

.page-products .prod-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 0 46px;
  background:
    radial-gradient(115% 85% at 82% 4%, rgba(47, 69, 133, 0.6), transparent 62%),
    linear-gradient(158deg, var(--indigo-900), var(--indigo-950) 72%);
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(199, 203, 214, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(199, 203, 214, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  right: -22%;
  bottom: -34%;
  width: 68%;
  height: 74%;
  border: 1px solid rgba(201, 162, 39, 0.2);
  transform: rotate(-12deg);
  pointer-events: none;
}

.page-products .prod-hero__inner {
  position: relative;
  z-index: 1;
}

.page-products .prod-hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 5.6vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 14px 0 0;
  color: var(--gray-050);
}

.page-products .prod-hero__lead {
  margin: 18px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-products .prod-facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  background: rgba(199, 203, 214, 0.14);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.page-products .prod-fact {
  background: rgba(8, 13, 34, 0.72);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-products .prod-fact__num {
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1;
}

.page-products .prod-fact__num em {
  font-style: normal;
  font-size: 15px;
  margin-left: 2px;
}

.page-products .prod-fact__label {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-300);
}

/* ---------- figures ---------- */

.page-products .prod-figure {
  margin: 26px 0 0;
  position: relative;
}

.page-products .prod-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--hair);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.page-products .prod-figure__caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gray-300);
  border-left: 2px solid var(--gold-500);
  padding-left: 10px;
}

.page-products .prod-figure--square img {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* ---------- side index ---------- */

.page-products .prod-index {
  display: none;
}

/* ---------- capability panels ---------- */

.page-products .prod-caps {
  background: linear-gradient(180deg, var(--indigo-950), var(--indigo-900));
}

.page-products .prod-panels {
  display: grid;
  gap: 18px;
}

.page-products .prod-panel {
  position: relative;
  padding: 22px 20px 24px;
  background: linear-gradient(180deg, rgba(27, 42, 91, 0.96), rgba(27, 42, 91, 0.6));
  border: 1px solid var(--hair);
  border-left: 3px solid rgba(201, 162, 39, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: border-left-color 0.24s ease, background 0.24s ease;
}

.page-products .prod-panel:hover,
.page-products .prod-panel:focus-within {
  border-left-color: var(--gold-500);
  background: linear-gradient(180deg, rgba(47, 69, 133, 0.96), rgba(27, 42, 91, 0.66));
}

.page-products .prod-panel__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--hair);
}

.page-products .prod-panel__num {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--gold-500);
}

.page-products .prod-panel__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  color: var(--gray-050);
}

.page-products .prod-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .prod-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-products .prod-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1.5px;
  background: var(--gold-500);
}

.page-products .prod-list--tight li {
  font-size: 14.5px;
}

.page-products .prod-figure--inline img {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* ---------- adaptation band ---------- */

.page-products .prod-adapt-band {
  position: relative;
  padding: 46px 0 50px;
  background:
    linear-gradient(135deg, rgba(183, 51, 43, 0.14), transparent 42%),
    var(--indigo-900);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.page-products .prod-head--band .eyebrow {
  color: var(--gold-300);
}

.page-products .prod-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 22px;
}

.page-products .prod-seg .seg-btn {
  flex: 0 0 auto;
}

.page-products .prod-seg-panel {
  padding: 4px 0 0;
}

.page-products .prod-seg-panel__lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gold-300);
}

.page-products .prod-figure--band {
  margin-top: 28px;
}

/* ---------- flow ---------- */

.page-products .prod-flow-section {
  background: var(--indigo-950);
}

.page-products .prod-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: prodflow;
}

.page-products .prod-step {
  position: relative;
  padding: 20px 18px 22px;
  background: rgba(14, 22, 56, 0.86);
  border-top: 2px solid var(--gold-500);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.page-products .prod-step__num {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold-500);
}

.page-products .prod-step__title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--gray-050);
}

.page-products .prod-step__text {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-300);
}

/* ---------- version ---------- */

.page-products .prod-version {
  background: linear-gradient(180deg, var(--indigo-900), var(--indigo-950));
}

.page-products .prod-version__grid {
  display: grid;
  gap: 30px;
}

.page-products .prod-version__link {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-300);
}

.page-products .prod-inline-link {
  color: var(--gold-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 205, 122, 0.5);
  padding-bottom: 1px;
}

.page-products .prod-inline-link:hover,
.page-products .prod-inline-link:focus-visible {
  color: var(--gold-500);
  border-bottom-color: var(--gold-500);
}

.page-products .prod-version__stats {
  margin: 22px 0 0;
  display: grid;
  gap: 1px;
  background: var(--hair);
  border-left: 2px solid var(--gold-500);
}

.page-products .prod-version__stat {
  background: rgba(8, 13, 34, 0.7);
  padding: 13px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.page-products .prod-version__stat dt {
  font-size: 13px;
  color: var(--gray-300);
}

.page-products .prod-version__stat dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-300);
}

/* ---------- next ---------- */

.page-products .prod-next {
  background: var(--indigo-950);
  padding-bottom: 64px;
}

.page-products .prod-figure--footer img {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

.page-products .prod-next__body {
  margin-top: 30px;
}

.page-products .prod-next__links {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .prod-next__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  text-decoration: none;
  background: rgba(14, 22, 56, 0.8);
  border: 1px solid var(--hair);
  border-left: 3px solid rgba(201, 162, 39, 0.45);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: border-left-color 0.2s ease, background 0.2s ease;
}

.page-products .prod-next__link:hover,
.page-products .prod-next__link:focus-visible {
  border-left-color: var(--gold-500);
  background: rgba(27, 42, 91, 0.9);
}

.page-products .prod-next__link-label {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-050);
}

.page-products .prod-next__link-hint {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-300);
}

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  .page-products .prod-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .prod-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .prod-next__links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .page-products .prod-hero {
    padding: 40px 0 60px;
  }

  .page-products .prod-panels {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .page-products .prod-panel:nth-child(2) {
    margin-top: 34px;
  }

  .page-products .prod-panel:nth-child(3) {
    margin-top: 68px;
  }

  .page-products .prod-flow {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products .prod-version__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: 42px;
  }

  .page-products .prod-seg-panels {
    padding-right: 8%;
  }
}

@media (min-width: 1200px) {
  .page-products .prod-index {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .prod-panel,
  .page-products .prod-next__link {
    transition: none;
  }
}
</style>
