.page-products {
  --ps-gap: clamp(44px, 7vw, 88px);
  --ps-inner: clamp(20px, 3.4vw, 40px);
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(48px, 7vw, 96px);
  color: var(--paper);
}

.page-products::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(620px, 78vh);
  background:
    radial-gradient(115% 80% at 12% 0%, rgba(59, 242, 208, 0.16), transparent 62%),
    radial-gradient(90% 70% at 92% 8%, rgba(255, 122, 26, 0.12), transparent 66%);
  pointer-events: none;
  z-index: 0;
}

.page-products > .container {
  position: relative;
  z-index: 1;
}

.page-products .breadcrumbs {
  margin: clamp(14px, 3vw, 26px) 0 0;
}

/* ---------- hero ---------- */
.page-products .ps-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  padding-block: clamp(22px, 4vw, 46px) clamp(26px, 4vw, 44px);
}

.page-products .ps-hero__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 7vw, 3.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-products .ps-hero__lede {
  margin: 16px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.85;
}

.page-products .ps-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-products .ps-index {
  position: relative;
  padding: 20px var(--ps-inner) 18px;
  background: linear-gradient(155deg, rgba(18, 53, 42, 0.82), rgba(7, 19, 15, 0.92));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 22px));
}

.page-products .ps-index__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .ps-index__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.page-products .ps-index__link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-top: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  transition: background 0.28s var(--ease), padding-left 0.28s var(--ease), color 0.28s var(--ease);
}

.page-products .ps-index__link:first-of-type {
  border-top: 0;
}

.page-products .ps-index__link:hover,
.page-products .ps-index__link:focus-visible {
  background: rgba(59, 242, 208, 0.09);
  padding-left: 16px;
  color: var(--cyan-soft);
  outline: none;
}

.page-products .ps-index__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
}

.page-products .ps-index__name {
  min-width: 0;
}

.page-products .ps-index__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--line);
}

/* ---------- data strip ---------- */
.page-products .ps-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(4px, 1vw, 12px);
}

.page-products .ps-strip__item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: var(--ink-deep);
}

.page-products .ps-strip__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-products .ps-strip__value {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 600;
  color: var(--paper);
}

.page-products .ps-strip__item--accent .ps-strip__value {
  color: var(--orange);
}

/* ---------- sections ---------- */
.page-products .ps-section {
  padding-block: clamp(30px, 5vw, 58px);
  border-top: 1px solid var(--line);
  margin-top: clamp(26px, 4vw, 52px);
}

.page-products .ps-head {
  display: grid;
  gap: 10px;
  max-width: 44em;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-products .ps-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .ps-h3 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--paper);
}

.page-products .prose {
  margin: 0 0 14px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-products .prose:last-child {
  margin-bottom: 0;
}

.page-products .ps-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 44px);
  align-items: start;
}

/* ---------- figures ---------- */
.page-products .ps-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(59, 242, 208, 0.12), rgba(7, 19, 15, 0.94));
  clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 100%);
}

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

.page-products .ps-figure--tall img {
  object-position: center top;
}

.page-products .ps-figure__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--cyan-soft);
  background: rgba(7, 19, 15, 0.88);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ---------- steps ---------- */
.page-products .ps-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: psstep;
}

.page-products .ps-steps li {
  counter-increment: psstep;
  position: relative;
  padding: 11px 14px 11px 52px;
  border-left: 2px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 53, 42, 0.62), rgba(18, 53, 42, 0));
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease), background 0.28s var(--ease);
}

.page-products .ps-steps li::before {
  content: "0" counter(psstep);
  position: absolute;
  left: 14px;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
}

.page-products .ps-steps li strong {
  color: var(--paper);
  font-weight: 600;
}

.page-products .ps-steps li:hover {
  border-left-color: var(--orange);
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.1), rgba(18, 53, 42, 0));
  transform: translateX(4px);
}

/* ---------- note card ---------- */
.page-products .ps-note-card {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(18, 53, 42, 0.5);
}

.page-products .ps-note-card__title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .ps-note-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .ps-note-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.page-products .ps-note-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: skewY(-18deg);
}

/* ---------- stats ---------- */
.page-products .ps-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(20px, 3vw, 32px);
  background: var(--line);
  border: 1px solid var(--line);
}

.page-products .ps-stat {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: var(--ink-deep);
}

.page-products .ps-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 600;
  color: var(--paper);
  line-height: 1.1;
}

.page-products .ps-stat--accent .ps-stat__value {
  color: var(--orange);
}

.page-products .ps-stat__label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- tiles ---------- */
.page-products .ps-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-products .ps-tile {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 20px 34px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(18, 53, 42, 0.92), rgba(7, 19, 15, 0.96));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-products .ps-tile:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
}

.page-products .ps-tile__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-products .ps-tile__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .ps-tile__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--muted);
}

.page-products .ps-tile__link {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 242, 208, 0.35);
  justify-self: start;
  padding-bottom: 2px;
}

.page-products .ps-tile__link:hover,
.page-products .ps-tile__link:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
  outline: none;
}

/* ---------- sync map ---------- */
.page-products .ps-syncmap {
  margin: 20px 0 0;
  padding: 12px 10px 6px;
  border: 1px solid var(--line);
  background: rgba(18, 53, 42, 0.42);
}

.page-products .ps-syncmap svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .ps-syncmap__node rect {
  fill: rgba(7, 19, 15, 0.78);
  stroke: var(--line);
  stroke-width: 1.5;
}

.page-products .ps-syncmap__node text {
  fill: var(--paper);
  font-family: var(--font-mono);
  font-size: 20px;
  text-anchor: middle;
  font-weight: 600;
}

.page-products .ps-syncmap__node .ps-syncmap__small {
  fill: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.page-products .ps-syncmap__line {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: 8 10;
  animation: ps-dash 2.6s linear infinite;
}

.page-products .ps-syncmap__arrow {
  fill: var(--cyan);
}

.page-products .ps-syncmap__dot {
  fill: var(--orange);
}

.page-products .ps-syncmap__cap {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

@keyframes ps-dash {
  to {
    stroke-dashoffset: -36;
  }
}

/* ---------- version ---------- */
.page-products .ps-version {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  background: linear-gradient(200deg, rgba(255, 122, 26, 0.08), rgba(18, 53, 42, 0.55) 45%);
}

.page-products .ps-version__body {
  display: grid;
  gap: 8px;
  align-content: start;
}

.page-products .ps-checks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-products .ps-checks li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.page-products .ps-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

/* ---------- scenes ---------- */
.page-products .ps-scenes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-products .ps-scene {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 20px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(200deg, rgba(59, 242, 208, 0.1), rgba(7, 19, 15, 0.95) 55%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 18px));
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.page-products .ps-scene:hover,
.page-products .ps-scene:focus-visible {
  transform: translateY(-5px);
  border-color: var(--orange);
  outline: none;
}

.page-products .ps-scene__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-products .ps-scene__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .ps-scene__desc {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--muted);
}

.page-products .ps-scene__go {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

/* ---------- cta ---------- */
.page-products .ps-cta {
  margin-top: clamp(36px, 6vw, 72px);
  padding-block: clamp(30px, 5vw, 54px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 88% 0%, rgba(255, 122, 26, 0.14), transparent 62%),
    rgba(7, 19, 15, 0.6);
}

.page-products .ps-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
}

.page-products .ps-cta__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- media queries ---------- */
@media (min-width: 560px) {
  .page-products .ps-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 860px) {
  .page-products .ps-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: end;
  }

  .page-products .ps-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .ps-duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .page-products .ps-duo--flip .ps-duo__body {
    order: 2;
  }

  .page-products .ps-duo--flip .ps-figure {
    order: 1;
  }

  .page-products .ps-version {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-products .ps-cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1080px) {
  .page-products .ps-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .ps-scenes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .ps-syncmap__line {
    animation: none;
  }

  .page-products .ps-tile,
  .page-products .ps-scene,
  .page-products .ps-steps li,
  .page-products .ps-index__link {
    transition: none;
  }

  .page-products .ps-tile:hover,
  .page-products .ps-scene:hover,
  .page-products .ps-steps li:hover,
  .page-products .ps-index__link:hover {
    transform: none;
  }
}
