:root {
    --text-color: #ffffff;
    --accent-color: #ffffff;
}

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

body, html {
    height: 100%;
    font-family: 'Instrument Sans', sans-serif;
    color: #bababb;
    overflow: hidden;
    background-color: #02050f; /* Colore di fallback */
}

/* Sfondo cielo stellato / nebulosa */
.bg-image {
    position: absolute;
    inset: -5%; /* Margine negativo per non far vedere i bordi durante il movimento */
    background: url('img1.jpg') center/cover no-repeat;
    z-index: 0;
    opacity: 0.2; /* un po' di trasparenza per far emergere il colore di sfondo scuro del body */
    /* Animazione costante per fluttuare nello spazio */
    animation: floatSpace 30s ease-in-out infinite;
}

@keyframes floatSpace {
    0% { transform: scale(1.05) translate(0, 0); }
    33% { transform: scale(1.15) translate(-2%, -2%); }
    66% { transform: scale(1.1) translate(2%, -3%); }
    100% { transform: scale(1.05) translate(0, 0); }
}

/* Overlay per scurire l'immagine e far risaltare testo e logo */
.bg-overlay {
    position: absolute;
    inset: 0;
    /* Gradiente radiale per mantenere il centro leggermente più luminoso e scurire i bordi */
    background: radial-gradient(circle at center, rgba(8, 15, 30, 0.4) 0%, rgba(2, 5, 12, 0.85) 100%);
    z-index: -1;
}

/* --- Animazioni d'ingresso --- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSpike {
    0% { opacity: 0; transform: translateX(-50px) rotate(-45deg); }
    100% { opacity: 0.95; transform: translateX(0) rotate(-45deg); }
}

/* Elemento grafico a punta (spike) laterale, ispirato allo screenshot del telefono */
.graphic-spike {
    position: fixed;
    bottom: 50%;
    right: 60%;
    transform-origin: right center; /* Ruota partendo dalla punta */
    transform: rotate(-45deg); /* Inclinato in su a 45 gradi */
    width: 120vw; /* Abbastanza lungo da uscire fuori dallo schermo in basso a sinistra */
    height: 10vh; /* Spessore alla base */
    background-color: var(--accent-color);
    clip-path: polygon(0 20%, 100% 50%, 0 80%);
    z-index: 1;
    opacity: 0; /* Nascosto inizialmente */
    box-shadow: 0 0 40px rgba(255,255,255,0.1);
    animation: fadeInSpike 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Spinge logo e testo in basso */
    align-items: center;
    height: 100%;
    padding: 2rem;
    padding-bottom: 6rem; /* Margine dal fondo dello schermo */
    gap: 1.5rem; /* Spazio tra logo e testo */
}

.header {
    text-align: center;
}

.title {
    font-size: 2.5rem; /* Ripristinato grandezza */
    font-weight: 500;
    letter-spacing: 0.3em;
    margin-bottom: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #bababb;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

.logo-wrapper {
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s; /* Il logo è il primo ad apparire */
}

.logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 2px 15px rgba(0,0,0,0.6));
}

@media (max-width: 768px) {
    .graphic-spike {
        width: 150vw;
        height: 8vh;
        clip-path: polygon(0 25%, 100% 50%, 0 75%);
        bottom: 30%; /* Su mobile potrebbe servire un po' meno spazio per il logo */
    }
    
    .container {
        padding: 2rem;
        padding-bottom: 3rem;
    }
    
    .logo {
        height: 80px; /* Logo più grande rispetto a prima */
    }
    
    .title {
        font-size: 1.5rem; /* Coming Soon più piccolo per dare risalto al logo */
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
}
