:root {
    /* Color Palette - Dark Classy */
    --bg-page: #0a0a0b;
    --bg-surface: #141417;
    --bg-surface-elevated: #1a1a1d;
    --border-dark: #1f1f23;
    --border-elevated: #2a2a2e;

    --orange-primary: #ff5c00;
    --orange-secondary: #ff8a4c;
    --orange-glow: rgba(255, 92, 0, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #adadb0;
    --text-tertiary: #8b8b90;
    --text-muted: #6b6b70;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 40px;
    --card-padding: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.loading {
    overflow: hidden;
}

#page-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Splash Overlay styles */
#splash-overlay {
    position: fixed;
    inset: 0;
    background-color: #050505;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
}

.scan-line {
    position: absolute;
    top: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
    box-shadow: 0 0 15px var(--orange-primary);
    z-index: 10;
    animation: scanMove 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scanMove {
    0% {
        top: 20%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 75%;
        opacity: 0;
    }
}

.logo-wireframe {
    position: relative;
    width: 280px;
    height: 280px;
    opacity: 0;
    animation: logoReveal 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0.5);
}

.logo-fill {
    position: absolute;
    inset: 0;
    background-color: var(--orange-primary);
    mix-blend-mode: color;
    opacity: 0;
    animation: colorFlash 0.5s 2s forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }

    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes colorFlash {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
        filter: blur(10px);
    }

    100% {
        opacity: 0.8;
    }
}

/* Start Overlay */
#start-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--bg-page);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s ease-out;
}

#start-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.start-hint {
    color: var(--orange-primary);
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Initially pause animations until started */
.loading.paused #splash-overlay *,
.loading.paused .scan-line,
.loading.paused .logo-wireframe,
.loading.paused .logo-fill {
    animation-play-state: paused !important;
}

body {
    background-color: var(--bg-page);
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
}

/* Navbar */
.navbar {
    height: 80px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.nav-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background-image: url('hero-falcon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a0a0b;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    /* Much lighter overlay for better visibility */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 8vw, 84px);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.subheadline {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-inline: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--orange-primary);
    color: var(--text-primary);
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px var(--orange-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: var(--orange-secondary);
    box-shadow: 0 8px 30px var(--orange-glow);
}

/* Experiments Section */
.experiments {
    padding: var(--section-padding);
    background-color: var(--bg-page);
    text-align: center;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange-primary);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    color: var(--text-primary);
    margin-bottom: 64px;
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-dark);
    padding: var(--card-padding);
    border-radius: 16px;
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
    border-color: var(--border-elevated);
    transform: translateY(-4px);
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.card-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    padding: 60px 40px;
    border-top: 1px solid var(--border-dark);
    text-align: center;
    background-color: var(--bg-page);
}

.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 36px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}