:root {
    --bg-dark: #000;
    --text-main: #fff;
    --text-muted: #888;
    --primary: #fff;
    --primary-hover: #f0f0f0;
    --nav-bg: rgb(0 0 0 / 50%);
    --border-color: rgb(255 255 255 / 8%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background-color: #050505; /* Nero molto profondo e pulito */
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

a,
button,
input,
select {
    min-width: 0;
}

html {
    scrollbar-color: rgb(255 255 255 / 32%) #050505;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgb(255 255 255 / 42%),
        rgb(255 255 255 / 18%)
    );
    border: 2px solid #050505;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgb(255 255 255 / 62%),
        rgb(255 255 255 / 30%)
    );
}

/* Navbar */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-decoration: none;
}

.nav-brand img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    min-width: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.arrow {
    width: 7px;
    height: 7px;
    border-right: 1.8px solid currentcolor;
    border-bottom: 1.8px solid currentcolor;
    opacity: 0.72;
    transform: translateY(-2px) rotate(45deg);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
    flex: 0 0 auto;
    margin-left: 2px;
}

.dropdown:hover .arrow {
    opacity: 1;
    transform: translateY(1px) rotate(225deg);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px;
}

.dropdown-content {
    visibility: hidden;
    position: absolute;
    top: 58px;
    left: 50%;
    background-color: rgb(12 12 14 / 98%);
    min-width: 320px;
    box-shadow: 0 18px 42px rgb(0 0 0 / 55%);
    border-radius: 10px;
    padding: 8px;
    z-index: 1000;
    border: 1px solid rgb(255 255 255 / 8%);
    opacity: 0;
    transform: translate(-50%, 6px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.dropdown-item {
    display: flex !important;
    align-items: flex-start !important;
    padding: 11px 12px;
    text-decoration: none;
    gap: 16px !important;
    border-radius: 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgb(255 255 255 / 5%);
}

.dropdown-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-main);
    margin-top: 2px;
    object-fit: contain;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.dropdown-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.3;
}

/* Hero Section */
.hero,
.home-hero {
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    display: grid;
    grid-template-columns: minmax(410px, 0.72fr) minmax(610px, 1.28fr);
    gap: 64px;
    align-items: center;
    padding: 72px 64px 58px;
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.hero-content,
.home-copy {
    max-width: 640px;
    animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-align: left;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    color: rgb(255 255 255 / 72%);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 999px;
    background: rgb(255 255 255 / 4.5%);
}

h1 {
    font-size: clamp(4.1rem, 6.2vw, 7.1rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.9;
    margin-bottom: 26px;
    color: #fff;
    overflow-wrap: anywhere;
}

.subtitle {
    font-size: 1.13rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 500;
    max-width: 590px;
    overflow-wrap: anywhere;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: var(--bg-dark);
    text-decoration: none;
    min-height: 58px;
    padding: 0 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 0 rgb(255 255 255 / 20%);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgb(255 255 255 / 25%);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-secondary-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1px solid rgb(255 255 255 / 10%);
    color: #fff;
    background: rgb(255 255 255 / 6.5%);
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 800;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.btn-secondary-home:hover {
    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 255 255 / 18%);
}

.platforms {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
    max-width: 520px;
}

.hero-metrics div {
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgb(255 255 255 / 3.5%);
}

.hero-metrics strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
}

.hero-metrics span {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Mockup Section */
.mockup-container,
.home-visual {
    width: 100%;
    min-width: 0;
    perspective: 1200px;
    animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    position: relative;
    border-radius: 22px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.visual-label {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin: 0 8px 14px;
    color: rgb(255 255 255 / 48%);
    font-size: 0.8rem;
    font-weight: 800;
}

.visual-label strong {
    color: rgb(255 255 255 / 82%);
    font-size: 0.86rem;
}

.mockup-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 12%);
    box-shadow:
        0 26px 90px rgb(0 0 0 / 68%),
        inset 0 1px 0 rgb(255 255 255 / 8%);
    background: linear-gradient(180deg, #171719 0%, #09090b 100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-wrapper:hover {
    transform: translateY(-4px);
}

/* Fake macOS titlebar */
.mockup-titlebar {
    height: 42px;
    background: rgb(255 255 255 / 3.5%);
    border-bottom: 1px solid rgb(255 255 255 / 7%);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.mockup-dot.red {
    background: #ff5f56;
}

.mockup-dot.yellow {
    background: #ffbd2e;
}

.mockup-dot.green {
    background: #27c93f;
}

.mockup-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 620px;
    opacity: 0.94;
}

.mockup-overlay {
    position: absolute;
    inset: auto 0 0;
    height: 18%;
    background: linear-gradient(to bottom, transparent, rgb(5 5 5 / 88%));
    pointer-events: none;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (width <= 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        height: auto;
        min-height: 72px;
        max-height: 100vh;
        overflow-y: auto;
        align-items: center;
        flex-flow: row wrap;
        padding: 12px 20px;
        background: rgb(5 5 5 / 85%);
    }

    .nav-brand {
        font-size: 1.08rem;
    }

    .nav-brand img {
        width: 28px;
        height: 28px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgb(255 255 255 / 5%);
        padding-bottom: 24px;
        gap: 12px;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links > a,
    .dropbtn {
        width: 100%;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 8px;
        background: rgb(255 255 255 / 4.5%);
        border: 1px solid rgb(255 255 255 / 6%);
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .dropdown {
        height: auto;
        position: static;
        flex: 0 0 auto;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        min-width: 0;
        max-height: none;
        overflow-y: visible;
        transform: none;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 8px 0 0 16px;
        margin-top: 0;
    }

    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: flex;
        flex-direction: column;
        transform: none;
    }

    .dropdown-content::before {
        display: none;
    }

    .dropdown-subtitle {
        font-size: 0.78rem;
    }

    h1 {
        font-size: clamp(2.4rem, 12vw, 3.8rem);
        line-height: 0.94;
    }

    .hero,
    .home-hero {
        margin-top: 116px;
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 34px 18px 48px;
        gap: 34px;
    }

    .home-copy {
        max-width: none;
    }

    .subtitle {
        font-size: 1rem;
        max-width: none;
    }

    .hero-actions,
    .platforms {
        justify-content: flex-start;
    }

    .btn-primary,
    .btn-secondary-home {
        width: 100%;
        min-height: 52px;
        font-size: 0.98rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .visual-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin: 0 2px 10px;
    }

    .mockup-wrapper {
        border-radius: 12px;
    }

    .mockup-titlebar {
        height: 34px;
    }

    .mockup-dot {
        width: 10px;
        height: 10px;
    }
}

@media (width >= 769px) and (width <= 1160px) {
    .navbar {
        padding: 0 26px;
    }

    .nav-links {
        gap: 16px;
    }

    .hero,
    .home-hero {
        grid-template-columns: 1fr;
        padding: 58px 32px;
    }

    .home-copy {
        max-width: 780px;
    }

    .subtitle {
        max-width: 720px;
    }
}

@media (width <= 420px) {
    .hero-kicker {
        font-size: 0.68rem;
    }

    .hero-metrics {
        gap: 8px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

.cookie-banner {
    position: fixed;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
    background: rgb(10 10 12 / 96%);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 10px;
    box-shadow: 0 18px 60px rgb(0 0 0 / 55%);
    backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.cookie-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-banner a {
    color: #fff;
    text-underline-offset: 3px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions button {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid rgb(255 255 255 / 10%);
    padding: 0 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
}

.cookie-accept {
    background: #fff;
    color: #050505;
}

.cookie-decline {
    background: rgb(255 255 255 / 7%);
    color: #fff;
}

@media (width <= 720px) {
    .cookie-banner {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions button {
        flex: 1;
    }
}

/* Support Section */
.support-section {
    padding: 100px 20px;
    background: radial-gradient(
        ellipse at bottom,
        rgb(0 112 186 / 8%) 0%,
        #050505 60%
    );
    border-top: 1px solid rgb(255 255 255 / 3%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.support-header {
    margin-bottom: 40px;
}

.support-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgb(255 45 85 / 10%);
    border: 1px solid rgb(255 45 85 / 20%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #ff2d55;
    box-shadow: 0 8px 32px rgb(255 45 85 / 15%);
}

.support-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, rgb(255 255 255 / 70%));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.support-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.support-actions {
    margin-bottom: 64px;
}

.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0070ba;
    color: #fff;
    text-decoration: none;
    min-height: 56px;
    padding: 0 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 32px rgb(0 112 186 / 30%);
    border: 1px solid rgb(255 255 255 / 10%);
}

.btn-donate:hover {
    background: #005ea6;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgb(0 112 186 / 40%);
    border-color: rgb(255 255 255 / 20%);
}

.donators-wrapper {
    background: rgb(255 255 255 / 2%);
    border: 1px solid rgb(255 255 255 / 5%);
    border-radius: 24px;
    padding: 32px;
    text-align: left;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 64px rgb(0 0 0 / 40%);
}

.donators-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.donators-header h3 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.donators-badge {
    background: rgb(0 112 186 / 15%);
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgb(56 189 248 / 20%);
}

.donators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.donator-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgb(255 255 255 / 3%);
    border: 1px solid rgb(255 255 255 / 4%);
    padding: 16px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.donator-card:hover {
    background: rgb(255 255 255 / 6%);
    border-color: rgb(255 255 255 / 10%);
    transform: translateY(-2px);
}

.donator-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #0070ba);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgb(0 112 186 / 30%);
}

.donator-card:nth-child(2) .donator-avatar {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 4px 12px rgb(217 119 6 / 30%);
}

.donator-card:nth-child(3) .donator-avatar {
    background: linear-gradient(135deg, #94a3b8, #475569);
    box-shadow: 0 4px 12px rgb(71 85 105 / 30%);
}

.donator-card:nth-child(4) .donator-avatar {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    box-shadow: 0 4px 12px rgb(126 34 206 / 30%);
}

.donator-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.donator-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.donator-tier {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-main);
}
