/* Kosmos.coop Index Page Styles — Compilat: 26/02/2026 */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    z-index: -1;
    background:
        radial-gradient(ellipse 130% 120% at 50% 40%, rgba(180, 50, 140, 0.62) 0%, rgba(135, 38, 105, 0.38) 14%, rgba(90, 25, 70, 0.18) 25%, rgba(45, 13, 35, 0.07) 36%, rgba(22, 6, 18, 0.02) 47%, rgba(0, 0, 0, 0) 58%),
        radial-gradient(ellipse 120% 130% at 50% 40%, rgba(160, 40, 150, 0.47) 0%, rgba(120, 30, 112, 0.24) 16%, rgba(80, 20, 75, 0.12) 28%, rgba(40, 10, 38, 0.06) 40%, rgba(20, 5, 19, 0.02) 52%, rgba(0, 0, 0, 0) 63%);
    opacity: 0;
    animation: fadeInLights 2s ease-out forwards 0.2s, circularMove1 25s linear infinite 0.2s;
}

@keyframes fadeInLights2 {
    to { opacity: 1; }
}

body::after {
    content: '';
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    z-index: -1;
    background:
        radial-gradient(ellipse 130% 130% at 50% 40%, rgba(30, 110, 200, 0.40) 0%, rgba(22, 82, 150, 0.22) 16%, rgba(15, 55, 100, 0.12) 27%, rgba(8, 28, 50, 0.04) 38%, rgba(4, 14, 25, 0.01) 49%, rgba(0, 0, 0, 0) 60%),
        radial-gradient(ellipse 120% 140% at 50% 40%, rgba(50, 140, 220, 0.28) 0%, rgba(38, 105, 165, 0.16) 18%, rgba(25, 70, 110, 0.08) 30%, rgba(13, 35, 55, 0.04) 42%, rgba(6, 18, 28, 0.01) 54%, rgba(0, 0, 0, 0) 65%);
    opacity: 0;
    animation: fadeInLights2 2.2s ease-out forwards 0.3s, circularMove2 30s linear infinite 0.3s;
}

@keyframes circularMove1 {
    0% { transform: rotate(0deg) translateX(500px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(500px) rotate(-360deg); }
}

@keyframes circularMove2 {
    0% { transform: rotate(180deg) translateX(600px) rotate(-180deg); }
    100% { transform: rotate(540deg) translateX(600px) rotate(-540deg); }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 860px;
    padding: 40px 20px;
    box-sizing: border-box;
}

.animation-container {
    position: relative;
    width: 400px;
    height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kosmos-logo {
    width: 100%;
    height: auto;
    max-width: 350px;
    filter: brightness(0) invert(1);
    opacity: 0;
    animation: fadeInLogo 1s ease forwards 0.3s;
}

@keyframes fadeInLogo {
    to { opacity: 1; }
}

/* Text de presentació */
.presentation-text {
    margin-top: -50px;
    padding: 0 20px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 200;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.2s;
    box-sizing: border-box;
}

.presentation-text h1 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
    font-family: inherit;
}

.presentation-text p {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

/* Explicació fase beta */
.beta-explanation {
    margin-top: 30px;
    padding: 0 20px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.8s;
    box-sizing: border-box;
}

.beta-explanation p {
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

/* Contenidor de botons */
.buttons-container {
    margin-top: 60px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 2.4s;
}

/* Botó outline */
.outline-btn {
    padding: 14px 32px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.outline-btn:hover {
    background: transparent;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Botó sol·licitar accés */
.access-btn {
    padding: 14px 32px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.access-btn img {
    height: 24px;
    width: auto;
}

.access-btn:hover {
    background: transparent;
    color: #ffffff;
    transform: scale(1.05);
}

.access-btn:hover img {
    filter: invert(1);
}

/* Footer index */
.footer-sponsors-label {
    font-size: 13px;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeInFooter 0.8s ease forwards 3s;
}

/* Desktop: Centrar tot el contingut (incloent footer) a l'àrea visible */
@media screen and (min-width: 769px) {
    body {
        height: 100vh;
        overflow: hidden;
        justify-content: center;
    }

    .main-content {
        flex: 0 1 auto;
        padding: 20px 20px 10px 20px;
    }

    footer {
        flex: 0 0 auto;
        padding: 20px 20px 30px 20px;
    }

    .footer-sponsors-label {
        margin-top: 30px;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body::before {
        background:
            radial-gradient(ellipse 140% 120% at 50% 35%, rgba(180, 50, 140, 0.35) 0%, rgba(135, 38, 105, 0.2) 14%, rgba(90, 25, 70, 0.1) 24%, rgba(45, 13, 35, 0.04) 34%, rgba(22, 6, 18, 0.01) 44%, rgba(0, 0, 0, 0) 54%),
            radial-gradient(ellipse 120% 140% at 50% 35%, rgba(160, 40, 150, 0.25) 0%, rgba(120, 30, 112, 0.13) 16%, rgba(80, 20, 75, 0.06) 28%, rgba(40, 10, 38, 0.02) 38%, rgba(20, 5, 19, 0.01) 48%, rgba(0, 0, 0, 0) 58%);
    }

    body::after {
        background:
            radial-gradient(ellipse 130% 130% at 50% 35%, rgba(30, 110, 200, 0.2) 0%, rgba(22, 82, 150, 0.11) 15%, rgba(15, 55, 100, 0.05) 26%, rgba(8, 28, 50, 0.02) 36%, rgba(4, 14, 25, 0.01) 46%, rgba(0, 0, 0, 0) 56%),
            radial-gradient(ellipse 120% 140% at 50% 35%, rgba(50, 140, 220, 0.14) 0%, rgba(38, 105, 165, 0.07) 17%, rgba(25, 70, 110, 0.03) 29%, rgba(13, 35, 55, 0.01) 40%, rgba(6, 18, 28, 0.005) 50%, rgba(0, 0, 0, 0) 60%);
    }

    .main-content {
        padding: 20px 15px;
    }

    .animation-container {
        width: 100%;
        max-width: 280px;
        height: 280px;
    }

    .logo-wrapper {
        height: 100%;
    }

    .kosmos-logo {
        max-width: 250px;
    }

    .presentation-text {
        padding: 0 15px;
        margin-top: 8px;
    }

    .presentation-text h1 {
        font-size: 20px;
        font-weight: 600;
    }

    .presentation-text p {
        font-size: 20px;
        font-weight: 600;
    }

    .beta-explanation {
        padding: 0 15px;
        margin-top: 25px;
    }

    .beta-explanation p {
        font-size: 15px;
    }

    .buttons-container {
        margin-top: 25px;
        gap: 15px;
    }

    .outline-btn {
        padding: 12px 28px;
        font-size: 16px;
        gap: 8px;
    }

    .access-btn {
        padding: 12px 28px;
        font-size: 16px;
        gap: 8px;
    }

    .access-btn img {
        height: 22px;
    }

    footer {
        padding: 40px 20px 20px 20px;
        gap: 40px;
    }

    .footer-sponsors-label {
        margin-bottom: 3px;
    }

    .footer-sponsors {
        gap: 30px;
    }

    .footer-sponsors img {
        height: 28px;
    }

    .footer-sponsors .logo-bcn {
        height: 41px;
    }

    .footer-opengea img {
        height: 36px;
    }

    @keyframes circularMove1 {
        0% { transform: rotate(0deg) translateX(180px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
    }

    @keyframes circularMove2 {
        0% { transform: rotate(180deg) translateX(220px) rotate(-180deg); }
        100% { transform: rotate(540deg) translateX(220px) rotate(-540deg); }
    }
}

@media screen and (max-width: 480px) {
    body::before {
        background:
            radial-gradient(ellipse 150% 130% at 50% 30%, rgba(180, 50, 140, 0.35) 0%, rgba(135, 38, 105, 0.2) 14%, rgba(90, 25, 70, 0.1) 24%, rgba(45, 13, 35, 0.04) 34%, rgba(22, 6, 18, 0.01) 44%, rgba(0, 0, 0, 0) 54%),
            radial-gradient(ellipse 130% 150% at 50% 30%, rgba(160, 40, 150, 0.25) 0%, rgba(120, 30, 112, 0.13) 16%, rgba(80, 20, 75, 0.06) 28%, rgba(40, 10, 38, 0.02) 38%, rgba(20, 5, 19, 0.01) 48%, rgba(0, 0, 0, 0) 58%);
    }

    body::after {
        background:
            radial-gradient(ellipse 140% 140% at 50% 30%, rgba(30, 110, 200, 0.2) 0%, rgba(22, 82, 150, 0.11) 15%, rgba(15, 55, 100, 0.05) 26%, rgba(8, 28, 50, 0.02) 36%, rgba(4, 14, 25, 0.01) 46%, rgba(0, 0, 0, 0) 56%),
            radial-gradient(ellipse 130% 150% at 50% 30%, rgba(50, 140, 220, 0.14) 0%, rgba(38, 105, 165, 0.07) 17%, rgba(25, 70, 110, 0.03) 29%, rgba(13, 35, 55, 0.01) 40%, rgba(6, 18, 28, 0.005) 50%, rgba(0, 0, 0, 0) 60%);
    }

    .animation-container {
        max-width: 220px;
        height: 120px;
    }

    .logo-wrapper {
        height: 100%;
    }

    .kosmos-logo {
        max-width: 200px;
    }

    .presentation-text h1 {
        font-size: 18px;
        font-weight: 600;
    }

    .presentation-text p {
        font-size: 18px;
        font-weight: 600;
    }

    .beta-explanation {
        padding: 0 15px;
        margin-top: 0;
    }

    .beta-explanation p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .buttons-container {
        flex-direction: column;
        gap: 20px;
    }

    .outline-btn {
        padding: 12px 24px;
        font-size: 15px;
        gap: 8px;
    }

    .access-btn {
        padding: 12px 24px;
        font-size: 15px;
        gap: 8px;
    }

    .access-btn img {
        height: 20px;
    }

    footer {
        padding-top: 20px;
        gap: 30px;
    }

    .footer-sponsors-label {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .footer-sponsors {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-sponsors img {
        height: 24px;
    }

    .footer-sponsors .logo-bcn {
        height: 35px;
    }

    .footer-opengea img {
        height: 32px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    @keyframes circularMove1 {
        0% { transform: rotate(0deg) translateX(140px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
    }

    @keyframes circularMove2 {
        0% { transform: rotate(180deg) translateX(170px) rotate(-180deg); }
        100% { transform: rotate(540deg) translateX(170px) rotate(-540deg); }
    }
}

/* Switcher d'idioma */
.lang-switch {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.lang-switch:hover {
    color: #ffffff;
}
