/* ============================================================
   Musiway — Home page (Figma redesign)
   ============================================================ */

.page-home {
  --home-bg: #f6f5f5;
  --home-ink: #262626;
  --home-muted: #3d3c3c;
  --home-orange: #e05530;
  --home-orange-bright: #ff4600;
  --home-orange-cta: #ff542a;
  --home-hero: #e63e00;
  --home-peach: #fae6da;
  --home-card: rgba(212, 64, 24, 0.15);
}

.page-home {
  background: var(--home-bg);
}

.page-home .topbar {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.page-home .topbar::before {
  display: none;
}

.page-home .topbar__inner {
  height: 80px;
}

.page-home .home-hero {
  padding-top: 20px;
}

.page-home .brand {
  color: var(--white);
}

.page-home .brand span {
  color: var(--white);
}

.page-home .brand img {
  filter: brightness(0) invert(1);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.topbar__nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--home-bg);
  transition: opacity 0.2s;
}

.topbar__nav a:hover {
  opacity: 0.85;
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 10px;
  background: var(--home-bg);
  color: var(--home-orange-cta);
  font-weight: 500;
  font-size: 1.05rem;
  transition: transform 0.2s var(--ease);
}

.topbar__cta:hover {
  transform: translateY(-2px);
}

.topbar__menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
}

.topbar__menu svg {
  width: 22px;
  height: 22px;
  margin: auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Hero */
.home-header {
  position: relative;
  background: var(--home-hero);
  overflow: hidden;
}

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 800px;
  background: transparent;
  overflow: visible;
  padding: 100px 0 0;
  z-index: 1;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: 994.91px;
  background: radial-gradient(54.01% 54.01% at 50.89% 46%, #FFB532 0%, #E05530 69.23%, #D13E25 100%);
  filter: blur(18.322872161865234px);
}

.home-hero__visual {
  position: relative;
  z-index: 0;
}

.home-hero__musicians {
  position: absolute;
  scale: 450%;
  bottom: -300px;
  right: 53%;
  opacity: 0.8;
  z-index: 0;
  filter: blur(0.6px);
  -webkit-mask-image: radial-gradient(
    ellipse 58% 52% at 50% 52%,
    #000 28%,
    rgba(0, 0, 0, 0.55) 52%,
    transparent 74%
  );
  mask-image: radial-gradient(
    ellipse 58% 52% at 50% 52%,
    #000 28%,
    rgba(0, 0, 0, 0.55) 52%,
    transparent 74%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.home-hero__ipads {
  position: relative;
  margin-top: 50px;
  scale: 220%;
  right: -10%;
  z-index: 1;
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  flex: 1;
  min-height: 520px;
  padding-bottom: 24px;
}

.home-hero__copy {
  position: relative;
  top: -10%;
  z-index: 10;
}

.home-hero__badge {
  display: inline-block;
  padding: 2px 20px;
  border-radius: 40px;
  background: #ff7f32;
  color: var(--home-bg);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 18px;

}

.home-hero__lead {
  color: var(--home-bg);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.home-hero__title {
  color: var(--white);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 8px;
}

.home-hero__title em {
  font-style: normal;
  color: #3f0e07;
}

.home-hero__tagline {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
  text-shadow: 1px 7px 16.6px rgba(121, 21, 6, 0.53);
  margin-bottom: 28px;
}

.home-hero__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.home-hero__stores .appstore {
  min-height: 60px;
  padding: 10px 18px;
  border-radius: 8px;
}

.home-hero__android {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 6px 15px;
  border-radius: 8px;
  background: var(--home-orange-bright);
  color: var(--home-bg);
  box-shadow: 0 3px 3.75px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s var(--ease);
}

.home-hero__android:hover {
  transform: translateY(-2px);
}

.home-hero__android svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}

.home-hero__android span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.home-hero__android small {
  font-size: 0.625rem;
  font-weight: 600;
}

.home-hero__android strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.home-hero__featurebar {
  position: relative;
  z-index: 3;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 127, 50, 0.35);
}

.home-hero__featurebar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
}

.home-hero__free-cta {
  display: none;
}

.home-hero__pill {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--home-bg);
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 1px 7px 16.6px rgba(121, 21, 6, 0.53);
}

.home-hero__pill svg {
  width: 40px;
  height: 40px;
  flex: none;
}

.home-hero__pill-divider {
  width: 1px;
  height: 40px;
  background: rgba(246, 245, 245, 0.35);
}

.home-hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.home-hero__visual img {
  width: min(100%, 785px);
  height: auto;
}

/* Sections shared */
.home-section {
  padding: clamp(64px, 8vw, 100px) 0;
}

.home-section--gray {
  background: var(--home-bg);
}

.home-section__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  color: var(--home-orange);
}

.home-section__icon svg {
  width: 100%;
  height: 100%;
}

.home-section__title {
  text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 500;
  color: var(--home-ink);
  margin-bottom: 16px;
}

.home-section__sub {
  text-align: center;
  max-width: 54ch;
  margin: 0 auto;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.4;
}

/* Steps */
.home-steps {
  position: relative;
  overflow: hidden;
}

.home-steps__track {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  position: relative;
}

.home-steps__track::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 8%;
  right: 8%;
  height: 4px;
  background: #d9d9d9;
  border-radius: 10px;
  z-index: 0;
}

.home-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-step__num {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--home-orange);
  background: #f1dad4;
}

.home-step:first-child .home-step__num {
  background: #f1dad4;
}

.home-step__label {
  font-size: clamp(0.85rem, 1.2vw, 1.125rem);
  color: var(--home-muted);
  line-height: 1.25;
}

.home-step__label strong {
  color: var(--home-orange);
  font-weight: 500;
}

.home-steps__decor {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 85, 48, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.home-steps__decor--left {
  left: -280px;
  top: -120px;
}

.home-steps__decor--right {
  right: -280px;
  top: -420px;
}

/* Instruments gallery — coverflow stack */
.home-instruments__gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 56px;
  position: relative;
  padding: 8px 0;
  --inst-center: clamp(88px, 26vw, 320px);
  --inst-inner: calc(var(--inst-center) * 0.656);
  --inst-outer: calc(var(--inst-center) * 0.4625);
  --inst-overlap: calc(var(--inst-center) * -0.14);
  --inst-radius: calc(var(--inst-center) * 0.0625);
  --inst-radius-center: calc(var(--inst-center) * 0.075);
}

.home-instruments__item {
  flex: 0 0 auto;
  border-radius: var(--inst-radius);
  scale: 120%;
  overflow: hidden;
  position: relative;
  margin-left: var(--inst-overlap);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.home-instruments__item:first-of-type {
  margin-left: 0;
}

.home-instruments__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

@media (hover: hover) {
  .home-instruments__item:hover {
    z-index: 10;
    transform: scale(1.04);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  }

  .home-instruments__item--center:hover {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  }

  .home-instruments__item:hover img {
    transform: scale(1.08);
  }
}

.home-instruments__item:nth-of-type(1),
.home-instruments__item:nth-of-type(5) {
  width: var(--inst-outer);
  z-index: 1;
}

.home-instruments__item:nth-of-type(2),
.home-instruments__item:nth-of-type(4) {
  width: var(--inst-inner);
  z-index: 2;
}

.home-instruments__item--center {
  width: var(--inst-center);
  z-index: 3;
  border-radius: var(--inst-radius-center);
  box-shadow: 0 calc(var(--inst-center) * 0.0625) calc(var(--inst-center) * 0.175) rgba(0, 0, 0, 0.16);
}

.home-instruments__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(64px, 14vw, 160px);
  z-index: 4;
  pointer-events: none;
}

.home-instruments__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--home-bg) 0%, transparent 100%);
}

.home-instruments__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--home-bg) 0%, transparent 100%);
}

.home-instruments {
  position: relative;
  overflow-x: clip;
}

/* Mission */
.home-mission {
  text-align: center;
}

.home-mission__title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--home-ink);
  line-height: 1.2;
  margin-bottom: 20px;
}

.home-mission__title .accent-brand {
  color: var(--home-orange-bright);
}

.home-mission__sub {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
}

.home-mission__sub .accent-brand {
  color: var(--home-orange);
  font-weight: 500;
}

/* Performance analysis card */
.home-analysis {
  padding-bottom: clamp(48px, 6vw, 80px);
}

.home-analysis__card {
  position: relative;
  margin-top: 48px;
  background: #dd540d;
  border-radius: 20px;
  overflow: hidden;
  min-height: 593px;
  padding: 48px clamp(24px, 4vw, 66px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.home-analysis__card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 120%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.home-analysis__copy {
  position: relative;
  z-index: 1;
  color: var(--home-peach);
}

.home-analysis__copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: #fdf4ef;
  line-height: 1.2;
  margin-bottom: 24px;
}

.home-analysis__highlight {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 20px;
  border-radius: 40px;
  background: var(--home-bg);
  color: #ae2d20;
}

.home-analysis__copy p {
  font-size: 1.125rem;
  line-height: 1.35;
  margin-top: 16px;
}

.home-analysis__copy hr {
  border: 0;
  border-top: 1px solid rgba(250, 230, 218, 0.35);
  margin: 20px 0;
}

.home-analysis__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.home-analysis__visual img {
  width: min(100%, 471px);
  height: auto;
}

/* Library */
.home-library__stage {
  position: relative;
  margin-top: 48px;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  display: grid;
  place-items: center;
}

.home-library__bg {
  display: block;
  width: 100%;
  height: auto;
}

.home-library__device {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: min(100%, 284px);
}

.home-library__device img.device-frame {
  width: 100%;
}

.home-library__device img.device-screen {
  position: absolute;
  left: 10.5%;
  top: 9%;
  width: 79%;
  height: auto;
  border-radius: 4px;
}

/* Access features */
.home-access {
  background: rgba(224, 85, 48, 0.05);
  border-radius: 20px;
  padding: clamp(40px, 5vw, 60px) clamp(24px, 4vw, 48px);
  margin: 0 24px;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
}

.home-access__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.home-access__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--home-ink);
  margin-bottom: 32px;
}

.home-access__title .accent-brand {
  color: var(--home-orange-bright);
}

.home-access__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.home-access__card {
  background: var(--home-card);
  border-radius: 12px;
  padding: 30px 20px;
}

.home-access__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--home-orange);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.home-access__card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
  fill: none;
}

.home-access__card h3 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--home-muted);
  margin-bottom: 6px;
}

.home-access__card p {
  font-size: 0.9375rem;
  color: var(--home-muted);
}

.home-access__visual img {
  width: min(100%, 403px);
  margin-inline: auto;
  height: auto;
}

/* Platform accordion */
.home-platform {
  padding-top: clamp(80px, 10vw, 120px);
}

.home-platform__head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 48px;
}

.home-platform__head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.875rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--home-ink);
  margin-bottom: 20px;
}

.home-platform__head h2 .accent-brand {
  color: var(--home-orange);
}

.home-platform__head p {
  color: var(--home-muted);
  font-size: clamp(1rem, 1.6vw, 1.625rem);
  line-height: 1.35;
}

.home-acc {
  max-width: 1154px;
  margin-inline: auto;
}

.home-acc__item {
  border: 1px solid #bebebe;
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.home-acc__item.open {
  border-color: var(--home-orange);
  background: rgba(224, 85, 48, 0.1);
}

.home-acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
}

.home-acc__trigger svg {
  width: 35px;
  height: 35px;
  flex: none;
  stroke: var(--home-orange);
}

.home-acc__item:not(.open) .home-acc__trigger svg {
  stroke: #9a9a9a;
}

.home-acc__trigger h3 {
  flex: 1;
  font-size: clamp(1.1rem, 2vw, 1.875rem);
  font-weight: 500;
  color: #9a9a9a;
}

.home-acc__item.open .home-acc__trigger h3 {
  color: var(--home-orange);
}

.home-acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.home-acc__panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 0 32px 32px;
  align-items: center;
}

.home-acc__panel-inner:not(:has(.home-acc__video)) {
  grid-template-columns: 1fr;
}

.home-acc__panel p {
  color: var(--home-muted);
  font-size: 1.125rem;
  line-height: 1.35;
}

.home-acc__video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #d9d9d9;
}

.home-acc__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-acc__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.home-acc__video .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--home-orange);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-brand);
  z-index: 1;
}

.home-acc__video .play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 3px;
}

.home-platform__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.home-platform__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 40px;
  border-radius: 40px;
  background: rgba(255, 84, 42, 0.1);
  color: var(--home-orange);
  font-size: 1.25rem;
}

/* Final CTA */
.home-final {
  padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}

.home-final__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--home-bg);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  padding: clamp(32px, 4vw, 48px);
  overflow: hidden;
}

.home-final__copy h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--home-ink);
  margin-bottom: 20px;
}

.home-final__copy h2 .accent-brand {
  color: var(--home-orange-cta);
  font-weight: 700;
}

.home-final__copy>p {
  color: var(--home-muted);
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.home-final__avatars {
  display: flex;
  margin-bottom: 16px;
}

.home-final__avatars img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--home-bg);
  margin-left: -20px;
}

.home-final__avatars img:first-child {
  margin-left: 0;
}

.home-final__stats {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--home-muted);
  margin-bottom: 24px;
}

.home-final__stats .accent-brand {
  color: var(--home-orange-cta);
}

.home-final__note {
  color: var(--home-muted);
  margin-bottom: 20px;
}

.home-final__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 0 32px;
  border-radius: 15px;
  background: var(--home-orange-cta);
  color: var(--home-bg);
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: var(--shadow-brand);
}

.home-final__btn:hover {
  transform: translateY(-2px);
}

.home-final__visual {
  display: flex;
  justify-content: center;
}

.home-final__visual img {
  width: min(100%, 520px);
  height: auto;
  border-radius: 20px;
}