.page-products {
  --product-grid-soft: rgba(10, 31, 68, 0.06);
  --product-grid-strong: rgba(10, 31, 68, 0.16);
  --product-divider: #e4e8ec;
  --product-surface: #ffffff;
  position: relative;
  padding: 24px 20px 72px;
  background-color: var(--cold-gray);
  background-image:
    linear-gradient(var(--product-grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--product-grid-soft) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-products .breadcrumb {
  margin: 0 0 24px;
  font-size: 0.8125rem;
  color: #5b6670;
}

.page-products .breadcrumb__item {
  text-decoration: none;
  color: inherit;
}

.page-products .breadcrumb a:hover {
  color: var(--ff-orange);
}

.page-products .breadcrumb__item[aria-current="page"] {
  color: var(--ff-orange);
  font-weight: 600;
}

.page-products .product-hero {
  position: relative;
  z-index: 0;
  margin-bottom: 64px;
  padding: 44px 24px 48px;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.22) 0%, rgba(255, 107, 0, 0) 44%),
    linear-gradient(180deg, var(--night-blue) 0%, var(--deep-blue) 100%);
  border-left: 4px solid var(--ff-orange);
  color: #fff;
  overflow: hidden;
}

.page-products .product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-products .product-hero::after {
  content: "SCROLL ↓";
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--ff-orange);
  padding: 4px 8px;
  border: 1px solid rgba(255, 107, 0, 0.55);
  background: rgba(7, 20, 40, 0.65);
}

.page-products .product-hero .section-label {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ff-orange);
}

.page-products .product-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.page-products .product-hero__lead {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}

.page-products .section-head {
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 3px solid var(--ff-orange);
}

.page-products .section-head .section-label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ff-orange);
}

.page-products .section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--deep-blue);
}

.page-products .section-head p:last-child {
  margin: 0;
  max-width: 64ch;
  color: #526071;
  font-size: 0.9375rem;
}

.page-products .matrix-section,
.page-products .league-filter-section,
.page-products .export-section,
.page-products .archive-section,
.page-products .download-section,
.page-products .history-section {
  margin-bottom: 72px;
  scroll-margin-top: 32px;
}

.page-products .matrix-table-wrap {
  background: var(--product-surface);
  border: 1px solid var(--product-grid-strong);
  padding: 6px 8px 10px;
  overflow-x: auto;
}

.page-products .matrix-table-wrap .data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.page-products .matrix-table-wrap .data-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ff-orange);
  background: var(--deep-blue);
  border-bottom: 2px solid var(--ff-orange);
}

.page-products .matrix-table-wrap .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--product-divider);
  vertical-align: top;
}

.page-products .matrix-table-wrap .data-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .matrix-table-wrap .data-table tbody tr:hover {
  background: #f7fafc;
}

.page-products .matrix-table-wrap .data-table a {
  color: var(--ff-orange);
  font-weight: 600;
  text-decoration: none;
}

.page-products .matrix-table-wrap .data-table a:hover {
  text-decoration: underline;
}

.page-products .split-row {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-products .split-row h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--deep-blue);
}

.page-products .split-row p {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink);
}

.page-products .split-row__figure {
  margin: 0;
  padding: 8px;
  background: var(--product-surface);
  border: 1px solid var(--product-grid-strong);
  box-shadow: 5px 5px 0 rgba(255, 107, 0, 0.14);
}

.page-products .split-row__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.page-products .split-row__figure figcaption {
  padding: 10px 4px 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #5b6670;
  letter-spacing: 0.02em;
}

.page-products .feature-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-products .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  background: var(--ff-orange);
  transform: rotate(45deg);
}

.page-products .step-list {
  list-style: none;
  margin: 14px 0 12px;
  padding: 0;
  counter-reset: export-steps;
  display: grid;
  gap: 12px;
}

.page-products .step-list li {
  position: relative;
  counter-increment: export-steps;
  padding-left: 42px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-products .step-list li::before {
  content: "0" counter(export-steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ff-orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
}

.page-products .history-layout {
  display: grid;
  gap: 28px;
}

.page-products .history-timeline {
  display: grid;
  gap: 14px;
}

.page-products .history-item {
  position: relative;
  background: var(--product-surface);
  border: 1px solid var(--product-grid-strong);
  border-left: 4px solid var(--ff-orange);
  padding: 16px 18px;
}

.page-products .history-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
}

.page-products .history-item .history-item__version {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ff-orange);
  font-weight: 700;
  margin-bottom: 4px;
}

.page-products .history-figure {
  margin: 0;
  padding: 8px;
  background: var(--product-surface);
  border: 1px solid var(--product-grid-strong);
}

.page-products .history-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.page-products .history-figure figcaption {
  padding: 10px 4px 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #5b6670;
}

.page-products .product-cta {
  position: relative;
  margin-top: 8px;
  padding: 36px 24px;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, var(--deep-blue), var(--night-blue));
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.page-products .product-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-products .product-cta h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #fff;
}

.page-products .product-cta p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 60ch;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.page-products .product-cta a {
  color: var(--ff-orange);
  font-weight: 600;
  text-decoration: none;
}

.page-products .product-cta a:hover {
  text-decoration: underline;
}

.page-products .product-cta .product-cta__note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .page-products {
    padding: 40px 32px 96px;
  }

  .page-products .product-hero {
    padding: 64px 48px 56px;
  }

  .page-products .split-row {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .page-products .export-section .split-row {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

@media (min-width: 1024px) {
  .page-products {
    padding-left: 40px;
    padding-right: 40px;
  }

  .page-products .history-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }
}
