/* Hāvin public website v0.5.5 — soft-glow asset wheel refinement */

:root {
  --wheel-focus-width: 182px;
}

/* Preserve the v0.5.4 mobile hero text fix */
.rc5-mobile-halo {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
}

.rc5-mobile-halo .rc5-halo-mark {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  font-size: 13px;
  margin-top: 2px;
}

.rc5-mobile-halo strong,
.rc5-mobile-halo span {
  grid-column: 2;
}

.rc5-mobile-halo strong {
  grid-row: 1;
  font-size: 15px;
  line-height: 1.08;
}

.rc5-mobile-halo span {
  grid-row: 2;
  display: block;
  margin-top: 2px;
  max-width: 100%;
  color: #b5c1d3;
  font-size: 10px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* Soft-glow pill carousel */
.ownership-wheel {
  position: relative;
  width: min(1220px, calc(100% - var(--page-gutter)));
  margin-top: 8px;
  padding: 16px max(18px, calc(50% - (var(--wheel-focus-width) / 2))) 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50% - (var(--wheel-focus-width) / 2));
  scroll-behavior: smooth;
  perspective: 1400px;
  transform-style: preserve-3d;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.42) 7%, #000 17%, #000 83%, rgba(0,0,0,.42) 93%, transparent 100%);
}

.ownership-wheel::-webkit-scrollbar {
  display: none;
}

.ownership-wheel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(210px, 44vw);
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(63, 167, 225, 0.20) 0%, rgba(63, 167, 225, 0.12) 36%, rgba(75, 42, 114, 0.10) 62%, transparent 80%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}

.ownership-wheel .asset-wheel-item {
  --wheel-scale: 0.84;
  --wheel-opacity: 0.30;
  --wheel-blur: 2.4px;
  --wheel-rotate: 0deg;
  --wheel-z: -30px;
  --wheel-offset-y: 0px;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: var(--wheel-focus-width);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  color: rgba(231, 239, 250, 0.92);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(19, 29, 49, 0.92), rgba(13, 20, 38, 0.90));
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.04);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  scroll-snap-align: center;
  transform: translate3d(0, var(--wheel-offset-y), var(--wheel-z)) rotateY(var(--wheel-rotate)) scale(var(--wheel-scale));
  transform-origin: center center;
  filter: blur(var(--wheel-blur));
  opacity: var(--wheel-opacity);
  transition: transform 280ms ease, filter 280ms ease, opacity 280ms ease, border-color 280ms ease, box-shadow 280ms ease, background 280ms ease, color 280ms ease;
  will-change: transform, filter, opacity;
}

.ownership-wheel .asset-wheel-item.is-center {
  --wheel-scale: 1;
  --wheel-opacity: 1;
  --wheel-blur: 0px;
  --wheel-rotate: 0deg;
  --wheel-z: 0px;
  color: #ffffff;
  border-color: rgba(63, 167, 225, 0.34);
  background:
    linear-gradient(180deg, rgba(63, 167, 225, 0.10), rgba(255,255,255,0.03)),
    linear-gradient(145deg, rgba(30, 58, 138, 0.44), rgba(13, 20, 38, 0.96));
  box-shadow:
    0 0 0 1px rgba(63, 167, 225, 0.05) inset,
    0 12px 28px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(63, 167, 225, 0.16),
    0 0 12px rgba(75, 42, 114, 0.10);
}

.ownership-wheel .asset-wheel-item.is-near {
  --wheel-opacity: 0.60;
  --wheel-blur: 1px;
}

.ownership-wheel .asset-wheel-item.is-far {
  --wheel-opacity: 0.20;
  --wheel-blur: 2.8px;
}

.ownership-wheel .asset-wheel-item:focus-visible {
  outline: 2px solid rgba(63, 167, 225, 0.48);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  :root {
    --wheel-focus-width: 166px;
  }

  .ownership-wheel .asset-wheel-item {
    min-height: 42px;
    font-size: 15px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 620px) {
  :root {
    --wheel-focus-width: 156px;
  }

  .ownership-wheel {
    width: 100%;
    margin-top: 4px;
    padding-top: 12px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .ownership-wheel::before {
    width: min(190px, 56vw);
    height: 50px;
  }

  .ownership-wheel .asset-wheel-item {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
  }

  .problem-section {
    padding-top: 36px;
  }
}

@media (max-width: 390px) {
  :root {
    --wheel-focus-width: 148px;
  }

  .ownership-wheel .asset-wheel-item {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ownership-wheel,
  .ownership-wheel .asset-wheel-item {
    scroll-behavior: auto;
    transition: none;
  }

  .ownership-wheel .asset-wheel-item {
    transform: none;
    filter: none;
    opacity: 1;
  }
}
