* { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #0B0F19;
  color: #F8FAFC;
  overflow-x: hidden;
}

::selection { background: #10B981; color: #0B0F19; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0B0F19; }
::-webkit-scrollbar-thumb { background: #4338CA; border-radius: 3px; }

/* Glassmorphism */
.glass {
  background: rgba(21, 27, 43, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: rgba(21, 27, 43, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(21, 27, 43, 0.7);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.05);
}

/* Text effects */
.gradient-text {
  background: linear-gradient(135deg, #F8FAFC 0%, #10B981 50%, #4338CA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(67, 56, 202, 0.3), rgba(16, 185, 129, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.4); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* Mini equalizer in now-playing bar */
.equalizer-mini {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.equalizer-mini span {
  width: 2px;
  background: #10B981;
  border-radius: 1px;
  animation: eq-mini 1s ease-in-out infinite;
}

.equalizer-mini span:nth-child(1) { height: 8px; animation-delay: 0s; }
.equalizer-mini span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.equalizer-mini span:nth-child(3) { height: 6px; animation-delay: 0.4s; }

@keyframes eq-mini {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Hero glow */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(67, 56, 202, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator-wrap {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator {
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* Buttons */
.btn-accent {
  background: linear-gradient(135deg, #10B981, #059669);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Nav links */
.nav-link {
  font-size: 0.875rem;
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover { color: #F8FAFC; }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.mobile-menu.open {
  max-height: 300px;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

/* Footer links */
.footer-link {
  font-size: 0.75rem;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-link:hover { color: #F8FAFC; }

/* Phone mockup */
.phone-mockup {
  width: 280px;
  height: 560px;
  border-radius: 36px;
  background: #0F0F23;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(16, 185, 129, 0.03);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: #0B0F19;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen { height: 100%; display: flex; flex-direction: column; }

/* Feature icon */
.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(67, 56, 202, 0.08));
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.glass-card:hover .feature-icon-wrap {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(67, 56, 202, 0.15));
}

/* Section elements */
.section-label {
  color: #10B981;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.features-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.02), transparent);
  pointer-events: none;
}

/* CTA glow bg */
.cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05), rgba(67, 56, 202, 0.03), transparent);
  filter: blur(80px);
}

/* Phone mockup float */
@media (prefers-reduced-motion: no-preference) {
  .phone-mockup {
    animation: float 6s ease-in-out infinite;
  }
}

@media (max-width: 640px) {
  .phone-mockup {
    width: 220px;
    height: 440px;
    border-radius: 28px;
  }
  .phone-notch { width: 90px; height: 18px; }
}
