* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background-color: var(--ink);
    color: var(--cream);
    font-family: Outfit, sans-serif;
    overflow-x: clip;
}

body.nav-locked {
    overflow: hidden;
    touch-action: none;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

input,
textarea,
select {
    font: inherit;
    font-size: 16px;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background-color: var(--button);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(181, 101, 64, 0.34);
}

.btn-primary:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(223, 191, 170, 0.2);
}

.btn-ghost:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.kicker {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 1rem;
    font-family: "Syne", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.card {
    display: block;
    min-width: 0;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(158, 152, 130, 0.25);
    background: rgba(43, 45, 47, 0.4);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card.flex {
    display: flex;
    align-items: center;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 101, 64, 0.5);
}

.card-current {
    border-color: rgba(181, 101, 64, 0.4);
    background: rgba(181, 101, 64, 0.1);
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(158, 152, 130, 0.25);
    border-radius: 999px;
    color: var(--sand);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: var(--sage-light);
    font-size: 0.875rem;
    text-decoration: none;
}

.nav-link .ti {
    font-size: 1.15rem;
    color: var(--sand);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link[data-active="true"] {
    color: var(--cream);
}

.nav-link:hover::after,
.nav-link[data-active="true"]::after {
    transform: scaleX(1);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(158, 152, 130, 0.25);
    border-radius: 50%;
    color: var(--sage-light);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    color: var(--cream);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.social-link svg {
    display: block;
    width: 18px;
    height: 18px;
}

.hero-visual {
    width: min(420px, 100%);
    justify-self: center;
}

.hero-terminal {
    width: min(380px, 100%);
    background: rgba(22, 23, 25, 0.3);
}

@media (min-width: 1024px) {
    .hero-visual {
        justify-self: end;
        width: min(440px, 100%);
    }
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(181, 101, 64, 0.5);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--cream);
    cursor: pointer;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.58);
}

.nav-backdrop.is-open {
    display: block;
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    width: min(320px, 88vw);
    height: 100%;
    height: 100svh;
    padding: max(0.85rem, env(safe-area-inset-top)) 1.15rem max(1.5rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #242628;
    border-left: 1px solid rgba(158, 152, 130, 0.25);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
}

.mobile-drawer.is-open {
    display: flex;
}

.mobile-drawer__cta {
    width: 100%;
    margin-top: auto;
}

.mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(158, 152, 130, 0.25);
}

.nav-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(181, 101, 64, 0.5);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--cream);
    cursor: pointer;
}

.nav-close:hover,
.nav-close:focus-visible {
    border-color: var(--accent);
    color: var(--white);
}

.mobile-drawer__links {
    display: grid;
    gap: 4px;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.mobile-nav-link {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 12px;
}

.mobile-nav-link::after {
    display: none;
}

.mobile-nav-link:hover,
.mobile-nav-link[data-active="true"] {
    background: rgba(181, 101, 64, 0.14);
    color: var(--cream);
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }

    .nav-toggle,
    .nav-backdrop,
    .nav-backdrop.is-open,
    .mobile-drawer,
    .mobile-drawer.is-open {
        display: none !important;
    }
}