.page-products {
  background: var(--space);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-products .pr-wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Hero ---------- */
.page-products .pr-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.25rem);
  background:
    radial-gradient(120% 100% at 92% -10%, rgba(0, 229, 255, .20), rgba(0, 229, 255, 0) 58%),
    radial-gradient(90% 80% at -10% 110%, rgba(255, 107, 53, .17), rgba(255, 107, 53, 0) 62%),
    linear-gradient(180deg, var(--space) 0%, var(--space-deep) 100%);
}

.page-products .pr-hero::after {
  content: "";
  position: absolute;
  top: auto;
  right: -14%;
  bottom: -46%;
  left: auto;
  width: min(72vw, 620px);
  aspect-ratio: 1;
  z-index: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, .16), rgba(255, 107, 53, .10));
  clip-path: polygon(0 0, 100% 38%, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-products .pr-hero .pr-wrap {
  position: relative;
  z-index: 1;
}

.page-products .pr-crumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-products .pr-crumb li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.page-products .pr-crumb li + li::before {
  content: "/";
  color: var(--graphite);
}

.page-products .pr-crumb a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}

.page-products .pr-crumb a:hover {
  border-bottom-color: var(--cyan);
}

.page-products .pr-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.page-products .pr-kicker {
  margin: 0 0 .9rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .pr-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -.02em;
  font-weight: 800;
}

.page-products .pr-hero__lede {
  max-width: 56ch;
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: rgba(245, 247, 250, .8);
}

.page-products .pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.page-products .pr-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.3rem;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease), transform .24s var(--ease);
}

.page-products .pr-btn:hover,
.page-products .pr-btn:focus-visible {
  border-color: var(--cyan);
  color: var(--ice);
  transform: translateY(-1px);
}

.page-products .pr-btn--hot {
  background: var(--orange);
  border-color: var(--orange);
  color: #180803;
}

.page-products .pr-btn--hot:hover,
.page-products .pr-btn--hot:focus-visible {
  background: #ff8759;
  border-color: #ff8759;
  color: #180803;
}

.page-products .pr-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--hair);
  overflow: hidden;
}

.page-products .pr-stat {
  padding: 1rem 1.05rem;
  background: rgba(16, 44, 79, .74);
}

.page-products .pr-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--cyan);
}

.page-products .pr-stat__num em {
  font-style: normal;
  font-size: .55em;
  color: var(--orange);
  margin-left: .12em;
}

.page-products .pr-stat__label {
  display: block;
  margin-top: .4rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(245, 247, 250, .72);
}

/* ---------- Filter bar ---------- */
.page-products .pr-filter {
  background: var(--midnight);
  border-block: 1px solid var(--hair);
}

.page-products .pr-filter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding-block: .8rem;
}

.page-products .pr-filter__label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-products .pr-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-chip {
  display: inline-block;
  padding: .3rem .8rem;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(245, 247, 250, .85);
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.page-products .pr-chip:hover,
.page-products .pr-chip:focus-visible {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--ice);
}

/* ---------- Layout ---------- */
.page-products .pr-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.page-products .pr-index__inner {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  background: linear-gradient(180deg, rgba(16, 44, 79, .88), rgba(7, 20, 39, .88));
}

.page-products .pr-index__title {
  margin: 0 0 .6rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-products .pr-index__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-index__list a {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .38rem .4rem;
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.45;
  color: rgba(245, 247, 250, .82);
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.page-products .pr-index__list a:hover,
.page-products .pr-index__list a:focus-visible {
  background: var(--cyan-soft);
  border-left-color: var(--cyan);
  color: var(--ice);
}

.page-products .pr-index__list span {
  flex: none;
  color: var(--orange);
  font-size: .6875rem;
}

/* ---------- Blocks ---------- */
.page-products .pr-block {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--hair);
}

.page-products .pr-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-products .pr-head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1rem;
}

.page-products .pr-head__no {
  flex: none;
  margin-top: .3rem;
  padding: .1rem .48rem;
  border-radius: var(--radius);
  background: var(--orange);
  color: #180803;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.page-products .pr-eyebrow {
  margin: 0 0 .3rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .pr-block h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.9vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  font-weight: 700;
}

.page-products .pr-lede {
  max-width: 62ch;
  margin: 0 0 1.5rem;
  color: rgba(245, 247, 250, .82);
}

.page-products .pr-block > p {
  max-width: 64ch;
  margin: 0 0 1rem;
  color: rgba(245, 247, 250, .82);
}

.page-products .pr-note {
  margin-top: 1.2rem;
  padding: .85rem 1rem;
  border-left: 2px solid var(--orange);
  background: rgba(255, 107, 53, .08);
  font-size: .875rem;
  color: rgba(245, 247, 250, .8);
}

/* ---------- Stack cards ---------- */
.page-products .pr-stack {
  display: grid;
  gap: .75rem;
}

.page-products .pr-stack__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  padding: 1.05rem 1.1rem 1.1rem 1rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(16, 44, 79, .94), rgba(16, 44, 79, .56));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  color: inherit;
  text-decoration: none;
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}

.page-products .pr-stack__item:hover,
.page-products .pr-stack__item:focus-visible {
  border-color: var(--cyan);
  background: linear-gradient(120deg, rgba(16, 44, 79, 1), rgba(16, 44, 79, .72));
  transform: translateY(-2px);
}

.page-products .pr-stack__no {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
}

.page-products .pr-stack__body h3 {
  margin: 0 0 .45rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.page-products .pr-stack__meta {
  display: grid;
  gap: .3rem;
  margin: 0;
  font-size: .8125rem;
}

.page-products .pr-stack__meta > div {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: .5rem;
}

.page-products .pr-stack__meta dt {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--mist);
  padding-top: .14rem;
}

.page-products .pr-stack__meta dd {
  margin: 0;
  color: rgba(245, 247, 250, .78);
  line-height: 1.6;
}

.page-products .pr-stack__arrow {
  display: none;
  align-self: center;
  font-family: var(--font-mono);
  color: var(--cyan);
}

/* ---------- Media ---------- */
.page-products .pr-media {
  margin: 0 0 1.25rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--midnight), var(--space-deep));
}

.page-products .pr-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .pr-media figcaption {
  padding: .6rem .85rem;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--mist);
}

/* ---------- Split ---------- */
.page-products .pr-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.page-products .pr-text p {
  margin: 0 0 1rem;
  max-width: 62ch;
  color: rgba(245, 247, 250, .82);
}

.page-products .pr-sub {
  margin: 1.4rem 0 .55rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-products .pr-list {
  display: grid;
  gap: .6rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.page-products .pr-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, .8);
}

.page-products .pr-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: .55rem;
  height: 1px;
  background: var(--cyan);
}

.page-products .pr-list strong {
  color: var(--white);
  font-weight: 600;
}

/* ---------- Preference switches ---------- */
.page-products .pr-prefs {
  display: grid;
  gap: .55rem;
  margin-top: .6rem;
}

.page-products .pr-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem .85rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: rgba(16, 44, 79, .62);
  transition: border-color .2s var(--ease);
}

.page-products .pr-pref:hover {
  border-color: var(--hair-strong);
}

.page-products .pr-pref p {
  margin: 0;
}

.page-products .pr-pref__name {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.page-products .pr-pref__desc {
  margin-top: .12rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--mist);
}

.page-products .pr-switch {
  position: relative;
  flex: none;
  display: inline-block;
  width: 44px;
  height: 24px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  background: rgba(42, 46, 53, .9);
}

.page-products .pr-switch span {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mist);
  transform: translateY(-50%);
}

.page-products .pr-switch--on {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .18);
}

.page-products .pr-switch--on span {
  left: 23px;
  background: var(--cyan);
}

/* ---------- Timeline ---------- */
.page-products .pr-timeline {
  display: grid;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.5rem;
  border-left: 1px solid var(--hair);
}

.page-products .pr-timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.page-products .pr-timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: .5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .16);
}

.page-products .pr-timeline strong {
  display: block;
  margin-bottom: .12rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--white);
}

.page-products .pr-timeline p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.68;
  color: rgba(245, 247, 250, .74);
}

/* ---------- Figures ---------- */
.page-products .pr-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 1.4rem;
  border: 1px solid var(--hair);
  background: var(--hair);
}

.page-products .pr-figure {
  padding: .9rem 1rem;
  background: rgba(7, 20, 39, .88);
}

.page-products .pr-figure b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ice);
}

.page-products .pr-figure small {
  display: block;
  margin-top: .3rem;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--mist);
}

/* ---------- Tag row ---------- */
.page-products .pr-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .75rem 0 1.1rem;
}

.page-products .pr-tagrow span {
  padding: .24rem .65rem;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: rgba(245, 247, 250, .85);
}

.page-products .pr-tagrow span:first-child {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--ice);
}

/* ---------- Data views ---------- */
.page-products .pr-views {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  margin-top: 1.2rem;
}

.page-products .pr-view {
  padding: .9rem 1rem;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  background: rgba(16, 44, 79, .55);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.page-products .pr-view:hover {
  background: rgba(16, 44, 79, .82);
}

.page-products .pr-view:nth-child(2) {
  border-left-color: var(--orange);
}

.page-products .pr-view:nth-child(3) {
  border-left-color: var(--ice);
}

.page-products .pr-view h3 {
  margin: 0 0 .25rem;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.page-products .pr-view p {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.68;
  color: rgba(245, 247, 250, .75);
}

/* ---------- Steps ---------- */
.page-products .pr-steps {
  counter-reset: pr-step;
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.05rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(16, 44, 79, .82), rgba(7, 20, 39, .7));
}

.page-products .pr-steps li::before {
  counter-increment: pr-step;
  content: "0" counter(pr-step);
  position: absolute;
  left: .95rem;
  top: 1rem;
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 600;
  color: var(--orange);
}

.page-products .pr-steps h3 {
  margin: 0 0 .2rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.page-products .pr-steps p {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.68;
  color: rgba(245, 247, 250, .75);
}

/* ---------- Versions ---------- */
.page-products .pr-versions {
  display: grid;
  gap: .5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-versions li {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
  padding: .6rem .8rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.page-products .pr-versions b {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--cyan);
}

.page-products .pr-versions span {
  font-size: .875rem;
  line-height: 1.65;
  color: rgba(245, 247, 250, .8);
}

/* ---------- CTA ---------- */
.page-products .pr-cta {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 229, 255, .16), rgba(0, 229, 255, 0) 62%),
    linear-gradient(120deg, var(--midnight), var(--space-deep));
}

.page-products .pr-cta h2 {
  margin: 0 0 .6rem;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  font-weight: 700;
}

.page-products .pr-cta p {
  max-width: 58ch;
  margin: 0 0 1.2rem;
  font-size: .9375rem;
  line-height: 1.75;
  color: rgba(245, 247, 250, .8);
}

.page-products .pr-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 620px) {
  .page-products .pr-views {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .pr-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .page-products .pr-stack__item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .page-products .pr-stack__arrow {
    display: block;
    align-self: center;
    transition: transform .2s var(--ease);
  }

  .page-products .pr-stack__item:hover .pr-stack__arrow {
    transform: translateX(3px);
  }

  .page-products .pr-stack__item:nth-child(even) {
    margin-left: clamp(.75rem, 3vw, 2.25rem);
  }

  .page-products .pr-stack__item:nth-child(odd) {
    margin-right: clamp(.75rem, 3vw, 2.25rem);
  }

  .page-products .pr-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .page-products .pr-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }
}

@media (min-width: 920px) {
  .page-products .pr-layout {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .page-products .pr-index__inner {
    position: sticky;
    top: 1.5rem;
  }

  .page-products .pr-index__list {
    grid-template-columns: 1fr;
  }

  .page-products .pr-hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr);
    align-items: end;
  }

  .page-products .pr-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-btn,
  .page-products .pr-chip,
  .page-products .pr-stack__item,
  .page-products .pr-stack__arrow,
  .page-products .pr-view,
  .page-products .pr-pref,
  .page-products .pr-index__list a {
    transition: none;
  }

  .page-products .pr-btn:hover,
  .page-products .pr-stack__item:hover {
    transform: none;
  }
}
