.product-page {
  --product-accent: #85d8ff;
  background:
    linear-gradient(rgba(133, 216, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 216, 255, 0.045) 1px, transparent 1px),
    #090a0c;
  background-size: 4.5rem 4.5rem;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

.product-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--text, #e8eef5);
}

.product-page th,
.product-page td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line, rgba(232, 238, 245, 0.12));
}

.product-page th {
  color: var(--muted, #9aa7b8);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-page td a {
  color: var(--product-accent);
}

.product-page :focus-visible {
  outline: 2px solid var(--product-accent);
  outline-offset: 4px;
}

.product-topbar {
  background: rgba(9, 10, 12, 0.88);
  backdrop-filter: blur(18px);
}

.product-main {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding-block: 1.35rem;
  color: var(--quiet);
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb strong {
  overflow: hidden;
  color: var(--product-accent);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-hero {
  min-height: 40rem;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(19rem, 0.58fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.product-hero-copy {
  animation: product-rise 620ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.product-hero h1,
.catalog-hero h1 {
  max-width: 12ch;
  margin-bottom: 2rem;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: clamp(3.8rem, 8vw, 8.4rem);
  font-weight: 400;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.product-summary {
  max-width: 44rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.65;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-tags span {
  padding: 0.52rem 0.68rem;
  color: var(--muted);
  background: rgba(9, 10, 12, 0.72);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.product-offer {
  padding: clamp(1.7rem, 3vw, 2.5rem);
  color: #071014;
  background: var(--product-accent);
  box-shadow: 1.1rem 1.1rem 0 #141820;
  animation: product-rise 620ms 90ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.product-offer > p {
  margin-bottom: 2.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-offer > strong {
  display: block;
  margin-bottom: 2.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.product-offer dl {
  margin: 0 0 2rem;
  border-top: 1px solid rgba(7, 16, 20, 0.28);
}

.product-offer dl div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid rgba(7, 16, 20, 0.28);
}

.product-offer dt {
  font-size: 0.74rem;
  text-transform: uppercase;
}

.product-offer dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
}

.product-offer .button.primary {
  width: 100%;
  color: var(--ink);
  background: #090a0c;
  border-color: #090a0c;
}

.purchase-console,
.product-evidence {
  display: grid;
  grid-template-columns: minmax(16rem, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.purchase-console h2,
.product-evidence h2,
.related-products h2 {
  max-width: 10ch;
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.purchase-console > div:first-child > p:last-child {
  max-width: 30rem;
  margin-top: 1.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.command-shell {
  min-width: 0;
  align-self: center;
  padding: 1.5rem;
  background: #050608;
  border: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--product-accent);
}

.command-shell pre,
.contract-grid pre {
  max-width: 100%;
  overflow: auto;
  margin: 0;
}

.command-shell code,
.contract-grid code {
  color: #d3eef9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.75;
}

.command-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.command-actions button {
  min-height: 2.65rem;
  padding-inline: 1rem;
  color: #071014;
  background: var(--product-accent);
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.command-actions span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.contract-grid article {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  background: rgba(16, 19, 24, 0.96);
}

.contract-grid article + article {
  border-left: 1px solid var(--line);
}

.contract-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.contract-heading span {
  color: var(--violet);
}

.contract-grid pre {
  max-height: 30rem;
}

.product-evidence ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.product-evidence li {
  border-bottom: 1px solid var(--line);
}

.product-evidence li a {
  display: flex;
  justify-content: space-between;
  padding: 1.35rem 0.25rem;
  color: var(--muted);
  text-decoration: none;
}

.product-evidence li a:hover {
  color: var(--product-accent);
}

.related-products {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.related-grid a {
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.related-grid a:last-child {
  border-right: 0;
}

.related-grid span,
.related-grid small {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.related-grid strong {
  margin-top: 2rem;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.related-grid small {
  margin-top: auto;
  color: var(--product-accent);
}

.product-footer {
  min-height: 6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--quiet);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

.catalog-hero {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.catalog-hero h1 {
  max-width: 14ch;
}

.catalog-hero > p:last-child {
  max-width: 43rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.static-catalog {
  border-top: 1px solid var(--line);
}

.static-product {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 160ms ease, color 160ms ease;
}

.static-product:hover {
  padding-inline: 1rem;
  color: var(--product-accent);
}

.static-product > span,
.static-product small,
.static-product > b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 500;
}

.static-product > span,
.static-product small {
  color: var(--quiet);
}

.static-product strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.static-product p {
  max-width: 58rem;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.static-product > b {
  color: var(--product-accent);
}

@keyframes product-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .product-hero,
  .purchase-console,
  .product-evidence {
    grid-template-columns: 1fr;
  }

  .product-hero {
    gap: 3rem;
  }

  .product-offer {
    box-shadow: 0.75rem 0.75rem 0 #141820;
  }

  .contract-grid {
    grid-template-columns: 1fr;
  }

  .contract-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .product-main,
  .product-footer {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .product-topbar nav {
    display: none;
  }

  .product-topbar {
    grid-template-columns: 1fr auto;
  }

  .product-topbar .live-pill {
    grid-column: 2;
  }

  .product-hero h1,
  .catalog-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.3rem);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-grid a {
    min-height: 10rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .static-product {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .static-product > b {
    grid-column: 2;
  }

  .static-product p {
    display: none;
  }

  .product-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-hero-copy,
  .product-offer {
    animation: none;
  }

  .static-product {
    transition: none;
  }
}
