/* nlbd.dev - No Leader, But Distributed */
/* Colors: #F0F0F4, #60A878, #B0708A, #E4E8EC, #D0D4D8, #4A5080, #D8DCE0, #7A7A8A, #1A1A28 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #4A5080;
    background-color: #E8ECF0;
    overflow-x: hidden;
    position: relative;
}

/* Chrome Mist Background */
.chrome-mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E0E4E8 0%, #F0F0F4 30%, #E4E8EC 60%, #D8DCE0 100%);
    z-index: -2;
}

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* Split Screen Layout */
.split-screen {
    display: flex;
    min-height: 100vh;
    position: relative;
    width: 100%;
}

.split-footer {
    min-height: 20vh;
}

/* Central Divider */
.divider {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(180deg, transparent, #4A5080, #B0708A, #4A5080, transparent);
    opacity: 0.3;
    z-index: 10;
    transform: translateX(-50%);
}

#hero .divider {
    animation: drawDivider 1.5s ease-out 0.3s forwards;
}

/* Equal Panels */
.panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Chrome reflection sheen on panels */
.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    pointer-events: none;
    animation: chromeSheen 6s ease-in-out infinite;
}

.panel-left {
    border-right: none;
}

.panel-right {
    border-left: none;
}

.panel-content {
    max-width: 420px;
    width: 100%;
}

/* Hero Letters */
.hero-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #4A5080;
    opacity: 0;
    line-height: 1;
}

.panel-left .hero-letter {
    animation: bounceInLeft 1s ease-out 1.8s forwards;
}

.panel-right .hero-letter {
    animation: bounceInRight 1s ease-out 1.8s forwards;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 400;
    color: #7A7A8A;
    margin-top: 16px;
    line-height: 1.85;
    opacity: 0;
    animation: fadeIn 1s ease 2.8s forwards;
}

/* Anti-hierarchy headings: all same size */
.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #4A5080;
    margin-bottom: 16px;
}

/* System Labels */
.system-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #B0708A;
    display: block;
    margin-bottom: 12px;
    text-transform: lowercase;
}

/* Body Text */
.body-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.85;
    color: #4A5080;
    opacity: 0.85;
}

/* Code Annotations */
.code-annotation {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: rgba(74, 80, 128, 0.08);
    color: #1A1A28;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 20px;
    border-left: 2px solid #60A878;
}

.code-prompt {
    color: #60A878;
    font-weight: 400;
}

/* Distributed Navigation */
.distributed-nav {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #7A7A8A;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #60A878;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #60A878;
    transition: width 0.3s ease;
}

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

/* Blob Network */
.blob-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.blob {
    position: absolute;
    border-radius: 50% 40% 60% 45%;
    opacity: 0;
    animation: blobAppear 0.8s ease forwards;
}

.blob-line {
    position: absolute;
    height: 0.5px;
    background: rgba(74, 80, 128, 0.15);
    transform-origin: left center;
    opacity: 0;
    animation: lineAppear 0.5s ease forwards;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes drawDivider {
    from { height: 0; }
    to { height: 100%; }
}

@keyframes bounceInLeft {
    0% { opacity: 0; transform: translateX(-60px); }
    60% { opacity: 1; transform: translateX(8px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes bounceInRight {
    0% { opacity: 0; transform: translateX(60px); }
    60% { opacity: 1; transform: translateX(-8px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes chromeSheen {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

@keyframes blobAppear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 0.6; transform: scale(1); }
}

@keyframes lineAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
        min-height: auto;
    }

    .panel {
        padding: 40px 24px;
        min-height: 50vh;
    }

    .split-footer .panel {
        min-height: 10vh;
    }

    .divider {
        display: none;
    }

    .hero-letter {
        font-size: clamp(3rem, 15vw, 5rem);
    }
}
