/* Hāvin public website v0.5.3 — mobile portal polish + asset wheel carousel */

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

/* tighten the hero mockup copy so the mobile phone card doesn't wrap awkwardly */
.rc5-mobile-content {
  padding-inline: 16px;
}

.rc5-mobile-halo {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.rc5-mobile-halo .rc5-halo-mark {
  width: 24px;
  height: 24px;
  font-size: 13px;
}

.rc5-mobile-halo strong {
  font-size: 15px;
  line-height: 1.05;
}

.rc5-mobile-halo span {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.portal-mobile-actions {
  gap: 8px;
}

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

/* 3D-like horizontal asset wheel */
.ownership-wheel {
  position: relative;
  width: min(1220px, calc(100% - var(--page-gutter)));
  margin-top: 12px;
  padding: 18px max(16px, calc(50% - (var(--wheel-focus-width) / 2))) 18px;
  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.09);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50% - (var(--wheel-focus-width) / 2));
  perspective: 1400px;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 8%, #000 15%, #000 85%, rgba(0,0,0,.6) 92%, transparent 100%);
}

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

.ownership-wheel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: min(210px, 42vw);
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(63, 167, 225, 0.18), rgba(63, 167, 225, 0.08) 42%, transparent 72%),
    radial-gradient(circle at center, rgba(75, 42, 114, 0.18), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.ownership-wheel .asset-wheel-item {
  --wheel-tilt: 0deg;
  --wheel-scale: 0.92;
  --wheel-opacity: 0.72;
  --wheel-blur: 0.8px;
  --wheel-z: 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(198, 204, 214, 0.16);
  border-radius: 999px;
  color: rgba(231, 239, 250, 0.92);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(26, 34, 57, 0.95), rgba(13, 20, 38, 0.94));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  scroll-snap-align: center;
  transform: translateZ(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.03;
  --wheel-opacity: 1;
  --wheel-blur: 0px;
  --wheel-z: 16px;
  color: var(--rc5-white);
  border-color: rgba(63, 167, 225, 0.42);
  background:
    linear-gradient(180deg, rgba(63, 167, 225, 0.12), rgba(255,255,255,0.03)),
    linear-gradient(145deg, rgba(30, 58, 138, 0.52), rgba(13, 20, 38, 0.96));
  box-shadow:
    0 0 0 1px rgba(63, 167, 225, 0.08) inset,
    0 18px 48px rgba(0, 0, 0, 0.22),
    0 0 26px rgba(63, 167, 225, 0.16);
  text-shadow: 0 0 10px rgba(63, 167, 225, 0.12);
}

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

.ownership-wheel .asset-wheel-item:hover {
  border-color: rgba(63, 167, 225, 0.28);
}

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

  .ownership-wheel {
    width: 100%;
    margin-top: 8px;
  }

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

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

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

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

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

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

  .portal-mobile-actions span,
  .portal-mobile-actions b {
    font-size: 8px;
  }

  .ownership-wheel {
    padding-top: 14px;
    padding-bottom: 16px;
    gap: 10px;
  }

  .ownership-wheel::before {
    width: min(180px, 54vw);
  }

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

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

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

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

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