/* ==========================================================================
   SpotSaver - Modern Responsive Design System & CSS
   Optimized for Mobile, Tablet, and Desktop
   Keywords: Spotify Music Downloader, Spotify Playlist Downloader, 320kbps MP3
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  --bg-dark: #08130c;
  --bg-darker: #040906;
  --bg-surface: #0e2014;
  --bg-surface-elevated: #162f1e;
  --bg-glass: rgba(14, 32, 20, 0.88);
  --bg-glass-card: rgba(22, 47, 30, 0.6);

  --primary: #eeda2b;
  --primary-hover: #f3e24c;
  --primary-glow: rgba(238, 218, 43, 0.28);
  --primary-glow-strong: rgba(238, 218, 43, 0.5);

  --spotify-green: #1db954;
  --spotify-green-glow: rgba(29, 185, 84, 0.3);

  --coffee-yellow: #ffdd00;
  --coffee-hover: #ebcc00;
  --coffee-glow: rgba(255, 221, 0, 0.35);

  --text-main: #ffffff;
  --text-muted: #9db2a3;
  --text-dim: #647b6b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(238, 218, 43, 0.35);
  --border-green: rgba(29, 185, 84, 0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px var(--primary-glow);
  --shadow-coffee: 0 0 30px -5px var(--coffee-glow);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #132a1b 0%, var(--bg-dark) 50%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Background Glow */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(238, 218, 43, 0.1) 0%, rgba(29, 185, 84, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, #d4b815 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-darker);
  font-size: 1.15rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

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

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 10px;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-card);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-darker);
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow-strong);
}

.btn-coffee {
  background: var(--coffee-yellow);
  color: #000000;
  box-shadow: 0 4px 14px var(--coffee-glow);
}

.btn-coffee:hover {
  background: var(--coffee-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--coffee-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(238, 218, 43, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #fff176 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spotify-green);
}

/* App Mockup Preview */
.mockup-wrapper {
  margin: 40px auto 0;
  max-width: 760px;
  width: 100%;
  position: relative;
}

.mockup-card {
  background: linear-gradient(180deg, rgba(22, 47, 30, 0.92) 0%, rgba(14, 32, 20, 0.96) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  backdrop-filter: blur(12px);
  text-align: left;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.mockup-search {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  overflow: hidden;
  gap: 8px;
}

.mockup-search span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-track-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  flex-wrap: wrap;
}

.track-art {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #192e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.track-info {
  flex: 1;
  min-width: 160px;
}

.track-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-tag {
  background: rgba(238, 218, 43, 0.15);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Sections */
.section {
  padding: 70px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6), 0 0 18px -5px var(--primary-glow);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(238, 218, 43, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-darker);
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Direct APK Download Section */
.download-box {
  background: linear-gradient(135deg, rgba(22, 47, 30, 0.94) 0%, rgba(14, 32, 20, 0.98) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  max-width: 740px;
  margin: 0 auto;
}

.download-specs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 28px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.spec-item strong {
  color: var(--text-main);
}

/* Buy Me A Coffee Donation Section */
.coffee-section {
  background: radial-gradient(circle at 50% 50%, rgba(255, 221, 0, 0.08) 0%, transparent 70%);
}

.coffee-card {
  background: linear-gradient(135deg, #1b2615 0%, #132015 100%);
  border: 1.5px solid rgba(255, 221, 0, 0.4);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), var(--shadow-coffee);
  max-width: 740px;
  margin: 0 auto;
}

.coffee-icon-large {
  font-size: 3.2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.coffee-tiers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.coffee-tier-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 221, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--coffee-yellow);
  cursor: pointer;
  transition: all 0.2s ease;
}

.coffee-tier-btn:hover {
  background: var(--coffee-yellow);
  color: #000000;
  transform: translateY(-2px);
}

/* FAQ Accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 12px;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* Installation Guide Page Specifics */
.guide-header {
  padding: 50px 0 30px;
  text-align: center;
}

.guide-step-block {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
}

.guide-step-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(238, 218, 43, 0.15);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.guide-step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.guide-callout {
  background: rgba(238, 218, 43, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-top: 12px;
}

.device-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.device-tip-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.device-tip-card h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 6px;
}

.device-tip-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-darker);
  padding: 50px 0 24px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(auto-fit, minmax(150px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  color: var(--text-main);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
}

.footer-disclaimer {
  max-width: 800px;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablets & Below (< 992px) */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-section {
    padding: 40px 0;
  }

  .mockup-card {
    padding: 20px 16px;
  }
}

/* Mobile Phones (< 600px) */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .nav-brand {
    font-size: 1.2rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .nav-actions .btn-coffee {
    display: none; /* In navbar, keep only Download button on small screens */
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  .mockup-track-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .mockup-track-preview .btn {
    width: 100%;
    margin-top: 8px;
  }

  .guide-step-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-step-badge {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .coffee-tiers {
    flex-direction: column;
  }

  .coffee-tier-btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
