.page-products {
  --prod-gap: clamp(16px, 2.6vw, 28px);
  --prod-soft-cyan: rgba(37, 230, 200, 0.12);
  --prod-soft-orange: rgba(255, 106, 42, 0.14);
}

.page-products .prod-hero {
  padding: clamp(18px, 3vw, 30px) 0 clamp(34px, 5vw, 60px);
  border-bottom: 2px solid var(--line);
}

.page-products .prod-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  margin-top: clamp(18px, 3vw, 28px);
}

.page-products .prod-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  transform: rotate(-0.6deg);
  transform-origin: left center;
}

.page-products .prod-lede {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: rgba(236, 243, 246, 0.86);
}

.page-products .prod-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-products .prod-modlist {
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 2px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-products .prod-modlist li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--steel);
}

.page-products .mod-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  flex: 0 0 auto;
}

.page-products .prod-hero-visual {
  margin: 0;
}

.page-products .prod-screen {
  position: relative;
  padding: 12px;
  border: 2px solid var(--line);
  background: var(--ink-2);
  transform: skewY(-2deg);
  box-shadow: 12px 12px 0 var(--prod-soft-cyan);
  overflow: hidden;
}

.page-products .prod-screen::before {
  content: "";
  position: absolute;
  top: -32%;
  left: -10%;
  right: -10%;
  height: 62%;
  background: radial-gradient(closest-side, rgba(37, 230, 200, 0.24), transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.page-products .prod-screen img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid rgba(44, 54, 64, 0.9);
  object-fit: cover;
}

.page-products .media-caption {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--steel);
}

.page-products .section-head {
  max-width: 62ch;
}

.page-products .prod-dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--prod-gap);
  margin-top: clamp(20px, 3vw, 30px);
}

.page-products .prod-dl-card {
  position: relative;
  padding: 22px 20px 24px;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 8px 8px 0 rgba(37, 230, 200, 0.1);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.page-products .prod-dl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 4px;
  background: var(--cyan);
}

.page-products .prod-dl-card:nth-child(2)::before {
  background: var(--orange);
}

.page-products .prod-dl-card:nth-child(3)::before {
  background: var(--lime);
}

.page-products .prod-dl-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 8px 10px 0 rgba(37, 230, 200, 0.2);
}

.page-products .prod-plate {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
  opacity: 0.9;
}

.page-products .prod-dl-card h3 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-products .prod-dl-text {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(236, 243, 246, 0.8);
}

.page-products .prod-dl-foot {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
  font-size: 14px;
  line-height: 1.75;
  color: var(--steel);
}

.page-products .prod-tree-section {
  border-top: 2px solid var(--line);
}

.page-products .prod-tree {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(20px, 3vw, 30px);
}

.page-products .tree-root {
  position: relative;
  padding: 22px 20px;
  border: 2px solid var(--cyan);
  background: linear-gradient(155deg, rgba(37, 230, 200, 0.16), rgba(21, 26, 31, 0.94) 68%);
  box-shadow: 8px 8px 0 var(--prod-soft-orange);
}

.page-products .tree-root-tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-products .tree-root-num {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 58px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
}

.page-products .tree-root h3 {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
}

.page-products .tree-root p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(236, 243, 246, 0.82);
}

.page-products .tree-branches {
  list-style: none;
  position: relative;
  margin: 26px 0 0 6px;
  padding: 0;
}

.page-products .tree-branches::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(37, 230, 200, 0.12));
}

.page-products .tree-branch {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px dashed rgba(44, 54, 64, 0.95);
}

.page-products .tree-branch:last-child {
  border-bottom: 0;
}

.page-products .tree-branch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 31px;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  opacity: 0.75;
}

.page-products .tree-branch::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 27px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border: 2px solid var(--cyan);
  border-radius: 50%;
}

.page-products .tree-branch h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-products .tree-branch p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(236, 243, 246, 0.78);
}

.page-products .tree-link {
  display: inline-block;
  position: relative;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  padding-bottom: 2px;
}

.page-products .tree-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}

.page-products .tree-link:hover::after,
.page-products .tree-link:focus-visible::after {
  transform: scaleX(1);
}

.page-products .prod-econ-section,
.page-products .prod-roster-section,
.page-products .prod-replay-section,
.page-products .prod-changes-section,
.page-products .prod-compat-section {
  border-top: 2px solid var(--line);
}

.page-products .prod-econ {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}

.page-products .prod-figure-frame {
  padding: 10px;
  border: 2px solid var(--line);
  background: var(--ink-2);
  box-shadow: 8px 8px 0 rgba(37, 230, 200, 0.1);
}

.page-products .prod-figure-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .prod-figure-frame--tilt {
  transform: skewY(-1.6deg);
}

.page-products .prod-tab-demo {
  margin-top: 18px;
  padding: 14px 14px 16px;
  border: 2px solid var(--line);
  background: var(--panel);
}

.page-products .seg-tabs,
.page-products .win-tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-products .win-tabs {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(44, 54, 64, 0.95);
}

.page-products .seg-tab {
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
  transition: color 140ms var(--ease), border-color 140ms var(--ease), background 140ms var(--ease);
}

.page-products .seg-tab.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}

.page-products .seg-tab:hover {
  border-color: var(--cyan);
  color: var(--paper);
}

.page-products .seg-tab.is-active:hover {
  color: var(--ink);
}

.page-products .win-tab {
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--steel);
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}

.page-products .win-tab.is-active {
  border-color: var(--orange);
  color: var(--orange);
}

.page-products .win-tab:hover {
  border-color: var(--orange);
  color: var(--paper);
}

.page-products .prod-econ-copy h2,
.page-products .prod-roster-copy h2,
.page-products .prod-changes-copy h2 {
  margin-top: 10px;
}

.page-products .prod-econ-copy p,
.page-products .prod-roster-copy p,
.page-products .prod-changes-copy p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(236, 243, 246, 0.84);
}

.page-products .prod-point-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .prod-point-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--steel);
}

.page-products .prod-point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--orange);
}

.page-products .prod-roster {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 42px);
  align-items: center;
}

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

.page-products .prod-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
}

.page-products .tl-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  background: var(--ink-2);
  transition: border-color 150ms var(--ease), background 150ms var(--ease), transform 150ms var(--ease);
}

.page-products .tl-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--line);
  transition: background 150ms var(--ease);
}

.page-products .tl-item:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: var(--panel);
}

.page-products .tl-item:hover::after {
  background: var(--orange);
}

.page-products .tl-idx {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--lime);
  line-height: 1.2;
}

.page-products .tl-name {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--paper);
}

.page-products .tl-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--steel);
}

.page-products .prod-replay-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(20px, 3vw, 30px);
}

.page-products .prod-replay-copy p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(236, 243, 246, 0.84);
}

.page-products .prod-changes {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.5vw, 40px);
  align-items: start;
}

.page-products .prod-changes-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-products .prod-mini-card {
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-left: 4px solid var(--magenta);
  background: var(--panel);
  transition: border-color 150ms var(--ease), transform 150ms var(--ease);
}

.page-products .prod-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--magenta);
}

.page-products .mini-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--magenta);
}

.page-products .mini-text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(236, 243, 246, 0.82);
}

.page-products .prod-compat {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  margin-top: clamp(20px, 3vw, 30px);
}

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

.page-products .prod-compat-copy > p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(236, 243, 246, 0.84);
}

.page-products .prod-faq-item {
  border: 2px solid var(--line);
  background: var(--ink-2);
  margin-bottom: 10px;
  transition: border-color 150ms var(--ease);
}

.page-products .prod-faq-item[open] {
  border-color: var(--cyan);
}

.page-products .prod-faq-item summary {
  position: relative;
  padding: 13px 40px 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}

.page-products .prod-faq-item summary::-webkit-details-marker {
  display: none;
}

.page-products .prod-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
}

.page-products .prod-faq-item[open] summary::after {
  content: "–";
  color: var(--orange);
}

.page-products .prod-faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--steel);
}

.page-products .prod-outro {
  border-top: 2px solid var(--line);
}

.page-products .prod-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: clamp(24px, 4vw, 40px);
  border: 2px solid var(--line);
  background:
    linear-gradient(120deg, rgba(37, 230, 200, 0.12), transparent 55%),
    var(--ink-2);
  box-shadow: 10px 10px 0 rgba(255, 106, 42, 0.12);
}

.page-products .prod-cta h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.24;
}

.page-products .prod-cta p {
  margin: 12px 0 0;
  max-width: 58ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(236, 243, 246, 0.82);
}

.page-products .prod-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

@media (min-width: 560px) {
  .page-products .prod-modlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

@media (min-width: 900px) {
  .page-products .prod-tree {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    align-items: center;
    gap: 0;
  }

  .page-products .tree-branches {
    margin: 0 0 0 34px;
  }

  .page-products .tree-branch {
    padding: 18px 0 18px 34px;
  }

  .page-products .tree-branch::before {
    width: 26px;
  }
}

@media (min-width: 960px) {
  .page-products .prod-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 56px);
  }

  .page-products .prod-econ {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }

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

  .page-products .prod-replay-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
  }

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

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

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

  .page-products .prod-cta-links {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .prod-dl-card,
  .page-products .tl-item,
  .page-products .prod-mini-card,
  .page-products .tree-link::after {
    transition: none;
  }

  .page-products .prod-dl-card:hover,
  .page-products .tl-item:hover,
  .page-products .prod-mini-card:hover {
    transform: none;
  }

  .page-products .prod-hero h1,
  .page-products .prod-screen,
  .page-products .prod-figure-frame--tilt {
    transform: none;
  }
}
