.page-products {
  width: 100%;
}

.page-products__crumb {
  max-width: var(--page-width);
  margin-inline: auto;
  padding: 1.25rem 1.25rem 0;
}

.page-products__jumplist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  max-width: var(--page-width);
  margin-inline: auto;
  padding: 1rem 1.25rem 0;
}

.page-products__jumplist a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-products__jumplist a:hover,
.page-products__jumplist a:focus-visible {
  color: var(--accent);
  border-color: var(--line-accent);
  background: var(--accent-soft);
}

.page-products__section {
  max-width: var(--page-width);
  margin-inline: auto;
  padding: 2.5rem 1.25rem;
}

.page-products__download,
.page-products__features,
.page-products__history,
.page-products__requirements,
.page-products__support {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-products__sectionhead {
  margin-bottom: 1.5rem;
}

.page-products__h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin: 0.35rem 0 0.5rem;
}

.page-products__sublede {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 72ch;
  margin: 0;
}

.page-products__cmdline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
  overflow-wrap: anywhere;
}

.page-products__dollar {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

.page-products__terminal {
  background: var(--navy-900);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(5, 13, 26, 0.55);
  overflow: hidden;
}

.page-products__titlebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(180deg, var(--navy-500), var(--navy-700));
  border-bottom: 1px solid var(--line);
}

.page-products__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.page-products__dot--red {
  background: var(--red);
}

.page-products__dot--blue {
  background: var(--data);
}

.page-products__dot--green {
  background: var(--accent);
}

.page-products__titletext {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-products__termbody {
  position: relative;
  padding: 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 13, 26, 0.9), var(--navy-900) 55%);
}

.page-products__heroimg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
}

.page-products__termbody::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(5, 13, 26, 0.88) 20%, rgba(11, 27, 58, 0.62) 75%, rgba(0, 230, 138, 0.08) 100%);
}

.page-products__termbody::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(245, 247, 250, 0.025) 0, rgba(245, 247, 250, 0.025) 1px, transparent 1px, transparent 3px);
}

.page-products__cmdline,
.page-products__output,
.page-products__herogrid,
.page-products__metrics {
  position: relative;
  z-index: 2;
}

.page-products__output {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  padding: 0.55rem 0.75rem;
  margin: 0 0 1.25rem;
}

.page-products__cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  vertical-align: -0.15em;
  margin-left: 0.25rem;
  background: var(--accent);
  animation: page-products-blink 1.2s steps(1) infinite;
}

@keyframes page-products-blink {
  50% { opacity: 0; }
}

.page-products__herogrid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-products__qrzone {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(245, 247, 250, 0.06);
  padding: 1.25rem;
}

.page-products__qr {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin-inline: auto;
  border: 4px solid var(--light);
  border-radius: 8px;
  background: var(--light);
  box-shadow: 0 0 0 1px var(--line-accent), 0 0 24px rgba(0, 230, 138, 0.25);
}

.page-products__qrnote {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0.85rem 0 0;
}

.page-products__herotext {
  min-width: 0;
}

.page-products__eyebrow {
  color: var(--accent);
}

.page-products__h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0.45rem 0 0.6rem;
}

.page-products__lede {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 1.25rem;
}

.page-products__platformtabs {
  margin-top: 1.5rem;
}

.page-products__tablist {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.page-products__tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-products__tab:hover,
.page-products__tab:focus-visible {
  color: var(--light);
}

.page-products__tab[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.page-products__tabpanel {
  padding: 1rem 0 0.25rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.page-products__panelhead {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0 0 0.5rem;
}

.page-products__panelnote {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0.7rem 0 0;
}

.page-products__installblock {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.8rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--accent);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(0, 230, 138, 0.28);
  white-space: normal;
  overflow-wrap: anywhere;
}

.page-products__installblock code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy-900);
}

.page-products__installblock .page-products__dollar {
  color: rgba(5, 13, 26, 0.65);
}

.page-products__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.page-products__metric {
  background: rgba(11, 27, 58, 0.92);
  padding: 1rem 0.5rem;
  text-align: center;
}

.page-products__metricnum {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1.2;
}

.page-products__metriclabel {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.page-products__matrix {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.page-products__module {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem;
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-products__module:hover {
  transform: translateY(-3px);
  border-color: var(--line-accent);
  background: rgba(11, 27, 58, 0.96);
}

.page-products__module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  border-radius: 0 0 4px 4px;
}

.page-products__modulehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-products__moduleidx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}

.page-products__moduletitle {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0;
}

.page-products__moduletext {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.page-products__modulemeta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
  margin: 0.4rem 0 0;
}

.page-products__matriximg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.page-products__creds {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 13, 26, 0.5);
  padding: 1.1rem 1.25rem;
}

.page-products__credslist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-products__credslist li {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
}

.page-products__credslabel {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--line-accent);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
  margin-right: 0.4rem;
}

.page-products__historygrid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.page-products__gitlist {
  display: grid;
  gap: 1.1rem;
}

.page-products__commit {
  border-left: 2px solid var(--line-strong);
  padding-left: 1.1rem;
  position: relative;
}

.page-products__commit::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 2px solid var(--accent);
}

.page-products__commit[open]::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 230, 138, 0.5);
}

.page-products__commitsummary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  cursor: pointer;
  color: var(--text-main);
}

.page-products__commitsummary::-webkit-details-marker,
.page-products__commitsummary::marker {
  display: none;
  content: "";
}

.page-products__commitsummary::after {
  content: "▸";
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  transition: transform 0.25s var(--ease);
}

.page-products__commit[open] .page-products__commitsummary::after {
  transform: rotate(90deg);
}

.page-products__commitsummary:hover {
  color: var(--accent);
}

.page-products__commithash {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0.14rem 0.42rem;
}

.page-products__commitmsg {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
}

.page-products__commitlog {
  margin: 0.5rem 0 0;
  padding: 0.9rem 1rem;
  background: rgba(5, 13, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.page-products__historyaside {
  position: relative;
}

.page-products__historyimg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.page-products__asidenote {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 2px solid var(--line-accent);
  padding-left: 0.75rem;
  margin: 0.85rem 0 0;
}

.page-products__reqbanner {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  padding: 0.5rem;
  background: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(0, 230, 138, 0.08);
}

.page-products__reqgrid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.page-products__reqcard {
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.page-products__reqtitle {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-main);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-products__reqtitle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 230, 138, 0.6);
}

.page-products__reqdl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.page-products__reqrow {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 0.5rem 1rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.65rem;
  font-size: 0.9rem;
}

.page-products__reqrow dt {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  padding-top: 0.1rem;
}

.page-products__reqrow dd {
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;
}

.page-products__helpshell {
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.page-products__h2--support {
  margin-top: 0.85rem;
}

.page-products__helplist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.page-products__helplist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.9rem;
  align-items: baseline;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
}

.page-products__helplist a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line-accent);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-products__helplist a:hover,
.page-products__helplist a:focus-visible {
  color: var(--light);
  background: var(--accent-soft);
}

.page-products__helpflag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}

@media (min-width: 640px) {
  .page-products__metrics {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 700px) {
  .page-products__matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) {
  .page-products__reqgrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .page-products__crumb {
    padding-top: 1.75rem;
  }

  .page-products__section {
    padding: 4rem 2rem;
  }

  .page-products__h1 {
    font-size: 3.4rem;
  }

  .page-products__h2 {
    font-size: 2.25rem;
  }

  .page-products__lede {
    font-size: 1.05rem;
  }

  .page-products__metricnum {
    font-size: 1.6rem;
  }

  .page-products__credslist {
    grid-template-columns: 1fr 1fr;
  }

  .page-products__helpshell {
    padding: 2rem;
  }
}

@media (min-width: 860px) {
  .page-products__herogrid {
    grid-template-columns: minmax(250px, 330px) 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 900px) {
  .page-products__historygrid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-products__cursor {
    animation: none;
  }

  .page-products__module {
    transition: none;
  }

  .page-products__commitsummary::after {
    transition: none;
  }
}
