/**
 * VPM Landing — living hero, widgets, human editorial sections
 */

.vpm-lp-hero--living {
  --vpm-lp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --vpm-lp-scribble: 'Caveat', 'Segoe Script', cursive;
  min-height: min(100dvh, 980px);
  padding: clamp(88px, 11vh, 128px) 20px clamp(48px, 8vh, 80px);
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, color-mix(in srgb, var(--vpm-i-secondary) 14%, transparent), transparent 55%),
    var(--vpm-i-bg);
}

@media (min-width: 768px) {
  .vpm-lp-hero--living {
    padding-inline: 32px;
  }
}

.vpm-lp-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 42% 38% at 8% 28%, rgba(0, 108, 73, 0.16), transparent 68%),
    radial-gradient(ellipse 36% 42% at 92% 18%, rgba(11, 61, 145, 0.12), transparent 65%),
    radial-gradient(ellipse 28% 32% at 72% 82%, rgba(180, 140, 90, 0.1), transparent 70%);
  animation: vpm-lp-mesh-drift 22s ease-in-out infinite alternate;
}

.vpm-lp-hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--vpm-i-primary) 18%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes vpm-lp-mesh-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(1.5%, -2%, 0) scale(1.04); }
}

.vpm-lp-hero--living .vpm-lp-hero__grid {
  gap: clamp(36px, 5vw, 56px);
}

@media (min-width: 1024px) {
  .vpm-lp-hero--living .vpm-lp-hero__grid {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 48px;
    align-items: center;
  }
}

.vpm-lp-hero__live {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 18px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--vpm-i-outline);
  background: color-mix(in srgb, var(--vpm-i-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vpm-i-text-muted);
}

.vpm-lp-hero__clock {
  font-family: var(--vpm-font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--vpm-i-surface-low);
  color: var(--vpm-i-primary);
}

.vpm-lp-hero__eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vpm-i-secondary);
}

.vpm-lp-hero--living .vpm-lp-hero__title {
  position: relative;
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1.02;
  margin-bottom: 22px;
}

.vpm-lp-hero__title-serif {
  display: block;
  font-family: var(--vpm-lp-serif);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  background: linear-gradient(125deg, var(--vpm-i-primary) 0%, color-mix(in srgb, var(--vpm-i-secondary) 70%, #0b3d91) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vpm-lp-hero__scribble {
  position: absolute;
  right: 0;
  bottom: -0.15em;
  font-family: var(--vpm-lp-scribble);
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: var(--vpm-i-secondary);
  transform: rotate(-6deg);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 640px) {
  .vpm-lp-hero__scribble {
    position: static;
    display: block;
    margin-top: 6px;
    transform: rotate(-3deg);
  }
}

.vpm-lp-hero__trust {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vpm-lp-hero__trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vpm-i-text-muted);
}

.vpm-lp-hero__trust .material-symbols-outlined {
  font-size: 18px;
  color: var(--vpm-i-secondary);
}

.vpm-lp-hero__social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--vpm-i-outline);
}

.vpm-lp-hero__avatar-stack {
  display: flex;
  flex-shrink: 0;
}

.vpm-lp-hero__avatar-stack span {
  width: 34px;
  height: 34px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid var(--vpm-i-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #0b3d91, #006c49);
}

.vpm-lp-hero__avatar-stack span:first-child {
  margin-left: 0;
}

.vpm-lp-hero__social p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--vpm-i-text-muted);
}

.vpm-lp-hero__social strong {
  color: var(--vpm-i-primary);
  font-weight: 700;
}

/* ── Hero stage & widgets ── */
.vpm-lp-hero--living .vpm-lp-hero__stage {
  min-height: clamp(340px, 52vw, 480px);
  display: grid;
  place-items: center;
}

.vpm-lp-widget {
  position: absolute;
  z-index: 3;
  border-radius: 14px;
  border: 1px solid var(--vpm-i-outline);
  background: color-mix(in srgb, var(--vpm-i-surface) 94%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(17, 28, 45, 0.1);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.vpm-lp-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(17, 28, 45, 0.14);
}

.vpm-lp-widget--balance {
  top: 2%;
  right: 0;
  width: min(220px, 46%);
  padding: 14px 16px;
}

.vpm-lp-widget__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vpm-i-text-muted);
}

.vpm-lp-widget__value {
  display: block;
  margin-top: 4px;
  font-family: var(--vpm-font-mono);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--vpm-i-primary);
  transition: color 0.35s ease;
}

.vpm-lp-widget__value.is-flash-up { color: var(--vpm-i-secondary); }
.vpm-lp-widget__value.is-flash-down { color: #c2410c; }

.vpm-lp-widget__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-family: var(--vpm-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--vpm-i-secondary);
}

.vpm-lp-widget--queue {
  bottom: 6%;
  left: 0;
  width: min(280px, 72%);
  padding: 14px 16px;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.vpm-lp-widget__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vpm-lp-widget__ref {
  font-family: var(--vpm-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--vpm-i-primary);
}

.vpm-lp-widget__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.14);
  color: #9a6700;
}

[data-theme='dark'] .vpm-lp-widget__status {
  color: #fbbf24;
}

.vpm-lp-widget__status.is-done {
  background: rgba(0, 108, 73, 0.12);
  color: var(--vpm-i-secondary);
}

.vpm-lp-widget__meta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--vpm-i-text-muted);
  line-height: 1.4;
}

.vpm-lp-widget__meta em {
  font-style: normal;
  font-weight: 600;
  color: var(--vpm-i-primary);
}

.vpm-lp-hero--living .vpm-lp-float--pnl {
  top: 14%;
  left: -2%;
}

.vpm-lp-hero--living .vpm-lp-float--activity {
  bottom: -2%;
  right: 4%;
  left: auto;
  max-width: min(300px, 90%);
}

.vpm-lp-hero__stage-glow {
  position: absolute;
  inset: 8% 0 0;
  background: radial-gradient(circle at 55% 45%, var(--vpm-i-accent-glow), transparent 62%);
  filter: blur(48px);
  pointer-events: none;
}

/* ── Trust strip (replaces logo wall) ── */
.vpm-lp-trust-strip {
  padding: 44px 20px;
  border-bottom: 1px solid var(--vpm-i-outline);
  background: var(--vpm-i-surface);
}

@media (min-width: 768px) {
  .vpm-lp-trust-strip {
    padding-inline: 32px;
  }
}

.vpm-lp-trust-strip__inner {
  max-width: 1280px;
  margin-inline: auto;
}

.vpm-lp-trust-strip__title {
  text-align: center;
  margin: 0 0 28px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-family: var(--vpm-lp-serif);
  font-weight: 600;
  font-style: italic;
  color: var(--vpm-i-primary);
}

.vpm-lp-trust-strip__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 768px) {
  .vpm-lp-trust-strip__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.vpm-lp-trust-card {
  padding: 22px 20px;
  border-radius: var(--vpm-lp-radius);
  border: 1px solid var(--vpm-i-outline);
  background: var(--vpm-i-surface-low);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.vpm-lp-trust-card:hover {
  border-color: color-mix(in srgb, var(--vpm-i-secondary) 40%, var(--vpm-i-outline));
  transform: translateY(-2px);
}

.vpm-lp-trust-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vpm-i-secondary-container);
  color: var(--vpm-i-secondary);
  margin-bottom: 14px;
}

.vpm-lp-trust-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--vpm-i-primary);
}

.vpm-lp-trust-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--vpm-i-text-muted);
}

/* ── Deposit desk (human workflow) ── */
.vpm-lp-desk {
  padding: 64px 20px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--vpm-i-secondary-container) 35%, var(--vpm-i-bg)) 0%, var(--vpm-i-bg) 100%);
  border-block: 1px solid var(--vpm-i-outline);
}

@media (min-width: 768px) {
  .vpm-lp-desk {
    padding-inline: 32px;
  }
}

.vpm-lp-desk__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .vpm-lp-desk__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
  }
}

.vpm-lp-desk__copy .vpm-i-lead {
  margin-inline: 0;
  max-width: 36rem;
}

.vpm-lp-desk__note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border-left: 3px solid var(--vpm-i-secondary);
  background: var(--vpm-i-surface);
  font-size: 14px;
  line-height: 1.55;
  color: var(--vpm-i-text-muted);
}

.vpm-lp-desk__note strong {
  color: var(--vpm-i-primary);
}

.vpm-lp-desk__panel {
  border-radius: var(--vpm-lp-radius-lg);
  border: 1px solid var(--vpm-i-outline);
  background: var(--vpm-i-surface);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(17, 28, 45, 0.08);
}

.vpm-lp-desk__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--vpm-i-outline);
  background: var(--vpm-i-surface-low);
}

.vpm-lp-desk__panel-head strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--vpm-i-primary);
}

.vpm-lp-desk__live-count {
  font-family: var(--vpm-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--vpm-i-secondary);
}

.vpm-lp-desk__queue {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.vpm-lp-desk__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--vpm-i-outline) 60%, transparent);
  transition: background 0.2s ease;
}

.vpm-lp-desk__item:last-child {
  border-bottom: none;
}

.vpm-lp-desk__item:hover {
  background: var(--vpm-i-surface-low);
}

.vpm-lp-desk__item.is-active {
  background: color-mix(in srgb, var(--vpm-i-secondary-container) 40%, var(--vpm-i-surface));
}

.vpm-lp-desk__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0b3d91, #006c49);
}

.vpm-lp-desk__item-main strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--vpm-i-primary);
}

.vpm-lp-desk__item-main span {
  font-size: 12px;
  color: var(--vpm-i-text-muted);
}

.vpm-lp-desk__badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.vpm-lp-desk__badge--pending {
  background: rgba(255, 193, 7, 0.14);
  color: #9a6700;
}

.vpm-lp-desk__badge--approved {
  background: rgba(0, 108, 73, 0.12);
  color: var(--vpm-i-secondary);
}

[data-theme='dark'] .vpm-lp-desk__badge--pending {
  color: #fbbf24;
}

/* ── Product tabs widget (below ticker) ── */
.vpm-lp-workspace {
  padding: 56px 20px 0;
}

@media (min-width: 768px) {
  .vpm-lp-workspace {
    padding-inline: 32px;
  }
}

.vpm-lp-workspace__head {
  max-width: 1280px;
  margin: 0 auto 28px;
  text-align: center;
}

.vpm-lp-workspace__head p {
  margin: 10px auto 0;
  max-width: 42rem;
  font-size: 15px;
  color: var(--vpm-i-text-muted);
}

.vpm-lp-workspace__tabs {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.vpm-lp-workspace__tab {
  appearance: none;
  border: 1px solid var(--vpm-i-outline);
  background: var(--vpm-i-surface);
  color: var(--vpm-i-text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vpm-lp-workspace__tab:hover {
  color: var(--vpm-i-primary);
  border-color: color-mix(in srgb, var(--vpm-i-secondary) 35%, var(--vpm-i-outline));
}

.vpm-lp-workspace__tab.is-active {
  background: var(--vpm-i-primary);
  border-color: var(--vpm-i-primary);
  color: var(--vpm-i-on-primary);
  transform: translateY(-1px);
}

.vpm-lp-workspace__panels {
  max-width: 1280px;
  margin-inline: auto;
  position: relative;
  min-height: 200px;
}

.vpm-lp-workspace__panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 28px;
  border-radius: var(--vpm-lp-radius-lg);
  border: 1px solid var(--vpm-i-outline);
  background: var(--vpm-i-surface);
  animation: vpm-lp-panel-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vpm-lp-workspace__panel.is-active {
  display: grid;
}

@media (min-width: 768px) {
  .vpm-lp-workspace__panel.is-active {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

@keyframes vpm-lp-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vpm-lp-workspace__panel h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--vpm-i-primary);
}

.vpm-lp-workspace__panel p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--vpm-i-text-muted);
  max-width: 48ch;
}

.vpm-lp-workspace__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: 14px;
  background: var(--vpm-i-surface-low);
  border: 1px solid var(--vpm-i-outline);
}

.vpm-lp-workspace__stat strong {
  font-family: var(--vpm-font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--vpm-i-secondary);
}

.vpm-lp-workspace__stat span {
  font-size: 12.5px;
  color: var(--vpm-i-text-muted);
}

/* ── Responsive hero collapse ── */
@media (max-width: 1023px) {
  .vpm-lp-hero--living {
    min-height: auto;
  }

  .vpm-lp-hero--living .vpm-lp-hero__stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
  }

  .vpm-lp-widget,
  .vpm-lp-hero--living .vpm-lp-float--pnl,
  .vpm-lp-hero--living .vpm-lp-float--activity {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    animation: none;
  }

  .vpm-lp-hero__stage-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    order: 3;
    width: 100%;
  }

  .vpm-lp-hero--living .vpm-lph-terminal {
    order: 1;
    width: 100%;
  }

  .vpm-lp-widget--queue {
    grid-column: 1 / -1;
  }

  .vpm-lp-float--activity {
    order: 4;
  }
}

@media (max-width: 520px) {
  .vpm-lp-hero__stage-widgets {
    grid-template-columns: 1fr;
  }

  .vpm-lp-hero__live {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vpm-lp-hero__mesh,
  .vpm-lp-workspace__panel {
    animation: none;
  }

  .vpm-lp-widget:hover,
  .vpm-lp-trust-card:hover {
    transform: none;
  }
}
