.page-products {
  position: relative;
  padding: 56px 20px 80px;
  color: var(--text-silver);
  background: var(--grad-bg);
  overflow: hidden;
}

.page-products .breadcrumb {
  max-width: 1200px;
  margin: 0 auto 32px;
}

.page-products section[id] {
  scroll-margin-top: 120px;
}

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

/* ========== Hero ========== */
.page-products .prod-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 32px;
  background:
    radial-gradient(circle at 85% 20%, rgba(123, 47, 247, 0.22), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.08), transparent 35%);
}

.page-products .prod-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  border-left: 2px solid var(--accent-orange);
  padding-left: 16px;
}

.page-products .prod-hero-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.page-products .prod-hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-faint);
}

.page-products .prod-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  line-height: 1.06;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.page-products .keyword {
  color: var(--accent-orange);
  font-weight: 600;
}

.page-products .keyword-cyan {
  color: var(--accent-cyan);
  font-weight: 600;
}

.page-products .prod-hero-lead {
  max-width: 660px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-products .prod-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== Hero Stats ========== */
.page-products .prod-stats {
  max-width: 1200px;
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-products .prod-stat {
  padding: 16px 14px;
  border-left: 2px solid var(--accent-cyan);
  background: rgba(26, 26, 46, 0.5);
  border-top-right-radius: var(--radius-card);
  border-bottom-right-radius: var(--radius-card);
}

.page-products .prod-stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.2;
}

.page-products .prod-stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ========== Section Rhythm ========== */
.page-products .section {
  max-width: 1200px;
  margin: 64px auto 0;
}

.page-products .section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.page-products .section-kicker {
  display: inline-block;
  padding-left: 12px;
  border-left: 3px solid var(--accent-orange);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.page-products .section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 12px;
}

.page-products .section-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Product Matrix / Filter ========== */
.page-products .filter-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.page-products .filter-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .filter-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(224, 224, 224, 0.22);
  color: rgba(224, 224, 224, 0.75);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-products .filter-label:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.page-products .filter-radio:checked + .filter-label {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #0f0c29;
  font-weight: 600;
}

.page-products .filter-radio:focus-visible + .filter-label {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.page-products .product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products .product-grid .product-card {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(224, 224, 224, 0.1);
  border-radius: var(--radius-panel);
  padding: 22px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  animation: prodCardIn 0.45s ease both;
}

.page-products #filter-all:checked ~ .product-grid .product-card,
.page-products #filter-web:checked ~ .product-grid .product-card[data-cat="web"],
.page-products #filter-desktop:checked ~ .product-grid .product-card[data-cat="desktop"],
.page-products #filter-member:checked ~ .product-grid .product-card[data-cat="member"] {
  display: flex;
}

.page-products .product-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.page-products .product-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.page-products .product-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.page-products .product-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
.page-products .product-grid .product-card:nth-child(5) { animation-delay: 0.25s; }
.page-products .product-grid .product-card:nth-child(6) { animation-delay: 0.3s; }

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

.page-products .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: var(--shadow-card);
}

.page-products .product-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin-bottom: 8px;
}

.page-products .product-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 10px;
}

.page-products .product-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.page-products .product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ========== Product Figure ========== */
.page-products .prod-figure {
  margin: 28px 0 0;
}

.page-products .prod-figure img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(224, 224, 224, 0.1);
}

.page-products .prod-figure figcaption,
.page-products .benefit-figure figcaption,
.page-products .route-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ========== Benefit Table ========== */
.page-products .benefit-section {
  margin-top: 64px;
}

.page-products .benefit-table-wrap {
  max-height: 460px;
  overflow: auto;
  border: 1px solid rgba(224, 224, 224, 0.1);
  border-radius: var(--radius-card);
  background: rgba(26, 26, 46, 0.5);
  margin-bottom: 24px;
}

.page-products .benefit-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .benefit-table th,
.page-products .benefit-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(224, 224, 224, 0.06);
}

.page-products .benefit-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(15, 12, 41, 0.96);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.page-products .benefit-table td:first-child {
  font-weight: 600;
  color: var(--text-silver);
}

.page-products .benefit-table td:nth-child(2),
.page-products .benefit-table td:nth-child(3) {
  color: var(--text-silver);
}

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

.page-products .benefit-table tbody tr:hover {
  background: rgba(255, 107, 26, 0.06);
}

.page-products .benefit-figure {
  margin: 0;
}

.page-products .benefit-figure img {
  width: 100%;
  aspect-ratio: 18 / 10;
  object-fit: cover;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(224, 224, 224, 0.1);
}

/* ========== Desktop Center ========== */
.page-products .desktop-section {
  margin-top: 64px;
}

.page-products .desktop-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--accent-orange), var(--accent-violet), var(--accent-cyan)) border-box;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.page-products .desktop-card-figure {
  margin: 0;
}

.page-products .desktop-card-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
}

.page-products .desktop-card-body {
  padding: 28px 24px;
}

.page-products .desktop-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  line-height: 1.2;
  color: #fff;
  margin: 12px 0 16px;
}

.page-products .desktop-feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.page-products .desktop-feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-silver);
}

.page-products .desktop-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  transform: rotate(45deg);
}

.page-products .desktop-card-actions,
.page-products .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== Support Route ========== */
.page-products .support-section {
  margin-top: 64px;
}

.page-products .route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.page-products .route-step {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(224, 224, 224, 0.1);
  border-radius: var(--radius-panel);
  background: rgba(26, 26, 46, 0.6);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.page-products .route-step:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 26, 0.5);
}

.page-products .route-num {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(255, 107, 26, 0.4);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.page-products .route-step h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 10px;
}

.page-products .route-step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.page-products .route-figure {
  margin: 24px 0 0;
}

.page-products .route-figure img {
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(224, 224, 224, 0.1);
}

.page-products .support-actions {
  margin-top: 24px;
}

/* ========== Dataflow Footer ========== */
.page-products .dataflow-section {
  max-width: 1200px;
  margin: 88px auto 0;
}

.page-products .dataflow-figure {
  margin: 0;
}

.page-products .dataflow-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 3;
  object-fit: cover;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(224, 224, 224, 0.1);
}

.page-products .dataflow-caption {
  margin-top: 10px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

/* ========== Tablet & Desktop ========== */
@media (min-width: 768px) {
  .page-products .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .prod-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: end;
    gap: 32px;
  }

  .page-products .prod-stats {
    grid-template-columns: repeat(3, 200px);
    justify-content: start;
  }

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

  .page-products .route-step + .route-step::before {
    content: "→";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--accent-orange);
    z-index: 2;
    background: transparent;
    line-height: 1;
  }

  .page-products .support-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .page-products .desktop-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .page-products .desktop-card-figure img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .page-products .desktop-card-body {
    padding: 36px 40px;
  }

  .page-products .benefit-table-wrap {
    max-height: 520px;
  }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  .page-products .product-grid .product-card {
    animation: none;
    transition: none;
  }

  .page-products .route-step,
  .page-products .desktop-card,
  .page-products .product-card:hover {
    transition: none;
    transform: none;
  }
}
