/* Landing — unified transparent style */
.landing-hero,
.landing-beats,
.landing-creators,
.landing-stats,
.landing-mockups,
.landing-genres { background: transparent; }

/* Fixed blur top/bottom (like primer.html) */
.landing-blur-top,
.landing-blur-bottom {
  position: fixed;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  z-index: 20;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.landing-blur-top { top: 0; }
.landing-blur-bottom {
  bottom: 0;
  transform: rotate(180deg);
}

/* ── Hero ── */
.landing-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px 100px;
  overflow: hidden;
}

.logo-3d-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
}
html.dark .logo-3d-wrapper { opacity: 0.34; }

.logo-3d-wrapper canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Animated pills */
.hero-pills {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--card);
}

.pill-num { font-variant-numeric: tabular-nums; }

.landing-title {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}

.landing-lead {
  margin: 16px 0 0;
  max-width: 580px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Glass search bar */
.landing-search {
  margin-top: 32px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 760px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  border: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(var(--frost-blur));
  -webkit-backdrop-filter: blur(var(--frost-blur));
  box-shadow: 0 4px 24px var(--shadow-color);
}

.search-icon { margin-right: 12px; font-size: 1.2rem; color: var(--text-muted); }

.landing-search input {
  flex: 1; min-width: 0; background: transparent;
  border: none; outline: none; color: var(--text);
  font-family: inherit; font-size: 1.05rem;
}

.landing-search-btn {
  border: none; border-radius: 999px;
  padding: 13px 26px;
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  font-family: inherit; font-weight: 700;
  cursor: pointer;
}

.landing-trending-searches {
  margin-top: 20px;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 10px;
}
.landing-trending-searches span { color: var(--text-muted); font-size: 0.92rem; }
.landing-trending-searches a {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; text-decoration: none;
  color: var(--text); font-size: 0.9rem;
  transition: border-color 0.2s;
}
.landing-trending-searches a:hover { border-color: var(--text); }

/* Global note + payments image */
.landing-global-note {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.payment-logo {
  height: 24px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
  filter: grayscale(0.3);
}
.payment-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}
html.dark .payment-logo {
  filter: grayscale(0.3) invert(1);
  opacity: 0.8;
}
html.dark .payment-logo:hover {
  filter: grayscale(0) invert(1);
  opacity: 1;
}

.global-payments-img {
  height: 22px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.2s;
}
html.dark .global-payments-img { filter: invert(1); }

/* ── Beats ticker ── */
.landing-beats {
  position: relative;
  padding: 28px 0;
  overflow: hidden;
}

.landing-beats-bg {
  position: absolute;
  filter: blur(100px);
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  transition: background-image 0.5s ease;
  pointer-events: none;
}

.landing-beats-inner { position: relative; z-index: 1; }
.landing-beats-inner.full-width {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Fade on sides of beats grid */
.landing-beats-grid {
  display: flex !important;
  overflow-x: hidden;
  overflow-y: hidden;
  gap: 28px;
  padding: 50px 56px 50px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.landing-beats-grid .beat-card {
  flex: 0 0 280px;
  overflow: visible;
}

.landing-beats-grid .beat-cover a,
.landing-beats-grid .beat-cover .play-button {
  position: relative;
  z-index: 1;
}
.landing-beats-grid .beat-cover .play-button {
  display: none !important;
}

.landing-no-beats { text-align: center; color: var(--text-muted); }

/* ── Shared ── */
.landing-section-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.9vw, 2rem);
  font-weight: 800;
  color: var(--text);
}
.landing-section-title.left { text-align: left; }
.landing-section-title.center { text-align: center; }

.landing-creators-inner,
.landing-genres-inner,
.landing-stats-inner,
.landing-mockups-inner {
  max-width: 1082px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

/* ── Creators ── */
.landing-creators {
  padding: 48px 0 40px;
}

.landing-creators-header {
  text-align: center;
  margin-bottom: 28px;
}

.landing-creators-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  color: var(--text);
}

.creators-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--card);
  border: none;
}

.landing-creators-left {
  min-width: 0;
}

.creators-checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.creators-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.creators-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--border);
  color: var(--text);
}

.creators-icon .bi {
  font-size: 1.25rem;
}

.creators-item-text {
  min-width: 0;
}

.creators-item-text strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 4px;
}

.creators-item-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.landing-cta.creators-cta {
  margin-top: 8px;
}

/* Creators visual — animated rings + eq */
.landing-creators-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.creators-visual {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 28px;
  border: none;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.landing-btn:active { transform: scale(0.97); }
.landing-btn-primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}
.landing-btn-primary:hover { opacity: 0.9; }
.landing-btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.landing-btn-outline:hover { border-color: var(--text); }
.landing-btn-xl { padding: 16px 32px; font-size: 1.05rem; }

.cv-ring {
  position: absolute;
  inset: 0;
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}
.cv-ring-1 { animation: spin-left 20s linear infinite; stroke-dasharray: 12 8; }
.cv-ring-2 { animation: spin-right 15s linear infinite; stroke-dasharray: 6 10; }
.cv-ring-3 { animation: spin-left 10s linear infinite; stroke-dasharray: 3 7; }

.cv-eq {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
}

.cv-eq span {
  width: 5px;
  border-radius: 3px;
  background: var(--text);
  animation: eq-pulse 1.2s ease-in-out infinite;
}
.cv-eq span:nth-child(1) { height: 14px; animation-delay: 0s; }
.cv-eq span:nth-child(2) { height: 32px; animation-delay: 0.15s; }
.cv-eq span:nth-child(3) { height: 48px; animation-delay: 0.3s; }
.cv-eq span:nth-child(4) { height: 24px; animation-delay: 0.45s; }
.cv-eq span:nth-child(5) { height: 18px; animation-delay: 0.6s; }

/* ── Stats / Dashboard ── */
.landing-stats { padding: 56px 0 24px; }

.landing-stats-lead {
  text-align: center;
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.55;
}

.stats-glow-wrap {
  position: relative;
  margin-top: 32px;
}

.stats-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  height: 120%;
  transform: translate(-50%, -50%) scale(1.4);
  background: var(--card);
  border-radius: 24px;
  filter: blur(56px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
html.dark .stats-glow { opacity: 0.35; }

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-card-wide {
  grid-column: 1 / -1;
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.stat-card-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.stat-card-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Stats scroll-in animations */
.stat-chart-line {
  transition: stroke-dashoffset 1s ease-out;
}
.stat-chart-fill {
  opacity: 0;
  transition: opacity 0.6s ease-out 0.4s;
}
.stats-glow-wrap.stats-inview .stat-chart-line {
  stroke-dashoffset: 0;
}
.stats-glow-wrap.stats-inview .stat-chart-fill {
  opacity: 1;
}

.stat-bar-rect {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s ease-out;
}
.stats-glow-wrap.stats-inview .stat-bar-rect {
  transform: scaleY(1);
}
.stats-glow-wrap.stats-inview .stat-bar-rect:nth-child(1) { transition-delay: 0.05s; }
.stats-glow-wrap.stats-inview .stat-bar-rect:nth-child(2) { transition-delay: 0.1s; }
.stats-glow-wrap.stats-inview .stat-bar-rect:nth-child(3) { transition-delay: 0.15s; }
.stats-glow-wrap.stats-inview .stat-bar-rect:nth-child(4) { transition-delay: 0.2s; }
.stats-glow-wrap.stats-inview .stat-bar-rect:nth-child(5) { transition-delay: 0.25s; }
.stats-glow-wrap.stats-inview .stat-bar-rect:nth-child(6) { transition-delay: 0.3s; }
.stats-glow-wrap.stats-inview .stat-bar-rect:nth-child(7) { transition-delay: 0.35s; }

.stat-mini-bar {
  width: 0 !important;
  min-width: 0 !important;
  transition: width 0.7s ease-out;
}
.stats-glow-wrap.stats-inview .stat-mini-bar[data-bar-width="74"] { width: 74% !important; }
.stats-glow-wrap.stats-inview .stat-mini-bar[data-bar-width="26"] { width: 26% !important; }
.stats-glow-wrap.stats-inview .stat-mini-bar { transition-delay: 0.2s; }

.stat-chart {
  width: 100%;
  height: 90px;
  display: block;
}

.stat-bars {
  width: 100%;
  height: 80px;
  display: block;
}

.stat-bars-wrap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  align-items: stretch;
}

.stat-bars-wrap .stat-bars {
  grid-column: 1 / -1;
}

.stat-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-chart-labels-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-column: 1 / -1;
  text-align: center;
  justify-content: stretch;
  gap: 0;
}

.stat-chart-labels-7 span {
  padding: 0 2px;
}

/* Mini bar list */
.stat-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-mini-row {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-mini-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--button-primary-bg);
  opacity: 0.6;
}

/* ── Mockups ── */
.landing-mockups { padding: 56px 0 24px; }

.mockup-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 25;
}

.mockup-block-mac .mockup-img-wrap { background: none; }

.mockup-block-reverse {
  direction: rtl;
}
.mockup-block-reverse > * {
  direction: ltr;
}

.mockup-text p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.55;
  max-width: 420px;
}

.mockup-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 25;
}

/* Glow = blurred mockup under the image */
.mockup-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 85%;
  height: 85%;
  transform: translate(-50%, -50%) scale(1.8);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(48px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
html.dark .mockup-glow { opacity: 0.35; }

.mockup-img {
  position: relative;
  z-index: 26;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  animation: mockup-float 6s ease-in-out infinite;
}
.mockup-block-phone .mockup-img { animation-delay: -2s; }

.mockup-mac { max-height: 620px; }
.mockup-phone { max-height: 640px; }

/* ── Get started CTA ── */
.landing-cta-section {
  padding: 64px 0 80px;
  text-align: center;
}
.landing-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 30px;
}
.landing-cta-lead {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}
.landing-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

/* ── Genres ── */
.landing-genres { padding: 40px 0 64px; }

.genres-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.genre-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.genre-card span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.genre-card:hover {
  transform: translateY(-3px);
  border-color: var(--text);
  box-shadow: 0 8px 20px var(--shadow-color);
}

/* ── Keyframes ── */
@keyframes spin-left  { to { transform: rotate(360deg); } }
@keyframes spin-right { to { transform: rotate(-360deg); } }
@keyframes eq-pulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: bottom; }
  50%      { transform: scaleY(1);   transform-origin: bottom; }
}
@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .creators-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 24px;
  }
  .landing-creators-right {
    order: -1;
  }
  .creators-visual {
    max-width: 260px;
    margin: 0 auto;
  }
  .landing-creators-header {
    margin-bottom: 20px;
  }
  .mockup-block,
  .mockup-block-reverse { grid-template-columns: 1fr; }
  .mockup-block-reverse { direction: ltr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card-wide { grid-column: auto; }
  .genres-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .landing-hero {
    min-height: auto;
    padding: 60px 16px 48px;
  }
  .landing-hero-inner { gap: 4px; }
  .landing-title { font-size: clamp(1.65rem, 7vw, 2.4rem); }
  .landing-lead { font-size: 0.95rem; }
  .landing-search {
    padding: 6px 6px 6px 14px;
    margin-top: 24px;
  }
  .landing-search-btn { padding: 12px 18px; font-size: 0.92rem; }
  .hero-pills { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hero-pill { padding: 6px 14px; font-size: 0.85rem; }
  .landing-trending-searches { gap: 6px; margin-top: 14px; }
  .landing-global-note { margin-top: 16px; font-size: 0.85rem; }
  .global-payments-img { height: 18px; }

  .landing-beats-grid .beat-card { flex: 0 0 220px; }

  .landing-creators {
    padding: 32px 0 28px;
  }
  .landing-creators-header {
    margin-bottom: 16px;
  }
  .landing-creators-title {
    font-size: 1.35rem;
  }
  .creators-panel {
    padding: 20px 16px;
    gap: 24px;
    border-radius: 14px;
  }
  .creators-checklist {
    gap: 16px;
    margin-bottom: 20px;
  }
  .creators-checklist-item {
    gap: 10px;
  }
  .creators-icon {
    width: 36px;
    height: 36px;
  }
  .creators-icon .bi {
    font-size: 1.1rem;
  }
  .creators-item-text p {
    font-size: 0.875rem;
  }
  .creators-visual {
    max-width: 220px;
  }

  .mockup-mac { max-height: 420px; }
  .mockup-phone { max-height: 440px; }
  .mockup-block { gap: 24px; margin-bottom: 40px; }
  .mockup-glow { filter: blur(32px); opacity: 0.35; }

  .landing-cta-section { padding: 48px 0 56px; }
  .landing-cta-buttons { margin-top: 20px; gap: 10px; }

  .genres-grid { grid-template-columns: repeat(2, 1fr); }
  .genre-card { height: 80px; }
}
