/* Full-width wrapper for optional fade background */
.product-hero-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-top: 0;
}

.product-hero-wrapper__fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 17.5rem; /* 280px */
  background: linear-gradient(180deg, #edf7fc 0%, rgba(237, 247, 252, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Product Hero Block Styles */
.product-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: visible;
}

.product-hero__container {
  position: relative;
  max-width: 1248px;
  margin: 0 auto;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero__background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1248px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

.product-hero__vector {
  position: absolute;
  width: 384px;
  height: 228px;
}

.product-hero__vector--left {
  left: 0px;
  top: 34px;
}

.product-hero__vector--right {
  right: -125px;
  bottom: -125px;
  transform: rotate(90deg);
}

.product-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #1b4759;
  max-width: 768px;
  padding: 0 1rem;
}

/* When wrapper exists, ensure proper positioning */
.product-hero-wrapper .product-hero {
  position: relative;
  z-index: 1;
}

.product-hero-wrapper .product-hero__container {
  position: relative;
  z-index: 2;
}

.product-hero__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 58px;
  line-height: 56px;
  letter-spacing: -3.48px;
  margin: 0 0 24px 0;
  font-variation-settings: 'opsz' 14;
}

.product-hero__description {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 26px;
  margin: 0;
  font-variation-settings: 'opsz' 14;
  white-space: pre-wrap;
}

/* Top Link Styles */
.product-hero__top-link {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.product-hero__top-link-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.32px;
  color: #e94e4e;
  text-decoration: underline;
  text-underline-position: from-font;
  transition: color 0.2s ease;
  font-variation-settings: 'opsz' 14;
}

.product-hero__top-link-text:hover {
  color: #d43d3d;
}

.product-hero__top-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
}

.product-hero__top-link-icon svg {
  width: 100%;
  height: 100%;
}

/* Responsive Design */
@media (max-width: 1280px) {
  .product-hero__container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .product-hero__background {
    max-width: 100%;
    margin: 0 1rem;
  }
}

@media (max-width: 768px) {
  .product-hero {
    min-height: 300px;
  }

  .product-hero__container {
    height: 300px;
  }

  .product-hero__background {
    height: 300px;
  }

  .product-hero__title {
    font-size: 42px;
    line-height: 44px;
    letter-spacing: -2.52px;
  }

  .product-hero__description {
    font-size: 17px;
    line-height: 24px;
  }

  .product-hero__top-link-text {
    font-size: 15px;
    line-height: 15px;
    letter-spacing: 0.3px;
  }

  .product-hero__vector {
    width: 250px;
    height: 150px;
  }

  .product-hero__vector--left {
    left: -50px;
    top: 20px;
  }

  .product-hero__vector--right {
    right: -50px;
    bottom: -50px;
  }
}

@media (max-width: 480px) {
  .product-hero__title {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -1.92px;
  }

  .product-hero__description {
    font-size: 16px;
    line-height: 22px;
  }

  .product-hero__top-link-text {
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0.28px;
  }

  .product-hero__content {
    padding: 0 0.5rem;
  }
}
