@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("../immagini/cursor.png") 12 12, auto;
}

:root,
html,
body {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    cursor: url("../immagini/cursor.png") 12 12, auto;
}

body {
    font-family: "Space Mono", monospace;
    background: #EEEEEE;
    color: #000000;
    height: 100vh;
    overflow: hidden; /* no scroll */
    cursor: url("../immagini/cursor.png") 12 12, auto;
}

body.home-page {
    min-height: 100vh;
}

html {
    background: #EEEEEE;
}

/* Navbar */
.navbar {
    height: 54px;
    border-bottom: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 6vw, 64px);
    position: relative;
    text-transform: uppercase;
    font-weight: 700;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.06);
}

.nav-links {
    list-style: none;
    display: flex;
    --nav-gap: clamp(140px, 18vw, 480px);
    gap: var(--nav-gap);
    font-size: 16px;
    letter-spacing: 1.9px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 54px;
    align-items: center;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 100%;
    cursor: url("../immagini/cursor.png") 12 12, auto;
}

.nav-links li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links li::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 2px;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-links li:hover::before {
    transform: scaleX(1);
}

.nav-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(var(--nav-gap) / -2);
    top: 0;
    height: 100%;
    width: 1px;
    background: #000000;
}

/* Hero */
.hero {
    min-height: calc(100vh - 54px);
    height: auto;
    display: flex;
    align-items: center;
    padding-left: clamp(20px, 10vw, 128px);
}

.hero-content {
    max-width: 900px;
}

h1 {
    font-size: clamp(28px, 4.4vw, 42px);
    line-height: 1.25;
    font-weight: 300;
}

h1 span {
    color: #bfbfbf;
    font-size: 150px;
}

.subtitle {
    margin-top: 24px;
    max-width: 820px;
    font-size: clamp(13px, 2vw, 16px);
    line-height: 1.6;
    letter-spacing: 0.8px;
}

.buttons {
    margin-top: 28px;
    display: flex;
    gap: 32px;
}

.primary,
.secondary {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    cursor: url("../immagini/cursor.png") 12 12, auto;
    transition: transform 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary {
    background: #000;
    color: #EEEEEE;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    letter-spacing: 0.8px;
}

.secondary {
    background: transparent;
    border: 1px solid #000;
    padding: 14px 26px;
    font-size: 14px;
    color: #000000;
}

.primary:hover,
.secondary:hover {
    transform: scale(1.04);
}

.corner-code {
    position: absolute;
    right: 48px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}

.corner-code .footer-svg-1 {
    display: block;
    height: 16px;
    width: auto;
}

.corner-code .footer-svg-1._1 {
    height: 19px;
}

@media (max-width: 1200px) {
    .nav-links {
        --nav-gap: clamp(60px, 12vw, 200px);
        font-size: 14px;
    }
}

@media (max-height: 700px) {
    .hero {
        align-items: flex-start;
        padding-top: 32px;
        padding-bottom: 48px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 32px;
    border: 1px solid #000000;
    background: transparent;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

.nav-toggle-line {
    width: 18px;
    height: 2px;
    background: #000000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
        display: flex;
        flex-direction: column;
    }

    body.home-page {
        min-height: 100dvh;
        overflow: hidden;
    }

    .navbar {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 54px;
        height: auto;
        padding: 16px 20px 20px;
        flex-direction: column;
        gap: 12px;
        background: #EEEEEE;
        border-bottom: 1px solid #000000;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        height: auto;
    }

    .nav-links li::before {
        bottom: -4px;
    }

    .nav-links li:not(:last-child)::after {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 24px 20px;
        flex: 1;
        align-items: center;
        justify-content: center;
        text-align: left;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        font-size: 34px;
    }

    .subtitle {
        font-size: 14px;
    }

    .buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .corner-code {
        position: static;
        width: 100%;
        justify-content: flex-end;
        padding: 0 20px 24px;
        margin-top: auto;
    }
}
