.page-products {
  --card-radius: 24px;
  --card-shadow: 0 18px 50px rgba(11, 31, 58, 0.08);
  --glow: 0 24px 70px rgba(212, 175, 55, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --space-section: 72px;
  background: var(--color-cream);
}

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

.page-products figure {
  margin: 0;
}

/* ========== Hero ========== */
.page-products .platform-hero {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse at 82% 16%, rgba(212, 175, 55, 0.2), transparent 48%),
    radial-gradient(ellipse at 12% 88%, rgba(255, 107, 53, 0.12), transparent 42%),
    linear-gradient(140deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  overflow: hidden;
}

.page-products .platform-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  pointer-events: none;
}

.page-products .hero-grid {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

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

.page-products .hero-title {
  margin: 12px 0 20px;
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-products .hero-intro {
  max-width: 620px;
  color: rgba(247, 243, 232, 0.86);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
}

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

.page-products .stat-item {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.page-products .stat-num {
  display: block;
  color: var(--color-gold);
  font-family: var(--font-accent);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.page-products .stat-label {
  display: block;
  margin-top: 4px;
  color: rgba(247, 243, 232, 0.72);
  font-size: 13px;
  letter-spacing: 0.04em;
}

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

.page-products .platform-hero .btn-ghost {
  border-color: rgba(212, 175, 55, 0.6);
  color: var(--color-gold);
}

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

.page-products .hero-media img {
  width: 100%;
  border-radius: var(--card-radius);
  box-shadow: var(--glow);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.page-products .hero-media .figure-caption {
  margin-top: 12px;
  color: rgba(247, 243, 232, 0.6);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: right;
}

/* ========== Breadcrumb ========== */
.page-products .breadcrumb-wrap {
  padding-top: 24px;
  padding-bottom: 8px;
}

.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-muted);
}

.page-products .breadcrumb a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
}

.page-products .breadcrumb a:hover {
  color: var(--color-orange);
}

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

/* ========== Service rail ========== */
.page-products .service-rail {
  padding: 48px 0 72px;
}

.page-products .rail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.page-products .rail-heading h2,
.page-products .section-head h2 {
  margin: 8px 0 0;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-products .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .filter-button {
  border: 1px solid rgba(11, 31, 58, 0.18);
  background: transparent;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.28s var(--ease);
}

.page-products .filter-button:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.page-products .filter-button.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-cream);
}

.page-products .rail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-products .service-preview {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--color-glass);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}

.page-products .service-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.page-products .service-preview:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

.page-products .preview-v3::before {
  background: linear-gradient(90deg, var(--color-gold), rgba(212, 175, 55, 0.4));
}

.page-products .preview-query::before {
  background: linear-gradient(90deg, var(--color-navy), rgba(11, 31, 58, 0.5));
}

.page-products .preview-guide::before {
  background: linear-gradient(90deg, var(--color-orange), rgba(255, 107, 53, 0.4));
}

.page-products .preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.page-products .preview-icon-gold {
  background: rgba(212, 175, 55, 0.16);
  color: #a8871f;
}

.page-products .preview-icon-navy {
  background: rgba(11, 31, 58, 0.12);
  color: var(--color-navy);
}

.page-products .preview-icon-orange {
  background: rgba(255, 107, 53, 0.16);
  color: var(--color-orange);
}

.page-products .preview-kind {
  margin: 0 0 6px;
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.page-products .service-preview h3 {
  margin: 0 0 12px;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
}

.page-products .service-preview > p:not(.preview-kind) {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
}

.page-products .preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 18px 0 16px;
}

.page-products .preview-meta li {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.06);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 600;
}

.page-products .preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.page-products .preview-link:hover {
  color: var(--color-orange);
}

.page-products .rail-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 30px;
  border-radius: var(--card-radius);
  background:
    radial-gradient(ellipse at 10% 20%, rgba(212, 175, 55, 0.22), transparent 60%),
    linear-gradient(135deg, var(--color-navy), var(--color-navy-deep));
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.page-products .rail-cta::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.page-products .cta-copy {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.page-products .cta-copy h3 {
  margin: 8px 0 10px;
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
}

.page-products .cta-copy p {
  color: rgba(247, 243, 232, 0.82);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ========== Section general ========== */
.page-products .platform-section {
  padding: var(--space-section) 0;
}

.page-products .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 32px;
}

.page-products .section-head-light .eyebrow {
  color: var(--color-gold);
}

.page-products .section-head-light h2 {
  color: var(--color-cream);
}

.page-products .section-note {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.page-products .section-head-light .section-note {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(247, 243, 232, 0.82);
}

.page-products .lead {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-ink);
}

/* ========== V3 section ========== */
.page-products .v3-section {
  background: linear-gradient(180deg, var(--color-cream) 0%, #f2ede0 100%);
}

.page-products .v3-card {
  padding: 32px;
  border-radius: 32px;
  background: #fffdf8;
  border: 2px solid var(--color-gold);
  box-shadow: var(--glow);
}

.page-products .v3-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-products .catalog-list {
  margin: 28px 0 26px;
  border-top: 1px solid rgba(11, 31, 58, 0.1);
}

.page-products .catalog-item {
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.page-products .catalog-item summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 6px;
  cursor: pointer;
  list-style: none;
}

.page-products .catalog-item summary::-webkit-details-marker {
  display: none;
}

.page-products .catalog-item-index {
  grid-row: 1 / 3;
  font-family: var(--font-accent);
  font-size: 14px;
  color: var(--color-gold);
  letter-spacing: 0.08em;
}

.page-products .catalog-item-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
}

.page-products .catalog-item-brief {
  color: var(--color-muted);
  font-size: 14px;
}

.page-products .catalog-item[open] summary {
  padding-bottom: 8px;
}

.page-products .catalog-detail {
  padding: 4px 6px 18px 34px;
  animation: pageCatalogSlide 0.3s var(--ease);
}

@keyframes pageCatalogSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-products .catalog-detail ul {
  margin: 0;
  padding-left: 16px;
}

.page-products .catalog-detail li {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-ink);
}

.page-products .search-modes h3 {
  margin: 0 0 14px;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 18px;
}

.page-products .mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.page-products .mode-note {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
}

.page-products .v3-figure img,
.page-products .query-figure img,
.page-products .guide-figure img,
.page-products .maintenance-figure img {
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.page-products .v3-figure {
  position: sticky;
  top: 24px;
}

.page-products .figure-caption {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* ========== Query section ========== */
.page-products .query-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #123052 0%, #0a1f38 100%);
  background-size: 48px 48px, 48px 48px, cover;
  color: var(--color-cream);
}

.page-products .query-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-products .query-copy {
  order: 2;
}

.page-products .query-copy .lead {
  color: rgba(247, 243, 232, 0.84);
}

.page-products .query-filters h3,
.page-products .query-steps h3 {
  margin: 0 0 14px;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
}

.page-products .filter-matrix {
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  margin-bottom: 26px;
}

.page-products .matrix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.page-products .matrix-row span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-cream);
}

.page-products .matrix-row em {
  font-style: normal;
  font-size: 14px;
  color: rgba(247, 243, 232, 0.7);
}

.page-products .step-line {
  list-style: none;
  counter-reset: pageStep;
  margin: 0 0 28px;
  padding: 0;
}

.page-products .step-line li {
  counter-increment: pageStep;
  position: relative;
  padding: 0 0 16px 40px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 243, 232, 0.85);
}

.page-products .step-line li::before {
  content: counter(pageStep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--color-gold);
  font-family: var(--font-accent);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-products .query-copy .btn-ghost {
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--color-gold);
}

.page-products .query-figure {
  order: 1;
}

/* ========== Guide section ========== */
.page-products .guide-section {
  background:
    radial-gradient(ellipse at 88% 12%, rgba(255, 107, 53, 0.1), transparent 48%),
    #f4efe3;
}

.page-products .guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.page-products .guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-products .guide-steps::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-orange));
}

.page-products .guide-step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 14px 0 22px;
}

.page-products .step-num {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold);
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 4px #f4efe3;
}

.page-products .step-body {
  padding: 6px 0 0;
}

.page-products .step-body h3 {
  margin: 0 0 6px;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
}

.page-products .step-body p {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
}

.page-products .guide-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-products .guide-rule-note {
  margin: 0;
}

/* ========== Maintenance section ========== */
.page-products .maintenance-section {
  background:
    radial-gradient(ellipse at 18% 82%, rgba(212, 175, 55, 0.14), transparent 50%),
    linear-gradient(160deg, #0b1f3a 0%, #071426 100%);
  color: var(--color-cream);
}

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

.page-products .maintenance-timeline {
  position: relative;
  padding-left: 0;
}

.page-products .timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 0 0 22px 20px;
  border-left: 2px solid rgba(212, 175, 55, 0.4);
}

.page-products .timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-orange);
  border: 2px solid var(--color-cream);
}

.page-products .timeline-state {
  flex-shrink: 0;
  align-self: flex-start;
}

.page-products .timeline-body h3 {
  margin: 0 0 6px;
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
}

.page-products .timeline-body p {
  margin: 0;
  color: rgba(247, 243, 232, 0.78);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
}

.page-products .timeline-more {
  margin-top: 18px;
  padding-left: 20px;
}

.page-products .link-arrow {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.page-products .link-arrow:hover {
  color: var(--color-orange);
}

.page-products .maintenance-figure img {
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* ========== Service path ========== */
.page-products .service-path {
  padding: 72px 0;
  background:
    linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    var(--color-cream);
  background-size: 42px 42px;
  text-align: center;
}

.page-products .service-path h2 {
  margin: 8px auto 12px;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  max-width: 560px;
}

.page-products .service-path > .container > p {
  margin: 0 auto 28px;
  max-width: 580px;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
}

.page-products .path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ========== Responsive ========== */
@media (min-width: 768px) {
  .page-products {
    --space-section: 88px;
  }

  .page-products .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products .rail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .preview-guide {
    grid-column: 1 / -1;
  }

  .page-products .guide-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .page-products .guide-rule-note {
    margin-top: 0;
  }

  .page-products .maintenance-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .page-products .query-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .page-products .query-copy {
    order: 1;
  }

  .page-products .query-figure {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .page-products .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .page-products .hero-media {
    margin-left: 16px;
  }

  .page-products .rail-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-products .preview-v3 {
    grid-column: span 5;
  }

  .page-products .preview-query {
    grid-column: span 4;
  }

  .page-products .preview-guide {
    grid-column: span 3;
  }

  .page-products .v3-layout {
    grid-template-columns: 1fr 0.8fr;
    gap: 48px;
  }

  .page-products .query-layout {
    gap: 56px;
  }

  .page-products .guide-layout {
    gap: 56px;
  }

  .page-products .maintenance-layout {
    gap: 64px;
  }
}
