/* Critical above-the-fold: header + hero (LCP) */

:root {
    --primary-blue: #1b4b8a;
    --primary-blue-dark: #123360;
    --primary-blue-light: #e8eff7;
    --accent-red: #e63946;
    --accent-red-dark: #c42733;
    --accent-red-light: #fcebeb;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-light: #e9ecef;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 2px 10px rgba(27, 75, 138, 0.05);
    --shadow-md: 0 10px 30px rgba(27, 75, 138, 0.08);
    --shadow-lg: 0 20px 40px rgba(27, 75, 138, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 50px 0;
}

.text-accent {
    color: var(--accent-red);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.aspect-hero {
    aspect-ratio: 800 / 866;
}

.object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 5px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .header-container {
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions-mobile {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    overflow: hidden;
    background-color: var(--bg-white);
}

.hero-bg-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, rgba(27, 75, 138, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-blue-dark);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-area {
    position: relative;
}

.hero-image-area::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* LCP: paint hero immediately without waiting for scroll-reveal JS */
#home .reveal {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        gap: 40px;
    }
}

@media (max-width: 940px) {
    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        transition: 0.4s ease-in-out;
        box-shadow: var(--shadow-lg);
    }

    .navbar.active {
        left: 0;
    }

    .header.scrolled .navbar {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 24px;
        margin-bottom: 40px;
    }

    .nav-link {
        font-size: 1.25rem;
        display: block;
        width: 100%;
    }

    .nav-actions-mobile {
        display: block;
        width: 100%;
    }

    .nav-actions-mobile .btn {
        width: 100%;
    }
}

@media (max-width: 1000px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-image-area {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-desc {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }
}
