/* Global */

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at center, #02010F 0%, #000000 70%);
  color: #f5f5ff;
  display: flex;
  flex-direction: column;
}

/* --- Synthwave Background Layer --- */

.synthwave-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,0,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 22s linear infinite;
  opacity: 0.25;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}

/* --- Hologram Scanlines --- */

.holo-scan {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: holoScan 6s linear infinite;
}

@keyframes holoScan {
  0% { opacity: 0.15; }
  50% { opacity: 0.25; }
  100% { opacity: 0.15; }
}

/* --- Floating Neon Orbs --- */

.neon-orb {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: -3;
  animation: orbFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbFloat {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px, -60px) scale(1.3); }
}

.orb-pink { background: rgba(255,0,255,0.5); top: 20%; left: 10%; }
.orb-blue { background: rgba(0,200,255,0.5); top: 60%; right: 15%; }
.orb-purple { background: rgba(150,0,255,0.5); bottom: 10%; left: 40%; }

/* Hero background hologram grid */

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,0,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}

/* Layout */

.site-header {
  position: relative;
  padding: 32px 16px 24px;
  text-align: center;
  overflow: hidden;
}

.logo-row {
  margin-bottom: 12px;
}

.logo-main {
  width: 120px;          /* smaller logo */
  max-width: 30vw;
  display: block;
  margin: 0 auto 8px;
  filter:
    drop-shadow(0 0 25px rgba(255,0,255,0.6))
    drop-shadow(0 0 35px rgba(0,200,255,0.6));
}

.hero-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-text h1 {
  font-size: 30px;
  margin: 8px 0 4px;
}

.hero-text h2 {
  font-size: 20px;
  margin: 0 0 10px;
  color: #ffcc00;
}

.subtitle {
  font-size: 14px;
  color: #c7c7ff;
  margin-bottom: 16px;
}

/* First-of-its-kind badge */

.first-badge {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px auto 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  background: linear-gradient(135deg,#ff00ff,#00eaff);
  color: #fff;
  box-shadow: 0 0 25px rgba(255,0,255,0.6), 0 0 35px rgba(0,200,255,0.6);
  animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* Hero CTAs */

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.primary-cta,
.secondary-cta {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-cta {
  background: linear-gradient(135deg,#00f0ff,#7b3cff);
  color: #fff;
  box-shadow: 0 0 18px rgba(0,240,255,0.6);
}

.secondary-cta {
  background: rgba(0,0,0,0.6);
  color: #c7c7ff;
  border: 1px solid rgba(255,255,255,0.25);
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255,255,255,0.4);
}

.category-banner {
  margin-top: 10px;
  font-size: 13px;
  color: #d0caff;
}

/* Page wrapper */

.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  flex: 1 0 auto;
}

/* Sections */

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
  background: linear-gradient(90deg,#00f0ff,#ff00ff,#ffcc00);
  -webkit-background-clip: text;
  color: transparent;
}

.section-description {
  font-size: 14px;
  color: #c7c7ff;
  margin-bottom: 16px;
}

/* Cinematic intro */

.cinematic-intro {
  margin-bottom: 32px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 16px;
}

.intro-card {
  padding: 16px;
  border-radius: 12px;
  background: radial-gradient(circle at top, rgba(0,255,255,0.15), rgba(0,0,0,0.8));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 18px rgba(0,200,255,0.3);
}

.intro-card h3 {
  margin-top: 0;
  font-size: 16px;
  color: #ffcc00;
}

/* Controls */

.controls-section {
  margin-bottom: 32px;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

button {
  background: linear-gradient(135deg,#00f0ff,#7b3cff);
  border: none;
  color: #fff;
  padding: 8px 14px;
  margin: 4px 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

button:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 2px;
}

.claim-button {
  background: linear-gradient(135deg,#ffcc00,#ff00ff);
  box-shadow: 0 0 12px rgba(255,200,0,0.6);
}

.soundpack-label {
  font-size: 13px;
  margin-left: 8px;
}

#soundPack {
  margin-left: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: #111;
  color: #f5f5ff;
}

/* Reward Meter */

#mintMeterContainer {
  width: 100%;
  max-width: 420px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.2);
  margin-top: 16px;
  background: #000;
  position: relative;
  overflow: hidden;
}

#mintMeterFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#00ff99,#00ccff,#ff00ff);
  transition: width 0.2s ease;
}

#mintMeterLabel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #fff;
  line-height: 22px;
}

#earningsDisplay {
  margin-top: 8px;
  font-size: 14px;
}

#comboDisplay {
  margin-top: 4px;
  font-size: 13px;
  color: #c7c7ff;
}

#mintPopup {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* MLD Stats */

#mldStats {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,255,200,0.12));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 25px rgba(0,255,200,0.25), inset 0 0 20px rgba(0,255,200,0.15);
  text-align: center;
}

#mldStats h3 {
  margin-top: 0;
  font-size: 18px;
  background: linear-gradient(90deg,#00f0ff,#ff00ff,#ffcc00);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

#mldPrice,
#mldMarketCap,
#mldContract,
.vault-info {
  margin-top: 8px;
  font-size: 14px;
  color: #f5f5ff;
}

#mldPrice {
  font-weight: bold;
  color: #00ffcc;
}

#mldMarketCap {
  color: #ffcc00;
}

#mldContract {
  font-size: 13px;
  color: #c7c7ff;
  font-style: italic;
}

#mldContract a,
.vault-info a {
  color: #c7c7ff;
  text-decoration: underline;
}

#addToMetaMask {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  background: linear-gradient(135deg,#ffcc00,#ff00ff);
  color: #fff;
  box-shadow: 0 0 12px rgba(255,200,0,0.6);
}

#addToMetaMask:hover {
  transform: scale(1.05);
}

.telegram-button {
  display: inline-block;
  padding: 8px 14px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg,#00f0ff,#7b3cff);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  transition: transform 0.2s ease;
}

.telegram-button:hover {
  transform: translateY(-1px);
}

/* Keyboard */

#keyboardWrapper {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(10, 0, 30, 0.6);
  border: 1px solid rgba(255, 0, 255, 0.25);
  box-shadow:
    0 0 25px rgba(255, 0, 255, 0.3),
    0 0 45px rgba(0, 150, 255, 0.25),
    inset 0 0 25px rgba(255, 0, 255, 0.15);
  backdrop-filter: blur(6px);
}

.keyboard {
  position: relative;
  width: 840px;
  max-width: 100%;
  height: 220px;
  margin: 0 auto;
  overflow: visible;
}

/* Neon underglow */

.keyboard::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  height: 50px;
  background: radial-gradient(
    ellipse at center,
    rgba(255,0,255,0.4),
    rgba(0,0,0,0)
  );
  filter: blur(25px);
  z-index: -1;
}

.white-keys {
  display: flex;
  gap: 0;
  position: relative;
}

.key.white {
  width: 60px;
  height: 220px;
  background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 70%, #e0e0e0 100%);
  border: 1px solid #000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 11px;
  color: #000;
  box-shadow:
    inset 0 -6px 8px rgba(0,0,0,0.4),
    0 0 6px rgba(255,255,255,0.3),
    0 0 12px rgba(0,200,255,0.25);
  border-radius: 4px;
  transition: transform 0.1s, box-shadow 0.2s, background 0.1s;
}

.key.white.active {
  transform: translateY(4px);
  box-shadow:
    inset 0 -2px 4px rgba(0,0,0,0.5),
    0 0 18px rgba(255,0,255,0.8),
    0 0 28px rgba(0,200,255,0.8);
}

/* Black keys */

.black-keys {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  z-index: 2;
}

.key.black {
  position: absolute;
  width: 40px;
  height: 140px;
  background: linear-gradient(to bottom, #222 0%, #000 100%);
  border: 1px solid #111;
  box-shadow:
    inset 0 -4px 6px rgba(0,0,0,0.6),
    0 0 10px rgba(255,0,255,0.4),
    0 0 20px rgba(0,150,255,0.4);
  border-radius: 4px;
  transition: transform 0.1s, box-shadow 0.2s, background 0.1s;
}

/* Position black keys via data-note */
.key.black[data-note="C#4"] { left: 45px; }
.key.black[data-note="D#4"] { left: 105px; }
.key.black[data-note="F#4"] { left: 225px; }
.key.black[data-note="G#4"] { left: 285px; }
.key.black[data-note="A#4"] { left: 345px; }

.key.black[data-note="C#5"] { left: 465px; }
.key.black[data-note="D#5"] { left: 525px; }
.key.black[data-note="F#5"] { left: 645px; }
.key.black[data-note="G#5"] { left: 705px; }
.key.black[data-note="A#5"] { left: 765px; }

.key.black.active {
  transform: translateY(3px);
  background: #330033;
  box-shadow:
    0 0 25px rgba(255,0,255,0.9),
    0 0 40px rgba(0,150,255,0.9);
}

/* Key base + ripple */

.key {
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.key::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.6);
  filter: blur(4px);
  z-index: -1;
}

/* Neon ripple trail */

.key.active::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(255,0,255,0.6), transparent 70%);
  filter: blur(20px);
  animation: keyTrail 0.4s ease-out;
}

@keyframes keyTrail {
  0% { opacity: 1; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.4); }
}

.key.active {
  box-shadow:
    0 0 18px #ff00ff,
    0 0 28px #6a00ff,
    0 0 38px #00eaff;
}

/* Unlock pulse effect */

@keyframes unlockPulse {
  0%   { box-shadow: 0 0 0px rgba(0,255,200,0.0); }
  50%  { box-shadow: 0 0 25px rgba(0,255,200,0.8); }
  100% { box-shadow: 0 0 0px rgba(0,255,200,0.0); }
}

.key.unlocked {
  animation: unlockPulse 1s ease;
}

/* Disabled keys */

.key.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Whitepaper */

#whitepaper {
  margin-top: 40px;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg,rgba(255,255,255,0.05),rgba(200,200,255,0.12));
}

#whitepaper h2 {
  font-size: 24px;
  background: linear-gradient(90deg,#00f0ff,#ff00ff,#ffcc00);
  -webkit-background-clip: text;
  color: transparent;
}

#whitepaper h3 {
  color: #ffcc00;
}

/* Diagrams */

.diagram-section {
  margin-bottom: 24px;
}

.diagram-box {
  margin: 30px 0;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(120,0,255,0.15));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 25px rgba(0,0,0,0.6), inset 0 0 20px rgba(120,0,255,0.25);
  text-align: center;
}

.diagram-box h4 {
  margin-top: 0;
  font-size: 18px;
  background: linear-gradient(90deg,#00f0ff,#ff00ff,#ffcc00);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.diagram-box img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 0 25px rgba(255,255,255,0.15), 0 0 40px rgba(120,0,255,0.25);
  border: 1px solid rgba(255,255,255,0.2);
}

.diagram-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #d0caff;
  font-style: italic;
}

/* Disclaimer */

.disclaimer {
  margin-top: 24px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Footer */

.site-footer {
  padding: 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.site-footer .copyrighted-badge {
  display: inline-block;
}

/* Responsive */

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 16px 12px 32px;
  }

  .keyboard {
    transform: scale(0.9);
    transform-origin: top center;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text h2 {
    font-size: 18px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .keyboard {
    transform: scale(0.8);
  }

  .controls-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #mintMeterContainer {
    max-width: 100%;
  }
}

.synthwave-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background:
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,0,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 22s linear infinite;
  opacity: 0.25;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}

.holo-scan {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: holoScan 6s linear infinite;
}

@keyframes holoScan {
  0% { opacity: 0.15; }
  50% { opacity: 0.25; }
  100% { opacity: 0.15; }
}

.stars-layer {
  position: fixed;
  inset: 0;
  z-index: -11;
  background: url('https://i.imgur.com/9aKxH0R.png');
  background-size: cover;
  opacity: 0.15;
  animation: starDrift 60s linear infinite;
  pointer-events: none;
}

@keyframes starDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200px); }
}

.horizon-glow {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 200%;
  height: 40%;
  transform: translateX(-50%);
  background: radial-gradient(circle at center top,
    rgba(255,0,255,0.4),
    rgba(0,0,0,0)
  );
  z-index: -8;
  opacity: 0.35;
  pointer-events: none;
}

.synth-sun {
  position: fixed;
  bottom: 20%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,150,0,0.9),
    rgba(255,0,150,0.4),
    rgba(0,0,0,0)
  );
  filter: blur(20px);
  z-index: -7;
  opacity: 0.4;
  animation: sunPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sunPulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.35; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(1); opacity: 0.35; }
}

.neon-orb {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: -6;
  animation: orbFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbFloat {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px, -60px) scale(1.3); }
}

.orb-pink { background: rgba(255,0,255,0.5); top: 20%; left: 10%; }
.orb-blue { background: rgba(0,200,255,0.5); top: 60%; right: 15%; }
.orb-purple { background: rgba(150,0,255,0.5); bottom: 10%; left: 40%; }

.holo-frame {
  position: fixed;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(0,255,255,0.4);
  z-index: -5;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(0,255,255,0.6));
}

.holo-top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.holo-top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.holo-bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.holo-bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }


#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}


/* --- Sound Reactive Background --- */

.sound-reactive-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at center,
    rgba(255,0,255,0.0),
    rgba(0,0,0,0)
  );
  transition: background 0.25s ease-out, opacity 0.25s ease-out;
  pointer-events: none;
  opacity: 0.35;
}

@keyframes chordRipple {
  0% { transform: scale(1); filter: blur(0px); }
  50% { transform: scale(1.03); filter: blur(2px); }
  100% { transform: scale(1); filter: blur(0px); }
}

.chord-ripple {
  animation: chordRipple 0.35s ease-out;
}

.shockwave {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(255,0,255,0.4),
    rgba(0,0,0,0)
  );
  animation: shockwaveAnim 0.6s ease-out;
}

@keyframes shockwaveAnim {
  0% { transform: scale(0.6); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

#lockedOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.locked-box {
  text-align: center;
  padding: 20px 30px;
  background: rgba(20,0,40,0.7);
  border-radius: 12px;
  border: 1px solid rgba(255,0,255,0.3);
  box-shadow: 0 0 25px rgba(255,0,255,0.4);
}

#lockedClaimBtn {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 999px;
  cursor: pointer;
}
