:root {
    --substrate: #0c0e14;
    --void: #0a0a0f;
    --bio-green: #4aff9a;
    --chemi-blue: #64b4ff;
    --electro-cyan: #40e8d0;
    --photo-violet: #b088ff;
    --tribo-white: #e0e8ff;
    --annotation: #8890a0;
}

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

body {
    background-color: var(--void);
    color: var(--annotation);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.01em;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Observation Window Overlay */
.observation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    background: radial-gradient(circle 42.5vmin at 50% 50%, transparent 42vmin, var(--void) 42.5vmin);
    box-shadow: inset 0 0 60px rgba(10, 10, 15, 0.9);
}

/* Scrollable Substrate */
.substrate {
    width: 100vw;
    height: 100vh;
    overflow: auto;
    position: relative;
    z-index: 1;
    scrollbar-width: none;
}

.substrate::-webkit-scrollbar {
    display: none;
}

.substrate-surface {
    width: 200vw;
    min-height: 300vh;
    position: relative;
    background-color: var(--substrate);
    background-image:
        repeating-linear-gradient(0deg, rgba(100,120,180,0.04) 0px, rgba(100,120,180,0.04) 0.5px, transparent 0.5px, transparent 80px),
        repeating-linear-gradient(90deg, rgba(100,120,180,0.04) 0px, rgba(100,120,180,0.04) 0.5px, transparent 0.5px, transparent 80px);
}

/* Colonies */
.colony {
    position: absolute;
}

/* Colony 1: Origin */
.colony-origin {
    text-align: center;
}

.domain-glow {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(36px, 4vw, 48px);
    letter-spacing: 0.06em;
    color: rgba(74, 255, 154, 0.8);
    text-shadow: 0 0 12px rgba(74,255,154,0.3), 0 0 24px rgba(74,255,154,0.1);
    animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.85; }
}

.growth-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* Colony Labels */
.colony-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: rgba(136, 144, 160, 0.4);
    text-align: center;
    margin-top: 8px;
}

/* Colony 2: Definition */
.colony-definition {
    max-width: 420px;
}

.cluster-block {
    border: 1px solid rgba(74,255,154,0.15);
    background: rgba(74,255,154,0.03);
    padding: 16px 20px;
    margin-bottom: 8px;
    box-shadow: 0 0 20px rgba(74,255,154,0.08), 0 0 40px rgba(74,255,154,0.03);
}

.colony-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.green-text {
    color: rgba(74, 255, 154, 0.75);
    text-shadow: 0 0 12px rgba(74,255,154,0.3), 0 0 24px rgba(74,255,154,0.08);
}

.blue-text {
    color: rgba(100, 180, 255, 0.75);
    text-shadow: 0 0 12px rgba(100,180,255,0.3), 0 0 24px rgba(100,180,255,0.08);
}

/* Colony 3: Taxonomy */
.colony-taxonomy {
    max-width: 300px;
}

.taxonomy-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.taxonomy-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bio-label {
    color: rgba(74, 255, 154, 0.8);
    text-shadow: 0 0 12px rgba(74,255,154,0.3), 0 0 24px rgba(74,255,154,0.08);
}

.chemi-label {
    color: rgba(100, 180, 255, 0.8);
    text-shadow: 0 0 12px rgba(100,180,255,0.3), 0 0 24px rgba(100,180,255,0.08);
}

.electro-label {
    color: rgba(64, 232, 208, 0.8);
    text-shadow: 0 0 12px rgba(64,232,208,0.3), 0 0 24px rgba(64,232,208,0.08);
}

.photo-label {
    color: rgba(176, 136, 255, 0.8);
    text-shadow: 0 0 12px rgba(176,136,255,0.3), 0 0 24px rgba(176,136,255,0.08);
}

.tribo-label {
    color: rgba(224, 232, 255, 0.8);
    text-shadow: 0 0 12px rgba(224,232,255,0.3), 0 0 24px rgba(224,232,255,0.08);
}

/* Colony 4: Specimen */
.colony-specimen {
    max-width: 360px;
    position: relative;
}

.specimen-block {
    border: 2px solid rgba(100,180,255,0.2);
    background: rgba(100,180,255,0.02);
    padding: 24px;
    box-shadow: 0 0 20px rgba(100,180,255,0.08), 0 0 40px rgba(100,180,255,0.03);
}

.growth-ring-blue {
    z-index: -1;
}

/* Colony 5: Notation */
.colony-notation {
    max-width: 280px;
}

.note-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: rgba(136, 144, 160, 0.55);
}

.notation-1 .note-text { opacity: 0.7; }
.notation-2 .note-text { opacity: 0.55; }
.notation-3 .note-text { opacity: 0.65; }
.notation-4 .note-text { opacity: 0.5; }
.notation-5 .note-text { opacity: 0.6; }
.notation-6 .note-text { opacity: 0.5; }
.notation-7 .note-text { opacity: 0.55; }

/* Mobile */
@media (max-width: 768px) {
    .substrate-surface {
        width: 300vw;
        min-height: 400vh;
    }

    .domain-glow {
        font-size: 28px;
    }

    .colony-definition {
        max-width: 280px;
    }

    .colony-specimen {
        max-width: 260px;
    }
}
