/* ============ Base ============ */
html {
  background: #0a0a0a;
  scroll-behavior: auto; /* Lenis drives smooth scroll, not native CSS */
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  cursor: default;
}

::selection {
  background: #FF6A00;
  color: #0a0a0a;
}

/* Hide scrollbar for horizontal clip row */
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* ============ Loader ============ */
#loader {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============ Navbar ============ */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============ Hero ============ */
#heroCanvas {
  z-index: 0;
}

.hero-vignette {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255, 106, 0, 0.12), transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(10, 10, 10, 1), transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0) 20%, rgba(10,10,10,0.9) 100%);
}

.dog-glow {
  animation: dogPulse 4s ease-in-out infinite;
}
@keyframes dogPulse {
  0%, 100% { opacity: 0.55; transform: scale(1.05); }
  50% { opacity: 0.9; transform: scale(1.18); }
}

.animate-pulse-glow {
  animation: pulseGlow 1.6s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.6);
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 106, 0, 0.4); }
  50% { box-shadow: 0 0 45px rgba(255, 106, 0, 0.85); }
}

@keyframes bounceSlow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
.animate-bounce-slow {
  animation: bounceSlow 2.2s ease-in-out infinite;
}

.btn-glow {
  box-shadow: 0 0 0 rgba(255, 106, 0, 0);
  transition: box-shadow 0.35s ease, background-color 0.35s ease, transform 0.2s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 35px rgba(255, 106, 0, 0.55);
  transform: translateY(-2px);
}

/* ============ Ember field (CSS fallback ambient bg) ============ */
.ember-field {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,106,0,0.8), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,179,71,0.7), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,106,0,0.6), transparent),
    radial-gradient(1.5px 1.5px at 40% 85%, rgba(255,179,71,0.6), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255,106,0,0.5), transparent);
  background-size: 100% 100%;
  filter: blur(0.5px);
}

/* ============ Marquee ============ */
.marquee-strip {
  --marquee-duration: 26s;
}
.marquee-track {
  animation: marqueeScroll var(--marquee-duration) linear infinite;
  will-change: transform;
}
.marquee-track img {
  display: inline-block;
  vertical-align: middle;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

/* ============ Reveal animations (targeted by anime.js / GSAP-lite) ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Gallery ============ */
.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255,255,255,0.08);
  background: #121212;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
}
.gallery-item.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.12);
  filter: saturate(1.15) brightness(1.05);
}
.gallery-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.gallery-item:hover .caption {
  transform: translateY(0);
}

/* video clip cards */
.clip-card {
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #121212;
  scroll-snap-align: start;
}
.clip-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clip-card .clip-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.9);
  color: #0a0a0a;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

/* ============ Step cards ============ */
.step-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.step-card:hover {
  border-color: rgba(255, 106, 0, 0.5);
  transform: translateY(-4px);
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: rgba(255, 106, 0, 0.35);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}
.step-card:hover .step-num {
  color: rgba(255, 106, 0, 0.9);
}

/* ============ Info cards (tokenomics) ============ */
.info-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.info-card:hover {
  border-color: rgba(255, 106, 0, 0.4);
  background: rgba(255, 106, 0, 0.05);
}

/* ============ Social cards ============ */
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.35s ease;
}
.social-card:hover {
  border-color: rgba(255, 106, 0, 0.6);
  background: rgba(255, 106, 0, 0.07);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(255, 106, 0, 0.35);
}

/* ============ Copy button state ============ */
.copy-btn.copied {
  background-color: #22c55e !important;
  color: #0a0a0a !important;
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .gallery-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
