/* Critical above-the-fold styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    background-color: var(--primary-color);
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--primary-color);
    overflow-x: hidden;
    font-display: swap;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
}

/* Critical button styles */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    z-index: 1;
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-hover);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--light-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 3px;
    background: var(--accent-color);
    transform-origin: left;
    transition: width 0.6s ease;
}

h2:hover::after {
    width: 120px;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}