* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: black;
}

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 524px;
    height: 50px;
    background: #222;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

nav a {
    position: relative;
    display: inline-block;
    font-size: 0.9em;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    width: 104.8px;
    text-align: center;
    line-height: 50px;
    z-index: 1;
    transition: color 0.3s ease;
}

nav span {
    position: absolute;
    top: 0;
    left: 0;
    width: 104.8px;
    height: 100%;
    background: linear-gradient(45deg, #065f06, #10d910);
    border-radius: 8px;
    transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:nth-child(1):hover ~ span {
    left: 0px;
}
nav a:nth-child(2):hover ~ span {
    left: 104.8px;
}
nav a:nth-child(3):hover ~ span {
    left: 209.6px;
}
nav a:nth-child(4):hover ~ span {
    left: 314.4px;
}
nav a:nth-child(5):hover ~ span {
    left: 419.2px;
}

nav.page-index span {
    left: 0px;
}
nav.page-download span {
    left: 104.8px;
}
nav.page-features span {
    left: 209.6px;
}
nav.page-faq span {
    left: 314.4px;
}
nav.page-guide span {
    left: 419.2px;
}