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

:root {
  --red-primary: #fa233b;
  --red-hover: #e01e34;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-light: #aeaeb2;
  --bg-page: #f5f5f7;
  --bg-white: #fff;
  --bg-nav: rgba(255, 255, 255, 0.72);
  --bg-dark: #1d1d1f;
  --border-color: #d2d2d7;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-nav: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========== NAV ========== */
.nav-wrapper {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow-nav);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-right: 8px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 18px;
  height: 22px;
  color: var(--text-primary);
}

.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--red-primary);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
  margin-left: 4px;
}

.nav-download:hover {
  background: var(--red-hover);
}

/* ========== HERO ========== */
.hero {
  text-align: center;
  padding: 140px 20px 40px;
  background: var(--bg-page);
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--red-primary) 0%, #fc5c7d 50%, #6a82fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--red-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(250, 35, 59, 0.3);
}

.btn-download:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(250, 35, 59, 0.4);
}

.btn-download .apple-icon {
  width: 18px;
  height: 22px;
}

.btn-download .win-icon {
  width: 18px;
  height: 18px;
}

.btn-download-outline {
  background: transparent;
  color: var(--red-primary);
  border: 2px solid var(--red-primary);
  box-shadow: none;
}

.btn-download-outline:hover {
  background: var(--red-primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(250, 35, 59, 0.4);
}

.hero-web-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-web-link:hover {
  color: var(--red-primary);
}

.hero-web-link .arrow {
  transition: transform 0.2s;
}

.hero-web-link:hover .arrow {
  transform: translateX(3px);
}

/* ========== APP MOCKUP ========== */
.app-mockup-section {
  padding: 20px 20px 60px;
  display: flex;
  justify-content: center;
}

.app-mockup {
  width: 100%;
  max-width: 960px;
  background: #000;
  border-radius: 16px;
  padding: 20px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.mockup-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.mockup-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-bar .dot:nth-child(1) { background: #ff5f57; }
.mockup-bar .dot:nth-child(2) { background: #febc2e; }
.mockup-bar .dot:nth-child(3) { background: #28c840; }

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.m-album {
  aspect-ratio: 1;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.m-album:hover {
  transform: scale(1.05);
}

.m-album:nth-child(1) { background: linear-gradient(135deg, #fa233b, #ff6b6b); }
.m-album:nth-child(2) { background: linear-gradient(135deg, #667eea, #764ba2); }
.m-album:nth-child(3) { background: linear-gradient(135deg, #f093fb, #f5576c); }
.m-album:nth-child(4) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.m-album:nth-child(5) { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.m-album:nth-child(6) { background: linear-gradient(135deg, #fa709a, #fee140); }
.m-album:nth-child(7) { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.m-album:nth-child(8) { background: linear-gradient(135deg, #fccb90, #d57eeb); }

/* ========== FEATURES SECTION ========== */
.features-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== FEATURES TABS ========== */
.features-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-white);
  border-radius: 50px;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.tab-btn.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
  font-weight: 500;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== FEATURE CARDS ========== */
.feature-card {
  display: flex;
  align-items: stretch;
  gap: 60px;
  margin-bottom: 80px;
  padding: 40px;
  background: var(--bg-white);
  border-radius: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-card.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-visual {
  flex: 1.2;
  min-width: 280px;
  min-height: 280px;
  border-radius: var(--radius-md);
}

.v-spatial   { background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 60%, #fa233b 100%); }
.v-spatial-2 { background: linear-gradient(135deg, #0f0520 0%, #3d1856 60%, #e91e63 100%); }
.v-spatial-3 { background: linear-gradient(135deg, #0a0a1e 0%, #1e1045 60%, #9c27b0 100%); }

.v-lossless   { background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 60%, #2196f3 100%); }
.v-lossless-2 { background: linear-gradient(135deg, #0a1628 0%, #132744 60%, #00bcd4 100%); }

.v-lyrics   { background: linear-gradient(135deg, #1a0a20 0%, #441a4e 60%, #e91e63 100%); }
.v-lyrics-2 { background: linear-gradient(135deg, #200a1a 0%, #4e1a3d 60%, #ff4081 100%); }

.v-foryou   { background: linear-gradient(135deg, #1a1205 0%, #4a3000 60%, #ff9800 100%); }
.v-foryou-2 { background: linear-gradient(135deg, #1a0f05 0%, #4a2800 60%, #ff5722 100%); }

.v-radio   { background: linear-gradient(135deg, #0a1a0a 0%, #1b4a1b 60%, #4caf50 100%); }
.v-radio-2 { background: linear-gradient(135deg, #051a15 0%, #0d4a3a 60%, #009688 100%); }

/* ========== BOTTOM CTA ========== */
.cta-section {
  text-align: center;
  padding: 80px 20px 60px;
  background: var(--bg-page);
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: #aaa;
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 16px;
}

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

.footer-info span {
  white-space: nowrap;
}

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

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 36px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .feature-card {
    flex-direction: column !important;
    gap: 30px;
    padding: 24px;
  }

  .feature-text,
  .feature-visual {
    min-width: unset;
    width: 100%;
  }

  .feature-text h3 {
    font-size: 24px;
  }

  .nav-links {
    display: none;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .mockup-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .m-album:nth-child(7),
  .m-album:nth-child(8) {
    display: none;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
  }

  .footer-info {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }

  .btn-download {
    padding: 12px 28px;
    font-size: 15px;
  }

  .mockup-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .m-album:nth-child(5),
  .m-album:nth-child(6),
  .m-album:nth-child(7),
  .m-album:nth-child(8) {
    display: none;
  }
}
