/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* COLORS - DARK MODE ONLY */
:root{
    --primary-color: 10, 10, 10;
    --secondary-color: 240, 240, 245;
    --accent-color: 168, 85, 247;
    --accent-hover: 192, 132, 252;
    --surface: 20, 20, 20;
    --border: 255, 255, 255;
    --text-primary: 240, 240, 245;
    --text-secondary: 160, 160, 170;
    --primary-typo: 'Inter', sans-serif;
    --secondary-typo: 'Space Grotesk', 'Inter', sans-serif;
    --max-width: 1200px;
    --header-height: 64px;
}

/* SELECTION */
::selection{
    background-color: rgb(var(--accent-color) / 0.3);
    color: white;
}

/* SCROLLBAR */
::-webkit-scrollbar{
    width: 6px;
}

::-webkit-scrollbar-track{
    background: transparent;
}

::-webkit-scrollbar-thumb{
    background: rgb(var(--text-secondary) / 0.3);
    border-radius: 100vw;
}

::-webkit-scrollbar-thumb:hover{
    background: rgb(var(--text-secondary) / 0.5);
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

/* BODY */
body{
    color: rgb(var(--text-primary));
    background-color: rgb(var(--primary-color));
    font-family: var(--primary-typo);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* HEADER */
header{
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgb(var(--primary-color));
    border-bottom: 1px solid rgb(var(--border) / 0.08);
}

header .container{
    margin: 0 auto;
    max-width: var(--max-width);
    height: var(--header-height);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo{
    height: 36px;
    width: 36px;
    border-radius: 50%;
    transition: transform 0.2s;
}

header .logo:hover{
    transform: scale(1.08) rotate(5deg);
}

header .button{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
}

header .button:hover{
    background: rgb(var(--text-primary) / 0.05);
}

header .svg{
    height: 20px;
    width: 20px;
    fill: rgb(var(--text-primary));
}

header .nav{
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

header .ul{
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

header .li{
    margin: 0;
}

header .a{
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgb(var(--text-secondary));
    border-radius: 9999px;
    transition: color 0.15s, background-color 0.15s;
}

header .a:hover{
    color: rgb(var(--text-primary));
    background: rgb(var(--text-primary) / 0.05);
}

header .a.active{
    color: rgb(var(--accent-color));
    background: rgb(var(--accent-color) / 0.1);
}

/* MAIN */
main{
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

main a{
    text-decoration: none;
}

main .title{
    font-family: var(--secondary-typo);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin: 2rem auto;
    background: linear-gradient(135deg, rgb(var(--text-primary)), rgb(var(--accent-color)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

main li{
    margin-left: 1.5rem;
}

main h1, main h2, main h3{
    font-family: var(--secondary-typo);
    color: rgb(var(--text-primary));
}

main img{
    border-radius: 12px;
}

main .frame{
    background: rgb(var(--accent-color) / 0.06);
    border: 1px solid rgb(var(--accent-color) / 0.15);
    border-radius: 12px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    color: rgb(var(--accent-color));
    text-align: center;
}

main .date{
    margin: 2rem 0;
    text-align: right;
    color: rgb(var(--text-secondary));
    font-size: 0.875rem;
}

main .download-button{
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    margin: 1.5rem auto;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgb(var(--accent-color)), rgb(var(--accent-hover)));
    box-shadow: 0 4px 16px rgb(var(--accent-color) / 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

main .download-button:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(var(--accent-color) / 0.4);
}

/* FOOTER */
footer{
    width: 100%;
    border-top: 1px solid rgb(var(--border) / 0.08);
    background: rgb(var(--primary-color) / 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

footer .container{
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

footer .social{
    display: flex;
    gap: 0.5rem;
}

footer .social a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: rgb(var(--text-secondary));
    transition: color 0.15s, background-color 0.15s, transform 0.15s;
}

footer .social a:hover{
    color: rgb(var(--accent-color));
    background: rgb(var(--accent-color) / 0.08);
    transform: scale(1.1);
}

footer p{
    font-size: 0.8rem;
    color: rgb(var(--text-secondary));
    margin: 0;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    header .button{
        display: flex;
    }

    header{
        background: rgb(var(--primary-color));
    }

    header .nav{
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgb(var(--primary-color));
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s;
        z-index: -1;
    }

    header .nav.active{
        transform: translateY(0);
    }

    header .ul{
        flex-direction: column;
        gap: 0.5rem;
    }

    header .a{
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
    }

    main{
        padding: 1rem;
    }

    main .title{
        font-size: 1.75rem;
    }
}

@media screen and (min-width: 769px) {
    header .button{
        display: none;
    }
}
