

/* --------------------------------------------------------------------------
   1. RESET & GLOBAL BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* fixed nav height */
}

body {
  font-family: 'Onest', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000000;
  color: #e9edf5;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* --------------------------------------------------------------------------
   2. CUSTOM PROPERTIES – rich, extendable token system
   -------------------------------------------------------------------------- */
:root {
  /* Core Brand */
  --accent: #4c7bf5;
  --accent-h: #3b6ae8;
  --accent-active: #2f5ad8;
  --accent-glow: rgba(76, 123, 245, 0.22);

  /* Text */
  --text-primary: #f8fafd;
  --text-secondary: #a3b4d0;
  --text-muted: #64748b;

  /* Backgrounds */
  --bg-primary: #000000;
  --bg-secondary: #0a0f17;
  --bg-elevated: #0f1622;
  --bg-glass: rgba(12, 17, 25, 0.78);

  /* Borders & Radius */
  --border: #111722;
  --border-subtle: #1e293b;
  --rad-sm: 10px;
  --rad: 16px;
  --rad-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);

  /* Transitions */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-long: 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY – ultra-fluid & precise hierarchy
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.028em;
}

h1 {
  font-size: clamp(2.25rem, 2vw + 0.6rem, 6.4rem);
}

h2 {
  font-size: clamp(2.35rem, 6vw, 4.1rem);
}

h3 {
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
}

.accent {
  color: var(--accent);
  position: relative;
}

.accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0.25;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION – glass + ultra-smooth hide/show
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 99999;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-block-end: 1px solid var(--border);
  transition: transform 0.48s var(--transition);
}

.nav-hidden {
  transform: translateY(-105%);
}

.nav-inner {
  max-inline-size: 1480px;
  margin: auto;
  padding-inline: clamp(1.75rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 4.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--text-primary);
}

.nav-logo img {
  inline-size: 38px;
  block-size: auto;
  border-radius: var(--rad-sm);
  transition: transform 0.4s ease;
}

.nav-logo:hover img {
  transform: rotate(8deg) scale(1.08);
}

.beta-badge {
  background: var(--accent);
  color: #000;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 0.28em 0.75em;
  border-radius: 6px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

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

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

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

.nav-btn {
  padding: 0.72rem 1.85rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(76, 123, 245, 0.3);
}

.nav-btn:hover {
  background: var(--accent-h);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(76, 123, 245, 0.45);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.85rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 2.2rem 0;
    border-block: 1px solid var(--border);
    gap: 1.85rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
}

/* --------------------------------------------------------------------------
   5. HERO – deep cosmic immersion (kept full-height)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-block-size: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;

  /* Background image */
  background-image: url('https://assets.melodreams.com/assets/images/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Slightly dark overlay */
  background-color: rgba(0, 0, 0, 0.35);
  background-blend-mode: multiply;
}

/* Dark fade/transition at the very bottom */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;                    /* adjust this if you want more/less fade */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.85) 70%,
    rgba(0, 0, 0, 0.95) 100%
  );
  pointer-events: none;
  z-index: 1;
}


.hero-bg,
.stars-container,
#meteors {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stars-container { z-index: 1; }

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff, 0 0 14px #c0d0ff66;
  animation: twinkle 5.8s linear infinite;
  will-change: opacity, transform;
}

.star.bright {
  box-shadow: 0 0 10px #fff, 0 0 22px #a0c0ffaa, 0 0 38px #88b0ff88;
  animation-duration: 3.4s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.36; transform: scale(1); }
  50%      { opacity: 0.96; transform: scale(1.18); }
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-inline-size: 920px;
  margin: auto;
  padding-inline: clamp(1.8rem, 6vw, 3.5rem);
  text-align: center;
  padding-block: clamp(11rem, 24vw, 19rem) clamp(7rem, 18vw, 11rem);
}

.melodreams-logo--tiny img {
  inline-size: 44px;
  margin-block-end: 2.4rem;
  transition: transform 0.6s ease;
}

.hero-inner:hover .melodreams-logo--tiny img {
  transform: scale(1.12);
}

.hero h1 {
  margin-block: 1.1rem 2rem;
}

.hero-sub {
  font-size: clamp(1.1rem, 0.8vw, 1.35rem);
  color: var(--text-secondary);
  max-inline-size: 740px;
  margin: 0 auto 3.8rem;
  line-height: 1.68;
}

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

/* ==========================================================================
   HERO – PRICE & TRUST BAR STYLES
   ========================================================================== */
.hero-price {
  color: var(--text-secondary);
  opacity: 0.92;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.hero-price strong {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15em;
}

.save-badge {
  display: inline-block;
  background: rgba(76, 123, 245, 0.18);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.32em 0.9em;
  border-radius: 9999px;
  margin-left: 0.7rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(76, 123, 245, 0.12);
  transition: var(--transition-fast);
}

.hero-price:hover .save-badge {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 123, 245, 0.28);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  margin-top: 3.8rem;
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  color: var(--text-secondary);
}

.hero-trust > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  transition: var(--transition);
}

.hero-trust i {
  font-size: 1.28rem;
  color: var(--accent);
  opacity: 0.88;
  transition: var(--transition);
}

.hero-trust > div:hover,
.hero-trust > div:focus-within {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.hero-trust > div:hover i,
.hero-trust > div:focus-within i {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

@media (max-width: 680px) {
  .hero-trust {
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
  }
  .hero-trust > div { justify-content: center; }
  .hero-price br { display: none; }
  .hero-price { text-align: center; }
}



@media (max-width: 768px) {
  .hero-price {
    margin-top: 3px;          
    font-size: 0.65em;       
  }

  .hero-price strong {
    font-size: 1.05em;    
  }
}

/* ==========================================================================
   6. BUTTONS – rocket + premium feel
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 42px -14px rgba(76, 123, 245, 0.6);
}

.btn--primary:hover {
  background: var(--accent-h);
  transform: translateY(-5px);
  box-shadow: 0 26px 64px -18px rgba(76, 123, 245, 0.75);
}

.btn--primary:active {
  transform: scale(0.98);
}

/* Rocket specific */
.rocket-wrapper { position: relative; }
.btn-icon {
  transition: transform 0.95s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.btn:hover .btn-icon {
  transform: translateX(14px) rotate(28deg);
}


/* ==========================================================================
   ROCKET LAUNCH BUTTON – Full animation on click
   Flame, trail, sparks, text fade, camera shake + dark flash redirect
   ========================================================================== */

/* Base button – keep your existing .btn and .btn--primary styles, just add these overrides/enhancements */
.btn.btn--primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Rocket wrapper – centers everything */
.rocket-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

/* Rocket icon itself */
.btn-icon {
  font-size: 1.4rem;
  position: relative;
  z-index: 3;
  transition: transform 0.9s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Flame – radial burst behind rocket */
.rocket-flame {
  position: absolute;
  inset-block-end: -20px;
  inset-inline-start: 50%;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 50% 80%,
    #ffffff 0%,
    #facc15 20%,
    #f97316 50%,
    #ef4444 80%,
    transparent 100%);
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

/* Trail – motion blur line behind */
.rocket-trail {
  position: absolute;
  inset-block-end: -40px;
  inset-inline-start: 50%;
  width: 80px;
  height: 12px;
  background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

/* Sparks container – holds individual spark particles */
.spark-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Individual spark particle */
.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #facc15;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: sparkFly 0.7s linear forwards;
}

/* Spark fly animation – random directions */
@keyframes sparkFly {
  to {
    transform: translate(var(--sx), var(--sy));
    opacity: 0;
  }
}

/* Loading / launch state – triggered by JS */
.btn.launching {
  pointer-events: none; /* prevent double-click */
}

/* Text fade out during launch */
.btn.launching .btn-text {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Rocket flies out */
.btn.launching .btn-icon {
  transform: translateX(280px) rotate(45deg) scale(1.3) !important;
  transition: transform 0.8s cubic-bezier(0.65, 0.05, 0.36, 1) !important;
}

/* Flame & trail appear */
.btn.launching .rocket-flame {
  opacity: 1;
  transform: translateX(-50%) scale(2.5);
  transition: all 0.5s ease;
}

.btn.launching .rocket-trail {
  opacity: 0.8;
  transition: opacity 0.4s ease 0.1s;
}

/* Full-screen flash overlay (dark with slight white/red tint) */
.launch-flash {
  position: fixed;
  inset: 0;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  z-index: 999999;
  transition: opacity 0.5s ease;
}

.launch-flash.active {
  opacity: 1;
}

/* Optional subtle camera shake during launch */
body.launching {
  animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Responsive – smaller rocket on mobile */
@media (max-width: 640px) {
  .btn.launching .btn-icon {
    transform: translateX(220px) rotate(45deg) scale(1.2) !important;
  }

  .rocket-flame {
    width: 24px;
    height: 24px;
  }

  .rocket-trail {
    width: 60px;
    height: 10px;
  }
}








/* Rocket specific - gentler hover (the fix) */
.rocket-wrapper { position: relative; }

.btn-icon {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* snappier + playful */
}

.btn:hover .btn-icon {
  transform: translateX(6px) rotate(18deg);   /* much milder - feels eager, not broken */
}

/* ==========================================================================
   7. TRUST BAR
   ========================================================================== */
.trust-bar {
  background: rgba(255, 255, 255, 0.022);
  padding: 1.35rem 0;
  text-align: center;
  font-size: 0.97rem;
  color: var(--text-muted);
  border-block: 1px solid var(--border-subtle);
}

.trust-inner {
  max-inline-size: 980px;
  margin: auto;
  padding-inline: 2rem;
}

/* ==========================================================================
   8. SECTION HEADERS + BIGGER SECTION SPACING
   ========================================================================== */
.section-header {
  text-align: center;
  max-inline-size: 860px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  margin-block-end: 1.35rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* BIGGER SECTIONS – more vertical breathing room for content */
.features,
.studio-teaser,
.marketplace-teaser,
.community-section,
.testimonials,
.pricing-section,
.official-brands,
.final-cta {
  padding-block: clamp(9rem, 16vw, 14rem) !important;
}

/* Extra generous space on mobile */
@media (max-width: 768px) {
  .features,
  .studio-teaser,
  .marketplace-teaser,
  .community-section,
  .testimonials,
  .pricing-section,
  .official-brands,
  .final-cta {
    padding-block: 7rem 8rem !important;
  }
}

/* ==========================================================================
   9. FEATURES GRID
   ========================================================================== */
.features-grid {
  max-inline-size: 1420px;
  margin: auto;
  padding-inline: clamp(1.75rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2.4rem;
}

.f-card {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 2.85rem 2.4rem;
  text-align: center;
  transition: var(--transition-long);
}

.f-card:hover {
  transform: translateY(-16px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.f-card i {
  font-size: 3.4rem;
  color: var(--accent);
  margin-block-end: 1.75rem;
  display: block;
}

/* ==========================================================================
   10. STUDIO TEASER
   ========================================================================== */
.studio-teaser {
  background: linear-gradient(180deg, #000, #0a0f17);
}

.studio-stats {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-block-end: 3rem;
  padding: 5px;
}

.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 1.4rem 2.2rem;
  min-width: 160px;
  text-align: center;
  transition: var(--transition);
}

.stat:hover {
  border-color: var(--accent);
  transform: scale(1.04);
}

.stat i {
  color: var(--accent);
  margin-bottom: 0.6rem;
  margin-right: 3px;
}

.progress-hearts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.heart {
  font-size: 3.8rem;
  animation: heartbeat 1.8s infinite ease-in-out;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* ==========================================================================
   11. MARKETPLACE TEASER
   ========================================================================== */
.market-grid {
  max-inline-size: 1180px;
  margin: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.market-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 1.8rem;
  text-align: center;
  transition: var(--transition);
}

.market-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
}

.theme-swatch {
  height: 178px;
  border-radius: 12px;
  margin-bottom: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.gem {
  display: inline-block;
  background: rgba(76, 123, 245, 0.12);
  color: var(--accent);
  padding: 0.35em 1em;
  border-radius: 9999px;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

/* ==========================================================================
   12. COMMUNITY SECTION – Bigger, cleaner, more inviting
   ========================================================================== */

/* Main section – deeper gradient, more vertical space */
.community-section.gradient-purple {
  background: linear-gradient(135deg, #140b24, #0a0f17, #000);
  padding-block: clamp(10rem, 18vw, 16rem) clamp(8rem, 14vw, 12rem);
  position: relative;
  overflow: hidden;
}

/* Subtle background texture/glow (optional cosmic feel) */
.community-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(76, 123, 245, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Header – more generous spacing */
.community-section .section-header {
  text-align: center;
  max-inline-size: 880px;
  margin: 0 auto 6rem;
  position: relative;
  z-index: 1;
}

.community-section .section-header h2 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-block-end: 1.5rem;
  letter-spacing: -0.03em;
}

.community-section .section-header p {
  font-size: clamp(1.15rem, 2.8vw, 1.32rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-inline-size: 720px;
  margin: 0 auto;
}

/* Grid – bigger cards, more space */
.community-grid {
  max-inline-size: 1280px;
  margin: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(2.5rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

/* Individual cards – bigger icons, more padding, glass premium */
.comm-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: 3.2rem 2.6rem;
  text-align: center;
  transition: var(--transition-long);
  box-shadow: var(--shadow-md);
}

/* Bigger, bolder icons */
.comm-card i {
  font-size: 4.2rem; /* much bigger now */
  color: var(--accent);
  margin-block-end: 1.8rem;
  display: block;
  opacity: 0.92;
  transition: var(--transition);
}

/* Card hover – lift + glow */
.comm-card:hover {
  transform: translateY(-14px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.comm-card:hover i {
  opacity: 1;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

/* Card titles & text – cleaner hierarchy */
.comm-card h3 {
  font-size: 1.55rem;
  margin-block-end: 1rem;
  color: var(--text-primary);
}

.comm-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* JOIN BUTTON – centered, bigger, more prominent */
.community-section > .btn.btn--primary {
  display: block;
  margin: 5rem auto 0;
  font-size: 1.25rem;
  padding: 1.3rem 3.2rem;
  min-inline-size: 280px;
  box-shadow: 0 14px 42px rgba(76, 123, 245, 0.45);
  position: relative;
  z-index: 1;
  transition: var(--transition-long);
}

/* Button hover – scale + stronger glow */
.community-section > .btn.btn--primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 24px 64px rgba(76, 123, 245, 0.65);
}

/* Responsive – stack on small screens */
@media (max-width: 768px) {
  .community-grid {
    gap: 2.8rem;
  }

  .comm-card {
    padding: 2.8rem 2rem;
  }

  .comm-card i {
    font-size: 3.8rem;
  }

  .community-section > .btn.btn--primary {
    width: 100%;
    max-inline-size: 360px;
  }
}

/* Accessibility – focus states */
.community-section > .btn.btn--primary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */
.testi-grid {
  max-inline-size: 1240px;
  margin: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.4rem;
}

.testi-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 2.6rem 2.3rem;
  transition: var(--transition);
}

.testi-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.testi-author {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   14. PRICING SECTION
   ========================================================================== */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-block-end: 4rem;
}

.toggle-btn {
  padding: 0.85rem 2.4rem;
  border-radius: 9999px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.pricing-card {
  max-inline-size: 560px;
  margin: auto;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: 4rem 3rem;
  text-align: center;
  transition: var(--transition);
}

.price {
  font-size: 3.4rem;
  font-weight: 900;
  margin: 2rem 0 2.4rem;
}

.price span {
  font-size: 1.55rem;
  font-weight: 400;
  opacity: 0.75;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 2.8rem 0;
}

.pricing-card li {
  padding: 0.95rem 0;
  border-block-end: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ==========================================================================
   15. FINAL CTA
   ========================================================================== */
.final-cta {
  text-align: center;
  padding: 10rem 2rem 8rem;
  background: linear-gradient(to bottom, #0a0f17, #000);
}

.final-cta h2 {
  margin-bottom: 2.4rem;
}

.beta-note {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   OFFICIAL BRANDS SECTION (already included earlier – kept here for completeness)
   ========================================================================== */
.official-brands {
  padding-block: clamp(9rem, 16vw, 14rem) !important;
  background: linear-gradient(to bottom, #000000, #0a0f17);
  border-block: 1px solid var(--border-subtle);
}

.official-brands .section-header {
  text-align: center;
  max-inline-size: 820px;
  margin: 0 auto 4.5rem;
}

.official-brands .section-header h2 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  margin-block-end: 1.2rem;
  letter-spacing: -0.025em;
}

.official-brands .section-header p {
  font-size: clamp(1.1rem, 2.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-inline-size: 680px;
  margin: 0 auto;
}

.brands-content {
  max-inline-size: 720px;
  margin: auto;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-long);
}

.brands-content:hover,
.brands-content:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.brands-text {
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-block-end: 2.5rem;
}

.brands-content .btn.btn--primary {
  font-size: 1.18rem;
  padding: 1.15rem 2.8rem;
  box-shadow: 0 12px 36px rgba(76, 123, 245, 0.35);
}

.brands-content .btn.btn--primary:hover {
  box-shadow: 0 20px 52px rgba(76, 123, 245, 0.55);
}

.brands-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-block-start: 2rem;
  line-height: 1.6;
  opacity: 0.85;
}


/* ==========================================================================
   17. UTILITIES & FINAL TOUCHES
   ========================================================================== */
.hidden { display: none !important; }

a { transition: color var(--transition-fast); }
a:hover { color: white; }

main { min-block-size: calc(100dvh - 5.5rem); }

/* Extra mobile breathing room */
@media (max-width: 640px) {
  .hero-inner { padding-block: 9rem 7rem; }
  .f-card, .testi-card { padding: 2.2rem 1.8rem; }
}










/* ==========================================================================
   18. COMPARISON SECTION - Trust builder + logos + excellent mobile
   ========================================================================== */
.comparison-section {
  padding-block: clamp(9rem, 16vw, 14rem) !important;
  background: linear-gradient(180deg, #0a0f17, #000);
}

.comparison-table-wrapper {
  max-inline-size: 1280px;
  margin: 0 auto;
  padding-inline: clamp(1.75rem, 5vw, 4rem);
  overflow-x: auto;                    /* ← horizontal scroll on mobile */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.comparison-table {
  width: 100%;
  min-width: 920px;                    /* forces nice scroll on phones */
  border-collapse: collapse;
  background: var(--bg-glass);
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: 1.45rem 1.4rem;
  text-align: center;                  /* centered for logos */
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.comparison-table th {
  background: rgba(12, 17, 25, 0.6);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  padding-block: 1.1rem;
}

/* Platform logos in header */
.platform-col {
  width: 160px;
}

.platform-logo {
  height: 42px;
  width: auto;
  display: block;
  margin: 0 auto 10px;
  filter: brightness(1.1);
}

/* Melodreams stands out */
.melodreams-head {
  background: rgba(76, 123, 245, 0.12) !important;
  color: var(--accent);
  position: relative;
}

.melodreams-head::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.melodreams-highlight {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.32rem;
}

.comparison-table i.fa-check {
  color: #22c55e;
  margin-right: 6px;
}

.comparison-table i.fa-xmark {
  color: #ef4444;
  margin-right: 6px;
}

.trust-note {
  text-align: center;
  max-inline-size: 760px;
  margin: 3.8rem auto 0;
  font-size: 1.08rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.65;
}

/* Mobile tweaks */
@media (max-width: 860px) {
  .comparison-table th,
  .comparison-table td {
    padding: 1rem 0.9rem;
    font-size: 0.94rem;
  }
  
  .platform-logo {
    height: 36px;
  }
  
  .comparison-table-wrapper {
    padding-inline: 1rem;
  }
}











/* ==========================================================================
   LIVE PREVIEW – Clickable Phone Mockup (smaller on mobile)
   ========================================================================== */
.preview-section {
  padding-block: clamp(7rem, 12vw, 11rem) !important;
  background: linear-gradient(180deg, #0a0f17, #000);
  text-align: center;
}

.demo-container {
  max-width: 340px;           /* smaller on desktop too */
  margin: 3.5rem auto;
  padding: 0 20px;
}

.phone-mockup-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-mockup-link:hover {
  transform: scale(1.04);
}

.phone-frame {
  background: #111;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.5),
              0 0 0 10px #1a1a1a;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #000;
  border-radius: 30px;
  z-index: 10;
}

.phone-screen {
  background: #000;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.preview-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile – much smaller phone */
@media (max-width: 640px) {
  .demo-container {
    max-width: 240px;        /* ← This is the main change: much smaller */
    margin: 2.5rem auto;
    padding: 0 45px;
  }
  
  .phone-frame {
    border-radius: 36px;
    padding: 8px;
  }
  
  .phone-notch {
    width: 82px;
    height: 20px;
    top: 11px;
  }

  .preview-footnote {
    padding: 20px;
    font-size: 0.8rem;
  }
  
  .phone-screen {
    border-radius: 28px;
  }
}

.preview-footnote {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1.8rem;
  line-height: 1.4;
}














@media (max-width: 768px) {

  /* 1. Fix content shifted left + black space on right */
  body, main, .nav-inner, .hero-inner,
  .features-grid, .market-grid, .community-grid,
  .testi-grid, .pricing-card, .brands-content {
    max-inline-size: 100% !important;
    margin-inline: auto !important;
  }

  /* Make sure no element creates horizontal overflow */
  * {
    max-inline-size: 100% !important;
    box-sizing: border-box;
  }

  /* 2. Smaller, more readable headings (were massive) */
  h1 {
    font-size: clamp(2rem, 7vw, 2.8rem) !important;
  }
  h2 {
    font-size: clamp(1.55rem, 5.5vw, 1.4rem) !important;
  }
  h3 {
    font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
  }

  /* 3. Section titles & descriptions */
  .section-header h2 {
    font-size: clamp(1.45rem, 6vw, 2.1rem) !important;
    margin-block-end: 1rem;
  }
  .section-header p {
    font-size: 0.9rem !important;
    line-height: 1.65;
    padding-inline: 20px;
  }

  /* 4. Massive boxes & cards → much more compact */
  .f-card,
  .market-card,
  .testi-card,
  .comm-card,
  .stat {
    padding: 2rem 1.6rem !important;
  }

  /* Pricing box — this was the worst offender */
  .pricing-card {
    padding: 2.6rem 1.8rem !important;
    max-inline-size: 100% !important;
  }
  .price {
    font-size: 2.6rem !important;
    margin: 1.5rem 0 1.8rem !important;
  }
  .pricing-card ul {
    margin: 2rem 0 !important;
  }
  .pricing-card li {
    padding: 0.85rem 0 !important;
  }

  /* 5. Buttons too big */
  .btn {
    padding: 0.85rem 1.65rem !important;
    font-size: 1.05rem !important;
    gap: 0.75rem !important;
  }
  .nav-btn {
    padding: 0.65rem 1.4rem !important;
    font-size: 1rem !important;
  }

  /* Rocket button on mobile */
  .btn.launching .btn-icon {
    transform: translateX(200px) rotate(45deg) scale(1.15) !important;
  }

  /* 6. Section vertical spacing — less overwhelming */
  .features,
  .studio-teaser,
  .marketplace-teaser,
  .community-section,
  .testimonials,
  .pricing-section,
  .official-brands,
  .final-cta,
  .comparison-section {
    padding-block: 5.5rem 6.5rem !important;
  }

  /* 7. Community cards (were especially huge) */
  .comm-card {
    padding: 2.4rem 1.8rem !important;
  }
  .comm-card i {
    font-size: 3.4rem !important;
  }

  /* 8. Hero tweaks (still immersive but not overwhelming) */
  .hero-inner {
    padding-block: 7rem 5.5rem !important;
    padding-inline: clamp(1.2rem, 5vw, 2rem) !important;
  }
  .hero-sub {
    font-size: 0.93rem !important;
    margin-bottom: 2.8rem;
  }

  /* 9. Trust bar & small elements */
  .trust-bar {
    padding: 1rem 0 !important;
    font-size: 0.92rem !important;
  }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 480px) {
  .btn {
    padding: 0.8rem 1.4rem !important;
    font-size: 1rem !important;
  }

  .pricing-card {
    padding: 2.2rem 1.5rem !important;
  }

  .f-card, .market-card, .testi-card {
    padding: 1.8rem 1.4rem !important;
  }
}


/* ==========================================================================
   EXTRA COMPACT COMMUNITY CARDS ON MOBILE
   ========================================================================== */
@media (max-width: 768px) {

  /* Make the grid allow smaller cards */
  .community-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 2rem !important;
    padding-inline: 1.25rem !important;
  }

  /* WAY SMALLER .comm-card + all content inside */
  .comm-card {
    padding: 1.75rem 1.35rem !important;     /* much tighter padding */
    border-radius: 18px !important;
  }

  /* Icon — significantly smaller */
  .comm-card i {
    font-size: 2.75rem !important;           /* was 3.4rem → now much smaller */
    margin-block-end: 1.1rem !important;     /* less space below icon */
  }

  /* Title (h3) — smaller and tighter */
  .comm-card h3 {
    font-size: 1.32rem !important;           /* was 1.55rem */
    margin-block-end: 0.75rem !important;
    line-height: 1.2 !important;
  }

  /* Description (p) — more compact text */
  .comm-card p {
    font-size: 0.97rem !important;           /* was 1.05rem */
    line-height: 1.6 !important;
  }

  /* Button inside community section — also scaled down */
  .community-section > .btn.btn--primary {
    font-size: 1.1rem !important;
    padding: 1rem 2.4rem !important;
    min-inline-size: 240px !important;
  }
}

/* Even smaller phones (iPhone SE, Galaxy small, etc.) */
@media (max-width: 480px) {
  .comm-card {
    padding: 1.55rem 1.2rem !important;
  }

  .comm-card i {
    font-size: 2.55rem !important;
  }

  .comm-card h3 {
    font-size: 1.25rem !important;
  }

  .comm-card p {
    font-size: 0.95rem !important;
  }
}


/* ==========================================================================
   ULTRA-COMPACT PRICING + BRANDS BOXES + SIDE BREATHING ROOM
   ========================================================================== */
@media (max-width: 768px) {

  /* BOTH BOXES: smaller + centered with side margins (no touching edges) */
  .pricing-card,
  .brands-content {
    max-inline-size: 92% !important;          /* ← this creates the side breathing room */
    margin-inline: auto !important;           /* centers the box */
    padding: 1.8rem 1.95rem !important;       /* much smaller internal padding */
    border-radius: 18px !important;
  }

  /* === PRICING CARD — even smaller content === */
  .pricing-card h3 {
    font-size: 1.28rem !important;
    margin-bottom: 0.8rem !important;
  }

  .price {
    font-size: 1.68rem !important;            /* way smaller price */
    margin: 0.8rem 0 1rem !important;
  }
  .price span {
    font-size: 1rem !important;
  }

  .pricing-card ul {
    margin: 1.2rem 0 1.5rem !important;
  }

  .pricing-card li {
    padding: 0.6rem 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.5;
  }

  .pricing-card .btn.btn--primary {
    font-size: 1.02rem !important;
    padding: 0.85rem 2rem !important;
  }

  .pricing-card .footnote {
    font-size: 0.82rem !important;
    margin-top: 1.1rem !important;
  }

  /* Toggle smaller too */
  .pricing-toggle {
    gap: 0.55rem !important;
    margin-block-end: 2.2rem !important;
  }
  .toggle-btn {
    padding: 0.52rem 1.55rem !important;
    font-size: 0.9rem !important;
  }

  /* === BRANDS / BUSINESS BOX — even smaller content === */
  .brands-text {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.25rem !important;
  }

  .brands-content .btn.btn--primary {
    font-size: 0.8rem !important;
    padding: 0.65rem 0.6rem !important;
    min-inline-size: 220px !important;
  }

  .brands-note {
    font-size: 0.83rem !important;
    margin-top: 1.1rem !important;
    line-height: 1.5 !important;
  }
}

/* Extra-small phones (iPhone SE, etc.) — even tighter */
@media (max-width: 480px) {
  .pricing-card,
  .brands-content {
    max-inline-size: 90% !important;          /* even more breathing room on tiny screens */
    padding: 1.1rem 0.95rem !important;
  }

  .price {
    font-size: 1.58rem !important;
  }

  .pricing-card li,
  .brands-text {
    font-size: 0.9rem !important;
  }
}



/* ==========================================================================
   COMPARISON TABLE - ULTRA SMALL + PERFECTLY SYMMETRIC & ORGANIZED
   ========================================================================== */
@media (max-width: 768px) {

  .comparison-table-wrapper {
    padding-inline: 0.75rem !important;
    overflow-x: visible !important;
  }

  .comparison-table {
    width: 100% !important;
    min-width: auto !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm);
  }

  /* Extremely tight but perfectly symmetric cells */
  .comparison-table th,
  .comparison-table td {
    padding: 0.38rem 0.28rem !important;
    font-size: 0.67rem !important;
    line-height: 1.28;
    text-align: center;                  /* ensures perfect symmetry */
    vertical-align: middle;
  }

  /* Feature column (left side) - clean & organized */
  .comparison-table td:first-child {
    font-size: 0.65rem !important;
    font-weight: 500;
    padding-right: 0.55rem !important;
    text-align: left;                    /* still readable but aligned */
  }

  /* Platform logos - tiny & symmetric */
  .platform-logo {
    height: 18px !important;
    margin-bottom: 2px !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Platform names under logos - perfectly centered */
  .comparison-table th span {
    font-size: 0.64rem !important;
    line-height: 1.05;
    font-weight: 600;
    display: block;
    text-align: center;
  }

  /* Melodreams column - still stands out beautifully */
  .melodreams-head {
    font-size: 0.73rem !important;
  }
  .melodreams-highlight {
    font-size: 0.73rem !important;
    font-weight: 700;
    color: var(--accent);
  }

  /* Check / X icons - smaller but still crisp & symmetric */
  .comparison-table i {
    font-size: 0.95rem !important;
  }

  /* Trust note at the bottom - clean & centered */
  .trust-note {
    font-size: 0.88rem !important;
    margin-top: 1.7rem !important;
    padding-inline: 0.75rem;
    text-align: center;
    line-height: 1.5;
  }
}

/* Extra-small phones (iPhone SE, etc.) */
@media (max-width: 480px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.34rem 0.24rem !important;
    font-size: 0.64rem !important;
  }

  .platform-logo {
    height: 16px !important;
  }

  .comparison-table td:first-child {
    font-size: 0.62rem !important;
  }
}

/* ==========================================================================
   SMALL LOGO ON TOP OF PRICING CARD
   ========================================================================== */
.pricing-card-logo {
  text-align: center;
  margin-bottom: 1.1rem;
}

.pricing-card-logo img {
  inline-size: 48px;
  filter: brightness(1.15);
  transition: transform 0.3s ease;
}

.pricing-card-logo img:hover {
  transform: scale(1.08);
}

/* Mobile: make logo even a bit smaller & perfectly centered */
@media (max-width: 768px) {
  .pricing-card-logo {
    margin-bottom: 0.85rem;
  }
  .pricing-card-logo img {
    inline-size: 42px;
  }
}

@media (max-width: 480px) {
  .pricing-card-logo img {
    inline-size: 38px;
  }
}
