/* ============================================
   $COCAINEWIF — styles.css
   Dark mirror-glass aesthetic, wired energy
   ============================================ */

:root {
  --bg-deep:        #050507;
  --bg-card:        rgba(255,255,255,0.03);
  --bg-card-hover:  rgba(255,255,255,0.07);
  --glass-border:   rgba(255,255,255,0.08);
  --white:          #ffffff;
  --off-white:      #c8c8d0;
  --accent:         #e0e0e0;
  --neon-white:     #f0f0ff;
  --powder:         rgba(255,255,255,0.85);
  --gold:           #ffe066;
  --green:          #00ff88;
  --red:            #ff4466;
  --blue-glow:      rgba(100,140,255,0.25);
  --font-display:   'Orbitron', sans-serif;
  --font-mono:      'Space Mono', monospace;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-mono);
  background: var(--bg-deep);
  color: var(--off-white);
  overflow-x: hidden;
  cursor: crosshair;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }

/* ---- CANVASES ---- */
#powderCanvas, #trailCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
#trailCanvas { z-index: 9999; }

/* ---- NAV ---- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(5,5,7,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--white);
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-buy-btn {
  background: var(--white);
  color: var(--bg-deep) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-buy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,220,80,0.35);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}
.hero-bg-lines {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,200,50,0.03) 0%, transparent 60%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(255,255,255,0.015) 120px,
      rgba(255,255,255,0.015) 121px
    );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Mascot */
.hero-mascot {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2.5rem;
  cursor: pointer;
}
.mascot-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,50,0.18) 0%, rgba(255,180,30,0.06) 40%, transparent 70%);
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.18); }
}
.mascot-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 0 30px rgba(255,200,50,0.25)) drop-shadow(0 0 60px rgba(255,180,30,0.1));
  transition: transform 0.15s;
  z-index: 1;
  user-select: none;
}
.mascot-img:active { transform: scale(0.93); }
.mascot-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  animation: fadeInOut 3s ease-in-out infinite;
}
@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}
.title-cocaine {
  color: var(--white);
  text-shadow:
    0 0 40px rgba(255,255,255,0.3),
    0 0 80px rgba(255,255,255,0.1);
}
.title-wif {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255,224,102,0.4);
}
.hero-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: var(--white);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 2px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none;
}
.btn-buy:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 30px rgba(255,220,80,0.35), 0 4px 20px rgba(0,0,0,0.4);
}
.btn-sniff {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.btn-sniff::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.btn-sniff:hover {
  border-color: var(--white);
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
}

/* CA Bar */
.ca-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  max-width: 100%;
  overflow: hidden;
}
.ca-bar:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.ca-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.ca-value {
  font-size: 0.72rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ca-copy-icon {
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.ca-bar:hover .ca-copy-icon { transform: scale(1.2); }

/* Chop zone */
.chop-zone {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.chop-line {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 20%, rgba(255,255,255,0.95) 80%, transparent 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
  transform-origin: left center;
  animation: chopDraw 0.4s ease-out forwards, chopFade 1.2s 0.3s ease-out forwards;
}
@keyframes chopDraw {
  from { width: 0; }
  to   { width: var(--line-w); }
}
@keyframes chopFade {
  to { opacity: 0; filter: blur(4px); }
}

/* ---- STATS SECTION ---- */
.stats-section {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulseDot 1.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(0,255,136,0); }
}
.stats-updated {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* Glass stat card */
.stat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  overflow: hidden;
}
.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.stat-card .stat-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,210,60,0.25), transparent);
}
.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

/* Wired — subtle vibrate */
.wired {
  animation: microShake 0.12s infinite;
  animation-play-state: paused;
}
.wired:hover {
  animation-play-state: running;
}
@keyframes microShake {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(0.5px, -0.5px); }
  50%  { transform: translate(-0.5px, 0.5px); }
  75%  { transform: translate(0.5px, 0.5px); }
  100% { transform: translate(-0.5px, -0.5px); }
}

/* Heartbeat price */
.heartbeat {
  animation: heartbeat 0.8s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.06); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.03); }
  60%      { transform: scale(1); }
}

/* ---- STASH (Tokenomics) ---- */
.stash-section {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.stash-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3rem;
}
.stash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Baggie card */
.baggie {
  position: relative;
  border-radius: 4px 4px 12px 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.baggie:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.baggie-top {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.06) 0px,
    rgba(255,255,255,0.06) 6px,
    rgba(255,255,255,0.02) 6px,
    rgba(255,255,255,0.02) 12px
  );
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.baggie-body {
  padding: 2rem 1rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255,255,255,0.04) 0%, transparent 60%);
}
.baggie-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.baggie-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
}

/* ---- COMMUNITY ---- */
.community-section {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
  text-align: center;
}
.community-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2.5rem;
}
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--accent);
  transition: all 0.2s;
}
.social-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.social-icon { font-size: 1.2rem; }

/* ---- FOOTER ---- */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.8;
}
.footer-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 auto 1.5rem;
}
.footer-copy { margin-top: 0.5rem; }

/* ---- SNIFF OVERLAY ---- */
.sniff-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.sniff-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.sniff-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.15) 100%);
  animation: sniffPulse 0.5s ease-out;
}
@keyframes sniffPulse {
  0%   { transform: scale(1.3); opacity: 0; }
  40%  { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}
.sniff-text-big {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 0 60px rgba(255,255,255,0.6);
  opacity: 0;
  animation: sniffTextAnim 1.2s ease-out forwards;
}
@keyframes sniffTextAnim {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); filter: blur(20px); }
  30%  { opacity: 1; transform: translate(-50%, -50%) scale(1.1); filter: blur(0); }
  70%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); filter: blur(10px); }
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--white);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  z-index: 11000;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stash-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links  { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5,5,7,0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .mobile-menu-btn { display: block; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .stat-value { font-size: 1.1rem; }
  .baggie-amount { font-size: 1.2rem; }
  .social-links { flex-direction: column; align-items: center; }
}
