.page-products {
  --prod-pad-x: clamp(20px, 4.5vw, 68px);
  --prod-gap: clamp(18px, 3vw, 36px);
  --prod-line-strong: 3px solid var(--line);
  --prod-panel: rgba(20, 33, 61, 0.78);
  position: relative;
  padding-top: 0 !important;
  overflow-x: clip;
  color: var(--white);
  background:
    radial-gradient(1100px 520px at 88% -5%, rgba(0, 255, 136, 0.09), transparent 60%),
    radial-gradient(760px 420px at -5% 28%, rgba(0, 180, 216, 0.08), transparent 60%),
    var(--bg-deep);
}

.page-products .prod-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: calc(var(--header-h) + 24px) var(--prod-pad-x) 0;
  margin-bottom: 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.page-products .prod-breadcrumbs a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.page-products .prod-breadcrumbs a:hover {
  border-bottom-color: var(--green);
}

.page-products .crumb-sep {
  color: var(--line);
}

.page-products .crumb-current {
  color: var(--muted);
}

.page-products .prod-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 40px var(--prod-pad-x) 56px;
  border-bottom: var(--prod-line-strong);
}

.page-products .prod-hero-copy {
  max-width: 760px;
}

.page-products .prod-hero-copy .section-label {
  margin-bottom: 10px;
}

.page-products .prod-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--white);
}

.page-products .prod-hero-lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

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

.page-products .prod-hero-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 2px solid var(--line);
  background: var(--prod-panel);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  align-self: end;
}

.page-products .prod-hero-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  border-left: 2px solid var(--line);
}

.page-products .prod-hero-metric:first-child {
  border-left: 0;
}

.page-products .prod-hero-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  color: var(--green);
  font-weight: 700;
}

.page-products .prod-hero-cap {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-products .prod-map {
  padding: 72px var(--prod-pad-x) 88px;
  border-bottom: var(--prod-line-strong);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.page-products .prod-map-head {
  max-width: 720px;
}

.page-products .prod-map-head h2,
.page-products .prod-module-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  margin: 8px 0 14px;
}

.page-products .prod-map-head p:not(.section-label),
.page-products .prod-module-copy > p {
  color: var(--white);
  line-height: 1.7;
  max-width: 62ch;
}

.page-products .prod-map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--prod-gap);
  align-items: start;
  margin-top: 36px;
}

.page-products .prod-skilltree-figure {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  margin: 0;
  overflow: hidden;
}

.page-products .prod-skilltree-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 255, 136, 0.06), transparent 70%);
  pointer-events: none;
}

.page-products .prod-skilltree-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.page-products .prod-skilltree-figure figcaption {
  padding: 12px 6px 6px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  line-height: 1.6;
}

.page-products .prod-tree-index {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 18px;
}

.page-products .prod-tree-index::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green) 0%, var(--teal) 100%);
}

.page-products .prod-tree-node {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  border: 2px solid var(--line);
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-products .prod-tree-node::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--green);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

.page-products .prod-tree-node:hover {
  border-color: var(--green);
  background: var(--bg-elev);
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.page-products .tree-node-num {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  color: var(--orange);
  text-align: center;
  font-weight: 700;
}

.page-products .tree-node-title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  color: var(--white);
}

.page-products .tree-node-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.page-products .prod-module {
  position: relative;
  overflow: hidden;
  padding: 72px var(--prod-pad-x);
  border-bottom: var(--prod-line-strong);
}

.page-products .prod-module-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 36px;
}

.page-products .prod-module-index {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--green);
  min-width: 84px;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 6px;
}

.page-products .prod-module-head .section-label {
  margin-bottom: 6px;
}

.page-products .prod-module-head h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.page-products .prod-module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--prod-gap);
  align-items: center;
}

.page-products .prod-module--flip .prod-module-copy {
  order: 1;
}

.page-products .prod-module--flip .prod-module-figure {
  order: 2;
}

.page-products .prod-module-copy > p {
  margin: 0 0 16px;
}

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

.page-products .prod-feature-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.65;
  color: var(--white);
}

.page-products .prod-feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.page-products .prod-feature-list strong {
  color: var(--green);
  font-family: var(--font-mono);
}

.page-products .prod-note {
  border-left: 3px solid var(--orange);
  background: rgba(255, 107, 0, 0.06);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--white);
  margin-top: 16px;
}

.page-products .prod-module-figure {
  margin: 0;
  border: 2px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 12px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-products .prod-module-figure:hover {
  transform: translateY(-4px) rotate(0.2deg);
  box-shadow: var(--shadow-lg);
}

.page-products .prod-module-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.page-products .prod-module-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.page-products .prod-module--wide {
  display: block;
  background:
    radial-gradient(800px 300px at 90% 10%, rgba(0, 255, 136, 0.05), transparent 60%),
    var(--bg-deep);
}

.page-products .prod-mobile-lead {
  max-width: 68ch;
  color: var(--white);
  line-height: 1.7;
  margin: 0 0 30px;
}

.page-products .prod-mobile-deck {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  margin-bottom: 32px;
}

.page-products .ms-screen {
  flex: 0 0 340px;
  max-width: 86vw;
  scroll-snap-align: center;
}

.page-products .ms-phone {
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  border: 3px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.page-products .ms-phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 18px;
  background: rgba(10, 17, 40, 0.9);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.page-products .ms-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .ms-phone-css {
  min-height: 640px;
  display: flex;
}

.page-products .ms-css-screen {
  width: 100%;
  padding: 48px 18px 26px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-products .ms-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-products .ms-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}

.page-products .ms-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 40, 0.5);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
}

.page-products .ms-row span {
  color: var(--white);
}

.page-products .ms-row b {
  font-family: var(--font-mono);
  color: var(--green);
  font-weight: 600;
}

.page-products .ms-chip {
  background: var(--orange);
  display: inline-block;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--bg-deep);
  font-weight: 800;
  margin-top: 6px;
}

.page-products .ms-cal-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-left: 3px solid var(--green);
  background: var(--bg-deep);
  padding: 10px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
}

.page-products .ms-cal-item span {
  color: var(--muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.page-products .ms-cal-item b {
  color: var(--white);
  text-align: right;
}

.page-products .ms-screen-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.page-products .ms-screen-nav a {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-products .ms-screen-nav a:hover {
  border-color: var(--green);
  background: rgba(0, 255, 136, 0.08);
}

.page-products .prod-mobile-features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--prod-gap);
  margin-top: 10px;
}

.page-products .prod-mobile-feat {
  border-top: 3px solid var(--orange);
  background: var(--bg-panel);
  padding: 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
}

.page-products .mfeat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green);
}

.page-products .prod-mobile-feat p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
}

.page-products .prod-cta {
  position: relative;
  overflow: hidden;
  padding: 72px var(--prod-pad-x) 84px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, transparent 45%), var(--bg-deep);
  border-bottom: 3px solid var(--line);
}

.page-products .prod-cta::after {
  content: "K1";
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 170px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 255, 136, 0.1);
  pointer-events: none;
}

.page-products .prod-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: left;
}

.page-products .prod-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  margin: 10px 0 12px;
}

.page-products .prod-cta-inner p:not(.section-label) {
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

.page-products .prod-cta-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.page-products .prod-cta-link {
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.page-products .prod-cta-link:hover {
  opacity: 0.7;
}

@media (min-width: 920px) {
  .page-products .prod-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: end;
    padding-top: 48px;
  }

  .page-products .prod-map-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  }

  .page-products .prod-module-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: center;
  }

  .page-products .prod-module--flip .prod-module-copy {
    order: 2;
  }

  .page-products .prod-module--flip .prod-module-figure {
    order: 1;
  }

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

  .page-products .prod-module--wide {
    padding: 88px var(--prod-pad-x);
  }
}

@media (max-width: 420px) {
  .page-products .prod-hero-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-products .prod-hero-metric {
    border-left: 0;
    border-top: 2px solid var(--line);
    padding-top: 12px;
  }

  .page-products .prod-hero-metric:first-child {
    border-top: 0;
  }

  .page-products .ms-screen {
    flex-basis: 76vw;
  }

  .page-products .ms-phone {
    width: 76vw;
  }

  .page-products .ms-phone-css {
    min-height: 512px;
  }
}
