.page-products {
  background: var(--black);
  color: var(--white);
  overflow-x: clip;
}

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

.page-products .container {
  position: relative;
}

.page-products__context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-top: 28px;
}

.products-hero {
  position: relative;
  padding: 48px 0 40px;
}

.products-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(60%, 520px);
  height: 5px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 5px 0 0 5px;
}

.products-hero__inner {
  display: grid;
  gap: 36px;
}

.products-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.products-hero__kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.products-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.products-hero__lead {
  margin-top: 18px;
  max-width: 720px;
  color: var(--silver);
  font-size: 17px;
  line-height: 1.85;
}

.products-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.products-hero__side .panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: baseline;
  padding: 26px 24px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), transparent 45%), var(--charcoal);
}

.products-hero__side .stat-number {
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 1;
}

.products-hero__side .stat-label {
  font-size: 14px;
  color: var(--silver);
}

.products-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.page-products .chapter {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.page-products .chapter-no {
  font-family: var(--font-heading);
  font-size: clamp(64px, 10vw, 110px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.55);
}

.page-products .chapter-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 40px);
}

.page-products .chapter-desc {
  margin: 0;
  color: var(--silver);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 56px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  width: 100%;
}

.service-card__no {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-family: var(--font-heading);
  font-size: 88px;
  line-height: 1;
  color: rgba(212, 175, 55, 0.12);
  pointer-events: none;
}

.service-card .tag {
  align-self: flex-start;
}

.service-card h3 {
  margin: 14px 0 10px;
  font-size: 22px;
}

.service-card p {
  color: var(--silver);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.service-panel-row {
  display: grid;
  gap: 24px;
  margin-top: 36px;
  align-items: stretch;
}

.service-panel-row .img-frame {
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.service-panel-note {
  padding: 30px;
}

.service-panel-note h3 {
  margin-top: 0;
  font-size: 24px;
}

.service-panel-note > p {
  color: var(--silver);
  line-height: 1.8;
  margin: 10px 0 0;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.service-list li {
  position: relative;
  padding-left: 22px;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.6;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

.platform-entry {
  display: grid;
  gap: 32px;
}

.platform-entry__intro h3 {
  margin-top: 0;
  font-size: 26px;
  line-height: 1.4;
}

.platform-entry__intro p {
  color: var(--silver);
  line-height: 1.8;
  margin: 12px 0 22px;
}

.platform-entry__hint {
  font-size: 14px;
  color: var(--silver);
  opacity: 0.85;
  margin-top: 18px;
}

.platform-entry__steps {
  padding: 26px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.step-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-list__num {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--gold);
  line-height: 1.2;
  flex: none;
}

.step-list li strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.step-list li span {
  color: var(--silver);
  font-size: 15px;
  line-height: 1.6;
}

.platform-entry__stats {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.platform-entry__stat {
  text-align: center;
  padding: 30px 20px;
}

.platform-entry__stat .stat-label {
  color: var(--silver);
}

.stats-dashboard {
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  overflow: hidden;
  background: var(--charcoal-soft);
}

.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background: rgba(212, 175, 55, 0.06);
  border-bottom: 1px solid var(--border-gold);
}

.stats-tab {
  padding: 10px 18px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  color: var(--silver);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.stats-tab:hover,
.stats-tab:focus {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.stats-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.stats-card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px 22px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.stats-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.45);
}

.stats-card .img-frame {
  margin-bottom: 16px;
}

.stats-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.stats-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.stats-card__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--silver);
  font-size: 15px;
}

.stats-card__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stats-card__list b {
  font-size: 26px;
  color: var(--gold);
  font-family: var(--font-heading);
}

.mini-bars {
  display: grid;
  gap: 16px;
}

.mini-bar {
  display: grid;
  grid-template-columns: 64px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.mini-bar > span {
  font-size: 13px;
  color: var(--silver);
}

.mini-bar__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.mini-bar__track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
}

.mini-bar b {
  font-size: 15px;
  font-family: var(--font-heading);
  text-align: right;
  color: var(--white);
}

.stats-export {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  margin-top: 26px;
}

.stats-export h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.stats-export p {
  margin: 0;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.7;
  max-width: 600px;
}

.case-grid {
  display: grid;
  gap: 20px;
}

.case-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
}

.case-card .img-frame {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.case-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  font-size: 64px;
  font-family: var(--font-heading);
  color: rgba(212, 175, 55, 0.28);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(26, 26, 26, 0.85));
}

.case-card__body {
  padding: 20px 22px 24px;
  flex: 1;
}

.case-card__body .tag {
  display: inline-flex;
}

.case-card__body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.case-card__body p {
  margin: 0;
  color: var(--silver);
  font-size: 14px;
  line-height: 1.7;
}

.case-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.version-row {
  display: grid;
  gap: 28px;
}

.version-main {
  display: grid;
  gap: 32px;
}

.version-main .img-frame {
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.version-timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid rgba(212, 175, 55, 0.25);
  display: grid;
  gap: 30px;
}

.version-item {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 4px 16px;
}

.version-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--black);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.version-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  padding: 6px 0;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--black);
  background: var(--gold);
  border-radius: 6px;
}

.version-item__body h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.version-item__body p {
  margin: 0;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.7;
}

.version-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.version-side .img-frame {
  max-width: 200px;
}

.version-side .panel {
  padding: 22px;
}

.version-side .panel h3 {
  margin-top: 0;
  font-size: 18px;
}

.version-side .panel p {
  color: var(--silver);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 768px) {
  .products-hero {
    padding: 64px 0 44px;
  }

  .products-hero__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-panel-row {
    grid-template-columns: 1.2fr 1fr;
  }

  .platform-entry {
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .platform-entry__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .version-row {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .stats-dashboard {
    border-radius: 10px;
  }

  .stats-grid {
    padding: 14px;
  }

  .version-timeline {
    padding-left: 24px;
  }

  .version-item {
    grid-template-columns: 72px 1fr;
    gap: 4px 12px;
  }

  .version-item::before {
    left: -30px;
  }

  .version-year {
    width: 66px;
    font-size: 13px;
  }

  .version-side {
    justify-items: center;
  }

  .version-side .panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition: none !important;
    animation: none !important;
  }
}
