/* ============================================
   BULLION — Solana Gaming Website v2
   Solana Purple/Green + Gold + Pixel Accents
   ============================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --sol-purple: #9945FF;
  --sol-purple-dark: #7B2FE0;
  --sol-purple-light: #b87aff;
  --sol-green: #14F195;
  --sol-green-dark: #0bc076;
  --sol-cyan: #00D1FF;
  --gold: #FFD700;
  --gold-dark: #B8860B;
  --gold-light: #FFE55C;
  --gold-glow: rgba(255, 215, 0, 0.4);
  
  /* DARK MODE (BLACK) */
  --bg-primary: #000000;
  --bg-secondary: #050505;
  --bg-card: rgba(10, 10, 10, 0.8);
  --bg-card-hover: rgba(20, 20, 20, 0.95);
  --border-color: rgba(153, 69, 255, 0.3);
  --border-gold: rgba(255, 215, 0, 0.3);
  --border-green: rgba(20, 241, 149, 0.3);
  
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  
  --font-pixel: 'Press Start 2P', monospace;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.2), 0 0 60px rgba(255, 215, 0, 0.1);
  --glow-purple: 0 0 20px rgba(153, 69, 255, 0.3), 0 0 60px rgba(153, 69, 255, 0.15);
  --glow-green: 0 0 20px rgba(20, 241, 149, 0.3), 0 0 60px rgba(20, 241, 149, 0.15);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sol-purple), var(--sol-green));
  border-radius: 3px;
}

::selection {
  background: rgba(153, 69, 255, 0.4);
  color: var(--gold);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- PIXEL TEXT ---------- */
.pixel-text {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.pixel-text-lg {
  font-family: var(--font-pixel);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.05em;
}

/* ---------- UTILITY ---------- */
.text-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   SOLANA GRADIENT MESH BACKGROUND
   ========================================== */
.gradient-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px); /* Increased blur for softer hit */
  opacity: 0.4; /* Slight visibility */
  will-change: transform;
}

.orb-purple-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(153, 69, 255, 0.15) 0%, transparent 70%);
  top: -100px;
  right: 0;
  /* Removed drift animation for "fixed together" feel, or kept subtle */
  animation: orbPulse 10s ease-in-out infinite; 
}

.orb-purple-2 {
  display: none; /* Simplify */
}

.orb-green-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 241, 149, 0.12) 0%, transparent 70%);
  bottom: -100px;
  left: 0;
  animation: orbPulse 12s ease-in-out infinite reverse;
}

.orb-green-2 {
  display: none; /* Simplify */
}

.orb-gold-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulseCenter 15s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(0, 0) scale(1.1); opacity: 0.6; }
}

/* Update gold orb specific centering keyframe */
@keyframes orbPulseCenter {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

/* Background Isometric Grid (3D Floor) */
.bg-grid {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  /* Base faint purple grid */
  background-image: 
    linear-gradient(rgba(153, 69, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 69, 255, 0.2) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(500px) rotateX(60deg);
  /* Vignette mask for the whole floor */
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 80%);
}

/* Traveling Lights on the Grid */
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Brighter, thicker lines for the "light" (Green horizontal, Gold vertical) */
  background-image: 
    linear-gradient(var(--sol-green) 2px, transparent 2px),
    linear-gradient(90deg, var(--gold) 2px, transparent 2px);
  background-size: 80px 80px;
  background-position: center;
  /* Use screen to add brightness on top of black background */
  mix-blend-mode: screen; 
  opacity: 0.8;
  
  /* Mask to create moving spotlights/pulses */
  mask-image: 
    radial-gradient(circle 200px at 0% 0%, black, transparent 80%),
    radial-gradient(circle 300px at 100% 100%, black, transparent 80%);
  -webkit-mask-image: 
    radial-gradient(circle 200px at 0% 0%, black, transparent 80%),
    radial-gradient(circle 300px at 100% 100%, black, transparent 80%);
  
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  
  animation: gridTravel 8s ease-in-out infinite alternate;
}

@keyframes gridTravel {
  0% { 
    mask-position: -20% -20%, 120% 120%; 
    -webkit-mask-position: -20% -20%, 120% 120%;
  }
  100% { 
    mask-position: 120% 120%, -20% -20%; 
    -webkit-mask-position: 120% 120%, -20% -20%;
  }
}

/* Hide the static gold orb if it interferes */
.orb-gold-1 { display: none; }

/* ==========================================
   LOADING SCREEN (PIXEL ART STYLE)
   ========================================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

/* Wrapper to scale up our tiny pixel art */
.pixel-scale-wrapper {
  transform: scale(6); /* 1px becomes 6px */
  image-rendering: pixelated;
}

.pixel-scene {
  position: relative;
  width: 32px;
  height: 32px;
}

/* --- Pixel Anvil --- */
.pixel-anvil {
  position: absolute;
  bottom: 0;
  left: 8px;
  width: 16px;
  height: 6px;
  background: #444;
  box-shadow: 
    0 -1px 0 #555, /* Highlight top */
    2px -3px 0 #444, /* Neck */
    -2px 0 0 #444, /* Base left */
    2px 0 0 #444; /* Base right */
}

/* --- Pixel Gold Bar --- */
.pixel-gold {
  position: absolute;
  bottom: 7px; /* Sitting on anvil */
  left: 10px;
  width: 12px;
  height: 4px;
  background: #FFD700;
  border: 1px solid #B8860B; /* Border for definition */
  box-shadow: inset 1px 1px 0 #FFE55C;
  z-index: 2;
  transition: transform 0.05s;
}

/* Hit squish effect */
.pixel-scene.hit .pixel-gold {
  transform: scaleY(0.7) scaleX(1.1);
}

/* --- Pixel Hammer --- */
.pixel-hammer {
  position: absolute;
  top: 12px;
  right: 11px;
  width: 10px; /* Head width */
  height: 6px; /* Head height */
  background: #888;
  border: 1px solid #333;
  transform-origin: 50% -8px; /* Pivot at handle top */
  animation: pixelHammerHit 1s steps(4, end) infinite;
  z-index: 5;
}

/* Hammer Handle (using pseudo) */
.pixel-hammer::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 3px;
  width: 4px;
  height: 8px;
  background: #8B4513;
  border: 1px solid #3e1f08;
  border-bottom: none;
}

@keyframes pixelHammerHit {
  0% { transform: rotate(-45deg); }
  25% { transform: rotate(-45deg); } /* Hold up */
  50% { transform: rotate(0deg) translate(0, 4px); } /* HIT! */
  75% { transform: rotate(-20deg); } /* Recoil */
  100% { transform: rotate(-45deg); }
}

/* --- Pixel Sparks --- */
.pixel-spark {
  position: absolute;
  width: 1px;
  height: 1px;
  background: #FFFF00;
  bottom: 11px;
  left: 16px;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.pixel-spark.p1 { animation: pixelSpark1 1s steps(3) infinite; }
.pixel-spark.p2 { animation: pixelSpark2 1s steps(3) infinite; }
.pixel-spark.p3 { animation: pixelSpark3 1s steps(3) infinite; }

@keyframes pixelSpark1 {
  50% { opacity: 1; transform: translate(0, 0); }
  60% { opacity: 1; transform: translate(-4px, -4px); }
  70% { opacity: 0; transform: translate(-5px, -5px); }
}

@keyframes pixelSpark2 {
  50% { opacity: 1; transform: translate(0, 0); }
  60% { opacity: 1; transform: translate(0px, -6px); }
  70% { opacity: 0; transform: translate(0px, -8px); }
}

@keyframes pixelSpark3 {
  50% { opacity: 1; transform: translate(0, 0); }
  60% { opacity: 1; transform: translate(4px, -3px); }
  70% { opacity: 0; transform: translate(5px, -4px); }
}

/* --- Loader Text --- */
.loader-text {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--sol-green);
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(20, 241, 149, 0.4);
  margin-top: 20px;
}

.loader-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ==========================================
   CANVASES
   ========================================== */
#particles-canvas, #sparks-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#sparks-canvas { z-index: 2; }

/* ==========================================
   NAVIGATION
   ========================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.nav-logo-text {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--sol-purple), var(--sol-green));
  color: white;
  border-radius: 4px;
  letter-spacing: 0.12em;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(153, 69, 255, 0.2);
}

.nav-btn:hover {
  box-shadow: var(--glow-purple);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================
   HERO SECTION
   ========================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  z-index: 5;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--sol-green-dark); /* Darker green for visibility */
  background: rgba(20, 241, 149, 0.1); /* More opaque background */
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease 0.3s both;
  letter-spacing: 0.1em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sol-green);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(20, 241, 149, 0.6);
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(20, 241, 149, 0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 12px rgba(20, 241, 149, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-title-line {
  color: var(--text-primary);
  text-shadow: 0 0 60px rgba(153, 69, 255, 0.3);
}

.hero-title-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.4));
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-family: var(--font-pixel);
  font-size: clamp(0.5rem, 1.5vw, 0.75rem);
  color: var(--sol-green);
  margin-bottom: 20px;
  min-height: 1.8em;
  animation: fadeInUp 0.8s ease 0.5s both;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(20, 241, 149, 0.3);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.7s both;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.btn-primary:hover {
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

.btn:hover .btn-shine { left: 100%; }

.btn-secondary {
  background: rgba(153, 69, 255, 0.12);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(153, 69, 255, 0.25);
  border-color: var(--sol-purple);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(153, 69, 255, 0.1);
  border-color: var(--sol-purple);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.65rem;
}

/* ---------- SCROLL INDICATOR ---------- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: fadeInUp 0.8s ease 1s both, floatY 3s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--sol-purple);
  border-radius: 11px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--sol-green);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(20, 241, 149, 0.5);
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   SECTION COMMON
   ========================================== */
section {
  position: relative;
  z-index: 5;
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  color: var(--sol-purple);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.about-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(153, 69, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--glow-purple);
}

.about-card:hover::before { transform: scaleX(1); }

.about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.08), rgba(20, 241, 149, 0.05));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: var(--transition);
}

.about-card:hover .about-card-icon {
  box-shadow: var(--glow-gold);
  border-color: var(--border-gold);
}

.about-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.about-card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   SHOWCASE
   ========================================== */
#showcase { overflow: hidden; }

.showcase-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  perspective: 1000px;
}

.showcase-monitor {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), var(--glow-purple);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

.showcase-monitor:hover {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), var(--glow-gold);
}

.monitor-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(10, 0, 20, 0.9);
  border-bottom: 1px solid var(--border-color);
}

.monitor-dots {
  display: flex;
  gap: 6px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.monitor-title { color: var(--text-muted); }

.monitor-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sol-green);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sol-green);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(20, 241, 149, 0.6);
}

.monitor-screen {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.showcase-gif { width: 100%; display: block; }

.monitor-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  animation: scanMove 10s linear infinite;
}

@keyframes scanMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

.monitor-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.monitor-bottom-bar {
  padding: 8px 16px;
  background: rgba(10, 0, 20, 0.9);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.monitor-status-text {
  color: var(--sol-green);
  letter-spacing: 0.15em;
}

.showcase-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(ellipse,
    rgba(153, 69, 255, 0.25) 0%,
    rgba(20, 241, 149, 0.15) 30%,
    rgba(255, 215, 0, 0.1) 50%,
    transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 28px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--sol-purple);
  box-shadow: var(--glow-purple);
  transform: translateY(-4px);
}

.step-connector-line {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-connector-line::after {
  content: '';
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
  opacity: 0.3;
}

.step-number {
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--sol-purple), var(--sol-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(153, 69, 255, 0.3));
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.1), rgba(20, 241, 149, 0.08));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--sol-green);
  transition: var(--transition);
}

.step-card:hover .step-icon {
  border-color: var(--sol-green);
  box-shadow: var(--glow-green);
}

.step-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================
   ROADMAP — THE GOLD VEIN
   ========================================== */
#roadmap {
  position: relative;
  overflow: hidden;
  padding-bottom: 150px;
}

.roadmap-mine {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 800px; /* Reduced from 1200px */
}

/* --- The Vein Path (SVG) --- */
.vein-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100%;
  z-index: 1;
}

.vein-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vein-path-bg {
  fill: none;
  stroke: rgba(153, 69, 255, 0.1); /* Faint Purple */
  stroke-width: 10;
  stroke-linecap: round;
}

.vein-path-fill {
  fill: none;
  stroke: url(#goldGradient); /* Will be set via JS or defs, defaulting to gold color here */
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1; /* Set via JS for drawing effect */
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* --- The Drill Head --- */
.drill-head {
  position: absolute;
  bottom: 0; /* Fixed at bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 60px;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-top: none; /* Open top for collecting */
  border-radius: 0 0 20px 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.drill-spinner {
  width: 24px;
  height: 40px;
  background: repeating-linear-gradient(
    45deg,
    var(--gold-dark),
    var(--gold-dark) 5px,
    var(--gold) 5px,
    var(--gold) 10px
  );
  border-radius: 0 0 12px 12px;
  animation: drillSpin 0.5s linear infinite;
}

@keyframes drillSpin {
  from { background-position: 0 0; }
  to { background-position: 0 20px; }
}

.drill-spark {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  filter: blur(4px);
  animation: sparkFlash 0.1s linear infinite alternate;
}

@keyframes sparkFlash {
  from { opacity: 0.2; transform: translateX(-50%) scale(1); }
  to { opacity: 1; transform: translateX(-50%) scale(2); }
}

/* --- Mine Levels --- */
.mine-level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 120px; /* Reduced from 250px */
  position: relative;
  z-index: 2;
}

.mine-level:last-child { margin-bottom: 0; }

.level-marker, .level-graphic {
  flex: 1;
  display: flex;
  align-items: center;
}

.level-marker.right { justify-content: flex-start; padding-left: 60px; }
.level-marker.left { justify-content: flex-end; padding-right: 60px; }
.level-graphic.right { justify-content: flex-start; padding-left: 60px; }
.level-graphic.left { justify-content: flex-end; padding-right: 60px; }

/* Content Box */
.level-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 18px; /* Reduced from 24px */
  border-radius: 8px;
  max-width: 280px; /* Reduced from 380px */
  position: relative;
  transition: var(--transition);
}

.mine-level:hover .level-content {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--gold);
}

.level-depth {
  color: var(--text-muted);
  font-size: 0.55rem;
  margin-bottom: 6px;
  display: block;
}

.level-title {
  font-family: var(--font-display);
  font-size: 1.1rem; /* Reduced */
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.level-desc {
  font-size: 0.85rem; /* Reduced */
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.level-list {
  list-style: none;
  padding: 0;
}

.level-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.level-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--border-color);
}

.level-list li.done { color: var(--sol-green-dark); }
.level-list li.done::before { content: '✓'; color: var(--sol-green); }
.level-list li.active { color: var(--sol-purple); font-weight: 600; }
.level-list li.active::before { content: '➜'; color: var(--sol-purple); }

/* Connector Line to Center */
.level-connector {
  height: 2px;
  width: 40px;
  background: var(--border-color);
  margin: 0 10px;
}

.mine-level:hover .level-connector {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* Graphic Box (Icons) */
.graphic-box {
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transform: rotate(45deg); /* Diamond shape */
  transition: var(--transition);
}

.graphic-icon { transform: rotate(-45deg); }

.mine-level:hover .graphic-box {
  transform: rotate(45deg) scale(1.1);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* Specific Level Graphics */
.surface-graphic { background: linear-gradient(135deg, #e6ffe6, #ccffcc); border-color: #99ff99; }
.crust-graphic { background: linear-gradient(135deg, #fff5e6, #ffe0b3); border-color: #ffcc80; }
.mantle-graphic { background: linear-gradient(135deg, #f3e5f5, #e1bee7); border-color: #ce93d8; }
.core-graphic { background: linear-gradient(135deg, #ffebee, #ffcdd2); border-color: #ef9a9a; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .mine-level { flex-direction: column; text-align: center; gap: 20px; margin-bottom: 120px; }
  .level-marker, .level-graphic { justify-content: center !important; padding: 0 !important; width: 100%; }
  .level-connector { display: none; }
  .vein-container { left: 20px; opacity: 0.3; }
  .level-content { max-width: 100%; }
}

/* ==========================================
   CTA SECTION
   ========================================== */
#community { padding: 60px 0 120px; }

.cta-box {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.12), rgba(20, 241, 149, 0.05), rgba(255, 215, 0, 0.04));
  border: 1px solid var(--border-color);
  padding: 80px 40px;
  text-align: center;
}

.cta-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(153, 69, 255, 0.015) 3px,
    rgba(153, 69, 255, 0.015) 6px
  );
  pointer-events: none;
}

.cta-content { position: relative; z-index: 2; }

.cta-title {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.2));
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-socials {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  background: var(--bg-card);
}

.social-link:hover {
  color: var(--sol-green);
  border-color: var(--border-green);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

/* ==========================================
   FOOTER
   ========================================== */
#footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding: 50px 0 35px;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 260px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-img { width: 28px; height: 28px; border-radius: 4px; }

.footer-logo-text {
  font-size: 0.6rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-group {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-size: 0.5rem;
  color: var(--sol-purple);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-link:hover { color: var(--sol-green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.45rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.footer-solana {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .steps-grid { flex-wrap: wrap; justify-content: center; }
  .step-connector-line { display: none; }
  .step-card { max-width: 100%; flex-basis: calc(50% - 12px); }
}

@media (max-width: 768px) {
  #navbar .nav-links {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98); /* Dark mode mobile menu */
    color: #fff;
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 2000; /* Ensure overlay above all sections */
  }

  /* Keep the close button (hamburger) visible above the overlay */
  #navbar .nav-hamburger {
    position: relative;
    z-index: 2501;
  }

  #navbar .nav-logo {
    position: relative;
    z-index: 2501;
  }

  #navbar .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link { font-size: 1.1rem; color: #ccc; }
  .nav-hamburger { display: flex; }
  .nav-btn { display: none; }

  .hero-title { font-size: clamp(3rem, 15vw, 5rem); }

  .step-card { flex-basis: 100%; max-width: 360px; }

  /* Roadmap Mobile: Keep Vein in Center, alternate small boxes */
  .mine-level {
    margin-bottom: 80px; /* Reduced further for mobile */
    flex-direction: row; /* FORCE ROW like desktop */
    gap: 0;
  }
  
  .level-marker, .level-graphic {
    flex: 1;
    display: flex;
    align-items: center;
    width: auto !important; /* Reset override */
    padding: 0 !important; /* Reset padding for mobile tight fit */
  }

  /* Justify content like desktop */
  .level-marker.right { justify-content: flex-start; padding-left: 10px !important; }
  .level-marker.left { justify-content: flex-end; padding-right: 10px !important; }
  .level-graphic.right { justify-content: flex-start; padding-left: 10px !important; }
  .level-graphic.left { justify-content: flex-end; padding-right: 10px !important; }

  .vein-container {
    left: 50%; /* Center vein on mobile too */
    opacity: 1;
    width: 60px; /* Thinner vein area */
  }
  
  .level-content {
    max-width: 100%; /* Fill available space */
    padding: 10px;
    min-width: 100px; /* Ensure some width */
  }
  
  .level-title { font-size: 0.7rem; margin-bottom: 4px; }
  .level-desc { display: none; }
  .level-list { 
    display: block;
    margin-top: 6px;
  }
  .level-list li {
    display: block;
    font-size: 0.56rem;
    line-height: 1.25;
    margin-bottom: 4px;
    padding-left: 14px;
    color: var(--text-secondary);
  }
  .level-list li::before {
    left: 0;
  }
  .level-list li.done { color: var(--sol-green); }
  .level-list li.active { color: var(--sol-purple-light); }
  .level-depth { font-size: 0.45rem; margin-bottom: 2px; }
  
  .graphic-box {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 8px;
  }
  
  .level-connector { 
    display: block; /* Show connector again */
    width: 5px; 
    margin: 0 5px;
  }

  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-box { padding: 50px 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.5rem, 18vw, 4rem); }
  .about-grid { grid-template-columns: 1fr; }
}
