/* Hāvin public website v0.5.6 — three-phone mobile collage + infinite center-focus asset wheel */

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

/* Preserve the mobile Halo card 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;
}

/* Three-phone mobile collage */
.rc5-mobile-collage {
  max-width: 380px;
}

.portal-mobile-stack {
  position: relative;
  width: min(100%, 380px);
  height: 610px;
  margin: 0 auto;
  overflow: visible;
}

.portal-mobile-card {
  position: absolute;
  width: 176px;
  transform-origin: center center;
}

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

.portal-mobile-card .portal-mobile-top img {
  width: 84px;
}

.portal-mobile-card .portal-mobile-top span {
  font-size: 10px;
}

.portal-mobile-card .phone-content-sm {
  padding: 14px 12px 70px;
}

.portal-mobile-card .phone-content-sm > h4 {
  margin: 7px 0 10px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.card-left {
  left: -8px;
  top: 46px;
  z-index: 1;
  transform: rotate(-7deg) scale(0.88);
  opacity: 0.88;
}

.card-center {
  left: 50%;
  top: 0;
  z-index: 3;
  width: 224px;
  transform: translateX(-50%);
}

.card-center .portal-mobile-screen {
  min-height: 540px;
}

.card-right {
  right: -8px;
  top: 52px;
  z-index: 2;
  transform: rotate(7deg) scale(0.88);
  opacity: 0.88;
}

.mobile-screen-watch,
.mobile-screen-text {
  background:
    radial-gradient(circle at 18% 7%, rgba(75, 42, 114, 0.28), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(63, 167, 225, 0.12), transparent 26%),
    var(--havin-midnight-navy);
}

.mini-list-card {
  margin-top: 10px;
  padding: 12px 12px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 30, 52, 0.92), rgba(10, 18, 33, 0.94));
}

.mini-list-card small {
  display: block;
  color: #86d0ff;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.mini-list-card strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 12px;
}

.mini-list-card span {
  display: block;
  margin-top: 4px;
  color: #90a1bb;
  font-size: 8px;
  line-height: 1.45;
}

.text-thread-preview {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.text-bubble {
  max-width: 90%;
  padding: 9px 10px;
  border-radius: 14px;
  font-size: 8px;
  line-height: 1.45;
}

.text-bubble.user {
  justify-self: end;
  border-bottom-right-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.90), rgba(63, 167, 225, 0.85));
}

.text-bubble.havin {
  justify-self: start;
  border-bottom-left-radius: 6px;
  color: #d7e4f5;
  background: rgba(255, 255, 255, 0.07);
}

/* Infinite wheel with fixed center focus */
.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;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.38) 6%, #000 18%, #000 82%, rgba(0,0,0,.38) 94%, transparent 100%);
}

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

.ownership-wheel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(210px, 46vw);
  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) 38%, rgba(75, 42, 114, 0.10) 64%, transparent 82%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}

.ownership-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--wheel-focus-width);
  height: 42px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(63, 167, 225, 0.05) inset,
    0 0 14px rgba(63, 167, 225, 0.12);
  pointer-events: none;
  z-index: 0;
}

.ownership-wheel .asset-wheel-item {
  --wheel-scale: 0.84;
  --wheel-opacity: 0.22;
  --wheel-blur: 2.6px;
  --wheel-rotate: 0deg;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: var(--wheel-focus-width);
  min-height: 42px;
  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;
  scroll-snap-stop: always;
  transform: rotateY(var(--wheel-rotate)) 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, background 220ms ease, color 220ms ease;
  will-change: transform, filter, opacity;
}

.ownership-wheel .asset-wheel-item.is-center {
  color: #ffffff;
  border-color: rgba(63, 167, 225, 0.26);
  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 10px 24px rgba(0, 0, 0, 0.14),
    0 0 12px rgba(63, 167, 225, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.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: 168px;
  }

  .rc5-mobile-collage {
    max-width: 360px;
  }

  .portal-mobile-stack {
    width: min(100%, 360px);
    height: 586px;
  }

  .portal-mobile-card {
    width: 168px;
  }

  .card-center {
    width: 214px;
  }

  .card-center .portal-mobile-screen {
    min-height: 528px;
  }

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

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

  .rc5-mobile-collage {
    max-width: 340px;
  }

  .portal-mobile-stack {
    width: min(100%, 340px);
    height: 556px;
  }

  .portal-mobile-card {
    width: 150px;
  }

  .card-left {
    left: -2px;
    top: 56px;
  }

  .card-center {
    width: 204px;
  }

  .card-center .portal-mobile-screen {
    min-height: 500px;
  }

  .card-right {
    right: -2px;
    top: 60px;
  }

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

  .portal-mobile-card .portal-mobile-top {
    padding: 25px 13px 10px;
  }

  .portal-mobile-card .portal-mobile-top img {
    width: 78px;
  }

  .portal-mobile-card .phone-content-sm {
    padding: 13px 11px 68px;
  }

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

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

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

  .rc5-mobile-collage {
    max-width: 316px;
  }

  .portal-mobile-stack {
    width: min(100%, 316px);
    height: 530px;
  }

  .portal-mobile-card {
    width: 142px;
  }

  .card-left {
    top: 60px;
    transform: rotate(-7deg) scale(0.83);
  }

  .card-center {
    width: 194px;
  }

  .card-center .portal-mobile-screen {
    min-height: 482px;
  }

  .card-right {
    top: 62px;
    transform: rotate(7deg) scale(0.83);
  }

  .portal-mobile-card .phone-content-sm > h4 {
    font-size: 18px;
  }

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