.page-products {
  --card-corner: 18px;
  --shelf-gap: 18px;
  background:
    radial-gradient(circle at 86% 6%, rgba(109, 40, 217, 0.18), transparent 34%),
    radial-gradient(circle at 10% 82%, rgba(242, 169, 0, 0.09), transparent 30%),
    var(--bg-deep);
  color: var(--moon);
  font-family: var(--font-body);
}

.page-products [hidden] {
  display: none !important;
}

.products-shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.products-main {
  order: 1;
  min-width: 0;
}

.products-side {
  order: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}

.products-side-block {
  background: rgba(20, 33, 61, 0.5);
  border: 1px solid rgba(242, 169, 0, 0.16);
  padding: 14px 16px;
}

.side-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 8px;
}

.side-anchors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  counter-reset: side;
}

.side-anchors li {
  counter-increment: side;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0;
}

.side-anchors li::before {
  content: counter(side, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}

.side-anchors a {
  color: var(--moon);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 14px;
  transition: color var(--transition);
}

.side-anchors a:hover {
  color: var(--gold);
}

.side-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--gold);
}

.page-products .status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
  animation: products-pulse 2s infinite;
}

@keyframes products-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.side-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.side-versions span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--moon);
  border: 1px solid rgba(242, 169, 0, 0.3);
  background: rgba(10, 17, 40, 0.45);
  padding: 4px 8px;
}

.page-products .breadcrumb {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(232, 230, 225, 0.66);
}

.page-products .breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.page-products .breadcrumb a:hover {
  text-decoration: underline;
}

.page-products .breadcrumb span[aria-current="page"] {
  color: var(--cream);
  font-weight: 600;
}

.products-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 52px;
}

.products-hero-copy {
  padding-right: 0;
}

.hero-kicker {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 10px;
}

.products-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--cream);
}

.hero-lead {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(232, 230, 225, 0.84);
  max-width: 56ch;
  margin: 0 0 24px;
}

.hero-btn {
  display: inline-block;
}

.products-hero-fig {
  margin: 0;
  border: 1px solid rgba(242, 169, 0, 0.24);
  overflow: hidden;
  max-width: 600px;
}

.products-hero-fig img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.products-section {
  margin-top: 58px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(242, 169, 0, 0.2);
  padding-bottom: 14px;
  margin-bottom: 26px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  border: 1px solid rgba(242, 169, 0, 0.35);
  padding: 6px 10px;
  line-height: 1;
}

.section-heading-text {
  min-width: 0;
}

.section-heading-text h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  color: var(--cream);
  margin: 0;
}

.section-heading-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(232, 230, 225, 0.7);
}

.section-heading .gold-rule {
  margin-left: auto;
  flex: 0 0 auto;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--shelf-gap);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px 30px;
  background: var(--bg-panel);
  border: 1px solid rgba(242, 169, 0, 0.2);
  border-top: 3px solid var(--gold);
  border-radius: 0;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 169, 0, 0.48);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(109, 40, 217, 0.14), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 32px);
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card--lite {
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.service-card--enterprise {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-card-top .status-dot {
  flex: 0 0 auto;
}

.service-card--app .status-dot {
  background: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
}

.service-card--lite .status-dot {
  background: var(--purple);
  box-shadow: 0 0 10px rgba(109, 40, 217, 0.6);
}

.service-card--enterprise .status-dot {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 169, 0, 0.5);
}

.service-card--api .status-dot {
  background: var(--moon);
  box-shadow: 0 0 10px rgba(232, 230, 225, 0.4);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--cream);
  margin: 0;
}

.service-card p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(232, 230, 225, 0.8);
  margin: 0;
}

.service-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(242, 169, 0, 0.18);
  border-bottom: 1px solid rgba(242, 169, 0, 0.18);
}

.service-facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-facts dt {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.service-facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--moon);
}

.service-expand {
  margin-top: auto;
  border-top: 1px dashed rgba(242, 169, 0, 0.25);
  padding-top: 12px;
}

.service-expand summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--gold);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-expand summary::-webkit-details-marker {
  display: none;
}

.service-expand summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  font-family: var(--font-mono);
  color: var(--gold-light);
}

.service-expand[open] summary::before {
  content: "–";
}

.service-expand p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(232, 230, 225, 0.78);
}

.version-tabs {
  margin-top: 28px;
}

.version-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid rgba(242, 169, 0, 0.22);
}

.version-tab-list .tab-button {
  appearance: none;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: rgba(232, 230, 225, 0.7);
  font-family: var(--font-head);
  font-size: 14px;
  line-height: 1;
  padding: 12px 18px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.version-tab-list .tab-button[aria-selected="true"] {
  color: var(--gold);
  background: rgba(20, 33, 61, 0.85);
  border-color: rgba(242, 169, 0, 0.22);
}

.version-tab-list .tab-button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
}

.version-panel {
  background: rgba(20, 33, 61, 0.4);
  border: 1px solid rgba(242, 169, 0, 0.2);
  border-top: none;
  padding: 8px 14px 18px;
  overflow-x: auto;
}

.version-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}

.version-table caption {
  caption-side: top;
}

.version-table th,
.version-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(242, 169, 0, 0.16);
}

.version-table thead th {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  background: rgba(20, 33, 61, 0.6);
  white-space: nowrap;
}

.version-table tbody tr:hover {
  background: rgba(242, 169, 0, 0.06);
}

.version-table tbody tr:last-child th,
.version-table tbody tr:last-child td {
  border-bottom: none;
}

.version-table tbody th {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--cream);
}

.version-number {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.version-table-note {
  margin: 14px 0 4px;
  font-size: 13px;
  color: rgba(232, 230, 225, 0.68);
}

.page-products a {
  color: var(--gold);
}

.page-products a:hover {
  color: var(--gold-light);
}

.page-products .status-pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: var(--green);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-products .status-pill--new {
  border-color: rgba(109, 40, 217, 0.6);
  color: var(--purple);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--shelf-gap);
  margin-top: 28px;
}

.download-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-panel);
  border: 1px solid rgba(242, 169, 0, 0.2);
  border-bottom: 3px solid var(--gold);
  border-radius: 0;
  overflow: hidden;
}

.download-card-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.download-card-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.download-card-body {
  padding: 26px 24px 28px;
}

.download-card-body h3 {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 12px;
}

.download-card-body p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(232, 230, 225, 0.8);
  margin: 0 0 18px;
}

.step-list,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 230, 225, 0.86);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  border: 1px solid rgba(242, 169, 0, 0.32);
  text-align: center;
  padding: 4px 0;
}

.plain-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 230, 225, 0.86);
}

.plain-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.plain-list a {
  color: var(--gold);
  text-decoration: none;
}

.lite-download-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 18px;
  padding: 22px;
  background: var(--cream);
  color: var(--brown);
  border: 1px solid rgba(242, 169, 0, 0.3);
  border-radius: 0;
}

.lite-download-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 30, 20, 0.12);
}

.lite-download-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.lite-download-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.lite-download-body h3 {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--brown);
  margin: 0 0 10px;
}

.lite-download-body p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(43, 30, 20, 0.84);
  margin: 0;
}

.verify-figure {
  margin: 0 0 24px;
  border: 1px solid rgba(242, 169, 0, 0.24);
  overflow: hidden;
}

.verify-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.verify-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.verify-steps,
.verify-note {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid rgba(242, 169, 0, 0.2);
  border-top: 3px solid var(--gold);
  border-radius: 0;
  padding: 24px;
}

.verify-steps h3,
.verify-note h3 {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--cream);
  margin: 0 0 16px;
}

.verify-note p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(232, 230, 225, 0.78);
  margin: 0 0 18px;
}

.verify-step-list {
  margin-top: 4px;
}

.products-support {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--red);
  background: rgba(228, 87, 46, 0.08);
  font-size: 14px;
  color: rgba(232, 230, 225, 0.76);
}

.products-support a {
  color: var(--gold-light);
  text-decoration: none;
}

.page-products .btn-primary {
  background: linear-gradient(120deg, var(--gold), var(--gold-light));
  border: none;
  color: var(--bg-deep);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: 12px 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-products .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(242, 169, 0, 0.28);
  color: var(--bg-deep);
}

.page-products .btn-ghost {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-family: var(--font-head);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  padding: 12px 20px;
  transition: background var(--transition), color var(--transition);
}

.page-products .btn-ghost:hover {
  background: rgba(242, 169, 0, 0.12);
  color: var(--gold-light);
}

@media (min-width: 820px) {
  .products-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 32px;
  }

  .products-hero-fig {
    justify-self: end;
  }

  .download-card {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: stretch;
  }

  .download-card--ios .download-card-figure {
    order: 1;
  }

  .download-card--ios .download-card-body {
    order: 2;
  }

  .download-card--android .download-card-figure {
    order: 2;
  }

  .download-card--android .download-card-body {
    order: 1;
  }

  .download-card-figure {
    min-height: 100%;
  }

  .lite-download-card {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
  }
}

@media (min-width: 960px) {
  .products-shelf {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
    padding-top: 40px;
  }

  .products-main {
    order: 2;
  }

  .products-side {
    order: 1;
    position: sticky;
    top: 32px;
    align-self: start;
  }

  .service-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
  }

  .service-card--app {
    grid-column: span 7;
  }

  .service-card--lite {
    grid-column: span 5;
  }

  .service-card--enterprise {
    grid-column: span 5;
  }

  .service-card--api {
    grid-column: span 7;
  }

  .verify-panel {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
