:root {
    --bg-color: #0a0a0a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-color: #ffffff;
    --card-bg: #111111;
    --card-border: #333333;
    --card-hover-border: #666666;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.site-nav a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
}

.hero-headline {
    font-size: 5rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 500;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Projects Section (Bento Grid) */
.projects-section {
    padding: 4rem 0 8rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(400px, auto);
}

/* Card Styles */
.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.card-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.card-text h3 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-text p {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-visual {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-visual img {
    transform: scale(1.03);
}

/* Grid Spans */
.card-flow {
    grid-column: span 2;
}

.card-terminate {
    grid-column: span 1;
}

.card-genie {
    grid-column: span 1;
}

.card-pureurl {
    grid-column: span 1;
}

.card-triage {
    grid-column: span 1;
}

.card-aviation {
    grid-column: span 2;
    /* Reduced to 2 to fit GPU card */
}

.card-gpu {
    grid-column: span 1;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-info address {
    font-style: normal;
    margin-bottom: 0.5rem;
}

.duns {
    font-family: monospace;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-flow {
        grid-column: span 2;
    }

    .card-terminate {
        grid-column: span 1;
    }

    .card-genie {
        grid-column: span 1;
    }

    .card-pureurl {
        grid-column: span 1;
    }

    .card-triage {
        grid-column: span 1;
    }

    .card-aviation {
        grid-column: span 2;
    }
}

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

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-flow,
    .card-terminate,
    .card-genie,
    .card-pureurl,
    .card-triage,
    .card-aviation,
    .card-gpu {
        grid-column: span 1;
    }

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }
}