/* Figma 03 New Market Section */
.home-retrofit .market-showcase {
  position: relative;
  min-height: 940px;
  padding: 54px 24px 94px;
  overflow: hidden;
  color: #fff;
  background-color: #000;
  background-image: url('../assets/images/market-showcase-background.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.home-retrofit .market-showcase__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 957px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  text-align: center;
}

.home-retrofit .market-showcase__copy {
  width: 100%;
}

.home-retrofit .market-showcase__title {
  margin: 0;
  font-family: "Trebuchet MS", var(--font-display);
  font-size: 4.375rem;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -2.5px;
  color: #fff;
}

.home-retrofit .market-showcase__description {
  max-width: 957px;
  margin: 12px auto 0;
  font-family: "Trebuchet MS", var(--font-primary);
  font-size: 1.25rem;
  line-height: 1.5;
  color: #fff;
}

.home-retrofit .market-showcase__media-frame {
  box-sizing: border-box;
  width: min(884px, 100%);
  aspect-ratio: 884 / 501;
  padding: 8px;
  border: 8px solid #ff4ca1;
  border-radius: 12px;
  background: #090a0d;
  box-shadow:
    16px 0 50px rgba(255, 76, 161, 0.95),
    -16px 0 50px rgba(14, 78, 255, 0.95);
}

.home-retrofit .market-showcase__video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 4px;
  object-fit: cover;
  background: #090a0d;
}

.home-retrofit .market-showcase__button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  box-sizing: border-box;
  width: 181px;
  min-height: 40px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  font-family: "Trebuchet MS", var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  color: #0f0f0f;
}

.home-retrofit .market-showcase__button::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 7px 0 -7px;
  border-radius: 8px 8px 5px 5px;
  background: #f2f2f2;
  transform: skewX(-18deg);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-retrofit .market-showcase__button:hover::before,
.home-retrofit .market-showcase__button:focus-visible::before {
  background: #fff;
  transform: skewX(-18deg) translateY(-1px);
}

.home-retrofit .market-showcase__button:focus-visible {
  outline: 3px solid #ff4ca1;
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .home-retrofit .market-showcase {
    min-height: 0;
    padding: 64px 32px 80px;
  }

  .home-retrofit .market-showcase__inner {
    gap: 48px;
  }

  .home-retrofit .market-showcase__title {
    font-size: clamp(3.25rem, 6.5vw, 4rem);
  }

  .home-retrofit .market-showcase__media-frame {
    width: min(84vw, 884px);
    box-shadow:
      12px 0 38px rgba(255, 76, 161, 0.78),
      -12px 0 38px rgba(14, 78, 255, 0.78);
  }
}

@media (max-width: 768px) {
  .home-retrofit .market-showcase {
    padding: 64px 24px 72px;
    background-position: center center;
  }

  .home-retrofit .market-showcase__inner {
    gap: 38px;
  }

  .home-retrofit .market-showcase__title {
    font-size: clamp(2.5rem, 10vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -1.5px;
  }

  .home-retrofit .market-showcase__description {
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .home-retrofit .market-showcase__media-frame {
    width: 100%;
    padding: 5px;
    border-width: 5px;
    border-radius: 10px;
    box-shadow:
      8px 0 26px rgba(255, 76, 161, 0.58),
      -8px 0 26px rgba(14, 78, 255, 0.58);
  }

  .home-retrofit .market-showcase__button {
    height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .home-retrofit .market-showcase {
    padding: 56px 16px 64px;
    background-size: auto 100%;
  }

  .home-retrofit .market-showcase__inner {
    gap: 32px;
  }

  .home-retrofit .market-showcase__title {
    font-size: clamp(2.15rem, 10.5vw, 2.75rem);
  }

  .home-retrofit .market-showcase__media-frame {
    padding: 3px;
    border-width: 4px;
    border-radius: 8px;
    box-shadow:
      6px 0 20px rgba(255, 76, 161, 0.48),
      -6px 0 20px rgba(14, 78, 255, 0.48);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-retrofit .market-showcase__button::before {
    transition: none;
  }
}
