.page-products {
  --prod-glow: rgba(0, 255, 135, 0.14);
  --prod-orange-glow: rgba(255, 107, 0, 0.18);
}

.page-products .prod-cover {
  position: relative;
  overflow: hidden;
  padding: 42px 0 36px;
  border-bottom: 1px solid var(--grid-line);
  background:
    radial-gradient(circle at 84% 16%, var(--prod-glow), transparent 34%),
    radial-gradient(circle at 8% 84%, var(--prod-orange-glow), transparent 30%),
    linear-gradient(135deg, rgba(18, 26, 58, 0.92), rgba(11, 16, 38, 0.98));
}

.page-products .prod-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 59, 92, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 59, 92, 0.3) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.9), transparent 70%);
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.9), transparent 70%);
  pointer-events: none;
}

.page-products .prod-breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

.page-products .prod-breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.page-products .prod-breadcrumb a:hover,
.page-products .prod-breadcrumb a:focus {
  color: var(--neon-green);
}

.page-products .prod-breadcrumb span[aria-current="page"] {
  color: var(--neon-green);
}

.page-products .prod-cover-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.page-products .prod-cover-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--electric-orange);
}

.page-products .prod-cover-main h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 50px);
  line-height: 1.14;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.page-products .prod-cover-lead {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

.page-products .prod-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-products .prod-cover-tags .tag {
  background: rgba(18, 26, 58, 0.8);
  border: 1px solid var(--grid-line);
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.page-products .prod-cover-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-products .prod-stat {
  padding: 18px 14px;
  background: linear-gradient(160deg, rgba(18, 26, 58, 0.95), rgba(11, 16, 38, 0.7));
  border: 1px solid var(--grid-line);
  border-left: 2px solid var(--neon-green);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-products .prod-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.1;
  color: var(--neon-green);
}

.page-products .prod-stat span {
  display: block;
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 12px;
  font-family: var(--font-mono);
}

.page-products .prod-cover-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 11px 20px;
  background: var(--neon-green);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 0 18px var(--prod-glow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.page-products .prod-cover-cta:hover,
.page-products .prod-cover-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 255, 135, 0.3);
}

.page-products .prod-tabs {
  padding: 48px 0 64px;
}

.page-products .prod-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

.page-products .prod-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--grid-line);
  padding-bottom: 10px;
}

.page-products .prod-tab-btn {
  cursor: pointer;
  padding: 10px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--grid-line);
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.page-products .prod-tab-btn:hover {
  border-color: var(--neon-green);
  color: var(--text-main);
}

.page-products .prod-tab-panel {
  display: none;
}

.page-products #prod-tab-functions:checked ~ .prod-panel-functions,
.page-products #prod-tab-version:checked ~ .prod-panel-version,
.page-products #prod-tab-device:checked ~ .prod-panel-device,
.page-products #prod-tab-download:checked ~ .prod-panel-download {
  display: block;
  animation: prodPanelIn 0.35s var(--ease-out);
}

.page-products #prod-tab-functions:checked ~ .prod-tab-bar label[for="prod-tab-functions"],
.page-products #prod-tab-version:checked ~ .prod-tab-bar label[for="prod-tab-version"],
.page-products #prod-tab-device:checked ~ .prod-tab-bar label[for="prod-tab-device"],
.page-products #prod-tab-download:checked ~ .prod-tab-bar label[for="prod-tab-download"] {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--bg-deep);
  font-weight: 700;
}

@keyframes prodPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-products .prod-section {
  margin-bottom: 48px;
}

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

.page-products .prod-section-head .section-index {
  display: block;
  color: var(--electric-orange);
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.page-products .prod-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 900;
  color: var(--text-main);
}

.page-products .prod-section-head p {
  margin: 10px 0 0;
  max-width: 640px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.page-products .prod-func-showcase {
  display: grid;
  gap: 24px;
  align-items: center;
  margin: 0 0 36px;
}

.page-products .prod-showcase-figure {
  margin: 0;
  border: 1px solid var(--grid-line);
  background: var(--bg-panel);
  padding: 10px;
}

.page-products .prod-showcase-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .prod-showcase-figure figcaption,
.page-products .prod-v4-figure figcaption,
.page-products .prod-device-figure figcaption,
.page-products .prod-download-figure figcaption {
  padding-top: 10px;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

.page-products .prod-showcase-text {
  padding: 12px 0;
}

.page-products .prod-showcase-text h3,
.page-products .prod-v4-content h3,
.page-products .prod-upgrade-steps h3,
.page-products .prod-download-text h3 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text-main);
}

.page-products .prod-showcase-text > p {
  margin: 0 0 16px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.page-products .prod-arch-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--grid-line);
}

.page-products .prod-arch-list div {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grid-line);
}

.page-products .prod-arch-list dt {
  flex: 0 0 72px;
  margin: 0;
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.page-products .prod-arch-list dd {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-products .prod-func-grid {
  display: grid;
  gap: 16px;
  margin: 0 0 36px;
}

.page-products .prod-func-card {
  position: relative;
  padding: 20px;
  background: linear-gradient(170deg, var(--bg-panel), rgba(11, 16, 38, 0.75));
  border: 1px solid var(--grid-line);
  border-top: 2px solid var(--neon-green);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.page-products .prod-func-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 59, 92, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 59, 92, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.page-products .prod-func-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-green);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.page-products .prod-func-card:hover::before {
  opacity: 1;
}

.page-products .prod-func-index {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  background: rgba(0, 255, 135, 0.12);
  border: 1px solid rgba(0, 255, 135, 0.28);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.page-products .prod-func-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
}

.page-products .prod-func-spec {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--grid-line);
}

.page-products .prod-func-spec div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--grid-line);
}

.page-products .prod-func-spec dt {
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-products .prod-func-spec dd {
  margin: 0;
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.page-products .prod-func-card > p {
  margin: 0 0 14px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.75;
}

.page-products .prod-func-detail {
  border-top: 1px solid var(--grid-line);
  padding-top: 12px;
}

.page-products .prod-func-detail summary {
  cursor: pointer;
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.page-products .prod-func-detail summary:hover,
.page-products .prod-func-detail summary:focus {
  color: var(--electric-orange);
}

.page-products .prod-func-detail p {
  margin: 10px 0 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

.page-products .prod-v4-panel {
  display: grid;
  gap: 24px;
  padding: 26px;
  background:
    linear-gradient(150deg, rgba(107, 31, 58, 0.92), rgba(45, 27, 78, 0.84)),
    var(--garnet);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.page-products .prod-v4-figure {
  margin: 0;
  border: 1px solid rgba(230, 240, 255, 0.16);
  background: rgba(11, 16, 38, 0.6);
  padding: 10px;
}

.page-products .prod-v4-figure img,
.page-products .prod-device-figure img,
.page-products .prod-download-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-products .prod-v4-content .panel-label,
.page-products .prod-upgrade-steps .panel-label,
.page-products .prod-download-text .panel-label {
  color: var(--electric-orange);
}

.page-products .prod-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: prodStep;
}

.page-products .prod-step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(230, 240, 255, 0.14);
}

.page-products .prod-step-list li:last-child {
  border-bottom: none;
}

.page-products .prod-step-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-green);
}

.page-products .prod-step-list p {
  margin: 0;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.7;
}

.page-products .prod-version-banner {
  margin: 0 0 24px;
  border: 1px solid var(--grid-line);
  background: var(--bg-panel);
  overflow: hidden;
}

.page-products .prod-version-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .prod-version-meta {
  display: grid;
  gap: 18px;
  padding: 20px;
  margin-bottom: 32px;
  border: 1px solid var(--grid-line);
  border-left: 3px solid var(--neon-green);
  background: rgba(18, 26, 58, 0.6);
}

.page-products .prod-version-meta-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.page-products .prod-meta-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

.page-products .prod-meta-vers {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--neon-green);
  line-height: 1;
}

.page-products .prod-version-meta-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .prod-version-meta-list div {
  padding: 10px 12px;
  background: rgba(11, 16, 38, 0.55);
  border: 1px solid var(--grid-line);
}

.page-products .prod-version-meta-list dt {
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-products .prod-version-meta-list dd {
  margin: 4px 0 0;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.page-products .prod-timeline {
  position: relative;
  max-height: 720px;
  overflow-y: auto;
  padding: 20px 4px;
  border: 1px solid var(--grid-line);
  background: linear-gradient(180deg, rgba(18, 26, 58, 0.92), rgba(11, 16, 38, 0.98));
}

.page-products .prod-tl-svg {
  display: none;
}

.page-products .prod-tl-item {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
}

.page-products .prod-tl-item:last-child {
  margin-bottom: 0;
}

.page-products .prod-tl-item::before {
  display: none;
}

.page-products .prod-tl-card {
  padding: 18px;
  background: linear-gradient(160deg, rgba(18, 26, 58, 0.95), rgba(11, 16, 38, 0.82));
  border: 1px solid var(--grid-line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.page-products .prod-tl-card:hover {
  border-color: var(--neon-green);
  transform: translateX(3px);
}

.page-products .prod-tl-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.page-products .prod-tl-version {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--neon-green);
  line-height: 1;
}

.page-products .prod-tl-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--electric-orange);
}

.page-products .prod-tl-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
}

.page-products .prod-tl-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.75;
}

.page-products .prod-device-layout {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.page-products .prod-device-figure {
  margin: 0;
  border: 1px solid var(--grid-line);
  background: var(--bg-panel);
  padding: 10px;
}

.page-products .prod-device-matrix {
  padding: 20px;
  background: rgba(15, 76, 92, 0.72);
  border: 1px solid var(--grid-line);
}

.page-products .prod-device-matrix .panel-label {
  color: var(--neon-green);
}

.page-products .prod-device-row {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(230, 240, 255, 0.14);
}

.page-products .prod-device-row:last-child {
  border-bottom: none;
}

.page-products .prod-device-row span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.page-products .prod-device-row strong {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--neon-green);
}

.page-products .prod-device-row em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.page-products .prod-upgrade-steps {
  padding: 24px;
  background: rgba(18, 26, 58, 0.6);
  border: 1px solid var(--grid-line);
}

.page-products .prod-download-layout {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(150deg, rgba(45, 27, 78, 0.88), rgba(11, 16, 38, 0.9));
  border: 1px solid var(--grid-line);
}

.page-products .prod-download-figure {
  margin: 0;
  text-align: center;
}

.page-products .prod-download-figure img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 24px var(--prod-glow);
}

.page-products .prod-download-figure figcaption {
  margin-top: 10px;
}

.page-products .prod-links-banner {
  padding: 40px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--grid-line);
}

.page-products .prod-links-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.page-products .prod-links-text {
  width: 100%;
}

.page-products .prod-links-text p {
  margin: 8px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .page-products .prod-cover {
    padding: 56px 0 44px;
  }

  .page-products .prod-cover-grid {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 40px;
  }

  .page-products .prod-tabs {
    padding: 64px 0 80px;
  }

  .page-products .prod-func-showcase {
    grid-template-columns: 500px 1fr;
    gap: 36px;
  }

  .page-products .prod-func-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-products .prod-v4-panel {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px;
  }

  .page-products .prod-version-meta {
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    align-items: center;
  }

  .page-products .prod-version-meta-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .prod-tl-svg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .page-products .prod-timeline {
    padding: 32px 20px;
  }

  .page-products .prod-tl-item {
    width: 44%;
    margin-bottom: 46px;
  }

  .page-products .prod-tl-item:nth-child(even) {
    margin-right: auto;
    margin-left: 0;
  }

  .page-products .prod-tl-item:nth-child(odd) {
    margin-left: auto;
    margin-right: 0;
  }

  .page-products .prod-tl-item:nth-child(even)::before {
    content: "";
    display: block;
    position: absolute;
    top: 30px;
    left: calc(100% + 14px);
    width: 12px;
    height: 12px;
    background: var(--neon-green);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.5);
  }

  .page-products .prod-tl-item:nth-child(odd)::before {
    content: "";
    display: block;
    position: absolute;
    top: 30px;
    right: calc(100% + 14px);
    width: 12px;
    height: 12px;
    background: var(--neon-green);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.5);
  }

  .page-products .prod-tl-card:hover {
    transform: translateY(-3px);
  }

  .page-products .prod-device-layout {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-products .prod-device-row {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
    align-items: center;
  }

  .page-products .prod-download-layout {
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 36px;
  }

  .page-products .prod-links-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .page-products .prod-links-text {
    width: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .page-products .prod-func-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .prod-func-showcase {
    grid-template-columns: 480px 1fr;
  }
}
