/*
  Dedicated desktop product showcase placed below the mobile hero carousel.
*/

.desktop-showcase {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 30px;
  display: grid;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 10%, rgba(0, 175, 185, 0.10), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.30);
}

.desktop-showcase-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.desktop-showcase-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.desktop-showcase-copy p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #d5dde4;
  font-size: clamp(1rem, 1.65vw, 1.14rem);
}

.desktop-showcase-frame {
  position: relative;
  z-index: 2;
  width: min(700px, 65%);
  margin: 0 auto;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(241, 209, 138, 0.30);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
    #071522;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.desktop-showcase-frame::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 100%;
  height: 13px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #566169, #20282e);
  box-shadow: 0 14px 26px rgba(0,0,0,0.34);
}

.desktop-showcase-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 11px;
  background: #030e18;
}

.desktop-showcase-glow {
  position: absolute;
  z-index: 0;
  inset: -14%;
  border-radius: 40%;
  pointer-events: none;
  background:
    radial-gradient(circle at 42% 45%, rgba(0, 175, 185, 0.17), transparent 52%),
    radial-gradient(circle at 72% 22%, rgba(212, 173, 97, 0.15), transparent 44%);
  filter: blur(30px);
}

@media (max-width: 720px) {
  .desktop-showcase {
    width: min(100% - 20px, 1180px);
    margin-bottom: 20px;
    padding: 20px 14px 24px;
    gap: 18px;
    border-radius: 24px;
  }

  .desktop-showcase-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .desktop-showcase-frame {
    width: min(760px, 96%);
    padding: 5px;
    border-radius: 13px;
  }

  .desktop-showcase-frame img {
    border-radius: 8px;
  }

  .desktop-showcase-frame::before {
    height: 8px;
  }
}


/* Desktop screenshot in the lower scrolling preview band.
   Hidden on desktop. On mobile, it matches the phone cards' rendered height
   and expands horizontally in proportion to the desktop screenshot ratio. */
.screenshot-track .desktop-marquee-preview {
  display: none;
}

@media (max-width: 720px) {
  .screenshot-band .screenshot-track {
    align-items: center !important;
  }

  .screenshot-band .screenshot-track figure.desktop-marquee-preview,
  .screenshot-band .screenshot-track figure.marquee-duplicate.desktop-marquee-preview {
    display: block !important;

    /* Phone cards are 76vw wide, capped at 320px, with ratio 877:1320.
       Their resulting height is therefore min(114.4vw, 482px). */
    height: min(114.4vw, 482px) !important;

    /* Desktop image ratio is approximately 1744:863. */
    width: min(231.2vw, 974px) !important;
    flex: 0 0 min(231.2vw, 974px) !important;

    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1744 / 863 !important;
    align-self: center !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .screenshot-band .screenshot-track figure.desktop-marquee-preview img,
  .screenshot-band .screenshot-track figure.marquee-duplicate.desktop-marquee-preview img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 1744 / 863 !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}
