/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
}

a { text-decoration: none; color: inherit; }

/* ===== ENTRY SCREEN ===== */
#entry-screen {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  transition: opacity .8s ease, visibility .8s ease;
}
#entry-screen.dismissed {
  opacity: 0; visibility: hidden; pointer-events: none;
}

#matrix-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.entry-content {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

#enter-btn {
  position: relative;
  padding: 18px 56px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: .25em;
  color: #fff;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
#enter-btn:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.7);
  box-shadow: 0 0 40px rgba(255,255,255,.12), inset 0 0 30px rgba(255,255,255,.04);
}
.btn-glow {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transform: translateX(-100%);
  animation: sweep 2.5s ease-in-out infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== MAIN SITE ===== */
#main-site { position: fixed; inset: 0; }
#main-site.hidden { display: none; }

/* BG Video */
#bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay to darken video slightly */
#main-site::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 1;
  pointer-events: none;
}

/* ===== HEADER ===== */
#site-header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 28px 40px;
}
#site-header nav {
  display: flex; justify-content: center; gap: 48px;
}

.nav-link {
  font-size: clamp(.75rem, 1.4vw, .95rem);
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(255,255,255,.85);
  text-shadow:
    0 0 6px rgba(50,255,50,.25),
    0 0 20px rgba(50,255,50,.1);
  -webkit-text-stroke: .4px rgba(255,255,255,.2);
  transition: color .3s, text-shadow .3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(50,255,50,.5), transparent);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav-link:hover {
  color: #33ff33;
  text-shadow:
    0 0 8px rgba(50,255,50,.5),
    0 0 30px rgba(50,255,50,.25);
}
.nav-link:hover::after { transform: scaleX(1); }

/* ===== HERO ===== */
#hero {
  position: absolute; inset: 0;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
}

.hero-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.ticker {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: .15em;
  color: #33ff33;
  text-shadow:
    0 0 10px rgba(50,255,50,.4),
    0 0 40px rgba(50,255,50,.2);
  animation: tickerGlow 3s ease-in-out infinite alternate;
}
@keyframes tickerGlow {
  0%   { text-shadow: 0 0 10px rgba(50,255,50,.4), 0 0 40px rgba(50,255,50,.15); }
  100% { text-shadow: 0 0 20px rgba(50,255,50,.7), 0 0 60px rgba(50,255,50,.35); }
}

.coin-img {
  width: clamp(140px, 24vw, 240px);
  height: auto;
  opacity: .85;
  filter: drop-shadow(0 0 30px rgba(50,255,50,.25));
  mix-blend-mode: screen;
}

/* ===== CA BOX ===== */
.ca-box {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(50,255,50,.2);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, background .3s;
  max-width: 90vw;
}
.ca-box:hover {
  border-color: rgba(50,255,50,.5);
  background: rgba(255,255,255,.08);
}

.ca-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .15em;
  color: #33ff33;
  flex-shrink: 0;
}

.ca-address {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(.6rem, 1.3vw, .85rem);
  color: rgba(255,255,255,.75);
  letter-spacing: .05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copied {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .2em;
  color: #33ff33;
  background: rgba(0,0,0,.8);
  border-radius: 8px;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.ca-copied.show { opacity: 1; }

/* ===== BUYBACK SECTION ===== */
.buyback-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 14px 28px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(50,255,50,.2);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, background .3s;
}
.buyback-section:hover {
  border-color: rgba(50,255,50,.5);
  background: rgba(255,255,255,.08);
}

.buyback-title {
  font-size: clamp(.7rem, 1.2vw, .85rem);
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255,255,255,.7);
  text-shadow: 0 0 8px rgba(50,255,50,.2);
}

.buyback-amount {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #33ff33;
  letter-spacing: .08em;
  text-shadow: 0 0 12px rgba(50,255,50,.35);
}

.buyback-tokens {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(.7rem, 1.2vw, .85rem);
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
}

/* ===== VOLUME CONTROL ===== */
#volume-control {
  position: absolute; bottom: 28px; right: 32px;
  z-index: 20;
  display: flex; align-items: center; gap: 10px;
}

.vol-icon {
  width: 20px; height: 20px;
  color: rgba(255,255,255,.6);
  flex-shrink: 0;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px; height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  background: #33ff33;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 8px rgba(50,255,50,.5);
  cursor: pointer;
}
#volume-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  background: #33ff33;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 8px rgba(50,255,50,.5);
  cursor: pointer;
}

/* ===== FADE UTILITY ===== */
.fade-in-hidden {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in-hidden.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO REVEAL ===== */
.hero-inner {
  opacity: 0;
  transform: scale(.92);
  transition: opacity 1s ease .3s, transform 1s ease .3s;
}
.hero-inner.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  #site-header nav { gap: 24px; }
  #site-header { padding: 18px 20px; }
  #volume-control { bottom: 16px; right: 16px; }
  #volume-slider { width: 70px; }
}
