/* ─── Reset & Base ───────────────────────────────────────── */

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

:root {
  --music-red: #FC3C44;
  --music-red-dark: #d42f36;
  --music-red-light: #fff0f0;
  --music-red-glow: rgba(252, 60, 68, 0.08);
  --bg: #ffffff;
  --bg-warm: #fdfbfa;
  --bg-card: #ffffff;
  --bg-card-hover: #fef7f7;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #f0eeee;
  --border-hover: #e0dede;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 30px rgba(252, 60, 68, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--music-red);
  background: linear-gradient(var(--music-red), var(--music-red)) no-repeat left bottom;
  background-size: 0% 3px;
  padding-bottom: 4px;
  animation: accent-underline 1s 0.6s ease-out forwards;
}

@keyframes accent-underline {
  to { background-size: 100% 3px; }
}

/* ─── Floating Particles ─────────────────────────────────── */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particle-drift linear infinite;
}

@keyframes particle-drift {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0) scale(0);
  }
  10% {
    opacity: 1;
    transform: translateY(80vh) translateX(calc(var(--drift, 0px) * 0.2)) scale(0.6);
  }
  80% {
    opacity: 0.6;
    transform: translateY(10vh) translateX(var(--drift, 0px)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) translateX(var(--drift, 0px)) scale(0.8);
  }
}

/* ─── Navigation ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo-icon {
  font-size: 1.4rem;
  color: var(--music-red);
}

/* ─── Mobile Hamburger Menu ──────────────────────────────── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--music-red-light) 0%, var(--bg) 60%);
}

/* ─── Animated Gradient Mesh Background ──────────────────── */

.hero-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.mesh-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(252, 60, 68, 0.25), transparent 70%);
  top: -150px;
  left: 10%;
  animation: mesh-drift-1 12s ease-in-out infinite;
}

.mesh-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(88, 86, 214, 0.2), transparent 70%);
  top: 50px;
  right: 5%;
  animation: mesh-drift-2 15s ease-in-out infinite;
}

.mesh-blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.15), transparent 70%);
  bottom: 10%;
  left: 40%;
  animation: mesh-drift-3 10s ease-in-out infinite;
}

@keyframes mesh-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

@keyframes mesh-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.15); }
  66% { transform: translate(40px, -20px) scale(0.9); }
}

@keyframes mesh-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.1); }
}

/* ─── Hero Badge ─────────────────────────────────────────── */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  border-radius: 50px;
  background: rgba(252, 60, 68, 0.08);
  border: 1px solid rgba(252, 60, 68, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--music-red);
  margin-bottom: 24px;
  animation: fade-up 0.8s ease-out both, badge-glow 3s ease-in-out infinite;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--music-red);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 60, 68, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(252, 60, 68, 0.1); }
}

.hero-glow {
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(252, 60, 68, 0.1) 0%, rgba(252, 60, 68, 0.03) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fade-up 0.8s ease-out both;
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 40%, var(--music-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slogan {
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--music-red);
  margin-bottom: 20px;
  animation: fade-up 0.8s 0.1s ease-out both;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fade-up 0.8s 0.2s ease-out both;
}

.hero-cta {
  margin-bottom: 60px;
  animation: fade-up 0.8s 0.35s ease-out both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--music-red);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(252, 60, 68, 0.25);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: btn-shine 3s 1s infinite;
}

@keyframes btn-shine {
  0% { left: -100%; }
  20% { left: 120%; }
  100% { left: 120%; }
}

.btn-primary:hover {
  background: var(--music-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(252, 60, 68, 0.35);
}

.apple-icon {
  width: 20px;
  height: 20px;
}

.hero-screenshot {
  max-width: 320px;
  margin: 0 auto;
  animation: fade-up 0.8s 0.5s ease-out both;
}

/* ─── App Icon in Nav & Footer ───────────────────────────── */

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

/* ─── Hero Screenshots Showcase ──────────────────────────── */

.hero-screenshots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
  max-width: 900px;
  animation: fade-up 0.8s 0.5s ease-out both;
}

.screenshot-phone {
  width: 240px;
  flex-shrink: 0;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: scale(0.85);
  opacity: 0.7;
  transition: transform 0.15s ease-out, opacity 0.3s ease;
  background: #000;
  padding: 8px;
  border: 3px solid #2a2a2a;
  position: relative;
}

.screenshot-phone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.screenshot-phone.screenshot-center {
  transform: scale(1);
  opacity: 1;
}

.screenshot-phone:hover {
  opacity: 1;
}

.screenshot-phone.screenshot-center:hover {
  opacity: 1;
}

.screenshot-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ─── Steps Section ──────────────────────────────────────── */

.steps-section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
}

.step-card {
  text-align: center;
  padding: 32px 28px;
  max-width: 280px;
  flex: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--music-red);
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--music-red), var(--border));
  flex-shrink: 0;
}

/* ─── Features ───────────────────────────────────────────── */

.features {
  padding: 100px 0;
  position: relative;
  z-index: 1;
  background: var(--bg-warm);
}

.features h2,
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 60px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: var(--glow-y, 50%);
  left: var(--glow-x, 50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(252, 60, 68, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
}

/* ─── Scroll Reveal ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── CTA Section ────────────────────────────────────────── */

.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, var(--bg), var(--music-red-light), var(--bg));
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 12px 0 36px;
}

/* ─── Footer ─────────────────────────────────────────────── */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.footer-slogan {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-style: italic;
}

/* ─── Legal Pages (shared) ───────────────────────────────── */

.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 12px;
  text-align: left;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-page a {
  color: var(--music-red);
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ─── Support Page ───────────────────────────────────────── */

.support-page {
  padding: 120px 0 80px;
  text-align: center;
}

.support-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.support-page .support-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  box-shadow: var(--shadow);
}

.support-card h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.support-card a {
  color: var(--music-red);
}

.support-card a:hover {
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero {
    padding: 130px 0 60px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-screenshots {
    gap: 12px;
  }

  .screenshot-phone {
    width: 160px;
    border-radius: 28px;
    padding: 5px;
  }

  .screenshot-phone::before {
    width: 50px;
    height: 14px;
    top: 5px;
    border-radius: 0 0 10px 10px;
  }

  .screenshot-phone img {
    border-radius: 22px;
  }

  .steps-grid {
    flex-direction: column;
    gap: 0;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--music-red), var(--border));
  }

  .step-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 14px;
    font-size: 0.8rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}

/* ─── Reduced Motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .particle { display: none; }
}
