:root {
    --bg-dark: #0a0a0a;
    --bg-card: #161616;
    --navbar-black: rgba(10,10,10,0.9);
    --navbar-light: rgba(199, 59, 59, 0.9);
    --accent: #ff0015;
    --accent-hover: #ff0303;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --gradient: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
}

::selection {
    background-color: #e10b0b;
    color: #fff;
}

.nav-link{font-weight: 600;}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'General Sans', sans-serif;
    overflow-x: hidden;
}

nav{background: var(--navbar-black);}
body.light-mode nav{background: var(--navbar-light);}

.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); }

.glass-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

body.light-mode .glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.hero-section {
    padding: 120px 0 80px;
    background: radial-gradient(circle at top right, #2a1010 0%, #0a0a0a 60%);
    position: relative;
}

.hero-title span {
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.progress-container {
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar-custom {
    height: 100%;
    background: var(--gradient);
    width: 35%;
}

.btn-download {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: opacity 0.3s;
}
.btn-download:hover { opacity: 0.9; color: white; }

.btn-outline-custom {
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-outline-custom:hover { background: white; color: black; }

.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    -webkit-text-fill-color: transparent;
}

footer {
    border-top: 1px solid #222;
    padding: 50px 0;
    margin-top: 50px;
}

#screenshots {
    padding: 80px 0;
    background-color: var(--bg-dark); 
    overflow: hidden; 
    position: relative;
}

#screenshots::before,
#screenshots::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#screenshots::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

#screenshots::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.scroller-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollLeft 60s linear infinite;
    padding: 20px 0;
}

.screenshot-item {
    width: 280px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {transform: translateY(-10px);}

.screenshot-item img {
    width: 100%;
    height: auto;
    background: transparent; 
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50.5%); }
}

.screenshot-item {
    width: 250px;
    margin-right: 40px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column; 
    align-items: center; 
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.screenshot-caption {
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.screenshot-caption h5 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.screenshot-caption p {
    color: #a0a0a0;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pulse-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-line {
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: "";
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    animation: loadingLine 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes loadingLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

body.light-mode {
    --bg-dark: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #4a4a4a;
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.light-mode .hero-section {background: radial-gradient(circle at top right, #ffe5e5 0%, #f8f9fa 60%);}
body.light-mode .text-white {color: var(--text-main) !important;}
.section-scioperi {background-color: var(--bg-dark);}

.card-scioperi {
    background: linear-gradient(to right, #1a0505, #000);
    border: 1px solid #330000;
}

body.light-mode .section-scioperi {background-color: var(--bg-dark);}
body.light-mode .card-scioperi {
  
    background: linear-gradient(to right, #fff5f5, #ffffff);
    border: 1px solid #ffcccc;
    color: var(--text-main);
}

body.light-mode .card-scioperi .text-white {color: var(--text-main) !important;}

.sciopero-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: rgba(255, 0, 21, 0.05);
    box-shadow: 0 0 40px rgba(255, 0, 21, 0.2);
    transition: all 0.3s ease;
}

.info-text {
    color: #ffffff;
    transition: color 0.3s ease;
}

body.light-mode .sciopero-circle {
    background: rgba(255, 0, 21, 0.02);
    border: 2px solid rgba(255, 0, 21, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
}

body.light-mode .info-text { color: var(--text-main); }
.sciopero-circle {animation: glow 3s infinite alternate;}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 0, 21, 0.1); }
    to { box-shadow: 0 0 50px rgba(255, 0, 21, 0.3); }
}

#screenshots .section-title {color: var(--text-main);}
.screenshot-subtitle {color: var(--text-muted);}

.screenshot-caption h5 {
    color: var(--text-main); 
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.screenshot-caption p {
    color: var(--text-muted); 
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

body.light-mode #screenshots {background-color: var(--bg-dark); }
body.light-mode .screenshot-item img {background: transparent;}
.waitlist-section {background-color: var(--bg-dark);}

.waitlist-card {
    background: linear-gradient(135deg, #1a0505 0%, #0f0f0f 60%, #1a0505 100%);
    border: 1px solid rgba(255, 0, 21, 0.25);
    box-shadow:
        0 0 60px rgba(255, 0, 21, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

.waitlist-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 0, 21, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.waitlist-card > *:not(.waitlist-glow) {
    position: relative;
    z-index: 1;
}
.waitlist-form {max-width: 520px;}

.input-group-waitlist {
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 0, 21, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group-waitlist:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 0, 21, 0.12);
}

.waitlist-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
}

.waitlist-input::placeholder {color: rgba(255, 255, 255, 0.35);}
.waitlist-input:-webkit-autofill,
.waitlist-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0f0f0f inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}

.waitlist-btn {
    background: var(--gradient);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.1s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.waitlist-btn:hover:not(:disabled) {opacity: 0.88;}
.waitlist-btn:active:not(:disabled) {transform: scale(0.98);}
.waitlist-btn:disabled {cursor: default;}

#waitlistFeedback.alert {
    border-radius: 12px;
    font-size: 0.9rem;
}

#waitlistFeedback.alert-success {
    background: rgba(25, 135, 84, 0.15);
    border: 1px solid rgba(25, 135, 84, 0.4);
    color: #75d9a3;
}

#waitlistFeedback.alert-danger {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #f08080;
}

#waitlistFeedback.alert-info {
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.3);
    color: #7ee8f8;
}

#waitlistFeedback a {
    color: inherit;
    text-decoration: underline;
}

.waitlist-stat {text-align: center;}

.waitlist-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.waitlist-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.light-mode .waitlist-section {background-color: var(--bg-dark);}

body.light-mode .waitlist-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 60%, #fff5f5 100%);
    border: 1px solid rgba(255, 0, 21, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body.light-mode .waitlist-input {color: #1a1a1a;}
body.light-mode .waitlist-input::placeholder {color: rgba(0, 0, 0, 0.35);}

body.light-mode .waitlist-input:-webkit-autofill,
body.light-mode .waitlist-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff5f5 inset;
    -webkit-text-fill-color: #1a1a1a;
    caret-color: #1a1a1a;
}

body.light-mode .input-group-waitlist {background: rgba(0, 0, 0, 0.03);}

@media (max-width: 576px) {
    .input-group-waitlist {
        flex-direction: column;
        border-radius: 16px;
        overflow: visible;
        border: none;
        background: transparent;
        gap: 10px;
    }

    .waitlist-input {
        border: 1.5px solid rgba(255, 0, 21, 0.4);
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.04);
        padding: 14px 20px;
    }

    .waitlist-btn {
        border-radius: 50px;
        padding: 14px;
        width: 100%;
    }
    .input-group-waitlist:focus-within {box-shadow: none;}
}
.waitlist-stat-number {font-size: 1.6rem;}
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 0, 21, 0.4);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

.team-img{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;

    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;

    max-width: 70px;
}

.team-card{
    width:500px;
    min-height:300px;

    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.screenshot-item img {
    width: 250px !important; 
    height: auto;
    border-radius: 18px;
    display: block;
    user-select: none;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.screenshot-caption {
    margin-top: 12px;
    text-align: center;
    width: 100%;
}

#backToTop:hover {transform: translateY(-4px);}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    min-width: 170px;
}

.btn-store:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: var(--accent);
    background: rgba(255, 0, 21, 0.08);
    box-shadow: 0 8px 24px rgba(255, 0, 21, 0.2);
}

.btn-store-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-store-sub {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.65;
    letter-spacing: 0.3px;
    line-height: 1;
    margin-bottom: 3px;
}

.btn-store-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2px;
}

body.light-mode .btn-store {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
}

body.light-mode .btn-store:hover {
    color: var(--text-main);
    border-color: var(--accent);
    background: rgba(255, 0, 21, 0.05);
    box-shadow: 0 8px 24px rgba(255, 0, 21, 0.12);
}

@media (max-width: 576px) {
    .btn-store { min-width: 150px; padding: 10px 18px; }
    .btn-store-icon { font-size: 1.5rem; }
    .btn-store-name { font-size: 0.9rem; }
}

.loader-line.hide-line {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-explode {animation: zoomIntoRed 0.5s cubic-bezier(0.85, 0, 0.15, 1) forwards !important;}

@keyframes zoomIntoRed {
    0% { 
        transform: scale(1); 
        opacity: 1; 
    }
    70% { opacity: 1; }
    100% { 
        transform: scale(0);
        opacity: 0;
    }
}