.page-products {
  --prod-dark-line: rgba(255, 255, 255, 0.12);
  --prod-bg-pattern: rgba(57, 255, 20, 0.05);
  position: relative;
  background: var(--light-100);
  color: var(--ink-900);
  font-family: var(--font-body);
}

.page-products img {
  max-width: 100%;
  height: auto;
}

.page-products .hero-img,
.page-products .feature-img,
.page-products .tree-foot-img,
.page-products .scene-img,
.page-products .version-img {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--navy-700);
}

.page-products .hero-img img,
.page-products .feature-img img,
.page-products .tree-foot-img img,
.page-products .scene-img img,
.page-products .version-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .hero-img {
  aspect-ratio: 3 / 2;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 8% 100%);
  border: 1px solid var(--prod-dark-line);
}

.page-products .feature-img {
  aspect-ratio: 4 / 3;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 6% 100%);
  box-shadow: var(--shadow-lift);
}

.page-products .tree-foot-img {
  aspect-ratio: 9 / 5;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 4% 100%);
  max-width: 720px;
  margin: 52px auto 0;
  border: 1px solid rgba(57, 255, 20, 0.22);
}

.page-products .scene-img {
  aspect-ratio: 1 / 1;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  box-shadow: var(--shadow-lift);
}

.page-products .version-img {
  aspect-ratio: 7 / 4;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 6% 100%);
  border: 1px solid var(--prod-dark-line);
}

.page-products .product-head {
  margin-bottom: 40px;
}

.page-products .product-head--left {
  max-width: 680px;
}

.page-products .product-head--light .section-kicker {
  color: var(--green-400);
}

.page-products .product-head--light .section-title {
  color: var(--surface);
}

.page-products .product-head--light .section-lede {
  color: rgba(255, 255, 255, 0.72);
}

.page-products .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-400);
}

.page-products .hero-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--orange-400);
}

.page-products .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.page-products .hero-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--surface);
}

.page-products .hero-actions .btn-ghost:hover {
  border-color: var(--green-400);
  color: var(--green-400);
}

.page-products .prod-hero {
  position: relative;
  padding: 28px 0 64px;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--surface);
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--prod-bg-pattern) 1px, transparent 1px),
    linear-gradient(90deg, var(--prod-bg-pattern) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  top: 180px;
  right: -40px;
  width: 420px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-400), transparent);
  transform: rotate(-6deg);
  pointer-events: none;
}

.page-products .prod-hero .container {
  position: relative;
  z-index: 1;
}

.page-products .prod-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .prod-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

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

.page-products .hero-layout {
  display: grid;
  gap: 40px;
}

.page-products .hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--surface);
}

.page-products .hero-lead {
  max-width: 460px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.page-products .hero-visual {
  position: relative;
}

.page-products .hero-data-chip {
  position: absolute;
  bottom: 20px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--orange-400);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-products .hero-data-chip .data-number {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.page-products .hero-data-chip-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.page-products .prod-matrix {
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--surface);
}

.page-products .matrix-grid {
  gap: 20px;
}

.page-products .matrix-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--prod-dark-line);
  border-radius: 0;
  transition: transform 160ms cubic-bezier(0.4, 0, 0.2, 1), border-color 160ms ease;
}

.page-products .matrix-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.4);
}

.page-products .matrix-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-400), var(--green-400));
  opacity: 0.85;
}

.page-products .matrix-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-products .matrix-index {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
}

.page-products .matrix-card-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--surface);
}

.page-products .matrix-card-text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.page-products .matrix-list {
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--prod-dark-line);
}

.page-products .matrix-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.78);
}

.page-products .matrix-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 8px;
  background: var(--green-400);
}

.page-products .core-features {
  padding: 72px 0;
  background: var(--light-100);
}

.page-products .feature-stage {
  display: grid;
  gap: 40px;
  align-items: start;
}

.page-products .feature-panels {
  order: 2;
}

.page-products .feature-visual {
  order: 1;
  position: sticky;
  top: 24px;
}

.page-products .core-panel {
  position: relative;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.page-products .core-panel[data-open] {
  border-color: var(--orange-400);
  box-shadow: var(--shadow-lift);
}

.page-products .core-panel-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  align-items: center;
  width: 100%;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.page-products .core-no {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-400);
}

.page-products .core-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-900);
}

.page-products .core-desc {
  font-size: 14px;
  color: var(--muted-600);
}

.page-products .core-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  font-size: 24px;
  line-height: 1;
  color: var(--green-400);
  transition: transform 160ms ease;
}

.page-products .core-panel[data-open] .core-arrow {
  transform: rotate(45deg);
}

.page-products .core-panel .panel-content {
  padding: 0 24px 24px 56px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-600);
}

.page-products .service-path {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--surface);
}

.page-products .service-path::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent 40px,
    rgba(57, 255, 20, 0.04) 40px,
    rgba(57, 255, 20, 0.04) 41px
  );
}

.page-products .skill-tree {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

.page-products .tree-node {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  color: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.page-products .tree-node:hover,
.page-products .tree-node[data-open] {
  border-color: var(--green-400);
  background: rgba(57, 255, 20, 0.06);
  transform: translateY(-3px);
}

.page-products .tree-node-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.page-products .tree-index {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--green-400);
}

.page-products .tree-node-title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-products .tree-node-arrow {
  font-size: 20px;
  color: var(--orange-400);
}

.page-products .tree-node .panel-content {
  padding: 0 18px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .tree-node:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -26px;
  z-index: 2;
  font-size: 18px;
  line-height: 1;
  color: var(--green-400);
  transform: translateX(-50%);
}

.page-products .use-cases {
  padding: 72px 0;
  background: var(--light-100);
}

.page-products .use-cases-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-products .use-cases-layout .product-head {
  margin-bottom: 0;
}

.page-products .scenario-grid {
  margin-top: 44px;
}

.page-products .scenario-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.page-products .scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.page-products .scenario-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--orange-400));
}

.page-products .scenario-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange-400);
  border: 1px solid var(--line);
  border-radius: 0;
}

.page-products .scenario-card .card-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-900);
}

.page-products .scenario-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-600);
}

.page-products .version-updates {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--surface);
}

.page-products .version-updates::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    -115deg,
    transparent 0,
    transparent 50px,
    rgba(255, 107, 53, 0.04) 50px,
    rgba(255, 107, 53, 0.04) 51px
  );
}

.page-products .version-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
  align-items: center;
}

.page-products .update-list {
  display: grid;
  gap: 0;
  margin: 32px 0;
  border-top: 1px solid var(--prod-dark-line);
}

.page-products .update-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--prod-dark-line);
}

.page-products .update-label {
  min-width: 88px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-400);
}

.page-products .update-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.page-products .version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.page-products .version-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--surface);
}

.page-products .version-actions .btn-ghost:hover {
  border-color: var(--green-400);
  color: var(--green-400);
}

.page-products .version-visual {
  position: relative;
}

.page-products .version-stat-card {
  position: absolute;
  bottom: 16px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  color: var(--ink-900);
  box-shadow: var(--shadow-lift);
}

.page-products .version-stat-card .data-number {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange-400);
}

.page-products .version-stat-card span:last-child {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

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

  .page-products .hero-data-chip {
    left: -18px;
    bottom: 24px;
  }

  .page-products .feature-stage {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }

  .page-products .feature-panels {
    order: 1;
  }

  .page-products .feature-visual {
    order: 2;
  }

  .page-products .use-cases-layout {
    grid-template-columns: 2fr 1fr;
    gap: 48px;
  }

  .page-products .version-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }

  .page-products .version-stat-card {
    left: -18px;
    bottom: 28px;
  }
}

@media (min-width: 900px) {
  .page-products .skill-tree {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }

  .page-products .tree-node:not(:last-child)::after {
    content: "→";
    left: auto;
    right: -26px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}
