/* Layout System */

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

.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

/* Grid Utilities */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.items-center {
    align-items: center;
}

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

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.gap-xl {
    gap: var(--spacing-xl);
}

/* Header Layout */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 12, 16, 0.8);
    /* Fallback */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}



.header.scrolled {
    background: rgba(10, 12, 16, 0.95);
    box-shadow: var(--shadow-md);
}



.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hero Content Alignment */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .mobile-only {
        display: flex !important;
    }

    /* Force stack on mobile */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    #nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-body);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        border-top: 1px solid var(--color-border);
    }

    #nav-menu.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-xl);
    }

    .nav-link {
        font-size: 1.5rem;
        margin-left: 0;
    }

    .hero-section {
        padding-top: calc(var(--header-height) + var(--spacing-lg));
        min-height: auto;
        /* Allow content to dictate height on mobile */
        padding-bottom: var(--spacing-2xl);
    }

    /* Reorder hero for mobile: Visual first? Or Text first? Text usually first. */
    #hero .grid-2 {
        display: flex;
        flex-direction: column-reverse;
        /* Visual on top? No, usually Visual between H1 and CTA or after. Let's keep Text first (Actionable). */
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem !important;
        /* Force smaller H1 */
    }

    .hero-section {
        text-align: center;
    }

    /* Center buttons on really small screens */
    .hero-content .flex {
        justify-content: center;
    }

    .reveal {
        transition-duration: 0.5s;
        /* Faster on mobile */
    }
}

.footer {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-surface);
    text-align: center;
}