/* === Root & Reset === */
:root {
    --black: #090909;
    --white: #fff;
    --sand: #f0ebe4;
    --blue: #482deb;
    --orange: #e86c3a;
    --easeOut: cubic-bezier(0.16, 1, 0.3, 1);
    --easeInOut: cubic-bezier(0.83, 0, 0.17, 1);
}

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

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
input { font: inherit; border: none; outline: none; background: none; }


/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 2.8rem 1.1rem;
    border-radius: 3.6rem;
    font-size: 1.5rem;
    font-weight: 450;
    line-height: 1;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.btn:hover { opacity: 0.85; }

.btn-primary { background: var(--black); color: var(--white); }


/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background 0.4s var(--easeOut), border-color 0.4s var(--easeOut);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(2rem);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr max-content;
    max-width: 172rem;
    margin-inline: auto;
    padding-inline: 2.4rem;
    column-gap: 2rem;
    height: 5.2rem;
    align-items: center;
}

.header-logo {
    width: 9rem;
    display: block;
    place-self: center start;
}

.header-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.nav-link {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 140%;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 1.2rem;
    min-height: 3.6rem;
    border-radius: 0.6rem;
    transition: background 0.3s var(--easeOut);
    cursor: pointer;
    color: inherit;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.header-cta {
    border-radius: 3.6rem;
    padding: 0.7rem 1.6rem;
    font-size: 1.2rem;
    font-weight: 450;
    gap: 0.2rem;
}


/* === Responsive === */
@media (max-width: 950px) {
    .header-nav { display: none; }

    .header-inner {
        padding-inline: 2.4rem;
        grid-template-columns: 1fr max-content;
    }
}
