/*
 * L4: product-home .slcx package explainer only.
 * Scoped to body.home-page .slcx-package-explainer.
 * The PNG is untouched; labels and connectors are HTML/CSS/SVG.
 */

body.home-page .slcx-package-explainer {
  --slcx-blue: #39baff;
  --slcx-line: rgba(61, 184, 255, 0.82);
  --slcx-gold: rgba(255, 179, 55, 0.85);
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(320px, 1.8fr) minmax(170px, 0.85fr);
  gap: 22px;
  align-items: center;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

body.home-page .slcx-callouts {
  display: grid;
  min-width: 0;
  z-index: 3;
}

body.home-page .slcx-callouts--left {
  gap: 12px;
}

body.home-page .slcx-callouts--right {
  gap: 16px;
}

body.home-page .slcx-callout {
  position: relative;
  min-height: 82px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(51, 172, 255, 0.7);
  background: linear-gradient(135deg, rgba(7, 47, 87, 0.92), rgba(3, 28, 56, 0.94));
  box-shadow: inset 0 0 18px rgba(0, 120, 255, 0.04);
  pointer-events: auto;
}

body.home-page .slcx-callout:hover {
  border-color: rgba(91, 198, 255, 0.92);
}

body.home-page .slcx-callout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--slcx-blue);
}

body.home-page .slcx-callout-icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

body.home-page .slcx-callout--path .slcx-callout-icon {
  color: #ffb337;
}

body.home-page .slcx-callout-copy {
  min-width: 0;
}

body.home-page .slcx-callout-title {
  margin: 0;
  color: #f4f8ff;
  font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

body.home-page .slcx-callout-desc {
  margin: 4px 0 0;
  color: rgba(221, 235, 249, 0.8);
  font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

body.home-page .slcx-package-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.home-page .slcx-package-image {
  display: block;
  width: min(100%, 480px);
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
}

body.home-page .slcx-connector-layer {
  display: none;
  position: absolute;
  inset: 0;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

@media (min-width: 1200px) {
  body.home-page .slcx-connector-layer {
    display: block;
  }
}

@media (max-width: 1199px) {
  body.home-page .slcx-package-explainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "visual visual"
      "model parameters"
      "texture process"
      "slicing package"
      "path .";
    gap: 12px 14px;
    max-width: 720px;
    align-items: stretch;
  }

  body.home-page .slcx-callouts--left,
  body.home-page .slcx-callouts--right {
    display: contents;
  }

  body.home-page .slcx-package-visual {
    grid-area: visual;
  }

  body.home-page .slcx-callout--model { grid-area: model; }
  body.home-page .slcx-callout--texture { grid-area: texture; }
  body.home-page .slcx-callout--slicing { grid-area: slicing; }
  body.home-page .slcx-callout--path { grid-area: path; }
  body.home-page .slcx-callout--parameters { grid-area: parameters; }
  body.home-page .slcx-callout--process { grid-area: process; }
  body.home-page .slcx-callout--package { grid-area: package; }

  body.home-page .slcx-package-image {
    width: min(100%, 420px);
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  body.home-page .slcx-package-explainer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "model"
      "texture"
      "slicing"
      "path"
      "parameters"
      "process"
      "package";
    gap: 10px;
    max-width: none;
  }

  body.home-page .slcx-package-image {
    width: 76vw;
  }

  body.home-page .slcx-callout {
    min-height: 0;
    padding: 10px 12px;
  }
}

/* L4: product-home .slcx limited-time promo. Text + CSS only; no art. */
body.home-page .slcx-promo {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 42px auto 0;
  padding: 30px 48px 26px;
  border-radius: 16px;
  border: 1px solid rgba(38, 176, 255, 0.72);
  background: linear-gradient(135deg, rgba(7, 42, 78, 0.88), rgba(3, 25, 49, 0.94));
  box-shadow: inset 0 0 32px rgba(0, 113, 230, 0.035);
}

body.home-page .slcx-promo__title {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  font-size: clamp(30px, 2.4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

body.home-page .slcx-promo__product {
  color: #f4f8ff;
}

body.home-page .slcx-promo__highlight {
  color: var(--mm3d-challenges-gold-light);
}

body.home-page .slcx-promo__description {
  margin: 14px auto 0;
  max-width: 46em;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
  color: rgba(239, 246, 253, 0.92);
}

body.home-page .slcx-promo__date {
  font-weight: 700;
  font-size: 1.08em;
  white-space: nowrap;
  color: var(--mm3d-challenges-gold-light);
}

body.home-page .slcx-promo__actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

body.home-page .slcx-promo__cta {
  box-sizing: border-box;
  min-width: 230px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 28px;
  border-radius: 11px;
  border: 1px solid rgba(255, 213, 105, 0.85);
  background: linear-gradient(135deg, #ffd568, #f2aa2b);
  color: #071321;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

body.home-page .slcx-promo__cta-arrow {
  flex: 0 0 auto;
  display: block;
}

body.home-page .slcx-promo__cta:focus-visible {
  outline: 2px solid var(--mm3d-challenges-gold-light);
  outline-offset: 3px;
}

body.home-page .slcx-promo__note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(182, 204, 225, 0.7);
}

@media (hover: hover) and (pointer: fine) {
  body.home-page .slcx-promo__cta {
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  body.home-page .slcx-promo__cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .slcx-promo__cta {
    transition: none;
  }

  body.home-page .slcx-promo__cta:hover {
    transform: none;
    filter: none;
  }
}

@media (max-width: 1199px) {
  body.home-page .slcx-promo {
    padding: 28px 32px;
  }

  body.home-page .slcx-promo__title {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  body.home-page .slcx-promo {
    width: 100%;
    padding: 26px 20px 22px;
  }

  body.home-page .slcx-promo__title {
    font-size: clamp(26px, 7vw, 30px);
    gap: 6px;
  }

  body.home-page .slcx-promo__description {
    font-size: 16px;
  }

  body.home-page .slcx-promo__cta {
    width: 100%;
    max-width: 320px;
    min-height: 54px;
  }

  body.home-page .slcx-promo__note {
    font-size: 12px;
  }
}
