/* Hāvin public website v0.5.4 — mobile hero text fix + stronger 3D asset wheel */

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

/* Fix the mobile mockup text layout by forcing text into the wide column */
.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;
}

.portal-mobile-actions span,
.portal-mobile-actions b {
  min-height: 38px;
}

/* Stronger 3D asset wheel / coverflow feel */
.ownership-wheel {
  position: relative;
  width: min(1220px, calc(100% - var(--page-gutter)));
  margin-top: 8px;
  padding: 16px max(16px, 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));
  perspective: 1800px;
  transform-style: preserve-3d;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 8%, #000 16%, #000 84%, rgba(0,0,0,.6) 92%, transparent 100%);
}

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

.ownership-wheel::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: min(72%, 760px);
  height: 38px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(63, 167, 225, 0.16), rgba(63, 167, 225, 0.04) 48%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}

.ownership-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82%, 860px);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 18%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.08) 82%, transparent 100%);
  pointer-events: none;
}

.ownership-wheel .asset-wheel-item {
  --wheel-tilt: 0deg;
  --wheel-scale: 0.86;
  --wheel-opacity: 0.58;
  --wheel-blur: 0.9px;
  --wheel-z: -42px;
  --wheel-shift-y: 6px;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: var(--wheel-focus-width);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(198, 204, 214, 0.14);
  border-radius: 999px;
  color: rgba(224, 233, 246, 0.86);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(19, 29, 49, 0.94), rgba(13, 20, 38, 0.92));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  scroll-snap-align: center;
  transform: translate3d(0, var(--wheel-shift-y), var(--wheel-z)) rotateY(var(--wheel-tilt)) scale(var(--wheel-scale));
  transform-origin: center center;
  filter: blur(var(--wheel-blur));
  opacity: var(--wheel-opacity);
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease, background 220ms ease;
}

.ownership-wheel .asset-wheel-item.is-center {
  --wheel-scale: 1.06;
  --wheel-opacity: 1;
  --wheel-blur: 0px;
  --wheel-z: 28px;
  --wheel-shift-y: 0px;
  color: #ffffff;
  border-color: rgba(63, 167, 225, 0.42);
  background:
    linear-gradient(180deg, rgba(63, 167, 225, 0.16), rgba(255,255,255,0.03)),
    linear-gradient(145deg, rgba(30, 58, 138, 0.56), rgba(13, 20, 38, 0.96));
  box-shadow:
    0 0 0 1px rgba(63, 167, 225, 0.08) inset,
    0 20px 52px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(63, 167, 225, 0.16);
  text-shadow: 0 0 10px rgba(63, 167, 225, 0.12);
}

.ownership-wheel .asset-wheel-item.is-near {
  --wheel-opacity: 0.84;
  --wheel-blur: 0.25px;
  --wheel-z: -4px;
  --wheel-shift-y: 4px;
}

.ownership-wheel .asset-wheel-item.is-far {
  --wheel-opacity: 0.46;
  --wheel-blur: 1.4px;
  --wheel-z: -72px;
  --wheel-shift-y: 10px;
}

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

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

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

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

  .portal-mobile-demo {
    max-width: 310px;
  }

  .portal-mobile-screen {
    min-height: 532px;
  }

  .rc5-mobile-halo {
    padding: 12px;
  }

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

  .ownership-wheel::before {
    height: 32px;
    width: min(88%, 500px);
  }

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

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

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

  .rc5-mobile-halo strong {
    font-size: 14px;
  }

  .rc5-mobile-halo span {
    font-size: 9.4px;
  }

  .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;
  }
}
