* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow: hidden;
    height: 100vh;
}

/* Canvas background Matrix - versione soft */
#matrixBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15; /* Molto più soft */
}

/* Container principale centrato */
.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 40px;
}

.logo-wrapper {
    width: 100%;
    max-width: 350px; /* ⬅️ Era 500px, riduci a 350px o 300px */
    margin-bottom: 30px; /* Opzionale: riduci anche lo spazio sotto */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper video,
.logo-wrapper img {
    max-width: 450px; /* Logo più grande */
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.1));
    border-radius: 8px;
}

/* Form wrapper - design pulito */
.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 500px;
}

/* Input group styling */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-family: 'JetBrains Mono', monospace;
}

.input-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 15px;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input::placeholder {
    color: #555;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

/* Pulsante Send - elegante */
#sendButton {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 12px;
}

#sendButton:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

#sendButton:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-wrapper video,
    .logo-wrapper img {
        max-width: 300px;
    }

    .form-wrapper {
        max-width: 100%;
    }
}
/* Typewriter effect styling */
.typewriter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    min-height: 40px; /* Previene spostamenti durante l'animazione */
}

#typewriterText {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 400;
    color: #b0b0b0;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Cursore lampeggiante */
.cursor {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: #b0b0b0;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Responsive per mobile */
@media (max-width: 768px) {
    #typewriterText {
        font-size: 15px;
    }
    
    .cursor {
        font-size: 15px;
    }
}
