/* ============================================================
   Landing Page — DD Beat Downloader
   Modern dark theme with vibrant gradients, mesh BG, glassmorphism
   ============================================================ */

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

:root {
  --landing-bg: #07060d;
  --landing-bg-2: #0d0a18;
  --landing-card: rgba(20, 16, 35, 0.6);
  --landing-card-hover: rgba(30, 24, 50, 0.75);
  --landing-border: rgba(167, 139, 250, 0.12);
  --landing-border-hover: rgba(167, 139, 250, 0.35);
  --landing-text: #f5f3ff;
  --landing-text-muted: #9990b8;
  --landing-text-dim: #6b6585;
  --magenta: #EC4899;
  --magenta-light: #F472B6;
  --violet: #7C3AED;
  --violet-light: #A78BFA;
  --cyan: #06B6D4;
  --cyan-light: #22D3EE;
  --gradient-text: linear-gradient(135deg, #A78BFA 0%, #EC4899 50%, #F472B6 100%);
  --gradient-cta: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --gradient-cta-hover: linear-gradient(135deg, #8B5CF6 0%, #F472B6 100%);
  --gradient-mesh-1: radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.35) 0%, transparent 50%);
  --gradient-mesh-2: radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.25) 0%, transparent 50%);
  --gradient-mesh-3: radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.18) 0%, transparent 50%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--landing-bg);
  color: var(--landing-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ============ Animated Background Mesh ============ */
.bg-mesh {
  position: fixed;
  inset: -20% -20% -20% -20%;
  z-index: -1;
  background:
    var(--gradient-mesh-1),
    var(--gradient-mesh-2),
    var(--gradient-mesh-3),
    linear-gradient(135deg, #07060d 0%, #0d0a18 100%);
  filter: blur(60px) saturate(1.1);
  animation: meshFloat 25s ease-in-out infinite;
}
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5%, -3%) rotate(2deg); }
  66% { transform: translate(-3%, 4%) rotate(-2deg); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ============ Container ============ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Navbar ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(7, 6, 13, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--landing-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.25));
}
.logo-icon-sm { width: 26px; height: 26px; }
.logo-icon-lg { width: 44px; height: 44px; }
.nav-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
  flex: 1; justify-content: center;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--landing-text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--landing-text); }
.nav-cta {
  display: flex; gap: 12px; align-items: center;
}

/* ============ Buttons ============ */
.lbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.lbtn:active { transform: scale(0.97); }
.lbtn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.lbtn-primary:hover {
  box-shadow: 0 12px 36px rgba(236, 72, 153, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-2px);
}
.lbtn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-cta-hover);
  opacity: 0;
  transition: opacity 0.3s;
}
.lbtn-primary:hover::before { opacity: 1; }
.lbtn-primary > * { position: relative; z-index: 1; }

.lbtn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--landing-text);
  border: 1px solid var(--landing-border);
  backdrop-filter: blur(10px);
}
.lbtn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--landing-border-hover);
  transform: translateY(-2px);
}
.lbtn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 14px; }

/* ============ Hero ============ */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--violet-light);
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease-out;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}
.hero-title .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--landing-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-visual {
  margin-top: 80px;
  position: relative;
  animation: fadeUp 1s ease-out 0.4s both;
}
.hero-mockup {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(20, 16, 35, 0.9), rgba(30, 24, 50, 0.9));
  border: 1px solid var(--landing-border);
  box-shadow:
    0 30px 80px rgba(124, 58, 237, 0.25),
    0 0 0 1px rgba(167, 139, 250, 0.08) inset;
  overflow: hidden;
}
.hero-mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(7, 6, 13, 0.6);
  border-bottom: 1px solid var(--landing-border);
}
.hero-mockup-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.hero-mockup-dot:nth-child(1) { background: #ff5f57; }
.hero-mockup-dot:nth-child(2) { background: #febc2e; }
.hero-mockup-dot:nth-child(3) { background: #28c840; }
.hero-mockup-body { padding: 24px; }
.hero-mockup-search {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(7, 6, 13, 0.5);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--landing-text-muted);
  font-size: 0.95rem;
}
.hero-mockup-list { display: grid; gap: 10px; }
.hero-mockup-track {
  display: grid; grid-template-columns: 48px 1fr auto auto; gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(7, 6, 13, 0.4);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
}
.hero-mockup-art {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
}
.hero-mockup-art.alt-1 { background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.hero-mockup-art.alt-2 { background: linear-gradient(135deg, var(--magenta), #F59E0B); }
.hero-mockup-info { min-width: 0; }
.hero-mockup-title { font-size: 0.9rem; font-weight: 600; }
.hero-mockup-artist { font-size: 0.78rem; color: var(--landing-text-muted); margin-top: 2px; }
.hero-mockup-quality {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  font-weight: 600;
}
.hero-mockup-btn {
  padding: 6px 14px;
  background: var(--gradient-cta);
  color: white;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: var(--violet);
  top: 10%; left: -10%;
  animation: orbFloat 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  background: var(--magenta);
  top: 30%; right: -10%;
  animation: orbFloat 22s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

/* ============ Section base ============ */
.section { padding: 80px 0; position: relative; }
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--violet-light);
  margin-bottom: 12px;
  text-align: center;
}
.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--landing-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* ============ Features Grid ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 32px 28px;
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--landing-border-hover), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: var(--landing-border-hover);
  background: var(--landing-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(167, 139, 250, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.92rem;
  color: var(--landing-text-muted);
  line-height: 1.6;
}

/* ============ How It Works ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--landing-border-hover), transparent);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 16, 35, 0.9), rgba(30, 24, 50, 0.9));
  border: 1px solid var(--landing-border-hover);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  background-clip: padding-box;
  position: relative;
}
.step-num::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--gradient-cta);
  z-index: -1;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.step-num span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 0.92rem; color: var(--landing-text-muted); max-width: 280px; margin: 0 auto; }

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 36px 28px;
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  transition: all 0.3s;
}
.price-card:hover {
  border-color: var(--landing-border-hover);
  transform: translateY(-4px);
}
.price-card.featured {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.1));
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--gradient-cta);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}
.price-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.price-tagline {
  font-size: 0.88rem;
  color: var(--landing-text-muted);
  margin-bottom: 24px;
}
.price-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 32px;
}
.price-value .currency { font-size: 1.1rem; color: var(--landing-text-muted); font-weight: 500; }
.price-value .period { font-size: 0.85rem; color: var(--landing-text-muted); font-weight: 500; }
.price-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem;
  color: var(--landing-text);
}
.price-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  color: var(--violet-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item:hover { border-color: var(--landing-border-hover); }
.faq-item summary {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--violet-light);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--landing-text-muted);
  line-height: 1.65;
}

/* ============ Bottom CTA ============ */
.cta-final {
  text-align: center;
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.12));
  border: 1px solid var(--landing-border-hover);
  border-radius: 32px;
  margin: 40px 0 80px;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.3), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.25), transparent 50%);
  filter: blur(40px);
  z-index: 0;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-final p {
  color: var(--landing-text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ============ Footer ============ */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--landing-border);
  background: rgba(7, 6, 13, 0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; font-size: 1.2rem; }
.footer-brand p { color: var(--landing-text-muted); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--landing-text);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--landing-text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--violet-light); }
.footer-bottom {
  border-top: 1px solid var(--landing-border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
  color: var(--landing-text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ Auth back link (for login.html) ============ */
.auth-back-link {
  position: fixed;
  top: 24px; left: 24px;
  color: var(--text-muted, #9d9db5);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(20, 16, 35, 0.5);
  border: 1px solid rgba(167, 139, 250, 0.12);
  backdrop-filter: blur(12px);
  transition: all 0.2s;
  z-index: 10;
}
.auth-back-link:hover {
  color: var(--text-primary, #f0f0f5);
  border-color: rgba(167, 139, 250, 0.35);
}
.logo-link { text-decoration: none; }

/* ============ Animations ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { padding: 110px 0 60px; }
  .section { padding: 60px 0; }
  .cta-final { padding: 60px 24px; border-radius: 24px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .lbtn { width: 100%; }
}
