.page-products {
  --p-pad: clamp(22px, 4vw, 64px);
  --p-gap: clamp(18px, 2.6vw, 36px);
  --p-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-products .p-crumbs {
  grid-column: 1 / -1;
  margin-bottom: clamp(10px, 2vw, 22px);
}

.page-products .p-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-products .p-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.page-products .p-crumbs a {
  color: var(--cyan-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.page-products .p-crumbs a:hover,
.page-products .p-crumbs a:focus-visible {
  border-bottom-color: var(--cyan);
}

/* ---------- hero ---------- */
.page-products .p-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 44px) 0 clamp(44px, 6vw, 76px);
}

.page-products .p-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.32;
  filter: saturate(0.65) contrast(1.08);
  z-index: -2;
}

.page-products .p-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(180deg, rgba(244, 247, 250, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(7, 22, 40, 0.62) 0%, rgba(11, 31, 58, 0.9) 62%, var(--ink) 100%);
}

.page-products .p-hero-inner {
  position: relative;
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-products .p-hero-head .eyebrow {
  color: var(--cyan);
}

.page-products .p-hero-head h1 {
  margin: 14px 0 0;
  font-weight: 300;
  font-size: clamp(34px, 6.4vw, 78px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.page-products .p-lede {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: #c9d6e6;
}

.page-products .p-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 34px);
}

.page-products .p-hero-stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 229, 199, 0.35);
}

.page-products .p-stamp-num {
  font-family: var(--font-mono);
  font-size: clamp(58px, 12vw, 118px);
  line-height: 0.92;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.04em;
}

.page-products .p-stamp-note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- section shell ---------- */
.page-products .p-sec {
  position: relative;
  padding: clamp(46px, 7vw, 92px) 0;
}

.page-products .p-sec--deep {
  background: var(--ink-deep);
}

.page-products .p-sec--panel {
  background: linear-gradient(180deg, var(--ink) 0%, var(--panel) 46%, var(--ink) 100%);
}

.page-products .p-sec-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.page-products .p-sec-head .eyebrow {
  color: var(--cyan);
}

.page-products .p-sec-head h2 {
  margin: 12px 0 0;
  font-weight: 900;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.page-products .p-sec-lede {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- tree ---------- */
.page-products .p-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-products .p-tree::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--band) 0%, var(--cyan) 55%, var(--orange) 100%);
}

.page-products .p-tree-item {
  position: relative;
  padding-left: 46px;
  padding-bottom: clamp(26px, 3.4vw, 42px);
}

.page-products .p-tree-item:last-child {
  padding-bottom: 0;
}

.page-products .p-tree-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--ink);
}

.page-products .p-tree-item::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 15px;
  width: 12px;
  height: 2px;
  background: var(--cyan);
}

.page-products .p-tree-idx {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 6px;
}

.page-products .p-tree-node h3 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
}

.page-products .p-tree-entry {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--cyan-soft);
  font-family: var(--font-mono);
}

.page-products .p-tree-branch p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: #c9d6e6;
}

.page-products .p-tree-more {
  margin-top: 12px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.page-products .p-tree-more summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-products .p-tree-more summary::-webkit-details-marker {
  display: none;
}

.page-products .p-tree-more summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--orange);
}

.page-products .p-tree-more[open] summary::before {
  content: "−";
}

.page-products .p-tree-more p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- tabs ---------- */
.page-products .p-tabs-wrap {
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 3vw, 32px);
}

.page-products .p-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.page-products .p-tabs::-webkit-scrollbar {
  display: none;
}

.page-products .p-tabs .seg-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-products .p-tabs .seg-btn[aria-selected="true"] {
  color: var(--ink);
  background: var(--cyan-soft);
  border-color: var(--cyan);
}

.page-products .p-tabs .seg-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-products .p-panel {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
}

.page-products .p-scene {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  font-size: 16px;
  line-height: 1.85;
  color: #d5e0ec;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.page-products .p-def {
  margin: 0;
  display: grid;
  gap: 0;
}

.page-products .p-def-row {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid rgba(58, 85, 120, 0.6);
}

.page-products .p-def-row:last-child {
  border-bottom: 1px solid rgba(58, 85, 120, 0.6);
}

.page-products .p-def-row dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-products .p-def-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #c9d6e6;
}

.page-products .p-fig {
  margin: 0;
}

.page-products .p-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--p-radius);
  border: 1px solid rgba(58, 85, 120, 0.7);
  object-fit: cover;
  background: linear-gradient(140deg, var(--panel), var(--ink-deep));
}

.page-products .p-fig figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- aside strip ---------- */
.page-products .p-aside-strip {
  margin-top: clamp(30px, 4vw, 48px);
  padding: clamp(20px, 3vw, 30px);
  background: rgba(19, 48, 85, 0.55);
  border-left: 3px solid var(--orange);
}

.page-products .p-aside-strip h3 {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.4;
}

.page-products .p-aside-strip p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #c9d6e6;
}

.page-products .p-inline-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 2px;
  min-height: 32px;
}

.page-products .p-inline-link:hover,
.page-products .p-inline-link:focus-visible {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
}

/* ---------- version timeline ---------- */
.page-products .p-sec--version {
  overflow: hidden;
}

.page-products .p-version-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-products .p-version-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.5);
}

.page-products .p-sec--version .page-shell {
  position: relative;
  z-index: 1;
}

.page-products .p-tl {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  position: relative;
  display: grid;
  gap: clamp(22px, 3vw, 30px);
}

.page-products .p-tl::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--band), var(--cyan) 60%, var(--orange));
}

.page-products .p-tl-item {
  position: relative;
}

.page-products .p-tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--cyan);
}

.page-products .p-tl-ver {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.page-products .p-tl-item h3 {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.35;
}

.page-products .p-tl-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #c0cfe0;
}

.page-products .p-tl-item:hover .p-tl-ver {
  color: var(--orange-soft);
}

/* ---------- refresh clock ---------- */
.page-products .p-clock {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
}

.page-products .p-clock-item {
  padding: clamp(20px, 3vw, 30px);
  background: rgba(11, 31, 58, 0.72);
  border-top: 3px solid var(--cyan);
}

.page-products .p-clock-item--late {
  border-top-color: var(--orange);
}

.page-products .p-clock-t {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-products .p-clock-item--late .p-clock-t {
  color: var(--orange);
}

.page-products .p-clock-item h3 {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.35;
}

.page-products .p-clock-item > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #c9d6e6;
}

.page-products .p-clock-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .p-clock-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .p-clock-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

/* ---------- modes ---------- */
.page-products .p-modes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-products .p-mode {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px solid rgba(58, 85, 120, 0.65);
  transition: background 0.25s var(--ease);
}

.page-products .p-mode:last-child {
  border-bottom: 1px solid rgba(58, 85, 120, 0.65);
}

.page-products .p-mode:hover {
  background: rgba(0, 229, 199, 0.05);
}

.page-products .p-mode-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.page-products .p-mode-body h3 {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.35;
}

.page-products .p-mode-body p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: #c9d6e6;
}

.page-products .p-mode-path {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan) !important;
  margin-bottom: 0 !important;
}

.page-products .p-mode-watch {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  align-self: end;
}

/* ---------- steps ---------- */
.page-products .p-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
  counter-reset: none;
}

.page-products .p-step {
  position: relative;
  padding: clamp(18px, 2.4vw, 24px) 0 0;
  border-top: 2px solid var(--band);
}

.page-products .p-step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-products .p-step h3 {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.35;
}

.page-products .p-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #c9d6e6;
}

.page-products .p-cta {
  margin-top: clamp(32px, 4.4vw, 48px);
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(120deg, rgba(19, 48, 85, 0.9), rgba(7, 22, 40, 0.9));
  border: 1px solid rgba(0, 229, 199, 0.28);
}

.page-products .p-cta p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: #c9d6e6;
  max-width: 62ch;
}

.page-products .p-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.page-products .p-cta-actions .p-inline-link {
  margin-top: 0;
}

/* ---------- reveal ---------- */
.page-products [data-reveal] {
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.reveal-ready .page-products [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(12px);
}

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .page-products .p-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .page-products .p-panel .p-fig {
    position: sticky;
    top: calc(var(--header-h-compact) + 24px);
  }

  .page-products .p-clock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .p-step p {
    max-width: 46ch;
  }
}

@media (min-width: 860px) {
  .page-products .p-hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(200px, 3fr);
    align-items: end;
  }

  .page-products .p-hero-stamp {
    justify-self: end;
    align-items: flex-end;
    text-align: right;
    padding-top: 0;
    border-top: none;
    border-right: 2px solid rgba(0, 229, 199, 0.4);
    padding-right: 16px;
  }

  .page-products .p-tree-item {
    display: grid;
    grid-template-columns: minmax(190px, 4fr) minmax(0, 7fr);
    gap: clamp(18px, 3vw, 42px);
    align-items: start;
  }

  .page-products .p-tl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 30px);
    padding: 38px 0 0;
  }

  .page-products .p-tl::before {
    left: 0;
    right: 0;
    top: 8px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--band), var(--cyan) 55%, var(--orange));
  }

  .page-products .p-tl-item::before {
    left: 0;
    top: -38px;
  }

  .page-products .p-mode {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 220px);
    gap: clamp(16px, 2.4vw, 34px);
    align-items: start;
  }

  .page-products .p-mode-watch {
    text-align: right;
    padding-top: 4px;
  }

  .page-products .p-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 36px);
  }

  .page-products .p-steps .p-step {
    padding-top: 22px;
  }
}

@media (min-width: 1100px) {
  .page-products .p-lede {
    font-size: 17px;
  }

  .page-products .p-sec-head h2 {
    max-width: 24ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products [data-reveal],
  .page-products .p-mode,
  .page-products .p-tabs .seg-btn {
    transition: none !important;
  }

  .reveal-ready .page-products [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}
