* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

/* FIX 2026-07-31: Prevent horizontal overflow on mobile (iPhone 14 fix) */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    --bg:        #0F0A1E;
    --surface:   #1a0f3d;
    --violet:    #2D1B69;
    --border:    rgba(249,115,22,0.25);
    --amber:     #F97316;
    --amber-dk:  #ea6c00;
    --text:      #F8FAFC;
    --muted:     #C4B5FD;
    --player-h:  80px;
}

body {
    background: var(--bg);
    color: var(--text);
    padding-bottom: var(--player-h);
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo-my {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-style: italic;
    color: var(--amber);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.logo-tunes {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    color: var(--text);
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}

.logo-underline {
    height: 2px;
    background: var(--amber);
    width: 100%;
    margin-top: 1px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    cursor: pointer;
}

.nav-motto {
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Nav ──────────────────────────────────────────────────── */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    border-bottom: 1px solid rgba(249,115,22,0.2);
    position: sticky;
    top: 0;
    background: rgba(15,10,30,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }

.nav-cta {
    background: var(--amber) !important;
    color: var(--bg) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 700 !important;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--amber-dk) !important; }

/* Nav avatar state — after login, .nav-cta becomes a circular avatar button */
.nav-avatar-btn {
  padding: 0 !important;
  background: transparent !important;
  border: 2px solid #F97316 !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nav-avatar-btn:hover {
  background: transparent !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.35) !important;
}

.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-avatar-initials {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #F97316;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    display: block;
    min-height: 90vh;
    background: linear-gradient(135deg, #0F0A1E 0%, #1a0f3d 50%, #0F0A1E 100%);
}

/* Full-width logo banner — sits above the flex content row */
.hero-logo-banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid rgba(249,115,22,0.18);
    margin-bottom: 3.5rem;
}

.hlb-logo-img {
    height: clamp(70px, 10vw, 120px);
    width: auto;
    opacity: 0.95;
}

.hlb-line {
    width: 40%;
    max-width: 420px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    margin: 0.6rem 0 0.75rem;
    border-radius: 2px;
}

.hlb-motto {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* Flex row: hero-text + demo-panel */
.hero-content-row,
.hero-inner,
.hero-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    flex-wrap: wrap;
}

.hero-text { flex: 1; }

/* Hero headline block */
.hero-headline { margin-bottom: 1.5rem; }

.hero-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.1;
    color: var(--text);
}

.hero-h1-amber { color: var(--amber); }

/* Waveform animation */
.hero-waveform {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
    margin: 1.5rem 0;
}

.wv-bar {
    display: inline-block;
    width: 6px;
    background: var(--amber);
    border-radius: 3px;
    animation: wvPulse 1.2s ease-in-out infinite alternate;
}
.wv-bar:nth-child(1)  { height: 20%; animation-delay: 0s; }
.wv-bar:nth-child(2)  { height: 45%; animation-delay: 0.1s; }
.wv-bar:nth-child(3)  { height: 75%; animation-delay: 0.2s; }
.wv-bar:nth-child(4)  { height: 100%; animation-delay: 0.3s; }
.wv-bar:nth-child(5)  { height: 60%; animation-delay: 0.4s; }
.wv-bar:nth-child(6)  { height: 100%; animation-delay: 0.5s; }
.wv-bar:nth-child(7)  { height: 80%; animation-delay: 0.6s; }
.wv-bar:nth-child(8)  { height: 45%; animation-delay: 0.7s; }
.wv-bar:nth-child(9)  { height: 100%; animation-delay: 0.8s; }
.wv-bar:nth-child(10) { height: 65%; animation-delay: 0.9s; }
.wv-bar:nth-child(11) { height: 30%; animation-delay: 1.0s; }
.wv-bar:nth-child(12) { height: 55%; animation-delay: 1.1s; }
.wv-bar:nth-child(13) { height: 20%; animation-delay: 1.2s; }

@keyframes wvPulse {
    from { transform: scaleY(0.4); opacity: 0.6; }
    to   { transform: scaleY(1);   opacity: 1;   }
}

.hero-sub {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-cta {
    display: inline-block;
    background: var(--amber);
    color: var(--bg);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-cta:hover {
    background: var(--amber-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

.content-disclaimer {
    font-size: 0.78rem;
    color: var(--muted);
    opacity: 0.7;
    line-height: 1.5;
}

/* ── Demo Panel ───────────────────────────────────────────── */
.demo-panel {
    flex: 1;
    background: #1a0f3d;
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(45,27,105,0.5);
    max-width: 480px;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--violet);
    border-bottom: 1px solid rgba(249,115,22,0.2);
}

.demo-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.demo-dot.red    { background: #ff5f57; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green  { background: #28c840; }

.demo-title {
    font-size: 0.8rem;
    color: var(--muted);
    margin-left: 0.5rem;
}

.demo-body { padding: 1.5rem; min-height: 240px; }

.demo-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.demo-input-wrap {
    background: var(--bg);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
    min-height: 80px;
    line-height: 1.6;
}

.demo-cursor {
    display: inline-block;
    color: var(--amber);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Voice grid */
.demo-voice-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.demo-voice-option {
    background: var(--bg);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s;
    cursor: pointer;
}

.demo-voice-option span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
}

.demo-voice-option:hover,
.demo-voice-option.selected {
    border-color: var(--amber);
    background: var(--violet);
    color: var(--text);
}

/* Pipeline steps */
.demo-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.demo-pipe-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg);
    border: 1px solid rgba(249,115,22,0.15);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    transition: opacity 0.4s, border-color 0.4s;
}

.demo-pipe-step.active {
    opacity: 1 !important;
    border-color: var(--amber);
    background: rgba(249,115,22,0.06);
}

.pipe-icon { font-size: 1.1rem; }

.pipe-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pipe-name   { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.pipe-status { font-size: 0.75rem; color: var(--muted); }

.pipe-check { font-size: 1rem; }

.demo-progress-bar {
    background: rgba(249,115,22,0.15);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.demo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--amber));
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease;
}

/* Done state */
.demo-done {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--violet);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.demo-done-icon { font-size: 1.75rem; }

.demo-done h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 0.15rem; }
.demo-done p  { font-size: 0.8rem; color: var(--muted); }

.demo-done-play {
    margin-left: auto;
    width: 36px; height: 36px;
    background: var(--amber);
    color: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.demo-try-btn {
    display: block;
    text-align: center;
    background: var(--amber);
    color: var(--bg);
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.demo-try-btn:hover { background: var(--amber-dk); }

/* ── Sections ─────────────────────────────────────────────── */
.section {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg);
}

.section-dark {
    background: var(--violet);
    max-width: 100%;
    padding: 5rem 3rem;
}

.section-dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
}

/* Steps */
.steps-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-card {
    flex: 1;
    background: #1a0f3d;
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 12px;
    padding: 2rem;
}

.step-num {
    width: 42px; height: 42px;
    background: var(--amber);
    color: var(--bg);
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.step-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.step-arrow { font-size: 1.5rem; color: var(--amber); flex-shrink: 0; }

/* Audience */
.audience-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.audience-card {
    background: rgba(15,10,30,0.5);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    transition: border-color 0.2s;
}
.audience-card:hover { border-color: var(--amber); }

.aud-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.audience-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.audience-card p { color: var(--muted); font-size: 0.85rem; }

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 3rem;
    background: linear-gradient(135deg, var(--violet), #1a0f3d);
    max-width: 100%;
}
.cta-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.cta-section p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* ── Playlist Player ──────────────────────────────────────── */
.playlist-player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--player-h);
    background: #1a0f3d;
    border-top: 1px solid rgba(249,115,22,0.3);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2rem;
    z-index: 200;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
}

/* Equalizer */
.pp-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    flex-shrink: 0;
}

.eq-bar {
    width: 4px;
    background: var(--amber);
    border-radius: 2px;
    height: 8px;
    animation: eq-bounce 0.8s ease-in-out infinite alternate;
    opacity: 0.85;
}

.eq-bar:nth-child(1) { animation-duration: 0.6s;  animation-delay: 0.00s; }
.eq-bar:nth-child(2) { animation-duration: 0.9s;  animation-delay: 0.10s; }
.eq-bar:nth-child(3) { animation-duration: 0.5s;  animation-delay: 0.15s; }
.eq-bar:nth-child(4) { animation-duration: 0.7s;  animation-delay: 0.05s; }
.eq-bar:nth-child(5) { animation-duration: 1.0s;  animation-delay: 0.20s; }
.eq-bar:nth-child(6) { animation-duration: 0.65s; animation-delay: 0.10s; }
.eq-bar:nth-child(7) { animation-duration: 0.85s; animation-delay: 0.00s; }
.eq-bar:nth-child(8) { animation-duration: 0.55s; animation-delay: 0.25s; }

@keyframes eq-bounce {
    from { height: 4px;  }
    to   { height: 28px; }
}

.pp-eq.paused .eq-bar { animation-play-state: paused; }

/* Track info */
.pp-track-info { flex-shrink: 0; min-width: 180px; }
.pp-track-title  { font-size: 0.9rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.pp-track-source { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

/* Play button */
.pp-play-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, var(--amber), #c45a08);
    color: #0F0A1E;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.5), -2px -2px 5px rgba(249,115,22,0.2);
    transition: all 0.1s ease;
    flex-shrink: 0;
    margin-right: 0.5rem;
}
.pp-play-btn:hover {
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5), 0 0 12px rgba(249,115,22,0.4);
    transform: scale(1.05);
}
.pp-play-btn:active {
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5), inset 2px 2px 4px rgba(0,0,0,0.3);
    transform: scale(0.97);
}

/* Progress */
.pp-controls { flex: 1; display: flex; align-items: center; }

.pp-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pp-time { font-size: 0.75rem; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }

.pp-progress {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(249,115,22,0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    accent-color: var(--amber);
}

.pp-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--amber);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(249,115,22,0.5);
}

/* Volume */
.pp-vol-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.pp-mute-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, var(--violet), #1a0f3d);
    color: var(--amber);
    box-shadow: 3px 3px 6px rgba(0,0,0,0.4), -2px -2px 5px rgba(249,115,22,0.1);
    transition: all 0.1s ease;
    flex-shrink: 0;
}
.pp-mute-btn:hover {
    box-shadow: 3px 3px 8px rgba(0,0,0,0.4), -2px -2px 6px rgba(249,115,22,0.15), 0 0 8px rgba(249,115,22,0.3);
}
.pp-mute-btn:active {
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5), inset 2px 2px 4px rgba(0,0,0,0.4);
    transform: scale(0.93);
}

.pp-vol-slider {
    width: 90px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(249,115,22,0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    accent-color: var(--amber);
}

.pp-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}

.pp-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ── Split Hero ────────────────────────────────────────────── */
.hero-split {
  display: flex;
  flex-direction: row;
  min-height: 320px;
  width: 100%;
}

.hero-brand-panel {
  background: #2D1B69;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  flex: 0 0 38%;
  gap: 1rem;
}

.hero-split-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.hero-split-tagline {
  color: #F8FAFC;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.hero-copy-panel {
  background: #0d0b1a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem;
  flex: 1;
  gap: 1.25rem;
}

.hero-split-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.1;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.hero-split-amber {
  color: #F97316;
}

.hero-split-sub {
  color: #94a3b8;
  font-size: 1rem;
  margin: 0;
  max-width: 420px;
}

/* Waveform — keep existing .hero-waveform/.wv-bar rules, just ensure it flows after h1 */
.hero-copy-panel .hero-waveform {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 48px;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  .hero-split {
    flex-direction: column;
  }
  .hero-brand-panel {
    flex: none;
    padding: 2rem 1.5rem;
  }
}



/* ── Genre Showcase ─────────────────────────────────────────── */
.genre-showcase {
  padding: 4rem 2rem 3rem;
  background: #0a0812;
  text-align: center;
}

.gs-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 0.5rem;
}

.gs-sub {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

.gs-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #F97316 #1e1b2e;
  padding-bottom: 0.75rem;
}

.gs-scroll-wrap::-webkit-scrollbar { height: 4px; }
.gs-scroll-wrap::-webkit-scrollbar-track { background: #1e1b2e; border-radius: 2px; }
.gs-scroll-wrap::-webkit-scrollbar-thumb { background: #F97316; border-radius: 2px; }

.gs-track-row {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.25rem 0.5rem 0.25rem;
}

.gs-card {
  background: #1a1730;
  border: 1px solid #2d2a4a;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.gs-card:hover {
  border-color: #F97316;
  transform: translateY(-2px);
}

.gs-card.gs-active {
  border-color: #F97316;
  background: #241f3a;
}

.gs-genre {
  font-size: 0.75rem;
  font-weight: 600;
  color: #F97316;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gs-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.3;
}

.gs-source {
  font-size: 0.75rem;
  /* FIX 2026-07-31: Improved contrast from #64748b (3.64:1) to #94a3b8 (5.9:1) on dark bg */
  color: #94a3b8;
  flex: 1;
}

.gs-play-btn {
  margin-top: 0.5rem;
  background: #F97316;
  border: none;
  color: #fff;
  border-radius: 50%;
  /* FIX 2026-07-31: Increased from 36px to 44px for mobile touch target compliance */
  width: 44px;
  height: 44px;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-play-btn:hover {
  background: #ea6c0a;
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .genre-showcase { padding: 2.5rem 1rem 2rem; }
  .gs-card { width: 170px; padding: 1rem; }
}

/* ── Hero Brand Panel — Option 1+2 Layered ────────────────── */
.hero-brand-panel {
  position: relative;
  overflow: hidden;
}

/* Waveform background layer */
.hbp-wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 12px;
  pointer-events: none;
  z-index: 0;
}

.hbp-bar {
  flex: 1;
  max-width: 10px;
  border-radius: 3px 3px 0 0;
  opacity: 0.22;
  animation: hbpPulse var(--dur, 1s) ease-in-out infinite alternate;
  transform-origin: bottom;
}

@keyframes hbpPulse {
  from { transform: scaleY(0.15); }
  to   { transform: scaleY(1); }
}

/* Foreground content */
.hbp-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

/* Sentence Machine */
.sentence-machine {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0 1rem;
  line-height: 1.1;
}

.sm-line1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #F8FAFC;
  display: block;
  animation: smSlideIn 0.4s ease forwards;
  min-height: 1.2em;
}

.sm-line1.sm-out {
  animation: smSlideOut 0.35s ease forwards;
}

.sm-line2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #F97316;
  display: block;
  text-shadow: 0 0 24px rgba(249,115,22,0.45);
}

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

@keyframes smSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-18px); }
}

/* ── Melo V1 Chatbox — hidden by default, shown only when Creator switches ── */
#melo-container {
  display: none;
}

/* ── Melo V2 Ambient Presence ───────────────────────────────── */
.melo-ambient-wrap {
  position: fixed;
  z-index: 9998; /* just below widget z-index 9999 */
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  background: transparent !important;
}

.melo-ambient-wrap:hover {
  transform: scale(1.05);
}

/* Corner positions */
.melo-ambient-wrap.pos-br { bottom: 24px; right: 24px; }
.melo-ambient-wrap.pos-bl { bottom: 24px; left: 24px; }
.melo-ambient-wrap.pos-tr { top: 24px; right: 24px; }
.melo-ambient-wrap.pos-tl { top: 24px; left: 24px; }

.melo-v2-img {
  width: 160px;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 0 12px rgba(6,182,212,0.6))
          drop-shadow(0 4px 16px rgba(6,182,212,0.3));
  animation: meloAmbientBreathe 6s ease-in-out infinite,
             meloAmbientEntrance 0.6s ease forwards;
}

@keyframes meloAmbientEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* Breathe pulse */
@keyframes meloAmbientBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-8px) scale(1.03); }
  66%       { transform: translateY(-4px) scale(1.01); }
}

/* Celebration bounce on track play */
@keyframes meloAmbientCelebrate {
  0%   { transform: scale(1) rotate(0deg); }
  20%  { transform: scale(1.08) rotate(-4deg); }
  40%  { transform: scale(1.12) rotate(4deg); }
  60%  { transform: scale(1.08) rotate(-2deg); }
  80%  { transform: scale(1.04) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.melo-ambient-celebrate .melo-v2-img {
  animation: meloAmbientCelebrate 0.6s ease forwards !important;
}

.melo-ambient-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  color: rgba(248,250,252,0.7);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* Hidden state — only class that hides V2 */
.melo-ambient-wrap.melo-hidden {
  display: none !important;
}

/* ── Melo V2 Right-Click Context Menu ───────────────────────── */
.melo-ctx-menu {
  position: absolute;
  bottom: 110%;
  right: 0;
  background: #1A0A55;
  border: 1px solid #F97316;
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  z-index: 10002;
  animation: ctxFadeIn 0.15s ease forwards;
}

@keyframes ctxFadeIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.melo-ctx-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #F8FAFC;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s;
}

.melo-ctx-btn:hover {
  background: rgba(249,115,22,0.15);
  color: #F97316;
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #1a0f3d 0%, #0F0A1E 100%);
  border-top: 1px solid rgba(249,115,22,0.2);
  border-bottom: 1px solid rgba(249,115,22,0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #F97316;
  line-height: 1;
}

.stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: rgba(248,250,252,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(249,115,22,0.3);
}

@media (max-width: 600px) {
  .stat-divider { display: none; }
  .stat-item { padding: 0.5rem 1.5rem; }
}

/* ── Testimonials ───────────────────────────────────────── */
.testimonials-section {
  background: #0F0A1E;
}

.testimonials-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: #1a0f3d;
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 16px;
  padding: 1.75rem;
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

.testimonial-card:hover {
  border-color: rgba(249,115,22,0.5);
  transform: translateY(-3px);
}

.testimonial-quote {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(248,250,252,0.85);
  line-height: 1.65;
  font-style: italic;
}

.testimonial-quote::before { content: '\201C'; color: #F97316; font-size: 1.5rem; line-height: 0; vertical-align: -0.4rem; margin-right: 2px; }
.testimonial-quote::after  { content: '\201D'; color: #F97316; font-size: 1.5rem; line-height: 0; vertical-align: -0.4rem; margin-left: 2px; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D1B69, #F97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #F8FAFC;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #F8FAFC;
  font-size: 0.9rem;
}

.testimonial-detail {
  font-size: 0.75rem;
  color: rgba(248,250,252,0.5);
  margin-top: 2px;
}

.testimonial-card--empty {
  min-height: 180px;
  border-style: dashed;
  border-color: rgba(249,115,22,0.15);
  background: rgba(26,15,61,0.4);
  cursor: default;
}

.testimonial-card--empty:hover {
  border-color: rgba(249,115,22,0.25);
  transform: none;
}

/* ── Hero Social Proof ──────────────────────────────────── */
.hero-social-proof {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(248,250,252,0.5);
  margin-top: 0.75rem;
  text-align: center;
}

/* ── Melo V2 Thought Bubble ─────────────────────────────── */
.melo-thought-bubble-v2 {
  position: absolute;
  max-width: 220px;
  min-width: 120px;
  background: rgba(26, 15, 61, 0.97);
  border: 1.5px solid #F97316;
  border-radius: 14px;
  padding: 10px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: #F8FAFC;
  line-height: 1.45;
  z-index: 10003;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.melo-thought-bubble-v2.melo-bubble-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.melo-thought-bubble-v2.melo-bubble-hide {
  opacity: 0;
  transform: translateY(-6px) scale(0.95);
}

/* Tail — points DOWN toward Melo (for bottom corners) */
.melo-thought-bubble-v2::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid #F97316;
}

/* Corner-specific positioning */
/* Bottom right (default) — bubble appears top-left of Melo */
#melo-ambient.pos-br .melo-thought-bubble-v2,
#melo-ambient:not([class*="pos-"]) .melo-thought-bubble-v2 {
  bottom: 110%;
  right: 0;
}

/* Bottom left — bubble appears top-right of Melo */
#melo-ambient.pos-bl .melo-thought-bubble-v2 {
  bottom: 110%;
  left: 0;
}
#melo-ambient.pos-bl .melo-thought-bubble-v2::after {
  right: auto;
  left: 20px;
}

/* Top right — bubble appears below-left */
#melo-ambient.pos-tr .melo-thought-bubble-v2 {
  top: 110%;
  right: 0;
  bottom: auto;
}
#melo-ambient.pos-tr .melo-thought-bubble-v2::after {
  bottom: auto;
  top: -9px;
  border-top: none;
  border-bottom: 9px solid #F97316;
}

/* Top left — bubble appears below-right */
#melo-ambient.pos-tl .melo-thought-bubble-v2 {
  top: 110%;
  left: 0;
  bottom: auto;
}
#melo-ambient.pos-tl .melo-thought-bubble-v2::after {
  bottom: auto;
  top: -9px;
  left: 20px;
  right: auto;
  border-top: none;
  border-bottom: 9px solid #F97316;
}

/* ── Melo V2 Compact Input ──────────────────────────────── */
.melo-compact-wrap {
  position: absolute;
  bottom: 20px;
  right: 170px; /* left of Melo — adjust based on V2 size (160px + gap) */
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10002;
  animation: compactFadeIn 0.3s ease forwards;
}

@keyframes compactFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.melo-compact-input {
  width: 220px;
  height: 36px;
  background: rgba(26, 15, 61, 0.95);
  border: 1.5px solid #F97316;
  border-radius: 18px;
  padding: 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: #F8FAFC;
  outline: none;
  caret-color: #F97316;
  /* Single line only — never expands */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.melo-compact-input::placeholder {
  color: rgba(248,250,252,0.35);
  font-size: 0.78rem;
}

.melo-compact-input:focus {
  border-color: rgba(249,115,22,0.8);
  box-shadow: 0 0 0 2px rgba(249,115,22,0.15);
}

.melo-mic-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26,15,61,0.95);
  border: 1.5px solid #F97316;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}

.melo-mic-btn:hover {
  background: rgba(249,115,22,0.15);
  transform: scale(1.05);
}

.melo-mic-btn.melo-mic-active {
  background: rgba(249,115,22,0.3);
  border-color: #F97316;
  animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(249,115,22,0); }
}

/* Corner-specific positioning for compact input */
#melo-ambient.pos-br .melo-compact-wrap,
#melo-ambient:not([class*="pos-"]) .melo-compact-wrap {
  bottom: 20px;
  right: 170px;
  left: auto;
}

#melo-ambient.pos-bl .melo-compact-wrap {
  bottom: 20px;
  left: 170px;
  right: auto;
}

#melo-ambient.pos-tr .melo-compact-wrap {
  top: 20px;
  right: 170px;
  bottom: auto;
  left: auto;
}

#melo-ambient.pos-tl .melo-compact-wrap {
  top: 20px;
  left: 170px;
  bottom: auto;
  right: auto;
}

/* Hide mic button if Web Speech not supported */
.melo-mic-hidden {
  display: none !important;
}

/* ── Melody widget — right wall, vertically centered ── */
#melody-voice-ui {
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  z-index: 9999;
}

/* Style the mic button to look like a right-wall tab/pill */
#melody-mic-btn {
  border-radius: 12px 0 0 12px !important; /* flat right edge flush to wall */
  width: 48px !important;
  height: 56px !important;
  font-size: 1.4rem !important;
}

/* Mobile: shrink slightly, keep right-wall anchor */
@media (max-width: 600px) {
  #melody-voice-ui {
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
  }
  #melody-mic-btn {
    width: 40px !important;
    height: 48px !important;
    font-size: 1.2rem !important;
  }
}
