:root {
    --bg-color: #02060a;
    --bg-accent: #050f1a;
    --primary-color: #00FFFF;
    --primary-glow: rgba(0, 255, 255, 0.6);
    --secondary-color: #7000FF;
    --accent-color: #FF003C;
    --text-color: #e6f1f3;
    --text-muted: #8ba8ae;
    --card-bg: rgba(5, 15, 25, 0.85);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Rimuove il flash grigio di sistema su mobile */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    overflow-y: hidden; /* Prevent scroll until initialized */
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* New Premium Background */
.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-color) 90%),
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(112, 0, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px);
    transform-origin: top;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

/* Animations */
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s;
}

.splash-content {
    text-align: center;
    padding: 20px;
    max-width: 90%;
    z-index: 10;
}

.splash-box {
    width: min(655px, 95vw);
    aspect-ratio: 1.15 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(2, 6, 10, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 20px 40px 40px 40px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15000;
    pointer-events: none;
    background: #02060a;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#matrix-canvas.active {
    display: block;
    opacity: 1;
}

.tech-line {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--primary-color);
    letter-spacing: 4px;
    opacity: 0.4;
    margin: 15px 0;
}

.tech-line.bottom {
    margin-top: 80px;
    opacity: 0.6;
    font-size: 0.65rem;
    line-height: 1.6;
}

.tech-separator {
    width: 60px;
    height: 1px;
    background: var(--primary-color);
    margin: 20px auto;
    opacity: 0.3;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#splash-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.56); /* Zoom massimizzato per impatto cinematico */
    filter: blur(2px) brightness(0.65);
}

.splash-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-color) 100%);
    z-index: 1;
}

.glitch-text {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 10vw, 3.5rem);
    color: var(--primary-color);
    letter-spacing: clamp(8px, 3vw, 15px);
    margin-bottom: 20px;
    position: relative;
    animation: textFlicker 6s linear infinite;
}

@keyframes textFlicker {
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.4; }
}

p {
    hyphens: auto;
}

#init-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 40px;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 5px;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    animation: pulseGlow 2s infinite;
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {
    #init-btn:hover {
        background: var(--primary-color);
        color: var(--bg-color);
        box-shadow: 0 0 50px var(--primary-glow);
        transform: scale(1.1);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px var(--primary-glow); border-color: rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 25px var(--primary-glow); border-color: rgba(0, 255, 255, 1); }
    100% { box-shadow: 0 0 5px var(--primary-glow); border-color: rgba(0, 255, 255, 0.3); }
}

.click-hint {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    animation: textBreathing 2s infinite;
    opacity: 0.7;
}

@keyframes textBreathing {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.splash-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 255, 0.05) 50%, transparent);
    background-size: 100% 20px;
    animation: scanline 4s linear infinite;
    pointer-events: none;
    z-index: 10000;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Navbar */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes glitch {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: rgba(2, 6, 10, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

nav.scrolled {
    padding: 15px 8%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.win-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.win-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.hero-download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-grid {
    display: flex;
    gap: 5px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.audio-toggle {
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    font-size: 0.9rem;
    margin-right: 10px;
}

@media (hover: hover) {
    .audio-toggle:hover {
        background: rgba(0, 255, 255, 0.1);
        box-shadow: 0 0 10px var(--primary-glow);
    }
}

.audio-toggle.muted {
    opacity: 0.5;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.lang-btn {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 6px 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transition: var(--transition-smooth);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

@media (hover: hover) {
    .lang-btn:hover {
        background: rgba(0, 255, 255, 0.15);
        color: var(--primary-color);
    }
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero-glass-box {
    position: relative;
    z-index: 10;
    background: rgba(2, 6, 10, 0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 10%;
    width: min(1000px, 95vw);
    border: 1px solid rgba(0, 255, 255, 0.05);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(2, 6, 10, 0.8) 0%,
        rgba(2, 6, 10, 0.6) 50%,
        rgba(2, 6, 10, 1) 100%
    );
    z-index: 1;
}

#hero-video.fade-in {
    opacity: 0.6; /* Adjust for "patina" effect transparency */
}

.hero-title {
    position: relative;
    z-index: 10;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: clamp(10px, 3vw, 25px);
    margin-bottom: 5px;
    color: var(--text-color);
    text-shadow: 0 0 30px var(--primary-glow);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-subtitle {
    position: relative;
    z-index: 10;
    font-family: var(--font-mono);
    color: var(--primary-color);
    letter-spacing: 6px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.8;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-desc {
    position: relative;
    z-index: 10;
    max-width: 700px;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 60px;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

.win-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.win-badge {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.k4-badge {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.download-link {
    text-decoration: none;
    display: inline-block;
}

.btn-download {
    position: relative;
    z-index: 10;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 18px 45px;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

@media (hover: hover) {
    .btn-download:hover {
        background: var(--primary-color);
        color: var(--bg-color);
        box-shadow: 0 0 40px var(--primary-glow);
        transform: scale(1.05);
    }
}

/* LAN Mode Banner */
.lan-banner {
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    padding: 60px 10%;
    margin: 80px 0;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lan-banner::before {
    content: '[ LINK ACTIVE ]';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary-color);
    letter-spacing: 5px;
    opacity: 0.5;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 40px;
}

.mode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.05);
}

.mode-item strong {
    font-size: 1.1rem;
    color: #fff;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.mode-icon {
    font-size: 2rem;
    transition: var(--transition-smooth);
    margin-bottom: 5px;
}

.mode-online .mode-icon { color: #00ffe7; text-shadow: 0 0 14px rgba(0, 255, 231, 0.7); }
.mode-lan .mode-icon { color: var(--primary-color); text-shadow: 0 0 10px var(--primary-glow); }
.mode-ai .mode-icon { color: #ff9d00; text-shadow: 0 0 10px rgba(255, 157, 0, 0.5); }
.mode-spec .mode-icon { color: #d400ff; text-shadow: 0 0 10px rgba(212, 0, 255, 0.5); }

.mode-item:hover .mode-icon {
    transform: scale(1.2);
}

.mode-item:hover {
    transform: translateY(-5px);
}

.lan-banner h3 {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: 5px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.lan-banner p {
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 100px 10%;
}

.section-title {
    font-family: var(--font-mono);
    color: var(--primary-color);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 100px;
    letter-spacing: 6px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.08);
    padding: 50px 40px;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
    clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    background: rgba(10, 40, 60, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    opacity: 0.8;
}

.feature-card h3 {
    font-family: var(--font-mono);
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 120px 10%;
    background: rgba(0, 0, 0, 0.4);
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.gallery-item {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.gallery-item.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.gallery-img-container {
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 15px;
    background: rgba(0, 255, 255, 0.03);
    position: relative;
    transition: var(--transition-smooth);
}

.gallery-img-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px var(--primary-glow);
}

.gallery-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 255, 255, 0.05) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 2;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition-smooth);
}

.gallery-img:hover {
    filter: brightness(1) contrast(1.1);
}

.gallery-info h3 {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.gallery-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Credits / Author Section */
.credits {
    padding: 110px 10% 90px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 130%, rgba(0, 255, 255, 0.06), transparent 60%);
}

.credits-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.credits-tag {
    font-family: var(--font-mono);
    letter-spacing: 7px;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.85;
    margin-bottom: 18px;
}

.credits-name {
    font-family: var(--font-mono);
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: clamp(3px, 1.2vw, 8px);
    color: var(--text-color);
    text-shadow: 0 0 30px var(--primary-glow);
    line-height: 1.05;
    margin-bottom: 20px;
}

.credits-rule {
    width: 80px;
    height: 2px;
    margin: 0 auto 22px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 12px var(--primary-glow);
}

.credits-role {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 28px;
}

.credits-note {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 55px;
}

.credits-music {
    display: inline-flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.credits-music-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    opacity: 0.7;
}

.credits-music-names {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .credits { padding: 80px 6% 70px; }
    .credits-note { font-size: 0.98rem; }
}

/* Footer */
footer {
    padding: 60px 10%;
    text-align: center;
    background: #010408;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-content {
    text-align: left;
}

.footer-logo {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 5px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* System Status Box */
.system-status {
    display: flex;
    gap: 30px;
    padding: 15px 25px;
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.status-item {
    display: flex;
    gap: 10px;
}

.status-label {
    color: var(--text-muted);
    opacity: 0.7;
}

.status-value {
    color: var(--primary-color);
}

.pulse-green {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: simplePulse 2s infinite;
}

@keyframes simplePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-content { text-align: center; }
    .system-status {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
}

/* Modes grid responsive */
@media (max-width: 1024px) {
    .modes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .modes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 15px;
        margin: 40px auto 0;
    }

    .mode-item {
        padding: 20px 10px;
        gap: 12px;
    }

    .mode-icon {
        font-size: 1.6rem;
    }
}

/* Mobile Responsive - Improved Hamburger Drawer */
@media (max-width: 1024px) {
    nav {
        flex-direction: row; /* Logo and Hamburger on same line */
        justify-content: space-between;
        padding: 20px 8%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Full width for mobile */
        height: 100vh;
        background: rgba(2, 6, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 10%;
        transition: var(--transition-smooth);
        z-index: 1000;
        border-left: 1px solid var(--primary-color);
    }

    .nav-links.active {
        right: 0;
    }

    .splash-box {
        background: transparent;
        border: none;
        clip-path: none;
        box-shadow: none;
        width: 100%;
        backdrop-filter: none;
    }

    .lang-selector {
        width: 100%;
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .audio-toggle {
        position: absolute;
        right: 80px; /* Posizionato a sinistra del menu hamburger */
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        background: rgba(2, 6, 10, 0.6);
        border: 1px solid var(--primary-color);
        z-index: 1100; /* Sopra l'overlay del menu */
        display: flex;
        margin: 0;
    }

    .lang-grid {
        width: 100%;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .lang-btn {
        width: 100%;
        padding: 18px;
        font-size: 1.1rem;
        text-align: center;
        clip-path: none; /* Easier to click full-width */
        border: 1px solid rgba(0, 255, 255, 0.2);
    }

    .lang-btn.active {
        border-color: var(--primary-color);
    }

    .win-badges {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .win-badge {
        margin-top: 0;
        border: 1px solid rgba(0, 255, 255, 0.2);
        font-size: 0.8rem;
        padding: 4px 10px;
        flex: 0 0 auto;
    }

    .hero-title { font-size: 3rem; }
    .gallery-item, .gallery-item.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

/* Image Modal (Lightbox) */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 6, 10, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content-container {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 80vh;
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.modal-content.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--primary-color);
    font-family: var(--font-mono);
    padding: 20px 0;
    letter-spacing: 2px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--primary-color);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.modal-close:hover {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .modal-content-container {
        width: 100%;
        padding: 0 10px;
    }
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 50px;
    }
}

/* Custom Cursor - Premium Tactical Design */
body, a, button, .lang-btn, .gallery-img, .audio-toggle, .win-badge, .menu-toggle, #init-btn, summary {
    cursor: none !important;
}

.custom-cursor {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    /* Rimuoviamo transform dalla transizione per evitare lag */
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                border-color 0.3s ease;
    transform: translate3d(-100%, -100%, 0); /* Nascosto inizialmente */
    display: none;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

@media (pointer: fine) {
    .custom-cursor {
        display: flex;
    }
}

/* Central Point */
.custom-cursor::after {
    content: '';
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px #fff;
}

.custom-cursor.hover {
    width: 52px;
    height: 52px;
    border-color: var(--accent-color); /* ROSSO Tattico per contrasto totale */
    border-width: 1px;
    background: rgba(255, 0, 60, 0.08);
}

.custom-cursor.hover::after {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: pointPulse 1s infinite;
}

@keyframes pointPulse {
    0%, 100% { opacity: 1; transform: scale(1.5); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Corner Brackets Logic */
.cursor-cross {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Brackets Styling */
.cursor-cross::before, .cursor-cross::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: #fff;
    border-style: solid;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.cursor-cross::before {
    top: -2px; left: -2px;
    border-width: 1.5px 0 0 1.5px;
}

.cursor-cross::after {
    bottom: -2px; right: -2px;
    border-width: 0 1.5px 1.5px 0;
}

/* Hover State - Dynamic Brackets */
.custom-cursor.hover .cursor-cross::before,
.custom-cursor.hover .cursor-cross::after {
    border-color: var(--accent-color);
    opacity: 1;
    width: 18px;
    height: 18px;
}

/* Extra Target Lines */
.custom-cursor.hover .cursor-cross {
    animation: rotateTarget 15s linear infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: fadeIn 2s ease;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

.arrow-scroll {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: arrowDown 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes arrowDown {
    0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.2; }
    50% { transform: translateY(10px) rotate(45deg); opacity: 1; }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(2, 6, 10, 0.8);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    visibility: hidden;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

#back-to-top:focus {
    outline: none;
    background: rgba(2, 6, 10, 0.8);
}

@media (hover: hover) {
    #back-to-top:hover {
        background: var(--primary-color);
        color: var(--bg-color);
        box-shadow: 0 0 20px var(--primary-glow);
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    #back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Landscape Optimization for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 5% 40px;
        min-height: auto;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        margin-bottom: 20px;
    }
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .hero-glass-box {
        padding: 30px 5%;
    }
    .scroll-indicator {
        display: none; /* Rimuoviamo distrazioni in orizzontale */
    }
    .nav-links {
        padding-top: 80px;
    }
    .gallery-grid {
        gap: 60px;
    }
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #fff);
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 2000;
    transition: width 0.1s ease-out;
}

/* Tactical Active State */
button:active, .lang-btn:active, .gallery-img:active {
    transform: scale(0.96) !important;
    filter: brightness(1.2);
}

/* Skeleton Loading Pattern */
.gallery-img-container {
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(0, 255, 255, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
    position: relative;
    overflow: hidden;
}

.gallery-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* ===== ARIA SECTION ===== */
.aria-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: center;
    padding: 120px 10%;
    position: relative;
    background: radial-gradient(ellipse at 25% 50%, rgba(0, 255, 255, 0.06), transparent 60%);
}

.aria-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.aria-frame {
    position: relative;
    width: min(380px, 80vw);
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background: rgba(0, 255, 255, 0.03);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.12), inset 0 0 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
    animation: ariaFloat 7s ease-in-out infinite;
}

@keyframes ariaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.aria-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.05);
}

.aria-base { z-index: 1; }

/* Blink overlay: closed-eye frame flashes briefly. Mouth stays closed in both frames. */
.aria-blink {
    z-index: 2;
    opacity: 0;
    animation: ariaBlink 7s infinite;
}

@keyframes ariaBlink {
    0%, 90%, 100% { opacity: 0; }
    92%, 95.5% { opacity: 1; }
    /* tiny double-blink */
    97%, 99% { opacity: 0; }
    97.8%, 98.4% { opacity: 1; }
}

.aria-scan {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 255, 0.08) 50%, transparent);
    background-size: 100% 16px;
    animation: scanline 5s linear infinite;
    mix-blend-mode: screen;
}

.aria-frame-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    z-index: 4;
    opacity: 0.7;
}
.aria-frame-corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.aria-frame-corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.aria-frame-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.aria-frame-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.aria-status-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    opacity: 0.85;
}

.aria-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: simplePulse 2s infinite;
}

.aria-label {
    font-family: var(--font-mono);
    color: var(--primary-color);
    letter-spacing: 4px;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

.aria-name {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    letter-spacing: clamp(6px, 2vw, 14px);
    color: var(--text-color);
    text-shadow: 0 0 30px var(--primary-glow);
    margin-bottom: 10px;
}

.aria-tagline {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 25px;
    opacity: 0.9;
}

.aria-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin-bottom: 35px;
}

.aria-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aria-points li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

.aria-bullet {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-shadow: 0 0 12px var(--primary-glow);
    flex-shrink: 0;
}

/* ===== CAMPAIGN SECTION ===== */
.campaign-section {
    position: relative;
    padding: 120px 10%;
    overflow: hidden;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    background:
        linear-gradient(180deg, rgba(112, 0, 255, 0.06), transparent 40%),
        rgba(0, 0, 0, 0.35);
}

.campaign-grid-fx {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    z-index: 0;
}

.campaign-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.campaign-tag {
    font-family: var(--font-mono);
    letter-spacing: 6px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-shadow: 0 0 14px rgba(112, 0, 255, 0.6);
    margin-bottom: 20px;
}

.campaign-h2 {
    margin-bottom: 60px;
}

.campaign-lead {
    color: var(--text-color);
    font-size: 1.25rem;
    max-width: 720px;
    margin: 0 auto 60px;
    opacity: 0.92;
}

.campaign-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.cstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cstat-num {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 25px var(--primary-glow);
    line-height: 1;
}

.cstat-lbl {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.era-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.era-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
}

.era-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.05);
}

.era-name {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.era-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), var(--primary-color), rgba(0, 255, 255, 0.1));
    opacity: 0.5;
}

.era-final .era-num {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(255, 0, 60, 0.08);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
}

.era-final .era-name {
    color: var(--accent-color);
}

/* ===== ARIA / CAMPAIGN RESPONSIVE ===== */
@media (max-width: 1024px) {
    .aria-section {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding: 90px 8%;
    }
    .aria-desc { margin-left: auto; margin-right: auto; }
    .aria-points { align-items: center; }
    .aria-points li { justify-content: center; }
}

@media (max-width: 768px) {
    .campaign-stats { gap: 35px; }
    .cstat-num { font-size: 2.6rem; }
    .era-line { width: 22px; }
    .era-node { min-width: 70px; }
    .era-name { font-size: 0.65rem; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .aria-frame { animation: none; }
    .aria-blink { animation: none; opacity: 0; }
    .aria-scan { animation: none; }
    html, body { scroll-behavior: auto; }
    .secrets-section::before,
    .secrets-corner,
    .secrets-tag,
    .secret-card .secret-icon,
    .secrets-cta-line::after,
    .btn-download-lg { animation: none !important; }
}

/* ===== SMOOTH SCROLL + ANCHOR OFFSET ===== */
html, body { scroll-behavior: smooth; }
#modes, #aria, #campaign, #gallery, #download, #faq {
    scroll-margin-top: 90px;
}

/* ===== NAV ANCHORS ===== */
.nav-anchors {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
}

.nav-anchor {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-anchor::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-glow);
    transition: width 0.3s ease;
}

@media (hover: hover) {
    .nav-anchor:hover { color: var(--primary-color); }
    .nav-anchor:hover::after { width: 100%; }
}

.nav-anchor-cta {
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 7px 16px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    background: rgba(0, 255, 255, 0.06);
}

.nav-anchor-cta::after { display: none; }

@media (hover: hover) {
    .nav-anchor-cta:hover {
        background: var(--primary-color);
        color: var(--bg-color);
        box-shadow: 0 0 16px var(--primary-glow);
    }
}

@media (max-width: 1024px) {
    .nav-anchors {
        flex-direction: column;
        gap: 28px;
        margin-bottom: 50px;
        width: 100%;
        max-width: 300px;
    }
    .nav-anchor {
        font-size: 1.1rem;
        text-align: center;
    }
    .nav-anchor-cta {
        width: 100%;
        text-align: center;
        padding: 16px;
        clip-path: none;
        border: 1px solid var(--primary-color);
    }
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    position: relative;
    padding: 120px 10%;
    overflow: hidden;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
    background:
        linear-gradient(180deg, rgba(0, 255, 255, 0.05), transparent 45%),
        rgba(0, 0, 0, 0.35);
    text-align: center;
}

.download-grid-fx {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    z-index: 0;
}

.download-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.download-tag {
    font-family: var(--font-mono);
    letter-spacing: 6px;
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.7;
    margin-bottom: 20px;
}

.dl-h2 { margin-bottom: 30px; }

.dl-sub {
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 620px;
    margin: 0 auto 35px;
}

.dl-badges {
    margin: 0 auto 40px;
    flex-wrap: wrap;
}

.free-badge {
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
    background: rgba(0, 255, 136, 0.08);
}

.btn-download-lg {
    padding: 22px 60px;
    font-size: 1.2rem;
    animation: ctaBreathe 2.6s ease-in-out infinite;
}

@media (hover: hover) {
    .btn-download-lg:hover { animation: none; }
}

@keyframes ctaBreathe {
    0%, 100% { box-shadow: 0 0 12px rgba(0, 255, 255, 0.25); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.55); }
}

.dl-meta {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 100px 10%;
}

.faq-section .section-title { margin-bottom: 60px; }

.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid rgba(0, 255, 255, 0.12);
    background: var(--card-bg);
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(0, 255, 255, 0.35);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 28px;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--text-color);
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

@media (hover: hover) {
    .faq-item summary:hover { color: var(--primary-color); }
}

.faq-item p {
    padding: 0 28px 24px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .download-section, .faq-section { padding: 80px 6%; }
    .btn-download-lg { padding: 18px 40px; font-size: 1.05rem; }
    .faq-item summary { padding: 18px 20px; font-size: 0.95rem; }
    .faq-item p { padding: 0 20px 20px; }
}

/* ===== SECRETS / EASTER EGG TEASER ===== */
.secrets-section {
    position: relative;
    padding: 120px 10%;
    overflow: hidden;
    border-top: 1px solid rgba(112, 0, 255, 0.18);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(112, 0, 255, 0.10), transparent 60%),
        rgba(0, 0, 0, 0.45);
    text-align: center;
}

.secrets-grid-fx {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(112, 0, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 0, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
    z-index: 0;
}

.secrets-inner {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
}

.secrets-tag {
    font-family: var(--font-mono);
    letter-spacing: 6px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-shadow: 0 0 14px rgba(112, 0, 255, 0.6);
    margin-bottom: 20px;
}

.secrets-h2 { margin-bottom: 30px; }
.secrets-h2::after {
    background: var(--secondary-color);
    box-shadow: 0 0 12px rgba(112, 0, 255, 0.6);
}

.secrets-lead {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 760px;
    margin: 0 auto 60px;
    opacity: 0.9;
}

.secrets-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 55px;
}

.secret-card {
    position: relative;
    background-color: rgba(12, 6, 26, 0.6);
    background-image: linear-gradient(rgba(112, 0, 255, 0.045) 50%, transparent 50%);
    background-size: 100% 4px;
    border: 1px solid rgba(112, 0, 255, 0.18);
    padding: 42px 28px;
    text-align: left;
    overflow: hidden;
    clip-path: polygon(0 0, 92% 0, 100% 12%, 100% 100%, 8% 100%, 0 88%);
    transition: var(--transition-smooth);
}

/* Corner brackets (alto-sx + basso-dx) */
.secret-card::before,
.secret-card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--secondary-color);
    border-style: solid;
    opacity: 0.55;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.secret-card::before { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; }
.secret-card::after { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; }

@media (hover: hover) {
    .secret-card:hover {
        transform: translateY(-8px);
        border-color: var(--secondary-color);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 24px rgba(112, 0, 255, 0.25);
    }
    .secret-card:hover::before,
    .secret-card:hover::after {
        width: 22px;
        height: 22px;
        opacity: 1;
        box-shadow: 0 0 10px rgba(112, 0, 255, 0.5);
    }
}

.secret-icon {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: var(--secondary-color);
    text-shadow: 0 0 12px rgba(112, 0, 255, 0.6);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.secret-card h3 {
    font-family: var(--font-mono);
    color: #c9a3ff;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.secret-card p {
    color: var(--text-muted);
    font-size: 0.97rem;
    position: relative;
    z-index: 1;
}

.secrets-cta-line {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-style: italic;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Caret da terminale lampeggiante dopo la domanda finale */
.secrets-cta-line::after {
    content: '_';
    margin-left: 4px;
    font-style: normal;
    color: var(--primary-color);
    animation: caretBlink 1.1s steps(1) infinite;
}

/* Scanline animata sopra l'intera sezione */
.secrets-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(112, 0, 255, 0.05) 50%, transparent);
    background-size: 100% 16px;
    animation: scanline 7s linear infinite;
    opacity: 0.4;
    mix-blend-mode: screen;
}

/* Cornice tattica ad angoli "classified" */
.secrets-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid var(--secondary-color);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
    box-shadow: 0 0 14px rgba(112, 0, 255, 0.4);
    animation: cornerPulse 4s ease-in-out infinite;
}
.secrets-corner.tl { top: 26px; left: 26px; border-right: 0; border-bottom: 0; }
.secrets-corner.tr { top: 26px; right: 26px; border-left: 0; border-bottom: 0; }
.secrets-corner.bl { bottom: 26px; left: 26px; border-right: 0; border-top: 0; }
.secrets-corner.br { bottom: 26px; right: 26px; border-left: 0; border-top: 0; }

/* Tag "classificato" che respira */
.secrets-tag { animation: tagBreathe 3s ease-in-out infinite; }

/* Flicker glitch sulle icone redatte, sfalsato per card */
.secret-card:nth-child(1) .secret-icon { animation: iconFlicker 5s infinite; }
.secret-card:nth-child(2) .secret-icon { animation: iconFlicker 5s infinite 1.6s; }
.secret-card:nth-child(3) .secret-icon { animation: iconFlicker 5s infinite 3.1s; }

@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cornerPulse { 0%, 100% { opacity: 0.32; } 50% { opacity: 0.7; } }
@keyframes tagBreathe {
    0%, 100% { text-shadow: 0 0 8px rgba(112, 0, 255, 0.4); }
    50% { text-shadow: 0 0 18px rgba(112, 0, 255, 0.9); }
}
@keyframes iconFlicker {
    0%, 93%, 100% { opacity: 0.9; }
    94% { opacity: 0.25; }
    95% { opacity: 1; }
    96% { opacity: 0.4; }
    97% { opacity: 0.95; }
}

@media (max-width: 768px) {
    .secrets-section { padding: 80px 6%; }
    .secrets-cta-line { font-size: 1.15rem; }
    .secret-card { padding: 32px 22px; }
    .secrets-corner { width: 18px; height: 18px; }
    .secrets-corner.tl, .secrets-corner.tr { top: 16px; }
    .secrets-corner.bl, .secrets-corner.br { bottom: 16px; }
    .secrets-corner.tl, .secrets-corner.bl { left: 16px; }
    .secrets-corner.tr, .secrets-corner.br { right: 16px; }
}
