/* ═══════════════════════════════════════════
   VISION SOUND GROUP — LIQUID GLASS DARK
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050508;
  --text: #fff;
  --dim: rgba(255,255,255,.5);
  --accent: #a78bfa;
  --accent2: #818cf8;
  --font: 'Outfit', system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  height: 100vh;
  overflow: hidden; /* No scroll */
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CONVEX DROPLET REFRACTION CANVAS ───── */
#refractionCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ── ANIMATED GRADIENT BACKGROUND (Fallback & Underlay) ── */
.gradient-bg {
  position: fixed; inset: 0;
  z-index: -2;
  background: var(--bg);
}
.gradient-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: .4;
  will-change: transform;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #7c3aed, transparent 70%); top: -10%; left: -10%; animation: drift1 20s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #3b82f6, transparent 70%); bottom: -10%; right: -10%; animation: drift2 25s ease-in-out infinite; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #8b5cf6, transparent 70%); top: 40%; left: 50%; animation: drift3 18s ease-in-out infinite; }
.orb-4 { width: 350px; height: 350px; background: radial-gradient(circle, #6366f1, transparent 70%); top: 20%; right: 20%; animation: drift4 22s ease-in-out infinite; }

@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30vw, 20vh) scale(1.1); } 66% { transform: translate(10vw, 40vh) scale(.9); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-25vw, -15vh) scale(1.15); } 66% { transform: translate(-10vw, -30vh) scale(.85); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20vw, -20vh) scale(1.2); } }
@keyframes drift4 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(15vw, 25vh) scale(1.1); } }

.noise-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── VECTOR CONVEX LIQUID GLASS TITLE ─────── */
.vector-title-wrap {
  width: 100%;
  max-width: 850px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 15px 35px rgba(124, 58, 237, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
.convex-glass-svg-title {
  width: 100%;
  height: auto;
  overflow: visible;
}
.convex-svg-text {
  font-family: var(--font);
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -0.02em;
  fill: url(#convexChromeGrad);
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.75px;
  paint-order: stroke fill;
}

/* Fallback / Text refraction */
.liquid-text {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 2px 8px rgba(167,139,250,0.35));
}

/* ── CONVEX DROPLET LENS PANELS ───────────── */
.liquid-glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow:
    /* Top edge sharp specular catchlight */
    inset 0 2px 3px rgba(255, 255, 255, 0.65),
    /* Upper convex dome soft light */
    inset 0 8px 16px rgba(255, 255, 255, 0.12),
    /* Bottom shadow / ground reflection */
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    /* Bottom ambient violet refraction */
    inset 0 -10px 22px rgba(167, 139, 250, 0.15),
    /* External elevation shadow */
    0 16px 45px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Convex Droplet Glossy Catchlight Highlight Crescent */
.liquid-glass-panel::before,
.liquid-glass-btn::before {
  content: '';
  position: absolute;
  top: 1px; left: 8px; right: 8px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.04) 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── CONVEX DROPLET LENS BUTTONS ──────────── */
.liquid-glass-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  color: #fff;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow:
    /* Top edge sharp specular catchlight (droplet lens entry) */
    inset 0 2px 2px rgba(255, 255, 255, 0.8),
    /* Convex dome soft reflection */
    inset 0 6px 12px rgba(255, 255, 255, 0.15),
    /* Lower rim refraction shadow */
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    /* Subtle violet sub-surface scattering */
    inset 0 -6px 12px rgba(167, 139, 250, 0.2),
    /* Drop shadow */
    0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.liquid-glass-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-top-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    inset 0 8px 16px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    inset 0 -8px 16px rgba(167, 139, 250, 0.3),
    0 14px 35px rgba(124, 58, 237, 0.25),
    0 0 20px rgba(167, 139, 250, 0.2);
}

.liquid-glass-btn:active {
  transform: translateY(1px) scale(0.98);
}

.liquid-glass-btn.disabled {
  opacity: .4;
  pointer-events: none;
}

/* ── NAVBAR (Transparent — No black line) ─── */
.navbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  border: none;
  background: transparent;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav-brand { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-link { padding: 8px 18px; font-size: 0.85rem; font-weight: 600; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 101; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav-brand { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-link { padding: 8px 18px; font-size: 0.85rem; font-weight: 600; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 101; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
  z-index: 99; display: flex; flex-direction: column;
  padding: 90px 1.5rem 2rem; gap: 8px;
  transition: right .35s ease;
  border-radius: 0; border-top: none; border-bottom: none; border-right: none;
}
.mobile-menu.active { right: 0; }
.mobile-link { padding: 14px 18px; border-radius: 12px; font-size: 1rem; font-weight: 600; }

/* ── MAIN CONTENT ─────────────────────────── */
.content-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding-top: 70px; /* offset navbar */
}

.view-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.title-main {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 2rem;
}

/* HOME VIEW */
.pricing-card {
  padding: 2rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  width: 100%;
}
.pricing-card p { margin: 0.5rem 0; }

.big-btn {
  padding: 16px 48px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contacts-box {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.4s ease-out;
}
.contacts-box h3 { font-size: 1.2rem; margin: 0; }
.contacts-links { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.contact-btn {
  padding: 10px 20px; font-size: 1rem; font-weight: 600;
}
.discord-tag {
  display: flex; align-items: center; gap: 8px;
  border-radius: 100px;
  padding: 10px 20px; font-weight: 600;
}
.discord-tag span { color: var(--accent); }

/* DOWNLOAD VIEW */
.dl-track-info {
  width: 100%; padding: 1.5rem; margin-bottom: 2rem;
}
.downloading-text { font-size: 0.85rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.2rem; }
.track-title { font-size: 2rem; font-weight: 700; margin: 0; }

.steps-box {
  width: 100%;
  padding: 2.5rem;
}
.step {
  display: none; flex-direction: column; align-items: center; gap: 1rem;
  animation: fadeIn 0.4s ease-out;
}
.step.active { display: flex; }

.step-num {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--text);
}
.step h3 { font-size: 1.3rem; margin: 0; }

.countdown {
  position: relative; width: 110px; height: 110px; border-radius: 50%;
}
.countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); position: absolute; top:0; left:0; }
.ring-bg { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 4; }
.ring-fill {
  fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 339.292; stroke-dashoffset: 339.292; transition: stroke-dashoffset 1s linear;
}
.countdown-num {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 2rem; font-weight: 800;
}

.cta-btn {
  padding: 14px 30px; font-size: 1rem; font-weight: 600;
}

/* ── MODALS & ADMIN ───────────────────────── */
.modal-overlay, .admin-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.active { display: flex; }
.modal, .admin-panel {
  max-width: 500px; width: 100%; padding: 2.5rem; text-align: center;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; font-size: 1.4rem;
  width: 36px; height: 36px; padding:0; display:flex; align-items:center; justify-content:center;
}
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.admin-header h2 { font-size: 1.4rem; margin:0; }
.admin-form { display: flex; flex-direction: column; gap: 1rem; }

.glass-input {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px 18px; font-size: .95rem; color: #fff;
  width: 100%; outline: none; transition: all .3s; font-family: var(--font);
}
.glass-input:focus {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3);
}

.admin-tracks { display: flex; flex-direction: column; gap: 8px; max-height:200px; overflow-y:auto; margin-top:10px; }
.admin-track-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px; font-size: .85rem; text-align: left;
}
.admin-track-item .slug { color: var(--dim); font-size: .75rem; }
.delete-btn { color: #ef4444; font-size: .8rem; padding: 4px 12px; }

#adminAuth { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .title-main { font-size: 2.2rem; margin-bottom: 1.5rem; }
  .pricing-card { padding: 1.5rem; font-size: 1rem; }
  .big-btn { padding: 14px 36px; font-size: 1.1rem; }
  .contacts-links { flex-direction: column; }
  .navbar { padding: 0 1rem; }
  .view-container { padding: 1rem; }
  body { overflow-y: auto; height: auto; min-height: 100vh; }
  .content-wrapper { padding: 90px 0 40px; }
}
