/**
 * VPM Landing — modern refresh (asymmetric hero, motion, depth)
 */

.vpm-institutional--refresh .vpm-page-grain {
  display: block;
  opacity: 0.016;
}

.vpm-institutional--refresh {
  --vpm-i-font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-family: var(--vpm-i-font);
  --vpm-i-cta-blue: #0b3d91;
  --vpm-lp-radius: 16px;
  --vpm-lp-radius-lg: 24px;
  background: var(--vpm-i-bg);
  color: var(--vpm-i-text);
  transition: background 0.35s ease, color 0.35s ease;
}

.vpm-institutional--refresh .vpm-i-header {
  padding-block: 12px;
  background: color-mix(in srgb, var(--vpm-i-bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.vpm-institutional--refresh .vpm-i-header.is-scrolled {
  background: color-mix(in srgb, var(--vpm-i-surface) 92%, transparent);
  border-bottom-color: var(--vpm-i-outline);
  box-shadow: var(--vpm-shadow-md);
}

.vpm-institutional--refresh .vpm-i-nav a.vpm-i-nav__ghost {
  font-weight: 600;
}

.vpm-institutional--refresh .vpm-i-nav .vpm-i-nav__cta {
  margin-left: 4px;
}

.vpm-i-btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (min-width: 768px) {
  .vpm-institutional--refresh .vpm-i-header__tools .vpm-i-menu-toggle {
    display: none;
  }
}

/* Hero */
.vpm-lp-hero {
  position: relative;
  min-height: min(100dvh, 920px);
  padding: clamp(72px, 10vh, 120px) 20px 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

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

.vpm-lp-hero__aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 15% 40%, rgba(0, 108, 73, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 20%, rgba(11, 61, 145, 0.14), transparent 65%),
    radial-gradient(ellipse 30% 40% at 60% 80%, rgba(108, 248, 187, 0.12), transparent 70%);
  animation: vpm-lp-aurora 18s ease-in-out infinite alternate;
}

@keyframes vpm-lp-aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.05); }
}

.vpm-lp-hero__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  gap: 48px;
  align-items: center;
}

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

.vpm-lp-hero__copy {
  text-align: left;
}

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

.vpm-lp-hero__copy .vpm-i-hero__actions {
  justify-content: flex-start;
}

.vpm-lp-hero__title {
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--vpm-i-primary);
  margin-bottom: 20px;
}

.vpm-lp-hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--vpm-i-secondary) 0%, #0b3d91 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vpm-lp-hero__stage {
  position: relative;
  min-height: 280px;
}

.vpm-lp-hero__glow {
  position: absolute;
  inset: 10% 5% 5%;
  background: radial-gradient(circle at 50% 50%, var(--vpm-i-accent-glow), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.vpm-lp-hero__frame {
  position: relative;
  border-radius: var(--vpm-lp-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 4px 6px rgba(17, 28, 45, 0.04),
    0 24px 80px rgba(17, 28, 45, 0.14);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vpm-lp-hero__frame:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.vpm-lp-hero__frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.vpm-lp-float {
  position: absolute;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--vpm-i-border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(17, 28, 45, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: vpm-lp-float 5s ease-in-out infinite;
  z-index: 2;
}

.vpm-lp-float--pnl {
  top: 8%;
  left: -4%;
  animation-delay: 0s;
}

.vpm-lp-float--book {
  bottom: 12%;
  right: -2%;
  animation-delay: 1.2s;
}

@media (max-width: 1023px) {
  .vpm-lp-float--pnl { left: 4%; }
  .vpm-lp-float--book { right: 4%; }
}

@keyframes vpm-lp-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.vpm-lp-float__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vpm-i-text-muted);
}

.vpm-lp-float__value {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--vpm-i-primary);
  margin-top: 4px;
}

.vpm-lp-float__value.is-up {
  color: var(--vpm-i-secondary);
}

.vpm-lp-spark {
  display: block;
  margin-top: 8px;
  width: 100%;
  height: 32px;
}

/* Ticker */
.vpm-lp-ticker {
  border-block: 1px solid var(--vpm-i-outline);
  background: var(--vpm-i-primary);
  color: var(--vpm-i-on-primary);
  overflow: hidden;
  padding: 12px 0;
}

.vpm-lp-ticker__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: vpm-lp-marquee 42s linear infinite;
}

.vpm-lp-ticker__track:hover {
  animation-play-state: paused;
}

@keyframes vpm-lp-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.vpm-lp-ticker__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vpm-lp-ticker__sym {
  opacity: 0.65;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.vpm-lp-ticker__chg.is-up { color: #6cf8bb; }
.vpm-lp-ticker__chg.is-down { color: #fca5a5; }

/* Logo wall */
.vpm-lp-logos {
  padding: 40px 20px;
  background: var(--vpm-i-surface);
  border-bottom: 1px solid var(--vpm-i-outline);
}

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

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

.vpm-lp-logos__title {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vpm-i-text-muted);
  margin-bottom: 24px;
}

.vpm-lp-logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  opacity: 0.72;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.vpm-lp-logos__row:hover {
  opacity: 1;
  filter: grayscale(0);
}

.vpm-lp-logos__row img {
  height: 22px;
  width: auto;
}

/* Bento markets */
.vpm-lp-bento {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .vpm-lp-bento {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
  }

  .vpm-lp-bento .vpm-lp-bento__featured {
    grid-column: span 3;
    grid-row: span 2;
  }

  .vpm-lp-bento .vpm-i-market-card {
    grid-column: span 3;
  }
}

.vpm-lp-bento__featured {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--vpm-lp-radius);
  padding: 0;
  border: none;
}

.vpm-lp-bento__featured img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vpm-lp-bento__featured .vpm-lp-bento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(17, 28, 45, 0.15) 0%, rgba(17, 28, 45, 0.85) 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.vpm-lp-bento__featured h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.vpm-lp-bento__featured p {
  font-size: 14px;
  opacity: 0.9;
  max-width: 28ch;
}

.vpm-lp-market-card--accent {
  background: linear-gradient(145deg, #0b3d91 0%, #111c2d 100%);
  color: #fff;
  border: none;
}

.vpm-lp-market-card--accent h3,
.vpm-lp-market-card--accent .vpm-i-price-row {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.15);
}

.vpm-lp-market-card--accent .vpm-i-icon-wrap {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Copy section visual */
.vpm-lp-copy-visual {
  position: relative;
  border-radius: var(--vpm-lp-radius-lg);
  overflow: hidden;
  min-height: 360px;
}

.vpm-lp-copy-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.vpm-lp-copy-visual__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Mining dark band */
.vpm-lp-mining-band {
  background: linear-gradient(180deg, #0d1524 0%, #111c2d 100%);
  color: #fff;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.vpm-lp-mining-band .vpm-i-h2,
.vpm-lp-mining-band .vpm-i-lead {
  color: #fff;
}

.vpm-lp-mining-band .vpm-i-feature {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.vpm-lp-mining-band .vpm-i-feature p {
  color: rgba(255, 255, 255, 0.65);
}

.vpm-lp-mining-band .vpm-i-feature__icon {
  background: rgba(108, 248, 187, 0.12);
  color: #6cf8bb;
}

/* Insights scroll */
.vpm-lp-insights-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.vpm-lp-insights-scroll::-webkit-scrollbar {
  height: 6px;
}

.vpm-lp-insights-scroll::-webkit-scrollbar-thumb {
  background: var(--vpm-i-outline);
  border-radius: 99px;
}

.vpm-lp-insight-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  overflow: hidden;
  padding: 0;
}

.vpm-lp-insight-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.vpm-lp-insight-card__body {
  padding: 20px;
}

/* CTA mesh */
.vpm-lp-cta-mesh .vpm-i-cta__card {
  background: linear-gradient(135deg, #0b3d91 0%, #006c49 50%, #111c2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vpm-lp-cta-mesh .vpm-i-cta__card::before {
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(108, 248, 187, 0.4), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15), transparent 45%);
}

/* Stat counter pulse */
.vpm-lp-stat-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vpm-i-secondary);
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(0, 108, 73, 0.5);
  animation: vpm-lp-pulse 2s ease infinite;
}

@keyframes vpm-lp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 108, 73, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(0, 108, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 108, 73, 0); }
}

@media (max-width: 767px) {
  .vpm-institutional--refresh .vpm-i-header__inner {
    position: relative;
  }

  .vpm-institutional--refresh .vpm-i-nav.vpm-i-nav--open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 12px;
    background: var(--vpm-i-surface);
    border: 1px solid var(--vpm-i-outline);
    border-radius: var(--vpm-lp-radius);
    box-shadow: var(--vpm-shadow-lg);
    z-index: 60;
  }

  .vpm-institutional--refresh .vpm-i-nav.vpm-i-nav--open a {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vpm-lp-hero__aurora,
  .vpm-lp-float,
  .vpm-lp-ticker__track,
  .vpm-lp-stat-ring {
    animation: none;
  }

  .vpm-lp-hero__frame {
    transform: none;
  }

  .vpm-lp-hero__frame:hover {
    transform: none;
  }
}
