/* ============================================================
   Musictrack X — Apple-inspired single page
   - System fonts (SF Pro / PingFang on Apple, fallbacks elsewhere)
   - Mobile-first responsive layout
   - Anim primitives are JS-driven (GSAP); CSS keeps fallbacks
   ============================================================ */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

:root {
  --bg: #000;
  --bg-soft: #0b0b0d;
  --bg-light: #fbfbfd;
  --bg-light-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-mute: #86868b;
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(0, 0, 0, 0.08);

  /* Brand gradient — matches the Musictrack X logo (cyan → blue → indigo) */
  --brand-blue: #0a84ff;
  --brand-cyan: #1ed5ff;
  --brand-indigo: #5e5ce6;
  --grad-brand: linear-gradient(
    135deg,
    #1ed5ff 0%,
    #0a84ff 50%,
    #5e5ce6 100%
  );
  --grad-purple: linear-gradient(135deg, #5e5ce6 0%, #af52de 100%);
  /* Hot accent, kept for "peak" badges and movement indicators */
  --grad-hot: linear-gradient(135deg, #ff453a 0%, #ff9500 100%);
  --grad-hero: radial-gradient(
      120% 80% at 50% 0%,
      rgba(94, 92, 230, 0.3) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    radial-gradient(
      80% 70% at 80% 30%,
      rgba(10, 132, 255, 0.25) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    radial-gradient(
      100% 100% at 0% 100%,
      rgba(30, 213, 255, 0.22) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    #000;
  --radius-card: 28px;
  --radius-pill: 999px;
  --container: 1100px;
}

body {
  background: var(--bg);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Noto Sans CJK SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

em {
  font-style: normal;
}

.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 24px;
  margin: 0 auto;
}

/* -------- NAV -------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 16px;
}

/* Nav brand uses the horizontal logo PNG */
.nav__logo-img {
  display: block;
  height: 30px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .nav__logo-img {
    height: 26px;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.nav__links a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 1;
}

.nav__cta {
  background: #fff;
  color: #000 !important;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  opacity: 1 !important;
}

@media (max-width: 640px) {
  .nav__links {
    gap: 14px;
    font-size: 12px;
  }
  .nav__links a:not(.nav__cta) {
    display: none;
  }
}

/* -------- HERO -------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--grad-hero);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.orb--a {
  width: 460px;
  height: 460px;
  background: #5e5ce6;
  top: -120px;
  left: -100px;
}

.orb--b {
  width: 520px;
  height: 520px;
  background: #0a84ff;
  top: 20%;
  right: -180px;
}

.orb--c {
  width: 380px;
  height: 380px;
  background: #1ed5ff;
  bottom: -120px;
  left: 20%;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    );
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.7) 0%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.7) 0%,
    transparent 75%
  );
}

.hero__content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #1ed5ff;
  font-weight: 600;
  margin: 0 0 14px;
}

.eyebrow--dark {
  color: #0a84ff;
}

.hero__title {
  font-size: clamp(40px, 7.5vw, 88px);
  line-height: 1.04;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.hero__title .line {
  display: block;
}

.hero__lead {
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
}

.hero__hint svg {
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* device mockup */
.hero__device {
  position: relative;
  margin: 60px auto 0;
  max-width: 680px;
  padding: 0 24px;
  z-index: 1;
}

.device-frame {
  background: linear-gradient(180deg, #1c1c1e, #0b0b0d);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 12px;
  box-shadow:
    0 40px 100px rgba(10, 132, 255, 0.28),
    0 8px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
}

.device-screen {
  background: linear-gradient(180deg, #1a1a20, #101016);
  border-radius: 20px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.dot:first-child {
  background: #ff5f57;
}

.dot:nth-child(2) {
  background: #febc2e;
}

.dot:nth-child(3) {
  background: #28c840;
}

.screen-titles {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.screen-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
}

.screen-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.screen-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--grad-hot);
  box-shadow: 0 0 18px rgba(255, 69, 58, 0.45);
  position: relative;
}

.screen-badge::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  left: -3px;
  transform: translateY(-50%);
  box-shadow: 0 0 8px #fff;
}

/* table header */
.screen-cols {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 4px 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.screen-cols > :nth-child(1) {
  width: 22px;
  text-align: left;
  flex-shrink: 0;
}
.screen-cols > :nth-child(2) {
  flex: 1;
  padding-left: 36px; /* aligns past cover */
}
.screen-cols > :nth-child(3),
.screen-cols > :nth-child(4),
.screen-cols > :nth-child(5) {
  text-align: right;
  flex-shrink: 0;
}
.screen-cols > :nth-child(3) {
  width: 22px;
}
.screen-cols > :nth-child(4) {
  width: 32px;
}
.screen-cols > :nth-child(5) {
  width: 30px;
}
.screen-cols > :nth-child(6) {
  width: 30px;
  flex-shrink: 0;
}

.screen-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.screen-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.screen-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.screen-row .rank {
  font-weight: 700;
  color: #fff;
  font-size: 12px;
  width: 22px;
  text-align: left;
  flex-shrink: 0;
}

.screen-row .cover {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: #2a2a30;
  background-image: linear-gradient(135deg, #5e5ce6, #0a84ff);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Bump specificity so each cover variant beats the base ".screen-row .cover" rule */
.screen-row .cover.cover--a { background-image: linear-gradient(135deg, #ff453a, #ff9500); }
.screen-row .cover.cover--b { background-image: linear-gradient(135deg, #ff9a5a, #ff2d55); }
.screen-row .cover.cover--c { background-image: linear-gradient(135deg, #5e5ce6, #1ed5ff); }
.screen-row .cover.cover--d { background-image: linear-gradient(135deg, #34c759, #00d1ff); }
.screen-row .cover.cover--e { background-image: linear-gradient(135deg, #af52de, #ff2d55); }
.screen-row .cover.cover--f { background-image: linear-gradient(135deg, #6a4a2b, #c9a36a); }
.screen-row .cover.cover--g { background-image: linear-gradient(135deg, #d65f48, #f4a261); }
.screen-row .cover.cover--h { background-image: linear-gradient(135deg, #ffd166, #ef476f); }

.screen-row .track {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.screen-row .track strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.screen-row .track em {
  font-size: 10.5px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-row .lw,
.screen-row .peak,
.screen-row .wks {
  text-align: right;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  flex-shrink: 0;
}

.screen-row .lw {
  width: 22px;
}

.screen-row .peak {
  width: 32px;
  color: #ff9500;
  font-weight: 600;
}

.screen-row .wks {
  width: 30px;
}

.screen-row .move {
  text-align: right;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  width: 30px;
  flex-shrink: 0;
}

.move--up { color: #34c759; }
.move--down { color: #ff453a; }
.move--same { color: rgba(255, 255, 255, 0.35); }

.screen-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.screen-time {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 560px) {
  .device-screen {
    padding: 14px 14px 12px;
  }
  .screen-cols,
  .screen-row {
    gap: 8px;
    font-size: 11px;
  }
  .screen-cols > :nth-child(2) {
    padding-left: 32px;
  }
  .screen-cols > :nth-child(3),
  .screen-cols > :nth-child(5),
  .screen-row .lw,
  .screen-row .wks {
    display: none;
  }
  .screen-row .cover {
    width: 22px;
    height: 22px;
  }
  .screen-row .track strong {
    font-size: 11.5px;
  }
  .screen-row .track em {
    font-size: 10px;
  }
  .screen-badge {
    display: none;
  }
}

/* -------- QR card -------- */
.qr-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  text-align: left;
}

.qr-card--hero {
  margin: 0 auto;
}

.qr-card__visual {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-card__visual img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  border-radius: 8px;
}

.qr-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qr-card__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qr-card__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.qr-card__sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.qr-card--xl {
  padding: 24px;
  gap: 28px;
}

.qr-card--xl .qr-card__visual {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  border-radius: 18px;
  padding: 12px;
}

.qr-card--xl .qr-card__title {
  font-size: 22px;
}

@media (max-width: 480px) {
  .qr-card {
    gap: 14px;
    padding: 12px;
  }
  .qr-card__visual {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
  }
  .qr-card--xl {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .qr-card--xl .qr-card__visual {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
  }
}

/* -------- SECTIONS -------- */
.section {
  padding: 120px 0;
  position: relative;
}

@media (max-width: 720px) {
  .section {
    padding: 80px 0;
  }
}

.section--intro {
  background: var(--bg-light);
  color: var(--ink);
}

.section--intro .eyebrow {
  color: #ff2d55;
}

.section__title {
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 24px;
}

.section__title--xl {
  font-size: clamp(40px, 6.4vw, 80px);
}

.section__title .line {
  display: block;
}

.section__lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 40px;
  line-height: 1.55;
}

.section__lead--narrow {
  max-width: 580px;
}

.section--intro .section__lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* stats row */
.stat-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.stat__num {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat__label {
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stat {
    padding: 22px 18px;
  }
}

/* -------- FEATURES -------- */
.section--features {
  background: #000;
  color: #fff;
}

.feature-stack {
  margin-top: 56px;
  display: grid;
  gap: 24px;
  padding: 0 24px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.feature {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 480px;
}

/* 1. 数据聚合 — deep indigo/blue */
.feature--aggregate {
  background: radial-gradient(
      120% 100% at 0% 0%,
      rgba(94, 92, 230, 0.5),
      transparent 60%
    ),
    radial-gradient(
      120% 100% at 100% 100%,
      rgba(10, 132, 255, 0.3),
      transparent 60%
    ),
    #0c0f24;
}

/* 2. 更加便捷 — bright cyan/blue trend tones */
.feature--convenient {
  background: radial-gradient(
      120% 100% at 100% 0%,
      rgba(30, 213, 255, 0.45),
      transparent 60%
    ),
    radial-gradient(
      100% 100% at 0% 100%,
      rgba(10, 132, 255, 0.3),
      transparent 60%
    ),
    #061320;
}

/* 3. 数据更全 — warm "history" tones */
.feature--complete {
  background: radial-gradient(
      120% 100% at 50% 0%,
      rgba(255, 149, 0, 0.35),
      transparent 60%
    ),
    radial-gradient(
      100% 100% at 0% 100%,
      rgba(255, 69, 58, 0.25),
      transparent 60%
    ),
    #1c1208;
}

.feature__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 56px;
  height: 100%;
  min-height: 480px;
}

@media (max-width: 880px) {
  .feature__inner {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
    min-height: 0;
  }
  /* When visual is on the left on desktop, push it below copy on mobile */
  .feature--convenient .feature__visual {
    order: 2;
  }
  .feature--convenient .feature__copy {
    order: 1;
  }
}

.feature__copy {
  max-width: 460px;
}

.feature__tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.feature__title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.feature__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* feature visual: rings */
.feature__visual {
  position: relative;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__visual--rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

.feature__visual--rings .ring--1 {
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 45, 85, 0.95),
    rgba(255, 45, 85, 0) 70%
  );
  border-color: transparent;
  box-shadow: 0 0 80px rgba(255, 45, 85, 0.5);
}

.feature__visual--rings .ring--2 {
  width: 160px;
  height: 160px;
}
.feature__visual--rings .ring--3 {
  width: 240px;
  height: 240px;
}
.feature__visual--rings .ring--4 {
  width: 320px;
  height: 320px;
}
.feature__visual--rings .ring--5 {
  width: 400px;
  height: 400px;
  border-color: rgba(255, 255, 255, 0.08);
}

.ring-label {
  position: relative;
  z-index: 2;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* feature visual: multi-chart trend (sparklines) */
.feature__visual--trend {
  padding: 12px;
  min-height: 360px;
}

.trend-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.trend-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.trend-id {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  flex: 1;
}

.trend-id strong {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.trend-id em {
  font-size: 11px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

.trend-range {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.trend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trend-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
}

.trend-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.trend-spark {
  width: 100%;
  height: 48px;
  overflow: visible;
}

/* lower = higher chart position; svg path is in viewBox coordinates */
.trend-line {
  fill: none;
  stroke: #0a84ff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(10, 132, 255, 0.35));
}

.trend-row:nth-child(1) .trend-line { stroke: #1ed5ff; }
.trend-row:nth-child(2) .trend-line { stroke: #0a84ff; }
.trend-row:nth-child(3) .trend-line { stroke: #af52de; }
.trend-row:nth-child(4) .trend-line { stroke: #ff9500; }

.trend-peak {
  font-size: 11px;
  font-weight: 700;
  color: #ff9500;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.3);
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}

.trend-peak--alt {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.trend-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.trend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.trend-dot--debut {
  background: #1ed5ff;
  box-shadow: 0 0 8px rgba(30, 213, 255, 0.6);
}

.trend-dot--peak {
  background: #ff9500;
  box-shadow: 0 0 8px rgba(255, 149, 0, 0.6);
}

.trend-divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

@media (max-width: 560px) {
  .trend-card {
    padding: 18px;
  }
  .trend-row {
    grid-template-columns: 100px minmax(0, 1fr) 56px;
    gap: 10px;
  }
  .trend-label {
    font-size: 11.5px;
  }
}

/* feature visual: aggregate card */
.feature__visual--aggregate {
  padding: 12px;
  min-height: 380px;
}

.agg-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.agg-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.agg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    #ff2d55,
    #af52de,
    #5e5ce6,
    #00d1ff,
    #ff2d55
  );
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.agg-id {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.agg-id strong {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.agg-id em {
  font-size: 11px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.agg-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.4);
  background: rgba(52, 199, 89, 0.12);
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.agg-section {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.agg-section--last {
  border-bottom: 0;
}

.agg-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.agg-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agg-rows li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.agg-chart {
  flex: 1;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agg-peak {
  flex-shrink: 0;
  color: #ff9500;
  font-weight: 600;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.agg-wks {
  flex-shrink: 0;
  width: 56px;
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.agg-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trophy {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.4);
}

.feature__bullets {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.feature__bullets li span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-brand);
  position: relative;
  flex-shrink: 0;
}

.feature__bullets li span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat center / 12px 12px;
}

/* -------- CHARTS -------- */
.section--charts {
  background: var(--bg-light);
  color: var(--ink);
}

.section--charts .eyebrow {
  color: #ff2d55;
}

.section--charts .section__lead {
  color: var(--ink-soft);
}

.chip-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.chip--hero {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
}

.chip--accent {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 480px) {
  .chip {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* -------- MUSICTRACK REFERRAL -------- */
.section--join {
  background: #050507;
  color: #fff;
  padding: 88px 0;
}

.join {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
}

.join::before {
  content: "";
  position: absolute;
  top: -44px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(30, 213, 255, 0),
    rgba(30, 213, 255, 0.52),
    rgba(94, 92, 230, 0.52),
    rgba(30, 213, 255, 0)
  );
}

.section--join .eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.join__copy {
  max-width: 800px;
}

.join__title {
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.join__lead {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 19px;
}

.join__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #050507;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 18px 44px rgba(10, 132, 255, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.join__link svg {
  flex: 0 0 auto;
}

.join__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(10, 132, 255, 0.28);
}

@media (max-width: 760px) {
  .section--join {
    padding: 76px 0;
  }

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

  .join::before {
    top: -38px;
  }

  .join__title {
    font-size: 42px;
  }

  .join__lead {
    font-size: 17px;
  }

  .join__link {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .join__title {
    font-size: 34px;
  }
}

/* -------- BOTTOM CTA -------- */
.section--cta {
  background: radial-gradient(
      120% 100% at 50% 0%,
      rgba(255, 45, 85, 0.25) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    radial-gradient(
      80% 80% at 0% 100%,
      rgba(94, 92, 230, 0.25) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    #000;
  color: #fff;
}

.cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta .qr-card {
  margin-top: 16px;
}

/* -------- FOOTER -------- */
.footer {
  background: #000;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
}

.footer__logo-img {
  display: block;
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-left: -20px; /* compensate for the PNG's transparent left padding */
}

@media (max-width: 480px) {
  .footer__logo-img {
    width: 160px;
    margin-left: -16px;
  }
}

.footer__legal {
  margin: 0;
}

@media (max-width: 480px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* -------- ANIMATION INITIAL STATES (so page is not blank if JS fails late) -------- */
[data-anim] {
  opacity: 1;
}

.no-js [data-anim] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero__hint svg {
    animation: none;
  }
}
