/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-light: #f2f2f2;
    --gray-mid: #999999;

    --font-display: 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --size-xs: 0.75rem;
    --size-sm: 0.875rem;
    --size-base: 1rem;
    --size-md: 1.25rem;
    --size-lg: 1.75rem;
    --size-xl: 2.5rem;
    --size-2xl: 4rem;
    --size-3xl: 6.5rem;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 700;
    --weight-black: 900;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --max-width: 1140px;
    --transition: 0.2s ease;
}

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

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

body {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: var(--size-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: var(--weight-black);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--size-3xl);
}

h2 {
    font-size: var(--size-2xl);
}

h3 {
    font-size: var(--size-xl);
}

h4 {
    font-size: var(--size-lg);
}

p {
    font-size: var(--size-base);
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================================
   NAV
   ============================================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--white);
    border-bottom: 1px solid var(--black);
}

nav .logo {
    font-weight: var(--weight-black);
    font-size: var(--size-base);
    letter-spacing: -0.01em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

nav ul a {
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    position: relative;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width var(--transition);
}

nav ul a:hover::after {
    width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--black);
}

.hero h1 {
    margin-bottom: var(--spacing-sm);
}

.hero .tagline {
    font-size: var(--size-md);
    font-weight: var(--weight-medium);
    max-width: 55ch;
    margin-bottom: var(--spacing-md);
    color: var(--gray-mid);
}

.hero .cta {
    display: inline-block;
    font-size: var(--size-sm);
    font-weight: var(--weight-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--black);
    padding-bottom: 2px;
    transition: opacity var(--transition);
}

.hero .cta:hover {
    opacity: 0.5;
}

/* ============================================================
   FADE IN ANIMATION
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.hero h1 {
    animation: fadeUp 0.7s ease forwards;
}

.hero .tagline {
    animation: fadeUp 0.7s 0.15s ease both;
}

.hero .cta {
    animation: fadeUp 0.7s 0.3s ease both;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    h1 {
        font-size: var(--size-2xl);
    }

    h2 {
        font-size: var(--size-xl);
    }

    .hero {
        padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md);
    }
}
