.page-products {
  --pps-teal: #0F4C5C;
  --pps-wine: #720026;
  --pps-indigo: #4B0082;
  --pps-gold: #FFD700;
  --pps-orange: #FF6B35;
  --pps-border: #2E4A7A;
  --pps-text: #F5F7FA;
  --pps-muted: #A0B0C0;
  --pps-deep: #050E22;
  background: linear-gradient(165deg, #0A1F44 0%, #050E22 52%, #0A1F44 100%);
  color: var(--kai-text);
}

.page-products img {
  max-width: 100%;
  height: auto;
}

.page-products .pps-hero {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 0 3rem;
  border-bottom: 1px solid var(--pps-border);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 215, 0, 0.10), transparent 42%),
    radial-gradient(circle at 12% 90%, rgba(255, 107, 53, 0.10), transparent 28%);
}

.page-products .pps-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.page-products .pps-hero__content h1 {
  font-family: var(--kai-font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  margin: 0.9rem 0 1rem;
  color: var(--pps-text);
}

.page-products .pps-hero__lead {
  color: var(--pps-muted);
  max-width: 46em;
  margin: 0 0 1.5rem;
  line-height: 1.8;
  font-size: 0.94rem;
}

.page-products .pps-hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.page-products .pps-hero__stats .kai-card {
  background: rgba(5, 14, 34, 0.58);
  border: 1px solid var(--pps-border);
  border-left: 2px solid rgba(255, 215, 0, 0.65);
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1.1rem;
}

.page-products .pps-hero__stats .kai-card__num {
  font-family: var(--kai-font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pps-gold);
  letter-spacing: -0.02em;
}

.page-products .pps-hero__stats .kai-card__label {
  color: var(--pps-muted);
  font-size: 0.8rem;
}

.page-products .pps-hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-products .pps-hero__main {
  position: relative;
  z-index: 1;
}

.page-products .pps-hero__main img {
  display: block;
  width: 100%;
  max-width: 340px;
  border-radius: var(--kai-radius);
  border: 1px solid var(--pps-border);
  box-shadow: 0 24px 48px -18px rgba(5, 14, 34, 0.9);
}

.page-products .pps-hero__speed {
  display: none;
}

.page-products .pps-hero__scale {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 300px;
  margin-top: 0.85rem;
  position: relative;
  z-index: 1;
}

.page-products .pps-hero__scale span {
  height: 6px;
  flex: 1;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.86), rgba(255, 107, 53, 0.5));
  transform: skewX(-24deg);
}

.page-products .pps-hero__scale span:nth-child(2n) {
  transform: skewX(24deg);
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.55), rgba(255, 215, 0, 0.72));
}

.page-products .pps-app-layout {
  position: relative;
  padding: 3rem 0 0.5rem;
  background: linear-gradient(90deg, rgba(15, 76, 92, 0.14) 0%, rgba(5, 14, 34, 0) 45%, rgba(75, 0, 130, 0.1) 100%);
}

.page-products .pps-app-layout::before {
  content: "";
  display: block;
  width: 54%;
  height: 1px;
  margin: 0 0 2.5rem auto;
  background: linear-gradient(90deg, var(--pps-gold), var(--pps-orange), transparent);
  transform: skewX(-14deg);
}

.page-products .pps-app-layout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}

.page-products .pps-version-side {
  display: grid;
  gap: 2.5rem;
  align-content: start;
}

.page-products .pps-version-side__meta {
  font-family: var(--kai-font-mono);
  font-size: 0.76rem;
  color: var(--pps-orange);
  border: 1px solid rgba(255, 107, 53, 0.25);
  background: rgba(255, 107, 53, 0.07);
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.page-products .pps-latest__head,
.page-products .pps-archive__head,
.page-products .pps-features__head,
.page-products .pps-changelog__head {
  margin-bottom: 1rem;
}

.page-products .pps-latest__head h2,
.page-products .pps-archive__head h2,
.page-products .pps-features__head h2,
.page-products .pps-changelog__head h2 {
  font-family: var(--kai-font-head);
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 0.4rem;
  color: var(--pps-text);
}

.page-products .pps-latest__card {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 76, 92, 0.26), rgba(5, 14, 34, 0.74));
  border: 1px solid rgba(255, 215, 0, 0.36);
  border-radius: var(--kai-radius);
  padding: 1.5rem 1.25rem 1.15rem;
  transition: transform 0.45s var(--kai-ease), border-color 0.45s var(--kai-ease), box-shadow 0.45s var(--kai-ease);
}

.page-products .pps-latest__card::before,
.page-products .pps-latest__card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(255, 215, 0, 0.4);
  pointer-events: none;
}

.page-products .pps-latest__card::before {
  top: 7px;
  left: 7px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.page-products .pps-latest__card::after {
  bottom: 7px;
  right: 7px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.page-products .pps-latest__card:hover,
.page-products .pps-latest__card:focus-within {
  transform: translateY(-3px);
  border-color: var(--pps-gold);
  box-shadow: 0 20px 42px -22px rgba(255, 215, 0, 0.28);
}

.page-products .pps-latest__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-products .pps-latest__ver {
  font-family: var(--kai-font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pps-gold);
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-products .pps-latest__points {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 1.25rem 0 0.35rem;
  border-top: 1px solid var(--pps-border);
}

.page-products .pps-latest__points li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--pps-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.page-products .pps-latest__points li::before {
  content: "∟";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pps-orange);
  font-family: var(--kai-font-mono);
  font-size: 0.9rem;
}

.page-products .pps-latest__extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--kai-ease), opacity 0.35s var(--kai-ease), margin 0.35s var(--kai-ease);
}

.page-products .pps-latest__card:hover .pps-latest__extra,
.page-products .pps-latest__card:focus-within .pps-latest__extra {
  max-height: 140px;
  opacity: 1;
  margin-top: 0.75rem;
}

.page-products .pps-latest__extra p {
  margin: 0;
  color: var(--pps-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.page-products .pps-latest__hint {
  display: block;
  margin-top: 0.75rem;
  color: var(--pps-muted);
  font-size: 0.78rem;
}

.page-products .pps-latest__hint a {
  color: var(--pps-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .pps-latest__card .kai-btn--gold:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 10px -4px rgba(255, 215, 0, 0.5);
}

.page-products .pps-archive__lead,
.page-products .pps-features__head .kai-lead,
.page-products .pps-changelog__head .kai-lead {
  color: var(--pps-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0.4rem 0 0;
}

.page-products .pps-archive__item {
  border-bottom: 1px solid var(--pps-border);
}

.page-products .pps-archive__item[open] {
  background: rgba(255, 215, 0, 0.03);
}

.page-products .pps-archive__item summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 0.35rem;
  transition: color 0.3s var(--kai-ease);
}

.page-products .pps-archive__item summary::-webkit-details-marker {
  display: none;
}

.page-products .pps-archive__item summary:hover {
  color: var(--pps-gold);
}

.page-products .pps-archive__marker {
  display: inline-flex;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pps-border);
  color: var(--pps-muted);
  font-family: var(--kai-font-mono);
  font-size: 0.9rem;
  transition: color 0.3s var(--kai-ease), border-color 0.3s var(--kai-ease), transform 0.3s var(--kai-ease);
}

.page-products .pps-archive__item[open] .pps-archive__marker {
  transform: rotate(45deg);
  color: var(--pps-gold);
  border-color: var(--pps-gold);
}

.page-products .pps-archive__ver {
  flex: 1 1 auto;
  font-family: var(--kai-font-mono);
  font-size: 1rem;
  color: var(--pps-text);
  letter-spacing: -0.01em;
}

.page-products .pps-archive__desc {
  margin: 0;
  padding: 0 0.35rem 1rem 2.4rem;
  color: var(--pps-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.page-products .pps-archive__media {
  margin-top: 1.25rem;
}

.page-products .pps-archive__media img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 1px solid var(--pps-border);
  border-radius: var(--kai-radius);
}

.page-products .pps-feature-side {
  display: grid;
  gap: 2.5rem;
  align-content: start;
}

.page-products .pps-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.page-products .pps-feature {
  background: rgba(5, 14, 34, 0.55);
  border: 1px solid var(--pps-border);
  border-left: 3px solid rgba(255, 215, 0, 0.65);
  border-radius: var(--kai-radius);
  padding: 1.2rem 1rem 1.05rem;
  transition: border-color 0.35s var(--kai-ease), transform 0.35s var(--kai-ease), background 0.35s var(--kai-ease);
}

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

.page-products .pps-feature:nth-child(3) {
  border-left-color: var(--pps-indigo);
}

.page-products .pps-feature:nth-child(4) {
  border-left-color: var(--pps-teal);
}

.page-products .pps-feature:hover {
  transform: translateY(-3px);
  background: rgba(15, 76, 92, 0.22);
  border-color: var(--pps-border);
}

.page-products .pps-feature__ico {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pps-gold);
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--kai-radius);
  margin-bottom: 0.9rem;
}

.page-products .pps-feature__ico svg {
  width: 24px;
  height: 24px;
}

.page-products .pps-feature h3 {
  font-family: var(--kai-font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--pps-text);
}

.page-products .pps-feature p {
  color: var(--pps-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}

.page-products .pps-features__visual {
  margin-top: 1.25rem;
}

.page-products .pps-features__visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--pps-border);
  border-radius: var(--kai-radius);
}

.page-products .pps-changelog {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(114, 0, 38, 0.2), rgba(5, 14, 34, 0.5));
  border: 1px solid var(--pps-border);
  border-radius: var(--kai-radius);
}

.page-products .pps-changelog__media {
  margin: 0 0 1.2rem;
}

.page-products .pps-changelog__media img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: var(--kai-radius);
  border: 1px solid var(--pps-border);
  opacity: 0.9;
}

.page-products .pps-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .pps-timeline__item {
  position: relative;
  margin: 0;
  padding: 0 0 1.4rem 1.4rem;
  border-left: 1px solid rgba(255, 215, 0, 0.3);
}

.page-products .pps-timeline__item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.page-products .pps-timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pps-gold);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.12);
}

.page-products .pps-timeline__ver {
  display: inline-block;
  font-family: var(--kai-font-mono);
  font-size: 0.78rem;
  color: var(--pps-orange);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.01em;
}

.page-products .pps-timeline__item h3 {
  font-family: var(--kai-font-head);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--pps-text);
}

.page-products .pps-timeline__item p {
  color: var(--pps-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}

.page-products .pps-support {
  margin-top: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--pps-border);
  background:
    radial-gradient(circle at 84% 22%, rgba(255, 107, 53, 0.16), transparent 42%),
    linear-gradient(120deg, var(--kai-bg-deep), rgba(15, 76, 92, 0.7));
}

.page-products .pps-support h2 {
  font-family: var(--kai-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pps-gold);
  margin: 0 0 0.8rem;
}

.page-products .pps-support p {
  color: var(--pps-muted);
  line-height: 1.8;
  font-size: 0.9rem;
  max-width: 54em;
  margin-bottom: 1.5rem;
}

.page-products .pps-support__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

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

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

  .page-products .pps-hero__main img {
    max-width: 380px;
  }

  .page-products .pps-archive__media {
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .page-products .pps-hero {
    padding: 3.5rem 0 4rem;
  }

  .page-products .pps-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
  }

  .page-products .pps-hero__lead {
    font-size: 1rem;
  }

  .page-products .pps-app-layout__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
  }

  .page-products .pps-hero__speed {
    display: block;
    position: absolute;
    right: -22%;
    top: 12%;
    width: 180px;
    height: 640px;
    object-fit: cover;
    opacity: 0.7;
    transform: rotate(8deg);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pps-latest__card,
  .page-products .pps-feature {
    transition: none;
  }

  .page-products .pps-hero__scale span {
    transform: none;
  }
}
