.page-products {
  --pd-gap: 24px;
  background: var(--bg);
  color: var(--gray);
  font-family: var(--font-body);
  overflow-x: clip;
  padding: 28px 20px 72px;
  position: relative;
}

.page-products::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.2;
}

.page-products > * {
  position: relative;
  z-index: 1;
}

.page-products .breadcrumbs {
  max-width: var(--width-page);
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  padding: 8px 0;
}

.page-products .section {
  padding: 64px 0 24px;
}

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

.page-products .section-index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 4px 12px;
}

.page-products .section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.1;
  color: var(--white);
  text-transform: uppercase;
  margin: 8px 0 0;
}

.page-products .section-desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 60ch;
}

.page-products .btn {
  display: inline-block;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-products .btn-accent {
  background: var(--neon);
  color: var(--bg);
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.3);
}

.page-products .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.5);
}

.page-products .btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

.page-products .btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-products .stat {
  border-top: 1px solid var(--line);
  padding: 12px 0 4px;
}

.page-products .stat-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.page-products .stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--white);
  margin-top: 6px;
}

.page-products .stat--accent {
  color: var(--neon);
}

.page-products .stat--cyan {
  color: var(--cyan);
}

.page-products .dash-list {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.page-products .dash-list li {
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-products .dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.pd-hero {
  display: grid;
  gap: 44px;
  max-width: var(--width-page);
  margin: 0 auto;
  padding: 56px 0 24px;
}

.pd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 16px;
  color: var(--neon);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pd-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon);
  animation: pd-pulse 2s infinite;
}

.pd-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 11vw, 72px);
  line-height: 0.98;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 16px 0 20px;
}

.pd-hero__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 56ch;
  border-left: 3px solid var(--cyan);
  padding-left: 18px;
}

.pd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.pd-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin: 40px 0 0;
  padding: 0;
}

.pd-hero__device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}

.pd-phone {
  position: relative;
  width: 270px;
  background: #06090e;
  border: 6px solid #0e141c;
  border-radius: 40px;
  padding: 14px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--line),
    0 0 60px rgba(0, 229, 255, 0.08);
  transform: rotate(2deg);
}

.pd-phone__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 20px;
  background: #0e141c;
  border-radius: 999px;
  z-index: 2;
}

.pd-phone__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.pd-phone__ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px dashed var(--cyan);
  opacity: 0.36;
  z-index: 0;
  animation: pd-spin 60s linear infinite;
}

.pd-overview {
  max-width: var(--width-page);
  margin: 0 auto;
}

.pd-overview__grid {
  display: grid;
  gap: 36px;
}

.pd-overview__intro p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
}

.pd-overview__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pd-mini-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px 14px 16px;
  min-height: 104px;
}

.pd-mini-card::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}

.pd-mini-card--accent::after {
  border-color: rgba(57, 255, 20, 0.35);
}

.pd-mini-card--cyan::after {
  border-color: rgba(0, 229, 255, 0.35);
}

.pd-mini-card__key {
  display: block;
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pd-mini-card__val {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--white);
}

.pd-mini-card--accent .pd-mini-card__val {
  color: var(--neon);
}

.pd-mini-card--cyan .pd-mini-card__val {
  color: var(--cyan);
}

.pd-features {
  max-width: var(--width-page);
  margin: 0 auto;
  scroll-margin-top: 80px;
}

.pd-features__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.pd-tab {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--gray);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.pd-tab:hover {
  color: var(--white);
  border-color: var(--gray);
}

.pd-panel {
  display: none;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.pd-panel--active {
  display: grid;
}

.pd-panels:has(.pd-panel:target) .pd-panel--active:not(:target) {
  display: none;
}

.pd-panel:target {
  display: grid;
}

.pd-features:has(#tab-score:target) a[href="#tab-score"],
.pd-features:has(#tab-data:target) a[href="#tab-data"],
.pd-features:has(#tab-calendar:target) a[href="#tab-calendar"],
.pd-features:has(#tab-cards:target) a[href="#tab-cards"],
.pd-features:has(#tab-lineup:target) a[href="#tab-lineup"] {
  background: rgba(57, 255, 20, 0.07);
  border-color: var(--neon);
  color: var(--neon);
}

.pd-panel__body h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 12px;
}

.pd-panel__body p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--gray);
}

.pd-panel__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.pd-scoreboard {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
}

.pd-scoreboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--neon);
  box-shadow: 0 0 18px var(--neon);
  opacity: 0.8;
}

.pd-scoreboard__live {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon);
  animation: pd-pulse 1.6s infinite;
}

.pd-scoreboard__match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-scoreboard__team {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--white);
  text-transform: uppercase;
}

.pd-scoreboard__num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--neon);
  line-height: 1;
}

.pd-scoreboard__dash {
  color: var(--gray);
  font-size: 20px;
}

.pd-scoreboard__events {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.pd-scoreboard__event {
  font-size: 14px;
  color: var(--gray);
  padding-left: 12px;
  position: relative;
}

.pd-scoreboard__event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  transform: translateY(-50%);
}

.pd-scoreboard__meta {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-transform: uppercase;
}

.pd-cardlog {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.pd-cardlog__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.pd-cardlog__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pd-cardlog__min {
  font-family: var(--font-display);
  color: var(--cyan);
  min-width: 44px;
}

.pd-cardlog__type {
  display: inline-block;
  width: 12px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}

.pd-cardlog__type--yellow {
  background: var(--warn);
}

.pd-cardlog__type--red {
  background: #ff3b30;
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.6);
}

.pd-cardlog__player {
  color: var(--white);
}

.pd-cardlog__team {
  margin-left: auto;
  color: var(--gray);
  font-size: 13px;
}

.pd-version {
  max-width: var(--width-page);
  margin: 0 auto;
}

.pd-version__grid {
  display: grid;
  gap: 14px;
}

.pd-version__card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px 22px 20px;
}

.pd-version__num {
  position: absolute;
  top: 10px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--line);
  opacity: 0.6;
}

.pd-version__card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 10px;
  position: relative;
}

.pd-version__card p {
  position: relative;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
}

.pd-version__path {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  border-left: 1px solid var(--line);
}

.pd-version__step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 16px 20px;
  position: relative;
  font-size: 15px;
  color: var(--gray);
}

.pd-version__step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  background: var(--line);
  border-radius: 50%;
}

.pd-version__step--now::before {
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
}

.pd-version__step-tag {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 18px;
  min-width: 34px;
}

.pd-version__step--now .pd-version__step-tag {
  color: var(--neon);
}

.pd-version__foot {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.pd-download {
  max-width: var(--width-page);
  margin: 0 auto;
  scroll-margin-top: 80px;
}

.pd-download__grid {
  display: grid;
  gap: 28px;
}

.pd-download__media {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  text-align: center;
}

.pd-download__media img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--radius-card);
}

.pd-download__hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray);
}

.pd-download__info p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.pd-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pd-download__note {
  font-size: 13px;
  color: var(--gray);
  margin-top: 16px;
}

@keyframes pd-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes pd-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-phone__ring,
  .pd-hero__badge-dot,
  .pd-scoreboard__live {
    animation: none !important;
  }
}

@media (min-width: 700px) {
  .page-products {
    padding: 36px 28px 96px;
  }

  .pd-version__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pd-version__path {
    flex-direction: row;
    border-left: 0;
    gap: 24px;
  }

  .pd-version__step {
    padding: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
  }

  .pd-version__step::before {
    left: 0;
    top: -5px;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .pd-hero {
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    padding-top: 72px;
  }

  .pd-overview__grid {
    grid-template-columns: 1fr 380px;
    gap: 64px;
  }

  .pd-overview__cards {
    grid-template-columns: 1fr;
  }

  .pd-panel {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .pd-download__grid {
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
  }
}
