.page-products {
  background: var(--ink-900);
  color: var(--text-hi);
  padding-bottom: clamp(48px, 8vw, 120px);
}

.page-products .crumbs {
  padding-top: clamp(18px, 3vw, 32px);
}

/* ---------- Hero ---------- */
.page-products .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--ink-600);
}

.page-products .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 57%, rgba(0,229,255,0.055) 57%, rgba(0,229,255,0.055) 60%, transparent 60%),
    radial-gradient(ellipse at 84% 0%, rgba(123,97,255,0.12), transparent 58%);
  pointer-events: none;
}

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

.page-products .hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan-400);
  margin: 0 0 16px;
}

.page-products .hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  margin: 0 0 20px;
  max-width: 18em;
}

.page-products .hero__lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  color: var(--text-hi);
  opacity: 0.86;
  max-width: 62ch;
  margin: 0;
}

.page-products .hero__metrics {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink-600);
}

.page-products .hero__metrics li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 110px;
  padding: 16px 24px 16px 0;
  border-right: 1px solid var(--ink-600);
}

.page-products .hero__metrics li:not(:first-child) {
  padding-left: 24px;
}

.page-products .hero__metrics li:last-child {
  border-right: none;
}

.page-products .hero__metrics .mk {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mid);
}

.page-products .hero__metrics .mv {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--text-hi);
}

/* ---------- Shared headings ---------- */
.page-products h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 3.1vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  margin: 0 0 12px;
}

/* ---------- Workbench grid ---------- */
.page-products .workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 44px);
  padding-top: clamp(28px, 4vw, 52px);
}

@media (min-width: 960px) {
  .page-products .workbench {
    grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
  }
}

.page-products .side {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
  min-width: 0;
}

.page-products .tables {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vw, 56px);
  min-width: 0;
}

/* ---------- Version panel ---------- */
.page-products .vpanel {
  position: relative;
  background: linear-gradient(165deg, var(--ink-800), #0f2134 90%);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  overflow: hidden;
}

.page-products .vpanel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan-400), var(--violet-400) 58%, var(--orange-500));
}

.page-products .vpanel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mid);
  margin: 0 0 12px;
}

.page-products .vpanel__metric {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--cyan-400);
  margin: 0 0 16px;
}

.page-products .vpanel__note {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-mid);
  margin: 0 0 20px;
}

.page-products .vpanel__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink-600);
}

.page-products .vpanel__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 53, 80, 0.7);
  font-size: 13.5px;
}

.page-products .vpanel__list .k {
  color: var(--text-mid);
}

.page-products .vpanel__list .v {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-hi);
}

/* ---------- Downloads ---------- */
.page-products .downloads__lede {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  margin: 0 0 18px;
}

.page-products .downloads__pic {
  margin: 0 0 16px;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .dload {
  position: relative;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  padding: 16px 18px 16px 20px;
  margin-bottom: 12px;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}

.page-products .dload::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -1px;
  width: 0;
  background: var(--cyan-400);
  transition: width .24s var(--ease);
}

.page-products .dload:hover,
.page-products .dload:focus-within {
  border-color: rgba(0, 229, 255, 0.5);
  background: #142b41;
}

.page-products .dload:hover::before,
.page-products .dload:focus-within::before {
  width: 3px;
}

.page-products .dload:last-child {
  margin-bottom: 0;
}

.page-products .dload header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.page-products .dload__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--text-mid);
  color: var(--text-mid);
}

.page-products .dload__tag--orange {
  border-color: var(--orange-500);
  color: var(--orange-500);
}

.page-products .dload__tag--cyan {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.page-products .dload__tag--violet {
  border-color: var(--violet-400);
  color: var(--violet-400);
}

.page-products .dload__ver {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}

.page-products .dload h3 {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-hi);
  margin: 0 0 8px;
}

.page-products .dload p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text-mid);
  margin: 0 0 8px;
}

.page-products .dload__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.page-products .dload__link {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  transition: border-color .2s var(--ease);
}

.page-products .dload__link:hover {
  border-bottom-color: var(--cyan-400);
}

/* ---------- Table sections ---------- */
.page-products .vtable > header,
.page-products .atable > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-600);
}

.page-products .vtable > header p,
.page-products .atable > header p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-mid);
  margin: 0;
  max-width: 56ch;
}

@media (min-width: 720px) {
  .page-products .vtable > header,
  .page-products .atable > header {
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  }
}

.page-products .vtable__pic,
.page-products .atable__pic {
  margin: 0;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .vtable__pic img,
.page-products .atable__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .vtable__aside {
  margin: 16px 0 0;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .tbl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-products .tbl {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-products .tbl thead th {
  background: var(--ink-600);
  color: var(--cyan-400);
  text-align: left;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.22);
}

.page-products .tbl tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(28, 53, 80, 0.7);
  color: var(--text-hi);
  white-space: nowrap;
}

.page-products .tbl tbody tr:nth-child(even) {
  background: rgba(18, 38, 58, 0.55);
}

.page-products .tbl tbody tr:hover {
  background: rgba(0, 229, 255, 0.05);
}

.page-products .tbl tbody tr:last-child td {
  border-bottom: none;
}

.page-products .ver {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-hi);
}

.page-products .copy-btn {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border: 1px solid var(--ink-600);
  border-radius: 2px;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

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

.page-products .copy-btn[data-copied="true"] {
  color: var(--green-400);
  border-color: var(--green-400);
}

.page-products .status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.page-products .status--ok {
  background: var(--green-400);
  color: var(--ink-900);
}

.page-products .status--test {
  background: var(--orange-500);
  color: var(--ink-900);
}

.page-products .status--pending {
  background: rgba(155, 176, 194, 0.16);
  color: var(--text-mid);
  border: 1px solid rgba(155, 176, 194, 0.42);
}

.page-products .table-note {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.75;
  color: var(--text-mid);
}

.page-products .table-note a {
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
}

/* ---------- Flow ---------- */
.page-products .flow {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(44px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--ink-600);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.035), transparent 45%);
}

.page-products .flow__lede {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 62ch;
  margin: 6px 0 0;
}

.page-products .flow__pic {
  margin: clamp(24px, 3vw, 32px) 0 clamp(28px, 4vw, 40px);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .flow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 720px) {
  .page-products .flow-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 32px);
    position: relative;
  }

  .page-products .flow-steps::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan-400), var(--violet-400) 50%, var(--orange-500));
    opacity: 0.55;
  }
}

.page-products .flow-steps li {
  position: relative;
  min-width: 0;
}

.page-products .flow-steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cyan-400);
  background: var(--ink-900);
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-products .flow-steps h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-hi);
  margin: 0 0 8px;
}

.page-products .flow-steps p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-mid);
  margin: 0;
}

/* ---------- Issues ---------- */
.page-products .issues {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--ink-600);
}

.page-products .issues__lede {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
  margin: 6px 0 0;
  max-width: 62ch;
}

.page-products .issues__list {
  margin-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--ink-600);
}

.page-products .issue {
  border-bottom: 1px solid var(--ink-600);
}

.page-products .issue summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-hi);
}

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

.page-products .issue summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--cyan-400);
  transition: color .2s var(--ease);
}

.page-products .issue[open] summary::after {
  content: "\2212";
  color: var(--orange-500);
}

.page-products .issue p {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--text-mid);
  padding-right: clamp(0px, 4vw, 72px);
}

.page-products .issues__more {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: 14px;
  line-height: 1.82;
  color: var(--text-mid);
}

.page-products .issues__more a {
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
  .page-products .hero__metrics li {
    min-width: 96px;
    padding: 12px 16px 12px 0;
  }

  .page-products .hero__metrics li:not(:first-child) {
    padding-left: 16px;
  }

  .page-products .vpanel {
    padding: 20px 18px 16px;
  }

  .page-products .dload header {
    flex-wrap: wrap;
  }

  .page-products .issue summary {
    font-size: 15px;
    padding: 16px 0;
  }

  .page-products .tbl {
    min-width: 560px;
    font-size: 12.5px;
  }

  .page-products .tbl thead th,
  .page-products .tbl tbody td {
    padding: 11px 12px;
  }
}
