.page-products {
  --p-space: clamp(20px, 4vw, 40px);
  --p-accent-line: linear-gradient(90deg, #4E39F6, #A64DFF);
  background: var(--color-bg);
  color: var(--color-cream);
}

.page-products .p-shell {
  width: 100%;
  max-width: calc(var(--container-width) + 96px);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.page-products .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.6);
}

.page-products .breadcrumb a {
  color: var(--color-cream);
  text-decoration: none;
  border-bottom: 1px solid var(--color-purple);
}

.page-products .breadcrumb a:hover,
.page-products .breadcrumb a:focus-visible {
  color: var(--color-yellow);
  border-bottom-color: var(--color-yellow);
}

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

.page-products .p-hero {
  position: relative;
  padding: clamp(40px, 7vw, 64px) 0 48px;
}

.page-products .p-hero__rail {
  position: absolute;
  top: 24px;
  right: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.page-products .p-hero__rail-line {
  width: 1px;
  height: 120px;
  background: linear-gradient(180deg, var(--color-purple) 0%, transparent 100%);
}

.page-products .p-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-products .p-console {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.8px;
  background: var(--color-panel);
  border-left: 2px solid var(--color-neon);
  border-radius: 0 4px 4px 0;
}

.page-products .p-console__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-neon);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.2);
}

.page-products .p-console__sep {
  color: var(--color-purple);
}

.page-products .p-hero__content {
  min-width: 0;
}

.page-products .p-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #F5F0E6 0%, #D6C7FF 55%, #A64DFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-products .p-hero__lead {
  max-width: 32em;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.78);
}

.page-products .p-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-products .p-hero__metric {
  min-width: 120px;
  padding: 14px 16px;
  background: var(--color-panel);
  border: 1px solid rgba(166, 77, 255, 0.35);
  border-top: 3px solid var(--color-purple);
  position: relative;
}

.page-products .p-hero__metric::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--color-purple) 50%, transparent 50%);
}

.page-products .p-hero__num {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--color-cream);
  font-variant-numeric: tabular-nums;
}

.page-products .p-hero__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(245, 240, 230, 0.55);
}

.page-products .p-hero__visual {
  position: relative;
}

.page-products .p-hero__frame {
  position: relative;
  overflow: hidden;
  background: var(--color-panel);
  border: 1px solid var(--color-purple);
  padding: 12px;
  clip-path: polygon(0% 0%, calc(100% - 16px) 0%, 100% 16px, 100% 100%, 16px 100%, 0% calc(100% - 16px));
}

.page-products .p-hero__frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(104deg, transparent 0%, rgba(245, 240, 230, 0.12) 50%, transparent 100%);
  pointer-events: none;
}

.page-products .p-hero__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .p-hero__badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(30, 30, 30, 0.88);
  border: 1px solid var(--color-yellow);
  font-size: 13px;
  font-weight: 600;
}

.page-products .p-hero__badge .tag {
  font-size: 11px;
  padding: 3px 8px;
}

.page-products .p-caps {
  padding: 48px 0;
}

.page-products .p-caps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 32px;
}

.page-products .p-caps__card {
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  background: var(--color-panel);
  border: 1px solid rgba(245, 240, 230, 0.08);
  border-left: 3px solid var(--color-purple);
  transition: background var(--transition), transform var(--transition);
  clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 12px, 100% 100%, 12px 100%, 0% calc(100% - 12px));
}

.page-products .p-caps__card:hover {
  background: #2a2636;
  transform: translateX(4px);
}

.page-products .p-caps__num {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--color-yellow);
  letter-spacing: 1px;
}

.page-products .p-caps__card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-cream);
}

.page-products .p-caps__card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.65);
}

.page-products .p-caps__media {
  margin-top: 4px;
}

.page-products .p-caps__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.page-products .p-dl {
  margin-top: 24px;
  padding: 48px 0;
  background:
    linear-gradient(135deg, rgba(78, 57, 246, 0.16) 0%, rgba(166, 77, 255, 0.08) 42%, transparent 42%),
    var(--color-panel);
  border-top: 1px solid rgba(166, 77, 255, 0.3);
  border-bottom: 1px solid rgba(166, 77, 255, 0.3);
}

.page-products .p-dl__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-products .p-dl__title-group {
  min-width: 280px;
  max-width: 480px;
}

.page-products .p-dl__title-group h2 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
}

.page-products .p-dl__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.6);
}

.page-products .p-dl__stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.page-products .p-dl__stamp img {
  width: 120px;
  height: auto;
  max-width: 120px;
  border-radius: 50%;
  border: 2px solid var(--color-purple);
}

.page-products .p-dl__ver {
  font-size: 14px;
  font-weight: 900;
  color: var(--color-yellow);
}

.page-products .p-dl__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 10px 14px;
  background: rgba(30, 30, 30, 0.5);
  border: 1px solid rgba(57, 255, 136, 0.3);
  font-size: 13px;
}

.page-products .p-dl__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-neon);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.18);
}

.page-products .p-dl__status-sep {
  color: var(--color-purple);
}

.page-products .p-dl__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.page-products .p-dl__card {
  position: relative;
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid rgba(245, 240, 230, 0.12);
  border-top: 4px solid var(--color-purple);
}

.page-products .p-dl__card::after {
  content: "";
  position: absolute;
  left: -1px;
  bottom: -1px;
  width: 24px;
  height: 24px;
  background: var(--color-purple);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.page-products .p-dl__platform {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.page-products .p-dl__platform h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.page-products .p-dl__platform-icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  background: var(--color-gradient);
  border-radius: 4px;
  fill: var(--color-cream);
  stroke: var(--color-cream);
}

.page-products .p-dl__meta {
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.55);
}

.page-products .p-dl__points {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.78);
}

.page-products .p-dl__points li::marker {
  color: var(--color-neon);
}

.page-products .p-dl__points a {
  color: var(--color-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 77, 255, 0.4);
}

.page-products .p-dl__expand {
  margin-top: 16px;
  border-top: 1px dashed rgba(245, 240, 230, 0.15);
}

.page-products .p-dl__expand summary {
  cursor: pointer;
  padding: 14px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-yellow);
  list-style: none;
}

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

.page-products .p-dl__expand summary::before {
  content: "＋ ";
}

.page-products .p-dl__expand[open] summary::before {
  content: "－ ";
}

.page-products .p-dl__steps {
  display: grid;
  gap: 8px;
  margin: 14px 0 20px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.78);
}

.page-products .p-dl__steps li::marker {
  color: var(--color-yellow);
}

.page-products .p-dl__help {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.55);
}

.page-products .p-dl__divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-products .p-dl__divider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-panel);
  border: 2px solid var(--color-purple);
  color: var(--color-cream);
  font-size: 13px;
  font-weight: 900;
}

.page-products .p-dl__card--ios {
  border-top-color: var(--color-neon);
}

.page-products .p-dl__history {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 0 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-products .p-dl__history span {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
  color: rgba(245, 240, 230, 0.65);
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(245, 240, 230, 0.14);
  border-radius: 2px;
}

.page-products .p-dl__history .p-dl__history-current {
  color: var(--color-yellow);
  border-color: var(--color-yellow);
}

.page-products .p-log {
  padding: 56px 0;
}

.page-products .p-log__list {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin: 36px auto 0;
  padding-left: 20px;
  border-left: 2px solid rgba(166, 77, 255, 0.4);
}

.page-products .p-log__item {
  background: var(--color-panel);
  border: 1px solid rgba(245, 240, 230, 0.1);
  border-radius: 0 6px 6px 0;
  transition: background var(--transition), border-color var(--transition);
}

.page-products .p-log__item:hover {
  background: #2b2837;
  border-color: var(--color-purple);
}

.page-products .p-log__item--latest {
  border-left: 4px solid var(--color-yellow);
}

.page-products .p-log__item summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

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

.page-products .p-log__ver {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-cream);
}

.page-products .p-log__meta {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.55);
}

.page-products .p-log__arrow {
  margin-left: auto;
  font-size: 16px;
  font-weight: 900;
  color: var(--color-purple);
  transition: transform var(--transition);
}

.page-products .p-log__item[open] .p-log__arrow {
  transform: rotate(45deg);
}

.page-products .p-log__detail {
  padding: 0 18px 18px;
  border-top: 1px dashed rgba(245, 240, 230, 0.12);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.7);
}

.page-products .p-log__detail p {
  margin: 14px 0 0;
}

.page-products .p-log__detail ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 16px;
}

.page-products .p-log__detail li::marker {
  color: var(--color-yellow);
}

.page-products .p-data {
  padding: 56px 0;
  background:
    linear-gradient(90deg, rgba(78, 57, 246, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(78, 57, 246, 0.08) 1px, transparent 1px),
    var(--color-panel-deep);
  background-size: 40px 40px;
  border-top: 1px solid var(--color-purple);
  border-bottom: 1px solid var(--color-purple);
}

.page-products .p-data__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.page-products .p-data__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 32px 0;
}

.page-products .p-data__metric {
  position: relative;
  padding: 18px;
  background: rgba(46, 46, 46, 0.72);
  border: 1px solid rgba(166, 77, 255, 0.25);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.page-products .p-data__metric:hover {
  border-color: var(--color-neon);
  box-shadow: 0 0 24px rgba(57, 255, 136, 0.12);
}

.page-products .p-data__metric::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: var(--color-neon);
}

.page-products .p-data__num {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-products .p-data__label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-cream);
}

.page-products .p-data__desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.5);
}

.page-products .p-data__flow {
  position: relative;
  margin-top: 24px;
}

.page-products .p-data__flow img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

.page-products .p-data__flow-note {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid var(--color-purple);
  font-size: 12px;
  color: var(--color-cream);
}

.page-products .p-data__lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.page-products .p-data__map img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.page-products .p-data__security {
  padding: 22px;
  background: rgba(46, 46, 46, 0.9);
  border: 1px solid rgba(122, 158, 126, 0.35);
  border-left: 4px solid var(--color-green);
}

.page-products .p-data__security h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.page-products .p-data__security p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(245, 240, 230, 0.7);
}

.page-products .p-guide {
  padding: 56px 0 72px;
}

.page-products .p-guide__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}

.page-products .p-guide__step {
  position: relative;
  padding: 22px;
  background: var(--color-panel);
  border-bottom: 3px solid transparent;
}

.page-products .p-guide__step:nth-child(1) {
  border-bottom-color: var(--color-yellow);
}

.page-products .p-guide__step:nth-child(2) {
  border-bottom-color: var(--color-purple);
}

.page-products .p-guide__step:nth-child(3) {
  border-bottom-color: var(--color-neon);
}

.page-products .p-guide__num {
  display: block;
  margin-bottom: 14px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-purple);
}

.page-products .p-guide__step h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.page-products .p-guide__step p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.66);
}

@media (min-width: 700px) {
  .page-products .p-caps__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-products .p-caps__card--wide {
    grid-column: span 3;
  }

  .page-products .p-caps__card {
    grid-column: span 2;
  }

  .page-products .p-caps__media {
    grid-column: span 6;
  }
}

@media (min-width: 800px) {
  .page-products .p-data__metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products .p-guide__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .page-products .p-guide__step {
    margin-right: 28px;
  }

  .page-products .p-guide__step:last-child {
    margin-right: 0;
  }

  .page-products .p-guide__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    width: 16px;
    height: 2px;
    background: var(--color-gradient);
  }
}

@media (min-width: 900px) {
  .page-products .p-hero__rail {
    display: flex;
  }

  .page-products .p-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .page-products .p-dl__grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
  }

  .page-products .p-dl__history {
    flex-wrap: wrap;
    overflow: visible;
  }

  .page-products .p-data__lower {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.4fr);
  }
}
