/* Missing animations from scraped NEAR styles */

@keyframes star-drift {
  0% { background-position: 0 0; }
  100% { background-position: 120px 120px; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes star-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.08); }
}

.bg-star-animated {
  background-image: url("star-light.svg");
  background-repeat: repeat;
  background-size: 120px 120px;
  animation: star-drift 18s linear infinite;
}

.bg-star-dark-animated {
  background-image: url("star-dark.svg");
  background-repeat: repeat;
  background-size: 120px 120px;
  animation: star-drift 22s linear infinite;
}

.animated-text-hover .anim-char-span {
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.animated-text-hover:hover .anim-char-span,
.animated-text-hover:focus-visible .anim-char-span {
  animation: char-pop 0.45s ease forwards;
}

.animated-text-hover:hover .anim-char-1,
.animated-text-hover:focus-visible .anim-char-1 { animation-delay: 0ms; }
.animated-text-hover:hover .anim-char-2,
.animated-text-hover:focus-visible .anim-char-2 { animation-delay: 30ms; }
.animated-text-hover:hover .anim-char-3,
.animated-text-hover:focus-visible .anim-char-3 { animation-delay: 60ms; }
.animated-text-hover:hover .anim-char-4,
.animated-text-hover:focus-visible .anim-char-4 { animation-delay: 90ms; }
.animated-text-hover:hover .anim-char-5,
.animated-text-hover:focus-visible .anim-char-5 { animation-delay: 120ms; }
.animated-text-hover:hover .anim-char-6,
.animated-text-hover:focus-visible .anim-char-6 { animation-delay: 150ms; }
.animated-text-hover:hover .anim-char-7,
.animated-text-hover:focus-visible .anim-char-7 { animation-delay: 180ms; }
.animated-text-hover:hover .anim-char-8,
.animated-text-hover:focus-visible .anim-char-8 { animation-delay: 210ms; }
.animated-text-hover:hover .anim-char-9,
.animated-text-hover:focus-visible .anim-char-9 { animation-delay: 240ms; }
.animated-text-hover:hover .anim-char-10,
.animated-text-hover:focus-visible .anim-char-10 { animation-delay: 270ms; }

@keyframes char-pop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.hero-animate {
  opacity: 0;
  animation: fade-in-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate--1 { animation-delay: 0.15s; }
.hero-animate--2 { animation-delay: 0.35s; }
.hero-animate--3 { animation-delay: 0.55s; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Wallet modal */

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  visibility: hidden;
}

.wallet-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
}

.wallet-modal.is-open .wallet-modal-backdrop {
  animation: modal-backdrop-in 0.35s ease forwards;
}

.wallet-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 0.5rem;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  overflow: hidden;
}

.wallet-modal.is-open .wallet-modal-panel {
  animation: modal-panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wallet-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.wallet-modal-close:hover,
.wallet-modal-close:focus-visible {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.wallet-modal-star {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  background: url("star-light.svg") center / contain no-repeat;
  pointer-events: none;
  animation: star-pulse 3s ease-in-out infinite;
}

.wallet-modal-star--1 {
  top: 1.25rem;
  left: 1.25rem;
}

.wallet-modal-star--2 {
  bottom: 1.5rem;
  right: 2rem;
  animation-delay: 1.2s;
}

.wallet-modal-title {
  font-family: FKGrotesk, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  color: #000;
  margin: 0 2rem 0.75rem 0;
}

.wallet-modal-subtitle {
  font-family: FKGrotesk, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 1.5rem;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wallet-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1rem 1rem 1.125rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.375rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wallet-option::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.wallet-option:hover,
.wallet-option:focus-visible {
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  outline: none;
}

.wallet-option:hover::before,
.wallet-option:focus-visible::before {
  transform: scaleX(1);
}

.wallet-option > * {
  position: relative;
  z-index: 1;
}

.wallet-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  background: rgb(199, 245, 216);
  transition: background-color 0.25s ease;
}

.wallet-option-icon svg,
.wallet-option-icon img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.wallet-option:hover .wallet-option-icon,
.wallet-option:focus-visible .wallet-option-icon {
  background: rgb(0, 236, 151);
}

.wallet-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.wallet-option-label {
  font-family: FKGrotesk, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  transition: color 0.25s ease;
}

.wallet-option-desc {
  font-family: FKGrotesk, sans-serif;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.25s ease;
}

.wallet-option:hover .wallet-option-label,
.wallet-option:focus-visible .wallet-option-label,
.wallet-option:hover .wallet-option-desc,
.wallet-option:focus-visible .wallet-option-desc,
.wallet-option:hover .wallet-option-arrow,
.wallet-option:focus-visible .wallet-option-arrow {
  color: #fff;
}

.wallet-option-arrow {
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.35);
  transition: color 0.25s ease, transform 0.25s ease;
}

.wallet-option:hover .wallet-option-arrow,
.wallet-option:focus-visible .wallet-option-arrow {
  transform: translate(2px, -2px);
}

body.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate,
  .reveal-on-scroll,
  .bg-star-animated,
  .bg-star-dark-animated,
  .wallet-modal-star,
  .animated-text-hover:hover .anim-char-span,
  .animated-text-hover:focus-visible .anim-char-span {
    animation: none !important;
    transition: none !important;
  }

  .hero-animate,
  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
  }

  .wallet-modal.is-open .wallet-modal-backdrop,
  .wallet-modal.is-open .wallet-modal-panel {
    opacity: 1;
    transform: none;
  }
}
