/* Base styles */
:root {
    --primary-color: #7b2cbf;
    --secondary-color: #5a189a;
    --accent-color: #9d4edd;
    --text-color: #f8f9fa;
    --background-color: #0a0a23;
    --card-background: rgba(25, 25, 50, 0.7);
    --gradient-start: #3a0ca3;
    --gradient-end: #7209b7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
}

/* Stars background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../images/background-stars.jpg') repeat;
    background-size: cover;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Planètes décoratives avec effet parallaxe */
.planet-1,
.planet-2,
.planet-3,
.planet-4 {
    position: fixed;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
    transition: transform 0.2s ease-out, opacity 0.5s ease-out;
    will-change: transform, opacity;
}

.planet-1 {
    top: 15%;
    right: 5%;
    width: 200px;
    height: 200px;
    background-image: url('../images/planet-1-big.png');
}

.planet-2 {
    bottom: 10%;
    left: 8%;
    width: 120px;
    height: 120px;
    background-image: url('../images/planet-2-big.png');
}

.planet-3 {
    top: 60%;
    right: 15%;
    width: 100px;
    height: 100px;
    background-image: url('../images/planet-3-big.png');
}

.planet-4 {
    top: 30%;
    left: 10%;
    width: 80px;
    height: 80px;
    background-image: url('../images/planet-4-small.png');
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 30px;
}

.mobile-logo img {
    max-width: 220px;
    height: auto;
}

/* Header */
header {
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(10, 10, 35, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

/* Header language switcher */
.lang-link, .lang-active {
    font-weight: 600;
    margin-left: 16px;
    padding: 6px 10px;
    border-radius: 18px;
}
.lang-link {
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(25,25,50,0.35);
}
.lang-link:hover {
    background: rgba(25,25,50,0.55);
}
.lang-active {
    color: #ffffff;
    background: linear-gradient(to right, #9a58ff, #c38bff);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    padding-top: 0;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(122, 9, 183, 0.2) 0%, rgba(10, 10, 35, 0) 70%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: -40px;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #c184f5, #d2e3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

    100% {
        transform: translateY(0px);
    }
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, #9a58ff, #c38bff);
    color: white;
    box-shadow: 0 4px 18px rgba(180, 120, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(190, 130, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Waitlist section */
.waitlist {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.waitlist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(122, 9, 183, 0.18) 0%, rgba(10, 10, 35, 0) 70%);
    z-index: -1;
}

.waitlist h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #c184f5, #d2e3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.waitlist p {
    max-width: 680px;
    margin: 0 auto 24px auto;
}

.waitlist-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.waitlist .field {
    position: relative;
    min-width: 320px;
}

.waitlist input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(25, 25, 50, 0.7);
    color: var(--text-color);
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(122, 9, 183, 0.12);
}

.waitlist input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.waitlist input[type="email"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 6px 22px rgba(122, 9, 183, 0.28);
}

.waitlist .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.waitlist #waitlist-submit.btn-primary {
    padding: 14px 28px;
}

.waitlist .feedback {
    margin-top: 14px;
    min-height: 22px;
    color: var(--accent-color);
    font-weight: 600;
}

.waitlist .legal {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.75;
}

/* Light red for error states */
.waitlist .feedback.error {
    color: #ff8fa3;
}

/* Features section */
.features {
    padding: 100px 0;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-background);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(122, 9, 183, 0.2);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* App preview section */
.app-preview {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.app-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(122, 9, 183, 0.2) 0%, rgba(10, 10, 35, 0) 70%);
    z-index: -1;
}

.app-preview .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-image {
    flex: 1;
    text-align: center;
}

.app-image img {
    max-width: 80%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.app-content {
    flex: 1;
    padding-left: 50px;
}

.app-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Download section */
.download {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/planet-4-small.png') no-repeat;
    background-position: right -100px top 50px;
    background-size: 200px;
    opacity: 0.5;
    z-index: -1;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.store-button {
    transition: all 0.3s ease;
}

.store-button img {
    height: 60px;
}

.store-button:hover img {
    transform: translateY(-5px);
}

.store-button.disabled {
    cursor: not-allowed;
}

/* Community section */
.community {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(122, 9, 183, 0.2) 0%, rgba(10, 10, 35, 0) 70%);
    z-index: -1;
}

.community .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.community-content {
    flex: 1;
    padding-right: 50px;
}

.community-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.community-image {
    flex: 1;
    text-align: center;
}

.community-image img {
    max-width: 80%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    background-color: #5865F2;
    color: white;
    transition: all 0.3s ease;
}

.btn-discord img {
    width: 42px;
    height: 42px;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

/* Footer */
footer {
    background-color: rgba(10, 10, 35, 0.9);
    padding: 50px 0 20px;
    position: relative;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-logo-img {
    max-width: 150px;
    margin-bottom: 10px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-social a img {
    width: 20px;
    height: 20px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive styles */
@media (max-width: 992px) {

    .hero .container,
    .community .container,
    .app-preview .container {
        flex-direction: column;
    }

    .hero-content,
    .community-content,
    .app-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scroll-indicator {
        bottom: 40px;
    }
}

@media (max-width: 768px) {

    /* Desktop header hidden on mobile */
    .desktop-header {
        display: none;
    }

    /* Mobile logo visible on mobile */
    .mobile-logo {
        display: block;
    }

    /* Adjust hero padding without the header */
    .hero {
        padding-top: 40px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Hide planet-1 in mobile view */
    .planet-1 {
        opacity: 0;
        visibility: hidden;
    }

    .hero .container {
        flex-direction: column;
        margin-top: 0;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    header {
        padding: 15px 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    nav ul li {
        margin-left: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .features h2,
    .app-content h2,
    .community-content h2,
    .download h2 {
        font-size: 2rem;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .scroll-indicator {
        bottom: 30px;
        left: auto;
        right: 30px;
        transform: none;
    }

    .scroll-indicator p {
        font-size: 1rem;
        text-shadow: 0 0 15px rgba(10, 10, 35, 0.9), 0 0 5px rgba(0, 0, 0, 0.9);
        font-weight: 700;
        background-color: rgba(10, 10, 35, 0.6);
        padding: 5px 10px;
        border-radius: 20px;
        color: white !important;
    }

    .scroll-arrow {
        width: 36px;
        height: 36px;
        background-color: rgba(10, 10, 35, 0.6);
        box-shadow: 0 0 15px rgba(157, 78, 221, 0.8), 0 0 5px rgba(0, 0, 0, 0.5);
        border-color: white !important;

        &::after {
            border-color: white !important;
        }
    }

    .hero .container {
        margin-top: -20px;
    }
}

@media (max-width: 768px) {
    /* Waitlist form responsive fixes */
    .waitlist-form {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .waitlist .field {
        min-width: auto;
        width: 100%;
    }

    .waitlist input[type="email"] {
        width: 100%;
        max-width: none;
    }

    .waitlist #waitlist-submit.btn-primary {
        width: 100%;
        padding: 16px 28px;
    }
}

@media (max-width: 576px) {
    .planet-1 {
        width: 120px;
        height: 120px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .scroll-indicator {
        bottom: 25px;
        right: 20px;
    }

    .scroll-arrow {
        width: 32px;
        height: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .mobile-logo img {
        max-width: 180px;
    }

    /* Additional waitlist improvements for very small screens */
    .waitlist .container {
        padding: 0 15px;
    }

    .waitlist h2 {
        font-size: 2rem;
    }

    .waitlist p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatUpDown 2s infinite;
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    user-select: none;
}

.scroll-indicator p {
    margin-bottom: 12px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
}

.scroll-arrow::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    transform: rotate(45deg) translateY(-2px) translateX(-2px);
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(30px);
    width: calc(100% - 40px);
    max-width: 920px;
    background: linear-gradient(145deg, rgba(25,25,50,0.92), rgba(10,10,35,0.92));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(157, 78, 221, 0.25);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    padding: 18px 18px 18px 12px;
    align-items: center;
}

.cookie-illustration {
    font-size: 28px;
    filter: drop-shadow(0 0 6px rgba(157, 78, 221, 0.55));
}

.cookie-text h3 {
    margin-bottom: 6px;
}

.cookie-text p {
    margin-bottom: 8px;
}

.cookie-links a {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-settings {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(25,25,50,0.85);
    color: #fff;
    box-shadow: 0 8px 26px rgba(157, 78, 221, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.cookie-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(157, 78, 221, 0.55);
}

@media (max-width: 576px) {
    .cookie-inner {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 16px;
    }
    .cookie-actions {
        justify-content: flex-start;
    }
    .cookie-illustration {
        display: none;
    }
}