:root {
  color-scheme: dark;
  --brand: #22e8da;
  --brand-bright: #5cf5ec;
  --brand-soft: #7cf5cf;
  --brand-cyan: #2fd8f5;
  --brand-ink: #050508;
  --panel: #0a1114;
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

a[href='#descarga'],
[data-download-link] {
  color: var(--brand-ink) !important;
}

[data-download-link] {
  background: var(--brand);
}

[data-download-link]:hover {
  background: var(--brand-bright);
}

.donate-button {
  background: #1df59d;
  color: #050508 !important;
}

.donate-button:hover {
  background: #4fffb8;
}

.hero-phone {
  width: min(100%, 390px);
  animation: phone-float 5.5s ease-in-out infinite;
  perspective: 1200px;
}

.phone-shell {
  position: relative;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 34%, rgba(0, 0, 0, 0.85));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(34, 232, 218, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(1.5deg);
}

.phone-shell::before {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  z-index: 4;
  width: 5rem;
  height: 1rem;
  border-radius: 999px;
  background: #050508;
  content: '';
  transform: translateX(-50%);
}

.phone-viewport {
  position: relative;
  aspect-ratio: 359 / 800;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 2.65rem;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #08090b;
  color: #f7f8fb;
  font-family: 'Inter', sans-serif;
  font-size: 3.06cqw;
  line-height: 1.35;
}

/* Container units keep the complete home screen proportional inside the phone. */
.phone-status,
.phone-status-start,
.phone-status-end {
  display: flex;
  align-items: center;
}

.phone-status {
  justify-content: space-between;
  height: 9cqw;
  padding: 1.4cqw 6.7cqw 0;
  font-size: 3.6cqw;
}

.phone-status-end {
  gap: 1.2cqw;
  font-size: 2.9cqw;
}

.phone-battery {
  position: relative;
  border: 1px solid #c5c7cb;
  border-radius: 0.8cqw;
  padding: 0 0.4cqw;
  font-size: 2.2cqw;
}

.phone-battery::after {
  position: absolute;
  top: 25%;
  right: -0.75cqw;
  width: 0.55cqw;
  height: 50%;
  border-radius: 1px;
  background: #c5c7cb;
  content: '';
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 11.15cqw;
  margin: 5.55cqw 4.45cqw 0;
}

.home-header h3 {
  font-size: 7cqw;
  font-weight: 750;
  letter-spacing: -0.2cqw;
  line-height: 1;
}

.home-header h3 span {
  color: #36dacc;
}

.home-header img {
  width: 12.4cqw;
  height: 12.4cqw;
  object-fit: contain;
}

.sm-icon {
  display: inline-block;
  flex: none;
  width: 6.7cqw;
  height: 6.7cqw;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-favorites { --icon: url('../icons/favorites.svg'); }
.icon-tracks { --icon: url('../icons/tracks.svg'); }
.icon-chevron { --icon: url('../icons/chevron-down.svg'); transform: rotate(-90deg); }
.icon-waveform { --icon: url('../icons/waveform.svg'); }
.icon-previous { --icon: url('../icons/previous.svg'); }
.icon-pause { --icon: url('../icons/pause.svg'); }
.icon-next { --icon: url('../icons/next.svg'); }
.icon-playlist { --icon: url('../icons/playlist.svg'); }
.icon-home { --icon: url('../icons/home.svg'); }
.icon-search { --icon: url('../icons/search.svg'); }
.icon-library { --icon: url('../icons/library.svg'); }

.home-primary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.8cqw;
  height: 27.3cqw;
  margin: 5.85cqw 4.45cqw 0;
}

.home-primary-card {
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 4.2cqw;
  background: linear-gradient(115deg, rgba(31, 230, 214, 0.035), transparent), #101317;
  padding: 3.9cqw 2.8cqw;
}

.home-card-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.1cqw;
  color: #40d9ce;
}

.home-card-icons > .sm-icon:first-child {
  width: 7.2cqw;
  height: 7.2cqw;
}

.home-card-icons .icon-chevron {
  width: 2.5cqw;
  height: 2.5cqw;
  color: #a8afbd;
}

.home-primary-card strong {
  display: block;
  font-size: 3.35cqw;
  font-weight: 650;
}

.home-primary-card p {
  margin-top: 0.6cqw;
  color: #8c939e;
  font-size: 2.8cqw;
}

.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.7cqw;
  margin-inline: 4.45cqw;
}

.home-section-heading h4 {
  font-size: 5.3cqw;
  font-weight: 700;
  letter-spacing: -0.1cqw;
}

.home-section-heading > span {
  display: flex;
  align-items: center;
  gap: 1.3cqw;
  color: #afb2bc;
  font-size: 2.5cqw;
}

.home-section-heading .icon-chevron {
  width: 3.6cqw;
  height: 3.6cqw;
}

.home-quick-access {
  margin-top: 9.2cqw;
}

.home-albums {
  display: flex;
  gap: 2.8cqw;
  margin-top: 5.55cqw;
  padding-inline: 4.45cqw;
}

.home-album {
  flex: 0 0 24.5cqw;
  min-width: 0;
}

.home-artwork {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3.6cqw;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.home-artwork::before {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 4cqw rgba(255, 255, 255, 0.18), inset 0 0 3cqw rgba(255, 255, 255, 0.15);
  content: '';
}

.home-artwork::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 2cqw, rgba(255, 255, 255, 0.07) 2cqw 2.2cqw);
  content: '';
}

.artwork-horizontes {
  background: radial-gradient(ellipse at 70% 20%, #fca77a, transparent 55%), linear-gradient(145deg, #4d1b59, #e16177 55%, #252455);
}

.artwork-pulso {
  background: radial-gradient(circle at 65% 35%, #e2d5ff, #8471bb 25%, transparent 27%), linear-gradient(140deg, #30244e, #11142e 65%, #6c48a0);
}

.artwork-circuito {
  background: radial-gradient(ellipse at 10% 90%, #4cdde8, transparent 65%), linear-gradient(135deg, #092939, #286cb0 55%, #131f45);
}

.artwork-circuito::before {
  border-radius: 12%;
  transform: rotate(35deg);
}

.artwork-eco {
  background: radial-gradient(ellipse at 80% 10%, #84e9c9, transparent 55%), linear-gradient(160deg, #11635d, #0c303c 65%, #4c7189);
}

.home-album strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 1.9cqw;
  font-size: 2.95cqw;
  font-weight: 500;
  line-height: 1.32;
}

.home-album p {
  margin-top: 1.1cqw;
  color: #a1a4af;
  font-size: 2.6cqw;
}

.home-listening {
  margin-top: 7.3cqw;
}

.home-listening-card {
  position: relative;
  height: 51.25cqw;
  margin: 3.35cqw 4.45cqw 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5.1cqw;
  background:
    radial-gradient(ellipse at 95% 5%, #785739, transparent 65%),
    linear-gradient(135deg, #635c38, #6d5c2c);
  padding: 3.6cqw 3.1cqw;
}

.home-listening-card::before {
  position: absolute;
  top: 0;
  left: 5.55cqw;
  width: 6.7cqw;
  height: 0.55cqw;
  border-radius: 999px;
  background: #40d9ce;
  content: '';
}

.home-track {
  display: flex;
  align-items: center;
  gap: 3.35cqw;
}

.artwork-aurora {
  flex: 0 0 20.05cqw;
  border-radius: 2.2cqw;
  background: radial-gradient(ellipse at 25% 15%, #f8d798, transparent 60%), linear-gradient(145deg, #c68c50, #8b4c42 55%, #332d4c);
}

.home-track-meta {
  flex: 1;
  min-width: 0;
}

.home-playing-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e4dfd6;
  font-size: 2.5cqw;
}

.home-playing-label .icon-waveform {
  width: 5.6cqw;
  height: 5.6cqw;
  color: #36dacc;
}

.home-track-meta strong {
  display: block;
  margin-top: 0.3cqw;
  font-size: 3.65cqw;
  font-weight: 650;
}

.home-track-meta p {
  margin-top: 0.4cqw;
  color: #e4dfd6;
  font-size: 3.05cqw;
}

.home-progress {
  height: 1.1cqw;
  margin-top: 3.1cqw;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.home-progress span {
  display: block;
  width: 97.75%;
  height: 100%;
  border-radius: inherit;
  background: #39d9ce;
}

.home-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6cqw;
  color: #e4dfd6;
  font-size: 2.2cqw;
}

.home-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9.5cqw;
  margin-top: 5cqw;
}

.home-transport .sm-icon {
  width: 6.1cqw;
  height: 6.1cqw;
}

.home-transport .icon-pause {
  width: 7.5cqw;
  height: 7.5cqw;
}

.home-playlists {
  margin-top: 6cqw;
}

.home-playlist-invitation {
  margin: 3.35cqw 4.45cqw 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5.1cqw;
  background: linear-gradient(135deg, #102124, #101317);
  padding: 5.5cqw;
  text-align: center;
}

.home-playlist-invitation .sm-icon {
  color: #36dacc;
}

.home-playlist-invitation strong {
  display: block;
  margin-top: 2cqw;
}

.home-playlist-invitation p {
  margin-top: 1cqw;
  color: #a8afbd;
  font-size: 2.8cqw;
}

.home-bottom-nav {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 15.6cqw;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(110deg, #101b20, #101218 70%);
  padding: 2cqw 0;
  color: #a8afbd;
  font-size: 2.5cqw;
}

.home-bottom-nav > span {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.5cqw;
}

.home-bottom-nav .sm-icon {
  width: 5.6cqw;
  height: 5.6cqw;
}

.home-bottom-nav .active {
  color: #2ce4d4;
}

.home-bottom-nav .active .sm-icon {
  filter: drop-shadow(0 0 2cqw rgba(44, 228, 212, 0.45));
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.mosaic-field {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #050508;
  background-size: 56px 56px;
}

.mosaic-field::before {
  position: absolute;
  inset: 0;
  content: '';
  background-image:
    linear-gradient(135deg, rgba(34, 232, 218, 0.18), transparent 24%),
    linear-gradient(225deg, rgba(124, 245, 207, 0.15), transparent 26%),
    linear-gradient(315deg, rgba(47, 216, 245, 0.16), transparent 28%),
    linear-gradient(45deg, rgba(139, 92, 246, 0.16), transparent 28%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 78%);
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  content: '';
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

[data-menu-button][aria-expanded='true'] .menu-lines {
  transform: rotate(45deg);
}

[data-menu-button][aria-expanded='true'] .menu-lines::before {
  transform: translateY(6px) rotate(90deg);
}

[data-menu-button][aria-expanded='true'] .menu-lines::after {
  opacity: 0;
}

.feature-card {
  min-height: 290px;
  border-width: 1px;
  border-style: solid;
  border-radius: 2rem;
  padding: 1.5rem;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.075);
}

.feature-card h3 {
  margin-top: 4rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.feature-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 1.25rem;
  font-weight: 900;
}

.feature-icon i {
  font-size: 1.35rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-phone {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .hero-phone {
    width: min(100%, 330px);
  }

  .phone-shell {
    border-radius: 2.8rem;
    padding: 0.55rem;
  }

  .phone-viewport {
    border-radius: 2.25rem;
  }

  .feature-card {
    min-height: auto;
  }
}
