.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(70% 88% at 87% 58%, color-mix(in srgb, var(--palette-surface), transparent 5%) 0%, transparent 62%),
    radial-gradient(55% 60% at 62% 25%, color-mix(in srgb, var(--palette-accent), transparent 92%) 0%, transparent 72%),
    linear-gradient(135deg, var(--palette-shadow) 0%, var(--palette-bg) 47%, var(--palette-surface) 100%);
  transition: background .45s ease, color .45s ease;
}

.hero::before {
  position: absolute;
  z-index: 8;
  inset: 0 40% 0 0;
  pointer-events: none;
  background: linear-gradient(to right, var(--palette-bg), var(--palette-bg), transparent);
  content: "";
}

.hero__inner {
  position: relative;
  z-index: 20;
  display: grid;
  align-items: center;
  width: min(calc(100% - 2 * var(--gutter)), var(--container-main));
  height: 100%;
  margin-inline: auto;
  padding-block: clamp(5rem, 9vh, 8.5rem) clamp(7rem, 13vh, 10rem);
}

.hero__copy {
  align-self: center;
  width: min(47rem, 49vw);
  transform: translateY(-1.5vh);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8em;
  margin: 0 0 clamp(1.15rem, 2vh, 1.8rem);
  color: var(--palette-accent-soft);
  font-size: clamp(.72rem, .65rem + .2vw, .9rem);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: clamp(2.1rem, 3vw, 3.4rem);
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 14px color-mix(in srgb, currentColor, transparent 35%);
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--palette-text);
  font-size: clamp(3.25rem, 5.45vw, 6.45rem);
  font-weight: 600;
  letter-spacing: -.058em;
  line-height: .93;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  margin-top: .07em;
  color: var(--palette-accent-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08em;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .83;
  text-shadow: 0 0 32px color-mix(in srgb, var(--palette-accent), transparent 82%);
}

.hero__lead {
  max-width: 62ch;
  margin: clamp(1.55rem, 3vh, 2.5rem) 0 0;
  color: var(--palette-body);
  font-size: clamp(.99rem, .87rem + .32vw, 1.23rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.7rem, 1vw, 1rem);
  margin-top: clamp(1.55rem, 3.4vh, 2.65rem);
}

.trust-row {
  display: flex;
  justify-content: space-between;
  gap: clamp(.9rem, 2.2vw, 2.3rem);
  width: min(45rem, 48vw);
  margin-top: clamp(2.2rem, 5vh, 4rem);
  padding-top: clamp(1.25rem, 2.5vh, 2rem);
  border-top: 1px solid color-mix(in srgb, var(--palette-text), transparent 84%);
}

.trust-row p {
  display: grid;
  grid-template-columns: auto 1fr;
  flex: initial;
  min-width: fit-content;
  align-items: center;
  gap: .75rem;
  margin: 0;
}

.trust-row strong {
  color: var(--palette-accent-soft);
  font-size: clamp(1rem, .82rem + .45vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.035em;
}

.trust-row span {
  color: var(--palette-muted);
  font-size: clamp(.65rem, .6rem + .13vw, .78rem);
  line-height: 1.35;
}

.market-snapshot {
  position: absolute;
  z-index: 22;
  right: 0;
  bottom: clamp(1.8rem, 4.2vh, 3.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.85rem, 1.2vw, 1.35rem);
  min-width: min(22rem, 31vw);
  padding: .9rem 1.05rem .85rem;
  color: var(--palette-muted);
  border: 1px solid color-mix(in srgb, var(--palette-text), transparent 86%);
  border-radius: var(--radius-ui);
  background: color-mix(in srgb, var(--palette-bg), transparent 24%);
  box-shadow: 0 0 1.5em 0 var(--palette-bg);
  backdrop-filter: blur(14px);
}

.market-snapshot__copy {
  display: grid;
  align-content: center;
  gap: .18rem;
  min-width: 0;
}

.market-snapshot__label {
  display: block;
  font-size: clamp(.65rem, .59rem + .14vw, .76rem);
  letter-spacing: .04em;
}

.market-snapshot__price {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  color: var(--palette-accent-soft);
  font-size: clamp(1.05rem, .88rem + .45vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.market-snapshot__price small {
  margin-left: .18em;
  font-size: .52em;
  font-weight: 600;
  letter-spacing: .05em;
}

.market-snapshot__meta {
  display: block;
  font-size: clamp(.58rem, .54rem + .1vw, .68rem);
}

.visual {
  position: absolute;
  z-index: 5;
  inset: -5% -3% -4% 23%;
  pointer-events: none;
}

.product-cluster {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
  transform-origin: 68% 53%;
  will-change: transform;
}

.market-stage {
  position: absolute;
  z-index: 2;
  inset: -12% -7% -12% 2%;
  contain: paint;
  overflow: hidden;
}

.market-stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 56% at 69% 56%,
    transparent 0%,
    transparent 38%,
    color-mix(in srgb, var(--palette-bg), transparent 94%) 47%,
    color-mix(in srgb, var(--palette-bg), transparent 72%) 59%,
    color-mix(in srgb, var(--palette-bg), transparent 38%) 72%,
    color-mix(in srgb, var(--palette-bg), transparent 8%) 88%,
    var(--palette-bg) 100%
  );
  content: "";
}

.market-chart {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.market-chart--base {
  opacity: .115;
}

.market-spotlight {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: var(--spot-size);
  height: var(--spot-size);
  overflow: hidden;
  opacity: 0;
  border-radius: 50%;
  contain: strict;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 0 38%, rgb(0 0 0 / .94) 49%, rgb(0 0 0 / .58) 62%, transparent 76%);
  mask-image: radial-gradient(circle, #000 0 38%, rgb(0 0 0 / .94) 49%, rgb(0 0 0 / .58) 62%, transparent 76%);
  transition: opacity .28s ease;
  will-change: transform, opacity;
}

.market-stage.has-pointer .market-spotlight {
  opacity: var(--spot-strength);
}

.market-chart--bright {
  inset: 0 auto auto 0;
  max-width: none;
  opacity: 1;
  will-change: transform;
}

.ambient {
  position: absolute;
  z-index: 3;
  border: 1px solid color-mix(in srgb, var(--palette-accent-soft), transparent 87%);
  border-radius: 49% 51% 67% 33% / 43% 42% 58% 57%;
  pointer-events: none;
  opacity: .28;
  filter: blur(.2px);
}

.ambient--one {
  top: -22vw;
  right: 1vw;
  width: 38vw;
  aspect-ratio: 1;
  box-shadow: 0 0 90px color-mix(in srgb, var(--palette-accent), transparent 94%);
}

.ambient--two {
  right: -8vw;
  bottom: -7vw;
  width: 24vw;
  aspect-ratio: 1.35;
}

@media (max-width: 80rem) {
  .hero__copy {
    width: min(38rem, 57vw);
  }

  .hero h1 {
    font-size: clamp(3rem, 6.8vw, 5.4rem);
  }

  .visual {
    inset-inline-start: 18%;
    opacity: .88;
  }

  .trust-row {
    width: min(38rem, 57vw);
  }

  .market-snapshot {
    min-width: min(20rem, 34vw);
  }
}

@media (max-width: 47.5rem) {
  .hero {
    min-height: 760px;
    height: 100svh;
  }

  .hero__inner {
    align-items: start;
    padding-top: clamp(5.7rem, 12vh, 7rem);
    padding-bottom: 2rem;
  }

  .hero__copy {
    width: 100%;
    transform: none;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.9rem, 13vw, 4.8rem);
  }

  .hero__lead {
    max-width: 38ch;
    font-size: .94rem;
    line-height: 1.62;
  }

  .visual {
    inset: 35% -24% -9% -11%;
    opacity: .72;
  }

  .market-stage {
    inset-block-start: -5%;
  }

  .market-stage::after {
    background: radial-gradient(
      ellipse 72% 55% at 55% 69%,
      transparent 0%,
      transparent 34%,
      color-mix(in srgb, var(--palette-bg), transparent 82%) 50%,
      color-mix(in srgb, var(--palette-bg), transparent 36%) 68%,
      var(--palette-bg) 92%
    );
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 1.7rem;
    gap: .7rem;
  }

  .trust-row p {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .hero__actions {
    gap: .55rem;
  }

  .market-snapshot {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .hero::before {
    inset: 0;
    background: linear-gradient(
      to bottom,
      var(--palette-bg) 0%,
      var(--palette-bg) 47%,
      color-mix(in srgb, var(--palette-bg), transparent 8%) 61%,
      color-mix(in srgb, var(--palette-bg), transparent 42%) 76%,
      transparent 91%
    );
  }

  .market-stage {
    display: none;
  }

  .product-cluster {
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 47.5rem) and (hover: none) and (pointer: coarse) {
  .visual {
    inset: 48% -38% -8% 6%;
    opacity: .48;
  }

  .product-cluster {
    object-position: right bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-spotlight {
    display: none;
  }

  .product-cluster {
    transform: none !important;
  }
}
