/* CSS Variables & Styling Tokens */
:root {
  --bg-main: #09090b;
  --bg-card: rgba(18, 18, 20, 0.6);
  --border-card: rgba(255, 255, 255, 0.08);
  --brand-green: #1db954;
  --brand-green-glow: rgba(29, 185, 84, 0.3);
  --brand-purple: #8b5cf6;
  --brand-purple-glow: rgba(139, 92, 246, 0.3);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dark: #71717a;
  
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Glowing Orbs */
.glow-orb {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.orb-1 {
  background: var(--brand-purple);
  top: -100px;
  right: -50px;
}

.orb-2 {
  background: var(--brand-green);
  top: 500px;
  left: -150px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background-color: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  z-index: 100;
  overflow: visible;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-right: auto;
}

.logo-icon {
  color: var(--brand-green);
  font-size: 26px;
  animation: rotateDisc 10s linear infinite;
}

.nav-menu {
  display: flex;
  align-items: center;
}

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

.nav-link:hover {
  color: var(--brand-green);
}

.btn-nav-download {
  background-color: #ffffff;
  color: #000000;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  background-color: var(--brand-green);
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}

.mobile-menu-toggle:hover {
  color: var(--brand-green);
}

/* Hero Section */
.hero-section {
  padding: 80px 24px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-green);
  animation: pulse 2s infinite;
}

.hero-text-content h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-green) 30%, var(--brand-purple) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: min(550px, 100%);
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  width: 100%;
  max-width: 100%;
}

.btn-cta-download {
  background: linear-gradient(135deg, var(--brand-green), #15803d);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px var(--brand-green-glow);
}

.btn-cta-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--brand-green-glow);
}

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

.btn-cta-download:hover .btn-glow {
  left: 100%;
}

.btn-title {
  display: block;
  font-size: 16px;
}

.btn-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

.btn-cta-secondary {
  border: 1px solid var(--border-card);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-stats {
  display: flex;
  align-items: center;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-card);
}

/* Smartphone Mockup */
.hero-visual-content {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.device-mockup {
  width: min(320px, calc(100vw - 64px));
  height: 640px;
  background-color: #1e1e24;
  border: 12px solid #2e2e38;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  padding: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.screen {
  background-color: #121212;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.artwork-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.artwork-disc {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18181b, #27272a, #09090b);
  border: 6px solid #18181b;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rotateDisc 15s linear infinite;
  animation-play-state: running;
}

.disc-center {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #121212;
  border: 10px solid var(--brand-purple);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.song-details {
  text-align: center;
  margin-bottom: 24px;
}

.song-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.song-artist {
  font-size: 14px;
  color: var(--brand-green);
  font-weight: 600;
}

/* Mock Visualizer Animation */
.mock-visualizer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-bottom: 24px;
}

.bar {
  width: 4px;
  background-color: var(--brand-purple);
  border-radius: 2px;
  height: 10%;
  animation: bounceBar 1.2s ease infinite alternate;
}

.bar:nth-child(2) { animation-delay: 0.15s; background-color: var(--brand-green); }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.45s; background-color: var(--brand-green); }
.bar:nth-child(5) { animation-delay: 0.2s; }
.bar:nth-child(6) { animation-delay: 0.35s; background-color: var(--brand-green); }
.bar:nth-child(7) { animation-delay: 0.5s; }
.bar:nth-child(8) { animation-delay: 0.1s; background-color: var(--brand-green); }
.bar:nth-child(9) { animation-delay: 0.4s; }
.bar:nth-child(10) { animation-delay: 0.25s; background-color: var(--brand-green); }
.bar:nth-child(11) { animation-delay: 0.15s; }
.bar:nth-child(12) { animation-delay: 0.35s; background-color: var(--brand-green); }

.playback-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  width: 37%;
  height: 100%;
  background-color: var(--brand-green);
  border-radius: 2px;
}

.playback-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-icon {
  font-size: 18px;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.2s ease;
}

.control-icon.secondary {
  color: var(--text-dark);
}

.control-icon:hover {
  color: var(--brand-green);
}

.play-btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.play-btn-circle:hover {
  transform: scale(1.05);
  background-color: var(--brand-green);
  color: #ffffff;
}

/* Features Section */
.features-section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title-container {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-container h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section-title-container p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  top: -75px;
  right: -75px;
  pointer-events: none;
}

.feature-card:nth-child(odd) .card-glow {
  background: radial-gradient(circle, rgba(29, 185, 84, 0.15) 0%, transparent 70%);
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  margin-bottom: 24px;
}

.icon-box.green {
  background-color: rgba(29, 185, 84, 0.1);
  color: var(--brand-green);
}

.icon-box.purple {
  background-color: rgba(139, 92, 246, 0.1);
  color: var(--brand-purple);
}

.icon-box.blue {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.icon-box.orange {
  background-color: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Install Section */
.install-section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.install-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  margin-top: 40px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-purple));
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px var(--brand-purple-glow);
}

.timeline-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Bottom CTA Section */
.cta-bottom-section {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cta-bottom-container {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--border-card);
  padding: 80px 40px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-bottom-container h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  max-width: 600px;
}

.cta-bottom-container p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-card);
  padding: 40px 24px;
  background-color: #050507;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-green);
}

.footer-divider {
  opacity: 0.2;
}

/* Keyframes */
@keyframes rotateDisc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounceBar {
  0% { height: 10%; }
  100% { height: 80%; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(29, 185, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

/* Responsive Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-text-content {
    align-items: center;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .quick-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .install-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(9, 9, 11, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
    padding: 30px 24px;
    gap: 20px;
    z-index: 99;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }
  
  .nav-link {
    margin-right: 0;
    font-size: 16px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
  
  .btn-nav-download {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
  
  /* Paddings and Sizing */
  .hero-section {
    padding: 60px 24px 80px;
  }
  
  .hero-text-content h1 {
    font-size: 44px;
  }
  
  .features-section, .install-section {
    padding: 80px 24px;
  }
  
  .section-title-container {
    margin-bottom: 40px;
  }
  
  .section-title-container h2 {
    font-size: 32px;
  }
  
  .feature-card {
    padding: 28px;
  }
  
  .timeline-item {
    align-items: center;
    text-align: center;
  }
  
  .step-num {
    margin-bottom: 16px;
  }
  
  .cta-bottom-section {
    padding: 80px 24px;
  }
  
  .cta-bottom-container {
    padding: 50px 24px;
    border-radius: 24px;
  }
  
  .cta-bottom-container h2 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .hero-text-content h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  
  .hero-text-content p {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-cta-download {
    width: 100%;
    justify-content: center;
  }
  
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .quick-stats {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-divider {
    display: none;
  }
}

@media (max-width: 360px) {
  .device-mockup {
    transform: scale(0.9);
    transform-origin: center center;
    margin: -30px auto;
  }
}

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