.page-products {
  --products-gap: clamp(1.1rem, 2vw, 2rem);
  --products-radius: 16px;
  --products-border: 1px solid rgba(245, 240, 230, 0.08);
  --products-panel: linear-gradient(145deg, rgba(245, 240, 230, 0.06) 0%, rgba(245, 240, 230, 0.02) 100%);
  display: block;
  background: var(--ink-900);
  color: var(--paper-50);
  font-family: var(--sans);
  line-height: 1.75;
  overflow-x: hidden;
}

.page-products .products-hero {
  position: relative;
  padding: 3rem 1.25rem 2.5rem;
  background:
    radial-gradient(ellipse 70% 52% at 88% 8%, rgba(107, 33, 168, 0.3) 0%, transparent 62%),
    radial-gradient(ellipse 62% 48% at 8% 100%, rgba(245, 180, 15, 0.12) 0%, transparent 58%),
    var(--ink-900);
  border-bottom: 1px solid rgba(245, 180, 15, 0.2);
}

.page-products .products-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-500), var(--gold-500), transparent);
  opacity: 0.72;
}

.page-products .products-hero__inner {
  max-width: var(--content-max);
  margin-inline: auto;
}

.page-products .products-hero .breadcrumb {
  margin-bottom: 2.2rem;
}

.page-products .products-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0.7rem 0 1.1rem;
  color: var(--paper-50);
  position: relative;
}

.page-products .products-hero__title::after {
  content: "";
  display: block;
  width: 78px;
  height: 5px;
  margin-top: 0.9rem;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-600), transparent);
  border-radius: 99px;
}

.page-products .products-hero__lead {
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--paper-200);
  margin: 0 0 1.5rem;
}

.page-products .products-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.page-products .products-hero__tags .tag {
  background: rgba(245, 240, 230, 0.05);
  border: 1px solid rgba(245, 240, 230, 0.12);
  color: var(--paper-200);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.page-products .section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0;
}

.page-products .chapter-number {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-600);
  letter-spacing: -0.02em;
}

.page-products .section-head {
  margin-bottom: 2rem;
}

.page-products .section-title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.28;
  color: var(--paper-50);
  margin: 0.5rem 0 0.6rem;
}

.page-products .section-subtitle {
  max-width: 42rem;
  color: var(--paper-200);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.page-products .service-overview,
.page-products .service-details,
.page-products .service-routes {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 3.5rem 1.25rem;
}

.page-products .service-overview::before,
.page-products .service-details::before,
.page-products .service-routes::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 180, 15, 0.48), transparent);
  margin-bottom: 3.5rem;
}

.page-products .vault-grid.service-bento,
.page-products .vault-grid.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--products-gap);
  margin-top: 2rem;
}

.page-products .service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 2rem 1.7rem 1.6rem;
  background: var(--products-panel);
  border: var(--products-border);
  border-radius: var(--products-radius);
  text-decoration: none;
  color: var(--paper-50);
  min-height: 210px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.page-products .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-radius: 0 var(--products-radius) 0 0;
  opacity: 0.8;
}

.page-products .service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 180, 15, 0.42);
  background: linear-gradient(145deg, rgba(245, 180, 15, 0.12) 0%, rgba(245, 240, 230, 0.03) 60%, rgba(107, 33, 168, 0.12) 100%);
}

.page-products .service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 180, 15, 0.22), rgba(76, 29, 149, 0.28));
  color: var(--gold-500);
}

.page-products .service-card__icon svg {
  width: 28px;
  height: 28px;
}

.page-products .service-card__badge {
  position: absolute;
  top: 1.15rem;
  right: 2.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-500);
  border: 1px solid rgba(245, 180, 15, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  background: rgba(245, 180, 15, 0.08);
}

.page-products .service-card__title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--paper-50);
  margin: 0.4rem 0 0;
  line-height: 1.3;
}

.page-products .service-card__desc {
  color: var(--paper-200);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.page-products .service-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(245, 240, 230, 0.08);
  padding-top: 0.85rem;
  margin-top: 0.4rem;
}

.page-products .service-card__num {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--gold-500);
  font-weight: 700;
}

.page-products .service-card__arrow {
  font-size: 1.25rem;
  color: var(--gold-500);
  transition: transform 0.3s var(--ease);
  line-height: 1;
}

.page-products .service-card:hover .service-card__arrow {
  transform: translateX(7px);
}

.page-products .service-details .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-bottom: 1px solid rgba(245, 240, 230, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

.page-products .tab-btn {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paper-200);
  background: rgba(245, 240, 230, 0.03);
  border: 1px solid rgba(245, 240, 230, 0.14);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  line-height: 1.4;
}

.page-products .tab-btn:hover {
  background: rgba(245, 240, 230, 0.08);
  color: var(--paper-50);
}

.page-products .tab-btn.is-active {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  border-color: transparent;
  color: var(--paper-50);
}

.page-products .tab-btn:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.page-products .tab-panel {
  padding-top: 0.5rem;
}

.page-products .tab-panel.is-active {
  animation: productsPanelIn 0.45s var(--ease);
}

@keyframes productsPanelIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-products .detail-grid > .vault-cell {
  background: var(--products-panel);
  border: var(--products-border);
  border-radius: var(--products-radius);
  padding: 1.75rem 1.6rem;
  position: relative;
  overflow: hidden;
}

.page-products .detail-grid > .detail-grid__img,
.page-products .detail-grid > .detail-grid__side-img {
  padding: 0;
  background: var(--ink-800);
}

.page-products .detail-grid > .detail-grid__img::after,
.page-products .detail-grid > .detail-grid__side-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(245, 180, 15, 0.12);
  border-radius: var(--products-radius);
}

.page-products .detail-grid__main {
  display: flex;
  flex-direction: column;
}

.page-products .detail-grid__eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 0.6rem;
}

.page-products .detail-grid__heading {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--paper-50);
  margin: 0 0 0.8rem;
  position: relative;
  padding-bottom: 0.7rem;
}

.page-products .detail-grid__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  border-radius: 99px;
}

.page-products .detail-grid__lead {
  color: var(--paper-200);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0.5rem 0 1rem;
}

.page-products .detail-grid__subhead {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--gold-500);
  margin: 0 0 0.7rem;
  line-height: 1.4;
}

.page-products .detail-grid__side p,
.page-products .detail-grid__sync p,
.page-products .detail-grid__broad p {
  color: var(--paper-200);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

.page-products .detail-grid__note {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--teal-400);
  border-left: 2px solid var(--teal-400);
  padding-left: 0.9rem;
}

.page-products .media-frame {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.page-products .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

.page-products .detail-grid__side-img .media-frame img {
  aspect-ratio: 3 / 2;
}

.page-products .feature-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.page-products .feature-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--paper-200);
  line-height: 1.7;
  font-size: 0.95rem;
}

.page-products .feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-400);
  font-weight: 700;
  font-size: 0.95rem;
}

.page-products .step-list {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.page-products .step-list li {
  counter-increment: steps;
  position: relative;
  padding-left: 2.8rem;
  color: var(--paper-200);
  line-height: 1.7;
  font-size: 0.95rem;
}

.page-products .step-list li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-500);
  background: rgba(245, 180, 15, 0.1);
  border: 1px solid rgba(245, 180, 15, 0.25);
  border-radius: 8px;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
}

.page-products .download-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(245, 180, 15, 0.13), rgba(245, 180, 15, 0.03));
  border-left: 3px solid var(--gold-500);
  border-radius: var(--products-radius);
}

.page-products .download-highlight__label {
  font-size: 0.82rem;
  color: var(--paper-200);
  letter-spacing: 0.06em;
}

.page-products .download-highlight__num {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1.2;
}

.page-products .download-highlight__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--teal-400);
  font-family: var(--mono);
}

.page-products .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.65);
}

.page-products .module-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.page-products .module-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: rgba(245, 240, 230, 0.04);
  border-radius: 10px;
  font-size: 0.93rem;
  color: var(--paper-200);
  border-bottom: 1px solid rgba(245, 180, 15, 0.1);
}

.page-products .module-list__num {
  font-family: var(--mono);
  color: var(--gold-500);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.page-products .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  margin-top: 0.7rem;
}

.page-products .btn-ghost {
  border: 1px solid rgba(245, 180, 15, 0.4);
  color: var(--gold-500);
  background: rgba(245, 180, 15, 0.04);
}

.page-products .btn-ghost:hover {
  background: rgba(245, 180, 15, 0.14);
  border-color: var(--gold-500);
}

.page-products .version-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.page-products .version-stat {
  background: rgba(245, 240, 230, 0.04);
  border: 1px solid rgba(245, 240, 230, 0.07);
  border-radius: var(--products-radius);
  padding: 1rem 0.6rem;
  text-align: center;
}

.page-products .version-stat__num {
  display: block;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1.3;
}

.page-products .version-stat__label {
  display: block;
  font-size: 0.82rem;
  color: var(--paper-200);
  margin-top: 0.2rem;
}

.page-products .route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--products-gap);
  margin-top: 2rem;
}

.page-products .route-card {
  position: relative;
  padding: 2rem 1.8rem;
  border-radius: var(--products-radius);
  background:
    linear-gradient(145deg, rgba(245, 240, 230, 0.06) 0%, rgba(20, 20, 20, 0.6) 55%, rgba(107, 33, 168, 0.14) 100%);
  border: 1px solid rgba(245, 240, 230, 0.09);
  overflow: hidden;
}

.page-products .route-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-500), var(--gold-500), transparent);
}

.page-products .route-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 180, 15, 0.1) 0%, transparent 68%);
  pointer-events: none;
}

.page-products .route-card__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold-500);
  border: 1px solid rgba(245, 180, 15, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  background: rgba(245, 180, 15, 0.06);
  margin-bottom: 1rem;
}

.page-products .route-card__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--paper-50);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.page-products .route-card__text {
  color: var(--paper-200);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

.page-products .route-steps {
  list-style: none;
  counter-reset: routes;
  padding: 0;
  margin: 1.3rem 0 1rem;
  display: grid;
  gap: 0.85rem;
}

.page-products .route-steps li {
  counter-increment: routes;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  color: var(--paper-200);
  line-height: 1.65;
  font-size: 0.95rem;
}

.page-products .route-steps li::before {
  content: counter(routes, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-500);
  flex-shrink: 0;
  width: 1.6rem;
}

.page-products .route-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-500);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.page-products .route-card__link:hover {
  gap: 0.9rem;
  color: var(--gold-600);
}

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

@media (min-width: 800px) {
  .page-products .vault-grid.service-bento {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-products .service-card {
    min-height: 230px;
  }

  .page-products .service-card--download {
    grid-column: span 7;
  }

  .page-products .service-card--docs {
    grid-column: span 5;
  }

  .page-products .service-card--versions {
    grid-column: span 4;
  }

  .page-products .service-card--announce {
    grid-column: span 8;
  }

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

@media (min-width: 1000px) {
  .page-products .vault-grid.detail-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-products .detail-grid--download .detail-grid__main {
    grid-column: span 7;
  }

  .page-products .detail-grid--download .detail-grid__img {
    grid-column: span 5;
  }

  .page-products .detail-grid--download .detail-grid__side {
    grid-column: span 4;
  }

  .page-products .detail-grid--download .detail-grid__sync {
    grid-column: span 5;
  }

  .page-products .detail-grid--download .detail-grid__side-img {
    grid-column: span 3;
  }

  .page-products .detail-grid--docs .detail-grid__main {
    grid-column: span 6;
  }

  .page-products .detail-grid--docs .detail-grid__img {
    grid-column: span 6;
  }

  .page-products .detail-grid--docs .detail-grid__side {
    grid-column: span 4;
  }

  .page-products .detail-grid--docs .detail-grid__broad {
    grid-column: span 8;
  }

  .page-products .detail-grid--versions .detail-grid__main {
    grid-column: span 7;
  }

  .page-products .detail-grid--versions .detail-grid__img {
    grid-column: span 5;
  }

  .page-products .detail-grid--versions .detail-grid__side {
    grid-column: span 5;
  }

  .page-products .detail-grid--versions .detail-grid__broad {
    grid-column: span 7;
  }

  .page-products .detail-grid--announce .detail-grid__main {
    grid-column: span 7;
  }

  .page-products .detail-grid--announce .detail-grid__img {
    grid-column: span 5;
  }

  .page-products .detail-grid--announce .detail-grid__side {
    grid-column: span 5;
  }

  .page-products .detail-grid--announce .detail-grid__broad {
    grid-column: span 7;
  }

  .page-products .detail-grid > .vault-cell {
    padding: 2rem 2.2rem;
  }

  .page-products .detail-grid > .detail-grid__img,
  .page-products .detail-grid > .detail-grid__side-img {
    padding: 0;
  }
}
