/* dbc1-hero-labels */
.hero-labels-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.hero-label-slot {
  position: absolute;
  width: max-content;
  max-width: min(462px, 92vw);
}

.hero-glass-label--rise {
  translate: -50% 0;
  animation:
    hero-label-move var(--label-duration, 5s) linear forwards,
    hero-label-fade var(--label-duration, 5s) ease-out forwards;
}

.hero-glass-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13.2px;
  padding: 15.4px 19.8px;
  border-radius: 15.4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
  color: var(--color-bg-white);
  white-space: nowrap;
  font-size: 17.6px;
}

.hero-glass-label--scan {
  padding: 17.6px 22px;
  border-radius: 17.6px;
  gap: 15.4px;
}

.hero-glass-label--static {
  translate: -50% 0;
  opacity: 1;
  transform: translateY(-8px);
}

.hero-glass-label__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-glass-label__icon--chart {
  color: var(--color-yellow);
}

.hero-glass-label__icon--chart .hero-icon-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.hero-glass-label__icon--chart .hero-icon-stroke--axis {
  animation: hero-icon-draw 0.4s ease-out forwards;
}

.hero-glass-label__icon--chart .hero-icon-stroke--line {
  animation: hero-icon-draw 0.65s ease-out 0.18s forwards;
}

.hero-glass-label__icon--check {
  color: var(--color-yellow);
}

.hero-glass-label__icon--check .hero-icon-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill: none;
}

.hero-glass-label__icon--check .hero-icon-stroke--ring {
  animation: hero-icon-draw 0.45s ease-out forwards;
}

.hero-glass-label__icon--check .hero-icon-stroke--tick {
  animation: hero-icon-draw 0.38s ease-out 0.38s forwards;
}

.hero-glass-label__icon--qr {
  color: var(--color-yellow);
}

.hero-glass-label__icon--qr .hero-icon-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill: none;
}

.hero-glass-label__icon--qr .hero-icon-stroke--r1 {
  animation: hero-icon-draw 0.3s ease-out forwards;
}

.hero-glass-label__icon--qr .hero-icon-stroke--r2 {
  animation: hero-icon-draw 0.3s ease-out 0.08s forwards;
}

.hero-glass-label__icon--qr .hero-icon-stroke--r3 {
  animation: hero-icon-draw 0.3s ease-out 0.16s forwards;
}

.hero-glass-label__icon--qr .hero-icon-stroke--p1,
.hero-glass-label__icon--qr .hero-icon-stroke--p3 {
  animation: hero-icon-draw 0.35s ease-out 0.28s forwards;
}

.hero-glass-label__icon--qr .hero-icon-stroke--p2,
.hero-glass-label__icon--qr .hero-icon-stroke--p4,
.hero-glass-label__icon--qr .hero-icon-stroke--p5,
.hero-glass-label__icon--qr .hero-icon-stroke--p6,
.hero-glass-label__icon--qr .hero-icon-stroke--p7,
.hero-glass-label__icon--qr .hero-icon-stroke--p8,
.hero-glass-label__icon--qr .hero-icon-stroke--p9 {
  animation: hero-icon-draw 0.2s ease-out 0.45s forwards;
}

@keyframes hero-icon-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-glass-label__text {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-glass-label__meta {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.02em;
}

@keyframes hero-label-move {
  from {
    transform: translateY(40px);
  }
  to {
    transform: translateY(-120px);
  }
}

@keyframes hero-label-fade {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-labels-field .hero-glass-label:not(.hero-glass-label--static) {
    display: none;
  }

  .hero-glass-label__icon--chart .hero-icon-stroke {
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero-glass-label__icon--check .hero-icon-stroke {
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero-glass-label__icon--qr .hero-icon-stroke {
    stroke-dashoffset: 0;
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero-labels-field .hero-glass-label--scan {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  .hero-labels-field:not(.hero-labels-field--insight) {
    overflow: hidden;
  }

  .hero-labels-field--insight {
    overflow: visible;
    top: -100px;
    right: -20px;
    left: -20px;
  }

  .hero-label-slot {
    max-width: calc(100vw - 40px);
  }

  .hero-label-slot--mobile .hero-glass-label--rise,
  .hero-glass-label--static {
    translate: 0 0;
  }

  .hero-glass-label {
    max-width: calc(100vw - 40px);
    font-size: 12px;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 11px;
  }

  .hero-glass-label--scan {
    padding: 10px 12px;
    gap: 8px;
  }

  .hero-glass-label__icon svg {
    width: 18px;
    height: 18px;
  }
}
