/* Product showcase — hover glow + lift (DCUBE_RD / ResearchPage.tsx ProductShowcase) */
#rd-products-scope .rd-product-article {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  #rd-products-scope .rd-product-article:hover {
    transform: translateY(-4px);
  }
}

#rd-products-scope .rd-product-glow {
  position: absolute;
  inset: -1rem;
  z-index: 0;
  border-radius: 2.5rem;
  pointer-events: none;
  opacity: 0;
  filter: blur(40px);
  transition: opacity 0.5s ease;
}

#rd-products-scope .rd-product-glow--dia {
  background: rgba(34, 211, 238, 0.25);
}

#rd-products-scope .rd-product-glow--dmon {
  background: rgba(129, 140, 248, 0.25);
}

@media (hover: hover) {
  #rd-products-scope .rd-product-article:hover .rd-product-glow {
    opacity: 1;
  }
}

#rd-products-scope .rd-product-showcase-card {
  position: relative;
  z-index: 1;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1),
    0 25px 50px -12px rgba(226, 232, 240, 0.4);
}

#rd-products-scope .product-card-viewbox {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #0f172a;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  #rd-products-scope .rd-product-article {
    transition: none;
  }

  #rd-products-scope .rd-product-article:hover {
    transform: none;
  }
}

/* DIA / DMON blue panels — light grid lines (matches React ProductVisualPanel SVG) */
.rd-product-visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='rd-grid' width='28' height='28' patternUnits='userSpaceOnUse'%3E%3Cpath d='M28 0H0V28' fill='none' stroke='white' stroke-width='0.6'/%3E%3C/pattern%3E%3Cpattern id='rd-diag' width='56' height='56' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Cline x1='0' y1='0' x2='0' y2='56' stroke='white' stroke-width='0.35' opacity='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23rd-grid)' opacity='0.18'/%3E%3Crect width='100%25' height='100%25' fill='url(%23rd-diag)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.rd-product-visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle 5rem at calc(100% + 2rem) -2rem, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(circle 6rem at -2rem calc(100% + 3rem), rgba(0, 0, 0, 0.1), transparent);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  animation: ticker-scroll 28s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

.product-details-panel {
  display: none;
}
.product-details-panel.is-open {
  display: block;
}

@keyframes tech-dash-march {
  to {
    stroke-dashoffset: -11;
  }
}

@keyframes dia-hub-dash {
  to {
    stroke-dashoffset: -22;
  }
}

@keyframes dia-hub-dash-track {
  to {
    stroke-dashoffset: -18;
  }
}

.animate-tech-dash {
  animation: tech-dash-march 1.75s linear infinite;
}

.animate-dia-hub-dash {
  animation: dia-hub-dash 1.25s linear infinite;
}

.animate-dia-hub-dash-track {
  animation: dia-hub-dash-track 2s linear infinite;
}

.dia-features-hub {
  min-height: 0;
  padding-bottom: 1.25rem;
}

.dia-features-hub__bottom {
  padding-bottom: 0.75rem;
}

.dia-features-connectors {
  z-index: 0;
}

.dia-feature-card {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .animate-tech-dash,
  .animate-dia-hub-dash,
  .animate-dia-hub-dash-track {
    animation: none;
  }
}

/* Product card screenshots — same frame size for DIA and DMON */
#rd-products-scope .product-card-media-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1018 / 583;
  min-height: 0;
  overflow: hidden;
}

#rd-products-scope .product-card-media-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

/* DMON panel — external visit link hidden */
#rd-products-scope .rd-dmon-visit-link {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #4338ca;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

#rd-products-scope .rd-dmon-visit-link__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.65);
  animation: rd-dmon-link-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

#rd-products-scope .rd-dmon-visit-link__icon {
  position: relative;
  z-index: 1;
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}

#rd-products-scope .rd-dmon-visit-link:hover {
  transform: translateY(-2px) scale(1.06);
  background: #fff;
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.75);
}

#rd-products-scope .rd-dmon-visit-link:hover .rd-dmon-visit-link__icon {
  transform: translate(2px, -2px);
}

#rd-products-scope .rd-dmon-visit-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes rd-dmon-link-pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rd-products-scope .rd-dmon-visit-link__pulse {
    animation: none;
  }

  #rd-products-scope .rd-dmon-visit-link:hover {
    transform: none;
  }

  #rd-products-scope .rd-dmon-visit-link:hover .rd-dmon-visit-link__icon {
    transform: none;
  }
}

.product-card-screenshot {
  background: #0f172a;
}

/* Patented Technology — certificate sized to align with left column */
.rd-patent-cert-figure {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.rd-patent-cert-figure--highlight {
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
  border: 2px solid #d97706;
  border-radius: 0.5rem;
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.2),
    0 18px 40px rgba(180, 83, 9, 0.16);
}

.rd-patent-cert-figure--highlight .rd-patent-cert-zoom {
  width: fit-content;
  max-width: 100%;
  border-radius: 0.25rem;
}

.rd-patent-cert-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center top;
}

.rd-patent-cert-figure--highlight .rd-patent-cert-img {
  width: auto;
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .rd-patent-cert-img {
    max-height: 440px;
  }
}

@media (min-width: 1024px) {
  .rd-patent-cert-img {
    max-height: 500px;
  }
}

.rd-patent-cert-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 0.75rem;
  overflow: hidden;
  text-align: left;
}

.rd-patent-cert-zoom:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 3px;
}

.rd-patent-cert-zoom__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.rd-patent-cert-zoom:hover .rd-patent-cert-zoom__overlay,
.rd-patent-cert-zoom:focus-visible .rd-patent-cert-zoom__overlay {
  opacity: 1;
}

.rd-patent-cert-zoom__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.rd-patent-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.rd-patent-lightbox[hidden] {
  display: none !important;
}

.rd-patent-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(2, 6, 23, 0.82);
  cursor: pointer;
}

.rd-patent-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 52rem);
  max-height: 92vh;
  margin: 0;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rd-patent-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  cursor: pointer;
}

.rd-patent-lightbox__close:hover {
  background: rgba(15, 23, 42, 0.9);
}

.rd-patent-lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 2rem);
  object-fit: contain;
  border-radius: 0.5rem;
}

body.rd-patent-lightbox-open {
  overflow: hidden;
}

.dmon-carousel-viewport {
  position: relative;
  min-height: 240px;
}
@media (min-width: 768px) {
  .dmon-carousel-viewport {
    min-height: 280px;
  }
}
.dmon-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.dmon-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.dmon-expand-carousel-viewport {
  position: relative;
  min-height: 240px;
}
@media (min-width: 640px) {
  .dmon-expand-carousel-viewport {
    min-height: 280px;
  }
}
@media (min-width: 768px) {
  .dmon-expand-carousel-viewport {
    min-height: 320px;
  }
}
.dmon-expand-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.dmon-expand-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* DIA product card — Business Impact grid */
#rd-products-scope .rd-business-impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  #rd-products-scope .rd-business-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }
}

#rd-products-scope .rd-business-impact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

#rd-products-scope .rd-business-impact-card__icon {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

#rd-products-scope .rd-business-impact-card p {
  margin: 0;
  line-height: 1.35;
}

@media (max-width: 639.98px) {
  #rd-products-scope .rd-business-impact-card {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
}

/* Industry / operations impact cards (DMON + DIA expand) */
.rd-impact-cards-panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background-color: rgba(255, 255, 255, 0.88);
  background-image:
    radial-gradient(ellipse 75% 55% at 12% 18%, rgba(165, 180, 252, 0.32), transparent 52%),
    radial-gradient(ellipse 70% 50% at 88% 22%, rgba(199, 210, 254, 0.36), transparent 54%),
    radial-gradient(ellipse 65% 48% at 48% 92%, rgba(224, 231, 255, 0.38), transparent 50%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
  .rd-impact-cards-panel {
    padding: 2rem;
  }
}

.rd-impact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.35rem 1.15rem 1.5rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.rd-impact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
}
