.page-products {
  --products-radius: 16px;
  --products-gap: 28px;
  --products-angle: -1.2deg;
}

.page-products img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--products-radius);
}

.page-products .products-hero {
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 179, 0, .18) 0%, transparent 38%),
    linear-gradient(135deg, var(--night-blue) 0%, var(--carbon-black) 100%);
  color: var(--paper-white);
  padding: 72px 0 92px;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--field-green);
}

.page-products .products-hero::before {
  content: "51";
  position: absolute;
  right: -20px;
  top: -70px;
  font-family: var(--font-mono);
  font-size: 220px;
  font-weight: 700;
  line-height: 1;
  color: rgba(245, 245, 240, .06);
  letter-spacing: -.06em;
  pointer-events: none;
}

.page-products .products-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 28px;
  background: linear-gradient(100deg, var(--field-green) 0%, var(--field-green) 30%, var(--signal-yellow) 30%, var(--signal-yellow) 46%, var(--blood-red) 46%, var(--blood-red) 72%, var(--field-green) 72%);
  transform: skewY(var(--products-angle));
}

.page-products .products-hero .container {
  position: relative;
  z-index: 1;
}

.page-products .hero-index {
  font-family: var(--font-mono);
  color: var(--champion-gold);
  letter-spacing: .08em;
  font-size: .78rem;
  margin: 18px 0 10px;
  text-transform: uppercase;
}

.page-products .products-hero .page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .24);
  margin: 0 0 14px;
}

.page-products .page-title__tail {
  color: var(--signal-yellow);
  display: block;
  font-size: .82em;
}

.page-products .products-hero .page-meta {
  font-family: var(--font-mono);
  color: var(--data-green);
  margin: 0 0 20px;
  font-size: .82rem;
}

.page-products .products-lead {
  max-width: 58em;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--fog);
  margin-bottom: 32px;
}

.page-products .hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-products .products-functions {
  color: var(--paper-white);
}

.page-products .function-keyboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 40px;
}

.page-products .function-key {
  background: rgba(17, 17, 17, .88);
  border: 1px solid rgba(0, 230, 118, .32);
  color: var(--paper-white);
  border-radius: var(--products-radius);
  padding: 20px 18px;
  min-height: 160px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.page-products .function-key::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--champion-gold), var(--blood-red));
  opacity: .75;
}

.page-products .function-key:hover,
.page-products .function-key:focus-visible {
  transform: translateY(-5px) rotate(-.4deg);
  border-color: var(--champion-gold);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .26);
}

.page-products .function-key__code {
  font-family: var(--font-mono);
  color: var(--champion-gold);
  font-size: .8rem;
  letter-spacing: .1em;
}

.page-products .function-key__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--paper-white);
}

.page-products .function-key__desc {
  font-size: .85rem;
  color: var(--fog);
  line-height: 1.5;
}

.page-products .function-terminal {
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(245, 245, 240, .16);
  border-radius: var(--products-radius);
  padding: 14px;
}

.page-products .function-terminal__screen {
  background: var(--carbon-black);
  border-radius: 10px;
}

.page-products .function-terminal__screen img {
  border-radius: 10px;
  width: 100%;
}

.page-products .function-terminal__note {
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--paper-white);
  line-height: 1.7;
  padding: 12px 4px 4px;
  margin: 0;
}

.page-products .products-cards {
  color: var(--slate-gray);
}

.page-products .cards-layout {
  display: grid;
  gap: 32px;
}

.page-products .cards-media img {
  width: 100%;
  border-radius: var(--products-radius);
  box-shadow: 0 12px 28px rgba(17, 17, 17, .16);
}

.page-products .cards-copy h3,
.page-products .distribution-body h3,
.page-products .updates-rhythm h3 {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 14px;
  color: var(--carbon-black);
}

.page-products .cards-copy p {
  line-height: 1.85;
  font-size: .95rem;
  margin: 0 0 18px;
}

.page-products .card-sample {
  background: var(--paper-white);
  border: 1px solid var(--fog);
  border-left: 4px solid var(--field-green);
  border-radius: var(--products-radius);
  padding: 16px;
  margin-bottom: 20px;
}

.page-products .card-sample__meta {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--slate-gray);
  margin-bottom: 12px;
}

.page-products .card-sample__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .card-sample__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fog);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .88rem;
}

.page-products .card-sample__min {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--night-blue);
}

.page-products .card-sample__dot {
  width: 12px;
  height: 16px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.page-products .card-sample__dot.dot--yellow {
  background: var(--signal-yellow);
}

.page-products .card-sample__dot.dot--red {
  background: var(--blood-red);
}

.page-products .cards-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.page-products .cards-points li {
  position: relative;
  padding-left: 22px;
  line-height: 1.7;
  font-size: .9rem;
}

.page-products .cards-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 9px;
  height: 9px;
  background: var(--champion-gold);
  transform: rotate(12deg);
}

.page-products .products-distribution {
  color: var(--paper-white);
}

.page-products .distribution-layout {
  display: grid;
  gap: 32px;
}

.page-products .distribution-vis img {
  width: 100%;
  border-radius: var(--products-radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

.page-products .distribution-body h3 {
  color: var(--paper-white);
}

.page-products .distribution-body p {
  line-height: 1.8;
  font-size: .94rem;
  margin-bottom: 16px;
  max-width: 60em;
}

.page-products .distribution-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}

.page-products .distribution-tags li {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--paper-white);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
}

.page-products .distribution-extra {
  font-size: .85rem;
  color: var(--signal-yellow);
}

.page-products .products-league {
  color: var(--paper-white);
  position: relative;
}

.page-products .league-intro {
  max-width: 62em;
  line-height: 1.85;
  margin-bottom: 30px;
}

.page-products .league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(245, 245, 240, .16);
  padding-bottom: 8px;
}

.page-products .league-tab {
  color: var(--paper-white);
  text-decoration: none;
  background: rgba(245, 245, 240, .08);
  border: 1px solid rgba(245, 245, 240, .14);
  padding: 8px 14px;
  border-radius: 22px;
  font-family: var(--font-body);
  font-size: .86rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s, transform .2s;
}

.page-products .league-tab__code {
  font-family: var(--font-mono);
  color: var(--champion-gold);
  font-size: .78rem;
}

.page-products .league-tab:hover,
.page-products .league-tab:focus-visible {
  border-color: var(--champion-gold);
  transform: translateY(-2px);
}

.page-products .league-panels {
  display: grid;
  gap: 14px;
}

.page-products .league-panel {
  scroll-margin-top: calc(var(--header-height) + 20px);
  background: rgba(11, 30, 54, .62);
  border: 1px solid rgba(245, 245, 240, .14);
  border-radius: var(--products-radius);
  padding: 16px;
}

.page-products .league-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid rgba(245, 245, 240, .14);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.page-products .league-panel__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 900;
  font-style: italic;
  color: var(--signal-yellow);
}

.page-products .league-panel__head span {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--fog);
}

.page-products .mini-matches {
  display: grid;
  gap: 8px;
}

.page-products .mini-match {
  display: grid;
  grid-template-columns: 56px 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 9px 12px;
}

.page-products .mini-match__state {
  font-family: var(--font-mono);
  color: var(--data-green);
  font-size: .74rem;
  width: 38px;
}

.page-products .mini-match__team {
  font-size: .86rem;
  color: var(--paper-white);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-products .mini-match__score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--champion-gold);
  background: rgba(0, 0, 0, .3);
  padding: 4px 10px;
  border-radius: 6px;
}

.page-products .league-note {
  margin-top: 20px;
  font-size: .86rem;
  color: var(--champion-gold);
  line-height: 1.7;
}

.page-products .league-banner {
  margin-top: 24px;
}

.page-products .league-banner img {
  width: 100%;
  border-radius: var(--products-radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .36);
}

.page-products .products-download {
  color: var(--paper-white);
  position: relative;
  overflow: hidden;
}

.page-products .products-download::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border: 44px solid rgba(27, 122, 61, .22);
  border-radius: 50%;
  pointer-events: none;
}

.page-products .products-download .container {
  position: relative;
  z-index: 1;
}

.page-products .download-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-products .download-phone {
  display: flex;
  justify-content: center;
}

.page-products .phone-frame {
  width: 200px;
  height: 400px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .5));
}

.page-products .download-body h3 {
  font-family: var(--font-editorial);
  font-size: 1.38rem;
  margin: 0 0 14px;
}

.page-products .download-body p {
  line-height: 1.8;
  font-size: .93rem;
  color: var(--fog);
  margin: 0 0 16px;
}

.page-products .download-spec {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  background: rgba(245, 245, 240, .06);
  border-radius: var(--products-radius);
}

.page-products .download-spec li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(245, 245, 240, .09);
  font-size: .9rem;
}

.page-products .download-spec li:last-child {
  border-bottom: 0;
}

.page-products .download-spec span {
  color: var(--fog);
}

.page-products .download-spec strong {
  font-family: var(--font-mono);
  color: var(--champion-gold);
}

.page-products .download-qr {
  margin: 14px 0;
}

.page-products .download-qr summary {
  list-style: none;
  cursor: pointer;
}

.page-products .download-qr summary::-webkit-details-marker {
  display: none;
}

.page-products .download-qr__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--paper-white);
  color: var(--slate-gray);
  padding: 14px;
  border-radius: var(--products-radius);
  margin-top: 12px;
  flex-wrap: wrap;
}

.page-products .qr-code {
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
  border-radius: 6px;
}

.page-products .download-qr__inner p {
  color: var(--slate-gray);
  margin: 0;
  font-size: .86rem;
  line-height: 1.7;
}

.page-products .download-note {
  font-size: .82rem;
  color: var(--fog);
  margin-bottom: 18px;
}

.page-products .download-install-shot {
  margin-top: 36px;
}

.page-products .download-install-shot img {
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--products-radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
}

.page-products .products-updates {
  color: var(--slate-gray);
}

.page-products .updates-layout {
  display: grid;
  gap: 32px;
}

.page-products .updates-rhythm p {
  color: var(--slate-gray);
  line-height: 1.8;
  font-size: .94rem;
}

.page-products .rhythm-strip {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.page-products .rhythm-strip__item {
  background: var(--night-blue);
  color: var(--paper-white);
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .9rem;
  border-left: 4px solid var(--blood-red);
}

.page-products .rhythm-strip__item strong {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--champion-gold);
  line-height: 1.1;
}

.page-products .updates-trust {
  background: var(--paper-white);
  border: 1px solid var(--fog);
  border-radius: var(--products-radius);
  padding: 24px;
}

.page-products .updates-trust h3 {
  margin: 0 0 16px;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  color: var(--carbon-black);
}

.page-products .trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .trust-list li {
  padding-left: 22px;
  position: relative;
  font-size: .9rem;
  line-height: 1.6;
}

.page-products .trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 10px;
  height: 10px;
  background: var(--field-green);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.page-products .updates-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-products .products-support {
  text-align: center;
  color: var(--paper-white);
}

.page-products .products-support h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.8rem;
  margin: 0 0 12px;
}

.page-products .products-support p {
  color: var(--paper-white);
  opacity: .92;
  max-width: 42em;
  margin: 0 auto 26px;
  line-height: 1.8;
}

.page-products .support-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

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

  .page-products .download-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (min-width: 900px) {
  .page-products .function-keyboard {
    grid-template-columns: repeat(5, 1fr);
  }

  .page-products .cards-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-products .distribution-layout {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

  .page-products .updates-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

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

  .page-products .download-install-shot img {
    max-width: 360px;
  }
}

@media (min-width: 1200px) {
  .page-products .league-panels {
    grid-template-columns: repeat(3, 1fr);
  }
}
