:root {
    --bg-main: #060606;
    --bg-darker: #020202;
    --bg-surface: #0a0a0c;
    --text-main: #e0e0e0;
    --text-dim: #777777;
    --accent-blue: #0055ff;
    --accent-orange: #ff4500;
    --grid-line: rgba(255, 255, 255, 0.04);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--text-main);
    color: var(--bg-main);
}

/* Background Grid */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 5vw 5vw;
    pointer-events: none;
    z-index: 0;
}

/* Base Layout */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    position: relative;
    border-bottom: 1px solid var(--grid-line);
}

/* Hero Section */
.hero {
    text-transform: uppercase;
    text-align: center;
    background: radial-gradient(circle at center, var(--bg-surface) 0%, var(--bg-main) 100%);
}

.hero-logo {
    max-width: 500px;
    width: 90vw;
    height: auto;
    margin: 0 auto 3rem auto;
    display: block;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

.line {
    width: 100px;
    height: 2px;
    background-color: var(--accent-orange);
    margin: 3rem auto 0;
}

/* Block 1 - Hosting */
.block-hosting {
    justify-content: flex-start;
}

.vertical-text-container {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.5;
    text-transform: lowercase;
    color: var(--text-main);
    letter-spacing: 0.1em;
}

.vertical-text-container p {
    margin-left: 3rem;
    padding-left: 1rem;
    border-left: 1px solid var(--grid-line);
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    margin: 0 10px;
}

/* Block 2 - VPS */
.dark-zone {
    background-color: var(--bg-darker);
}

.dense-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.dense-text p {
    font-weight: 600;
}

/* Block 3 - Architetture */
.structural-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background-color: var(--grid-line);
    width: 100%;
    max-width: 1200px;
}

.grid-item {
    background-color: var(--bg-main);
    padding: 3rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.grid-item:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
}

.grid-item.accent {
    color: var(--accent-orange);
}

.grid-item.accent:hover {
    background-color: var(--accent-orange);
    color: var(--bg-darker);
}

/* Block 4 - Rete & Sicurezza */
.block-net {
    background: repeating-linear-gradient(45deg,
            var(--bg-darker),
            var(--bg-darker) 10px,
            var(--bg-main) 10px,
            var(--bg-main) 20px);
}

.compact-zone {
    background-color: var(--bg-darker);
    padding: 4rem;
    border: 1px solid var(--grid-line);
    display: flex;
    align-items: center;
    gap: 3rem;
}

.text-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-group span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-dim);
}

.line-v {
    width: 1px;
    height: 150px;
    background-color: var(--accent-blue);
}

/* Block 5 - Continuità */
.block-time {
    min-height: auto;
    padding-top: 15vh;
    padding-bottom: 15vh;
}

.timeline-block {
    width: 100%;
    max-width: 800px;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-orange);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.timeline-list {
    list-style: none;
    border-left: 2px solid var(--grid-line);
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-list li {
    position: relative;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    text-transform: lowercase;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 1px;
    background-color: var(--text-main);
}

/* Block 6 - Ecosistema */
.block-ecosystem {
    flex-direction: column;
    text-align: center;
    border-bottom: none;
    min-height: auto;
    padding-top: 10vh;
    padding-bottom: 5vh;
}

.manifesto {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.sub-text {
    font-family: var(--font-body);
    color: var(--text-dim);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2vh;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 4rem;
    background-color: rgba(0, 85, 255, 0.05);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 85, 255, 0.3), inset 0 0 10px rgba(0, 85, 255, 0.15);
    text-shadow: 0 0 8px rgba(0, 85, 255, 0.6);
}

.cta-button:hover {
    color: var(--bg-main);
    background-color: var(--accent-blue);
    box-shadow: inset 0 0 20px 0 rgba(0, 85, 255, 0.5), 0px 0px 15px rgba(0, 85, 255, 0.8);
    transform: scale(1.05);
}

/* Footer / Link */
.footer {
    padding: 2.5vh;
    text-align: center;
    border-top: 1px solid var(--grid-line);
    background: radial-gradient(circle at center, var(--bg-surface) 0%, var(--bg-main) 100%);
    position: relative;
}

.footer-content {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-content:hover {
    opacity: 1;
}

.footer-sub {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.footer-copyright {
    font-size: 0.7rem;
    opacity: 0.5;
}

.site-version {
    position: absolute;
    bottom: 2vh;
    right: 2.5vw;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    opacity: 0.8;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    user-select: none;
}

.site-version:hover {
    opacity: 0.9;
    color: var(--accent-orange);
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
}

/* Animations Base Classes */
.reveal,
.reveal-side,
.reveal-scale {
    opacity: 0;
    visibility: hidden;
}

.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    /* Static scanlines and vignette */
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 85, 255, 0.04) 2px,
            rgba(0, 85, 255, 0.04) 4px);
    box-shadow: inset 0 0 15vw rgba(0, 0, 0, 0.95);
    animation: hudFlicker 4s infinite alternate;
}

/* Pulsing Cyberpunk Corner Brackets */
.hud-overlay::before,
.hud-overlay::after {
    content: '';
    position: absolute;
    width: 8vw;
    height: 8vw;
    min-width: 50px;
    min-height: 50px;
    opacity: 0.6;
}

/* Top Left */
.hud-overlay::before {
    top: 5vh;
    left: 5vw;
    border-top: 3px solid var(--accent-orange);
    border-left: 3px solid var(--accent-orange);
    filter: drop-shadow(0 0 8px var(--accent-orange));
    animation: hudPulse 2.5s infinite alternate;
}

/* Bottom Right */
.hud-overlay::after {
    bottom: 5vh;
    right: 5vw;
    border-bottom: 3px solid var(--accent-blue);
    border-right: 3px solid var(--accent-blue);
    filter: drop-shadow(0 0 8px var(--accent-blue));
    animation: hudPulse 2.5s infinite alternate 1s;
}

@keyframes hudPulse {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.9;
    }
}

@keyframes hudFlicker {
    0% {
        opacity: 0.95;
    }

    5% {
        opacity: 0.85;
    }

    10% {
        opacity: 0.95;
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5vh 5vw;
        border-bottom: none;
    }

    .hero-logo {
        width: 80vw;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .manifesto {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .hud-overlay::before,
    .hud-overlay::after {
        min-width: 30px;
        min-height: 30px;
        border-width: 2px;
    }
}