:root {
  --purple-primary: #A855F7;
  --purple-glow: rgba(168, 85, 247, 0.4);
  --purple-dim: #8B5CF6;
  --purple-dark: #120D1F;
  --bg-dark: #0A0710;
  --surface-card: rgba(18, 13, 31, 0.75);
  --surface-border: rgba(168, 85, 247, 0.2);
  --text-main: #F5F3FA;
  --text-muted: #9E97B3;
  --radius-lg: 16px;
  --radius-md: 10px;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Ambient Backdrops */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-top {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
}

.glow-bottom {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -50px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(10, 7, 16, 0.8);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #A855F7, #7E22CE);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px var(--purple-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: white;
}

.brand-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-primary);
  font-weight: 700;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-btn-secondary {
  padding: 8px 14px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  color: var(--purple-primary);
  text-decoration: none;
  transition: all 0.2s;
}

.nav-btn-secondary:hover {
  background: rgba(168, 85, 247, 0.2);
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 50px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: #C084FC;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #C084FC;
  border-radius: 50%;
  box-shadow: 0 0 8px #C084FC;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(192, 132, 252, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 132, 252, 0); }
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #F3E8FF 0%, #C084FC 50%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 16px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #A855F7, #9333EA);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--purple-glow);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--surface-border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
}

/* Sync Banner */
.sync-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 10px 18px;
  background: rgba(22, 16, 38, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 30px;
  font-size: 13px;
}

.sync-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

.sync-bold {
  color: #C084FC;
  font-weight: 600;
}

.sync-timer {
  color: var(--text-muted);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 10px;
}

/* Cards */
.glass-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.engine-badge, .status-pill {
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--purple-primary);
}

/* Search Bar */
.search-bar-wrap {
  display: flex;
  align-items: center;
  background: rgba(10, 7, 16, 0.7);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  gap: 12px;
  transition: all 0.2s;
}

.search-bar-wrap:focus-within {
  border-color: var(--purple-primary);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.search-icon {
  color: var(--text-muted);
}

#music-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 15px;
  padding: 10px 0;
  font-family: inherit;
}

.search-btn {
  padding: 10px 22px;
  background: var(--purple-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #9333EA;
}

/* Results */
.results-container {
  margin-top: 24px;
  min-height: 140px;
}

.empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.track-item:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
}

.track-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.track-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.track-title {
  font-weight: 600;
  color: white;
  font-size: 14px;
}

.track-artist {
  font-size: 12px;
  color: var(--text-muted);
}

.track-play-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--purple-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.track-play-btn:hover {
  background: var(--purple-primary);
}

/* Web Player */
.web-player {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(10, 7, 16, 0.9);
  border: 1px solid var(--purple-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.web-player.hidden {
  display: none;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-artwork {
  font-size: 24px;
}

.player-title {
  font-size: 14px;
  font-weight: 700;
}

.player-artist {
  font-size: 12px;
  color: var(--text-muted);
}

/* Installer section */
.installer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.installer-feature {
  background: rgba(10, 7, 16, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.installer-feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.installer-feature p {
  font-size: 13px;
  color: var(--text-muted);
}

.download-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
}

.download-info {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.file-size {
  font-size: 12px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 30px 0;
  margin-top: 40px;
  background: rgba(10, 7, 16, 0.9);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  gap: 12px;
}

.footer-badges span {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  font-size: 11px;
}

@media (max-width: 768px) {
  .hero-title { font-size: 34px; }
  .card-header { flex-direction: column; gap: 8px; }
  .download-bar { flex-direction: column; gap: 16px; align-items: stretch; text-align: center; }
  .footer-content { flex-direction: column; gap: 12px; text-align: center; }
}
