.page-products {
  --prod-bg: #0A0E27;
  --prod-elev: #121A3A;
  --prod-red: #FF2E63;
  --prod-blue: #00D2FF;
  --prod-green: #39FF14;
  --prod-text: #F5F6FA;
  --prod-muted: #A0A6C0;
  --prod-line: #2A3550;
  background: var(--prod-bg);
  color: var(--prod-text);
}

.page-products .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.page-products .section-eyebrow {
  color: var(--prod-blue);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.page-products .prod-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--prod-muted);
  margin-bottom: 1.5rem;
}

.page-products .prod-crumb a {
  color: var(--prod-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.page-products .prod-crumb a:hover {
  color: var(--prod-red);
}

.page-products .prod-crumb-sep {
  color: var(--prod-line);
}

.page-products .prod-hero {
  position: relative;
  padding: 2.75rem 0 2.25rem;
  overflow: hidden;
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(10, 14, 39, 0) 60%),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(42, 53, 80, 0.35) 32px 33px),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(42, 53, 80, 0.35) 32px 33px);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--prod-red) 0%, var(--prod-blue) 50%, var(--prod-green) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-products .prod-hero-inner {
  position: relative;
  z-index: 2;
}

.page-products .prod-hero-copy {
  max-width: 46rem;
}

.page-products .prod-hero-copy h1 {
  margin: 0.5rem 0 1rem;
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--prod-text);
}

.page-products .prod-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--prod-muted);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.page-products .prod-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-products .prod-hero-stats {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.page-products .prod-hero-stats .stat-item {
  background: rgba(18, 26, 58, 0.8);
  border: 1px solid var(--prod-line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: border-color 0.2s, background 0.2s;
}

.page-products .prod-hero-stats .stat-item:hover {
  border-color: var(--prod-blue);
  background: rgba(0, 210, 255, 0.08);
}

.page-products .prod-hero-stats .data-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--prod-text);
  line-height: 1.2;
}

.page-products .prod-hero-stats .data-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--prod-muted);
}

.page-products .prod-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-top: 1px solid var(--prod-line);
  border-bottom: 1px solid var(--prod-line);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 2;
}

.page-products .prod-subnav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--prod-muted);
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-products .prod-subnav a:hover {
  color: var(--prod-blue);
  border-color: var(--prod-line);
  background: rgba(0, 210, 255, 0.08);
}

.page-products .prod-module {
  padding: 3rem 0 0;
  position: relative;
}

.page-products .prod-module-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-products .prod-module-copy {
  min-width: 0;
}

.page-products .prod-module-copy h2,
.page-products .prod-module-head h2 {
  margin: 0.25rem 0 1rem;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 900;
  color: var(--prod-text);
}

.page-products .prod-module-copy .section-lead,
.page-products .prod-module-head .section-lead {
  margin: 0 0 1.25rem;
  color: var(--prod-muted);
  line-height: 1.7;
}

.page-products .prod-module-head {
  margin-bottom: 1.75rem;
}

.page-products .prod-module-head .section-lead {
  max-width: 44rem;
}

.page-products .prod-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.page-products .prod-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(18, 26, 58, 0.72);
  border: 1px solid rgba(42, 53, 80, 0.72);
  border-left: 3px solid var(--prod-blue);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--prod-text);
  transition: border-color 0.2s, background 0.2s;
}

.page-products .prod-points li:hover {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(18, 26, 58, 0.92);
}

.page-products .prod-points li:nth-child(even) {
  border-left-color: var(--prod-red);
}

.page-products .prod-point-mark {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--prod-green);
  background: rgba(57, 255, 20, 0.1);
  border-radius: 0.5rem;
  padding: 0.2rem 0.45rem;
}

.page-products .prod-mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.page-products .prod-mini-cards .data-card {
  padding: 1rem;
}

.page-products .prod-text-link {
  display: inline-block;
  color: var(--prod-blue);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 210, 255, 0.3);
  padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s;
}

.page-products .prod-text-link:hover {
  color: var(--prod-red);
  border-color: var(--prod-red);
}

.page-products .prod-device-figure {
  position: relative;
  margin: 0;
  max-width: 340px;
  justify-self: center;
  width: 100%;
}

.page-products .prod-device-figure::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1rem -1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.22), rgba(0, 210, 255, 0.16));
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  border-radius: 1.25rem;
  z-index: 0;
  pointer-events: none;
}

.page-products .prod-device-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 1.5rem;
  border: 1px solid var(--prod-line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.page-products .prod-device-badge {
  position: absolute;
  top: 1.25rem;
  right: 0.5rem;
  z-index: 2;
  background: var(--prod-green);
  color: #04120A;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 0.35rem 0.7rem;
  border-radius: 3rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(57, 255, 20, 0.3);
}

.page-products .prod-device-figure figcaption,
.page-products .prod-topbar-figure figcaption,
.page-products .prod-detail-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--prod-muted);
  text-align: center;
}

.page-products .prod-topbar-figure {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.page-products .prod-topbar-img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--prod-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.page-products .prod-scorer-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.page-products .prod-chart-figure {
  margin: 0;
}

.page-products .prod-chart-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--prod-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.page-products .prod-scorer-meta {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.page-products .prod-score-card {
  padding: 1.25rem;
}

.page-products .prod-sort-box {
  background: rgba(255, 46, 99, 0.08);
  border: 1px solid rgba(255, 46, 99, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.page-products .prod-sort-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  color: var(--prod-red);
}

.page-products .prod-sort-box ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--prod-muted);
  line-height: 2;
  font-size: 0.9375rem;
}

.page-products .prod-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--prod-muted);
  background: rgba(42, 53, 80, 0.25);
  border-left: 3px solid var(--prod-green);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-products .prod-filter-sim {
  position: relative;
}

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

.page-products .prod-filter-labels,
.page-products .db-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-products .prod-filter-label,
.page-products .db-tab {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--prod-line);
  color: var(--prod-muted);
  background: rgba(10, 14, 39, 0.72);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  user-select: none;
}

.page-products .prod-filter-label:hover,
.page-products .db-tab:hover {
  color: var(--prod-text);
  border-color: var(--prod-blue);
  transform: translateY(-1px);
}

.page-products #db-round:checked ~ .db-tab-list label[for="db-round"],
.page-products #db-team:checked ~ .db-tab-list label[for="db-team"],
.page-products #hist-5:checked ~ .prod-filter-labels label[for="hist-5"],
.page-products #hist-30:checked ~ .prod-filter-labels label[for="hist-30"] {
  background: var(--prod-red);
  border-color: var(--prod-red);
  color: #FFFFFF;
}

.page-products .prod-filter-panels,
.page-products .db-panels {
  border: 1px solid var(--prod-line);
  border-radius: var(--radius);
  background: rgba(18, 26, 58, 0.55);
  padding: 1.25rem;
  overflow: hidden;
}

.page-products .prod-filter-panel:nth-child(2),
.page-products .db-round-panel {
  display: none;
}

.page-products #hist-5:checked ~ .prod-filter-panels .prod-filter-panel:nth-child(2),
.page-products #db-round:checked ~ .db-panels .db-round-panel {
  display: block;
}

.page-products #hist-5:checked ~ .prod-filter-panels .prod-filter-panel:first-child,
.page-products #db-round:checked ~ .db-panels .db-team-panel {
  display: none;
}

.page-products .prod-history-figure {
  margin: 0;
}

.page-products .prod-history-img,
.page-products .prod-detail-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--prod-line);
  display: block;
}

.page-products .prod-five-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-products .prod-five-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid rgba(42, 53, 80, 0.7);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--prod-muted);
}

.page-products .prod-five-list li strong {
  color: var(--prod-text);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  margin-left: auto;
}

.page-products .prod-five-list li span {
  color: var(--prod-text);
  font-weight: 600;
}

.page-products .prod-filter-tip {
  margin-top: 0.85rem;
  text-align: right;
  font-size: 0.8125rem;
  color: var(--prod-muted);
  font-family: var(--font-mono);
}

.page-products .db-tabs {
  position: relative;
  margin-top: 1.5rem;
}

.page-products .db-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--prod-text);
}

.page-products .db-panel p {
  color: var(--prod-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
}

.page-products .db-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.page-products .db-card-grid .data-card {
  padding: 1rem;
}

.page-products .db-round-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-products .db-round-features li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--prod-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-products .db-round-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--prod-blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.page-products .db-round-features li:first-child::before {
  background: var(--prod-red);
}

.page-products .prod-db-foot {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.page-products .prod-db-note {
  font-size: 0.875rem;
  color: var(--prod-muted);
  line-height: 1.6;
  max-width: 22rem;
}

.page-products .prod-detail-figure {
  margin: 0;
}

.page-products .prod-detail-img {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.page-products .prod-guide {
  padding: 3.5rem 0 4rem;
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-products .prod-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 46, 99, 0.14) 0%, rgba(18, 26, 58, 0) 55%),
    linear-gradient(300deg, rgba(0, 210, 255, 0.12) 0%, rgba(18, 26, 58, 0) 55%);
  pointer-events: none;
}

.page-products .prod-guide-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.page-products .prod-guide-inner h2 {
  margin: 0 0 0.75rem;
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--prod-text);
}

.page-products .prod-guide-inner p {
  color: var(--prod-muted);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.page-products .prod-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .page-products .prod-hero {
    padding-top: 4rem;
  }

  .page-products .prod-hero-copy h1 {
    font-size: 3rem;
  }

  .page-products .prod-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .page-products .prod-module {
    padding-top: 4.5rem;
  }

  .page-products .prod-module-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .page-products .prod-home-grid .prod-device-figure {
    order: 1;
  }

  .page-products .prod-small-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

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

  .page-products .prod-detail-figure {
    order: 1;
  }

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

  .page-products .prod-scorer-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
  }

  .page-products .prod-topbar-figure {
    justify-self: end;
  }

  .page-products .prod-filter-panels,
  .page-products .db-panels {
    padding: 1.5rem;
  }

  .page-products .prod-guide {
    padding: 4.5rem 0 5rem;
  }
}

@media (min-width: 1024px) {
  .page-products .prod-hero-copy h1 {
    font-size: 3.5rem;
  }

  .page-products .prod-module-copy h2,
  .page-products .prod-module-head h2 {
    font-size: 2.125rem;
  }

  .page-products .prod-module-grid {
    gap: 3.5rem;
  }

  .page-products .prod-device-img {
    max-width: 340px;
  }

  .page-products .prod-mini-cards {
    max-width: 30rem;
  }

  .page-products .prod-points {
    max-width: 34rem;
  }
}
