@charset "utf-8";

:root{
    --font-body: "Nunito", system-ui, sans-serif;
    --font-display: "Rajdhani", sans-serif;
    --font-nav: "Oswald", sans-serif;

    --bg-dark: #101218;
    --bg-panel: #181b22;
    --bg-nav: rgba(14, 16, 22, .82);
    --text-primary: #ece8e0;
    --text-muted: #9a9488;
    --chrome: #c9c3b6;
    --rust: #c45a38;
    --navy: #2a3f5f;
    --line: rgba(201, 195, 182, .14);
    --shadow: 0 18px 40px rgba(0, 0, 0, .35);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --nav-h: 4.25rem;
    --text-secondary: var(--text-muted);
    --noob-blue: #b7c4d4;
    --tastics-orange: var(--rust);
    --tastics-yellow: #e4d3b4;
    --gradient: linear-gradient(135deg, #c45a38, #d4a574);
    --radius-lg: .7rem;
}

*{ padding: 0; margin: 0; outline: none; box-sizing: border-box; }

body{
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

html{ scroll-behavior: smooth; }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; height: auto; display: block; }

button{
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

h1, h2, h3, .nav-brand, .btn{
    font-family: var(--font-display);
}

#main{
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* ---------- Nav ---------- */
#nav{
    position: sticky;
    top: 0;
    z-index: 80;
    padding-top: env(safe-area-inset-top);
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    background: var(--bg-nav);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}

#nav::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--navy) 0 38%, #ece8e0 38% 62%, var(--rust) 62% 100%);
    opacity: .85;
}

.nav-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    gap: 1.5rem;
}

.nav-left{
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
}

.nav-links{
    display: flex;
    align-items: center;
    gap: .15rem;
    list-style: none;
}

.nav-drop{
    position: relative;
}

.nav-drop > button{
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    font-family: var(--font-nav);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--chrome);
    border-radius: .4rem;
    transition: color .35s var(--ease), background .35s var(--ease);
}

.nav-drop > button .chev{
    width: .55rem;
    height: .55rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .35s var(--ease);
    opacity: .7;
}

.nav-drop:hover > button,
.nav-drop.is-open > button,
.nav-drop.is-active > button{
    color: #fff;
    background: rgba(255,255,255,.05);
}

.nav-drop.is-open > button .chev,
.nav-drop:hover > button .chev{
    transform: rotate(225deg) translateY(-1px);
}

.nav-sub{
    position: absolute;
    top: calc(100% - .15rem);
    left: 0;
    min-width: 9.5rem;
    padding: .4rem;
    list-style: none;
    background: #161920;
    border: 1px solid var(--line);
    border-radius: .55rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(.45rem);
    pointer-events: none;
    transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
}

.nav-drop:focus-within .nav-sub,
.nav-drop.is-open .nav-sub{
    opacity: 1;
    visibility: visible;
    transform: translateY(.35rem);
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine){
    .nav-drop:hover .nav-sub{
        opacity: 1;
        visibility: visible;
        transform: translateY(.35rem);
        pointer-events: auto;
    }
}

.nav-sub a{
    display: block;
    padding: .55rem .75rem;
    font-family: var(--font-nav);
    font-size: .88rem;
    letter-spacing: .16em;
    color: var(--text-muted);
    border-radius: .35rem;
    transition: color .28s var(--ease), background .28s var(--ease);
}

.nav-sub a:hover,
.nav-sub a.is-active{
    color: #fff;
    background: rgba(196, 90, 56, .16);
}

.nav-user{
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 50%;
    color: var(--chrome);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.nav-user:hover,
.nav-user:focus-visible{
    color: #fff;
    border-color: rgba(196, 90, 56, .55);
    background: rgba(196, 90, 56, .12);
    transform: translateY(-1px);
}

.nav-user i{ font-size: .92rem; }

.section-kicker{
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .85rem;
    color: var(--rust);
    margin-bottom: 10px;
    text-align: center;
}

.section-title{
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    margin-bottom: 12px;
}

.auth-card{
    position: relative;
}

.auth-card:has(.page-home){
    padding-inline: 1.4rem 5.4rem;
}

.page-home{
    position: absolute;
    top: 1.1rem;
    right: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(196, 90, 56, .55);
    background: linear-gradient(135deg, rgba(196, 90, 56, .22), rgba(212, 165, 116, .12));
    color: var(--tastics-yellow);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 860px){
    :root{ --nav-h: 4.6rem; }
    .nav-inner{
        width: calc(100% - 1rem);
        gap: .75rem;
    }
    .nav-drop > button{
        min-height: 44px;
        padding: .55rem .7rem;
        letter-spacing: .06em;
    }
    .nav-user{
        width: 2.75rem;
        height: 2.75rem;
    }
}

@media (max-width: 640px){
    .nav-inner{ width: calc(100% - .85rem); }
    .page-home span{ display: none; }
    .auth-card:has(.page-home){ padding-inline: 1.15rem 3.4rem; }
}

@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
}
