/* Premium Products page — scoped to body.products-showcase only */
body.products-showcase {
  background: #f7f8fb;
  color: #1d222b;
}

body.products-showcase .products-page {
  margin: 0;
  max-width: none;
  padding: 0;
}

/* ── Hero ── */
body.products-showcase .products-hero-premium {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 20px clamp(48px, 6vw, 72px);
  background: linear-gradient(135deg, #5a0009 0%, #9f0008 38%, #d70000 72%, #ff3333 100%);
  color: #fff;
  text-align: center;
}

body.products-showcase .products-hero-premium::before,
body.products-showcase .products-hero-premium::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.14;
}

body.products-showcase .products-hero-premium::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
}

body.products-showcase .products-hero-premium::after {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: -60px;
  background: radial-gradient(circle, #fff 0%, transparent 68%);
}

body.products-showcase .products-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

body.products-showcase .products-hero-shapes span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transform: rotate(-12deg);
}

body.products-showcase .products-hero-shapes span:nth-child(1) {
  width: 140px;
  height: 140px;
  top: 18%;
  left: 8%;
}

body.products-showcase .products-hero-shapes span:nth-child(2) {
  width: 90px;
  height: 90px;
  bottom: 22%;
  right: 12%;
  transform: rotate(18deg);
}

body.products-showcase .products-hero-shapes span:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 28%;
  right: 22%;
}

body.products-showcase .products-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

body.products-showcase .products-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.products-showcase .products-hero-premium h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

body.products-showcase .products-hero-subtitle {
  margin: 0 auto 28px;
  max-width: 680px;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.85;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

body.products-showcase .products-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

body.products-showcase .products-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body.products-showcase .products-cta-primary {
  background: #fff;
  color: #9f0008;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

body.products-showcase .products-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

body.products-showcase .products-cta-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

body.products-showcase .products-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ── Stats ── */
body.products-showcase .products-stats-premium {
  margin-top: -36px;
  padding: 0 16px 12px;
  position: relative;
  z-index: 2;
}

body.products-showcase .products-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

body.products-showcase .products-stat-card {
  background: #fff;
  border: 1px solid rgba(215, 0, 0, 0.08);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.25s ease;
}

body.products-showcase .products-stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.products-showcase .products-stat-card:hover {
  box-shadow: 0 18px 44px rgba(215, 0, 0, 0.12);
}

body.products-showcase .products-stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4f63, #5a0009);
  color: #fff;
  font-size: 18px;
}

body.products-showcase .products-stat-card strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: #d70000;
  line-height: 1.1;
}

body.products-showcase .products-stat-card span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #5f6672;
}

/* ── Catalog wrap ── */
body.products-showcase .products-catalog-wrap {
  padding: 28px 16px 80px;
  max-width: 1440px;
}

body.products-showcase .products-tabs-scroll {
  position: sticky;
  top: 72px;
  z-index: 20;
  margin: 0 -16px 28px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f7f8fb 78%, rgba(247, 248, 251, 0));
}

body.products-showcase .products-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 0, 0, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}

body.products-showcase .products-tabs::-webkit-scrollbar {
  height: 6px;
}

body.products-showcase .products-tabs::-webkit-scrollbar-thumb {
  background: rgba(215, 0, 0, 0.35);
  border-radius: 999px;
}

body.products-showcase .products-tab {
  flex: 0 0 auto;
  background: #fff;
  border: 1.5px solid rgba(215, 0, 0, 0.28);
  color: #d70000;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

body.products-showcase .products-tab:hover {
  border-color: #d70000;
  box-shadow: 0 8px 20px rgba(215, 0, 0, 0.1);
}

body.products-showcase .products-tab.active {
  background: linear-gradient(135deg, #d70000, #9f0008);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(215, 0, 0, 0.28);
}

/* ── Sections ── */
body.products-showcase .product-section {
  margin-bottom: 64px;
  scroll-margin-top: 140px;
}

body.products-showcase .product-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e8eaf0;
}

body.products-showcase .product-section-head .section-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d70000, #5a0009);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(215, 0, 0, 0.22);
}

body.products-showcase .product-section-head h2 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  color: #1d222b;
}

body.products-showcase .product-section-count {
  margin-right: auto;
  background: rgba(215, 0, 0, 0.08);
  color: #d70000;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ── Catalog hint ── */
body.products-showcase .products-catalog-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(215, 0, 0, 0.06);
  border: 1px dashed rgba(215, 0, 0, 0.28);
  color: #434a56;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

body.products-showcase .products-catalog-hint i {
  color: #d70000;
  font-size: 16px;
}

/* ── Main system cards (drill-down) ── */
body.products-showcase .main-systems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.products-showcase .main-system-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #eceef3;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.products-showcase .main-system-card.visible {
  opacity: 1;
  transform: translateY(0);
}

body.products-showcase .main-system-card.is-expanded {
  border-color: rgba(215, 0, 0, 0.35);
  box-shadow: 0 16px 40px rgba(215, 0, 0, 0.1);
  grid-column: 1 / -1;
}

body.products-showcase .main-system-trigger {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 20px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  transition: background 0.2s ease;
}

body.products-showcase .main-system-trigger:hover {
  background: rgba(215, 0, 0, 0.03);
}

body.products-showcase .main-system-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

body.products-showcase .main-system-body {
  flex: 1;
  min-width: 0;
}

body.products-showcase .main-system-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
  color: #1e40af;
  line-height: 1.45;
}

body.products-showcase .main-system-desc {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #5f6672;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.products-showcase .main-system-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

body.products-showcase .main-system-count {
  font-size: 11px;
  font-weight: 800;
  color: #d70000;
  background: rgba(215, 0, 0, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

body.products-showcase .main-system-chevron {
  color: #94a3b8;
  font-size: 13px;
  transition: transform 0.25s ease, color 0.25s ease;
}

body.products-showcase .main-system-card.is-expanded .main-system-chevron {
  transform: rotate(180deg);
  color: #d70000;
}

body.products-showcase .system-modules-panel {
  margin: 0 16px 16px;
  padding: 16px 18px;
  border: 2px solid #d70000;
  border-radius: 14px;
  background: #fff;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-height: min(70vh, 720px);
  overflow-y: auto;
}

body.products-showcase .system-modules-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.products-showcase .system-modules-hint {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: #d70000;
  text-transform: none;
}

body.products-showcase .module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 16px;
}

body.products-showcase .module-item {
  margin: 0;
}

body.products-showcase .module-link {
  display: block;
  padding: 8px 4px;
  color: #1d222b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, padding 0.2s ease;
}

body.products-showcase .module-link:hover {
  color: #d70000;
  background: rgba(215, 0, 0, 0.05);
  padding-right: 10px;
}

body.products-showcase .system-modules-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eceef3;
}

body.products-showcase .module-enter-btn,
body.products-showcase .module-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

body.products-showcase .module-enter-btn {
  background: linear-gradient(135deg, #d70000, #9f0008);
  color: #fff;
}

body.products-showcase .module-enter-btn:hover {
  transform: translateY(-1px);
}

body.products-showcase .module-demo-btn {
  background: #fff;
  color: #d70000;
  border: 1.5px solid rgba(215, 0, 0, 0.28);
}

body.products-showcase .module-demo-btn:hover {
  background: rgba(215, 0, 0, 0.06);
}

/* ── Product cards (legacy) ── */
body.products-showcase .product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

body.products-showcase .product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 22px 18px 18px;
  border: 1px solid #eceef3;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  opacity: 0;
  transform: translateY(22px);
}

body.products-showcase .product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.28s ease;
}

body.products-showcase .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  border-color: rgba(215, 0, 0, 0.16);
}

body.products-showcase .product-card .card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff4f63, #5a0009);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: transform 0.22s ease;
}

body.products-showcase .product-card:hover .card-icon {
  transform: scale(1.06) rotate(-3deg);
}

body.products-showcase .product-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
  color: #1d222b;
  line-height: 1.45;
}

body.products-showcase .product-card .card-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: #5f6672;
  line-height: 1.7;
}

body.products-showcase .card-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1;
}

body.products-showcase .card-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #434a56;
  line-height: 1.55;
}

body.products-showcase .card-features li i {
  color: #d70000;
  margin-top: 3px;
  font-size: 11px;
}

body.products-showcase .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

body.products-showcase .card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

body.products-showcase .card-btn-primary {
  background: linear-gradient(135deg, #d70000, #9f0008);
  color: #fff;
  border: 1px solid transparent;
}

body.products-showcase .card-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(215, 0, 0, 0.24);
}

body.products-showcase .card-btn-secondary {
  background: #fff;
  color: #d70000;
  border: 1.5px solid rgba(215, 0, 0, 0.28);
}

body.products-showcase .card-btn-secondary:hover {
  background: rgba(215, 0, 0, 0.06);
}

/* ── Dark mode (products page only) ── */
body.products-showcase.dark-mode {
  background: #12151c;
}

body.products-showcase.dark-mode .products-stats-premium .products-stat-card,
body.products-showcase.dark-mode .product-card,
body.products-showcase.dark-mode .main-system-card,
body.products-showcase.dark-mode .system-modules-panel {
  background: #1a1f2a;
  border-color: #2a3140;
}

body.products-showcase.dark-mode .main-system-card.is-expanded {
  border-color: rgba(255, 107, 107, 0.45);
}

body.products-showcase.dark-mode .system-modules-panel {
  border-color: #ff6b6b;
}

body.products-showcase.dark-mode .products-catalog-hint {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.3);
  color: #b8beca;
}

body.products-showcase.dark-mode .product-section-head h2,
body.products-showcase.dark-mode .product-card h3 {
  color: #f3f4f6;
}

body.products-showcase.dark-mode .main-system-name {
  color: #93c5fd;
}

body.products-showcase.dark-mode .main-system-desc,
body.products-showcase.dark-mode .module-link {
  color: #e5e7eb;
}

body.products-showcase.dark-mode .module-link:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
}

body.products-showcase.dark-mode .product-card .card-desc,
body.products-showcase.dark-mode .products-stat-card span,
body.products-showcase.dark-mode .card-features li {
  color: #b8beca;
}

body.products-showcase.dark-mode .products-tabs-scroll {
  background: linear-gradient(180deg, #12151c 78%, rgba(18, 21, 28, 0));
}

body.products-showcase.dark-mode .products-tab {
  background: #1a1f2a;
  color: #ff6b6b;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
  body.products-showcase .main-systems-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.products-showcase .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  body.products-showcase .main-systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.products-showcase .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.products-showcase .products-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.products-showcase .main-systems-grid {
    grid-template-columns: 1fr;
  }

  body.products-showcase .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.products-showcase .products-tabs-scroll {
    top: 64px;
  }

  body.products-showcase .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.products-showcase .product-card {
    padding: 20px 18px 18px;
  }

  body.products-showcase .card-actions {
    flex-direction: column;
  }

  body.products-showcase .card-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  body.products-showcase .products-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.products-showcase .product-card,
  body.products-showcase .products-stat-card,
  body.products-showcase .products-cta,
  body.products-showcase .card-btn {
    transition: none !important;
    transform: none !important;
  }
}
