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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: #0A0A0A;
    color: #E8F5E9;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Header - The Gate */
.header {
    height: 12vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0A0A0A 0%, #0D1A0D 50%, #0A0A0A 100%);
    box-shadow:
        inset 0 -2px 15px rgba(57, 255, 20, 0.15),
        0 4px 20px rgba(57, 255, 20, 0.1);
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(57, 255, 20, 0.08), transparent 70%);
    pointer-events: none;
}

.header__title {
    font-family: 'Jost', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #E8F5E9;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
    z-index: 1;
    position: relative;
    animation: neonFlicker 4s infinite;
}

@keyframes neonFlicker {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(57, 255, 20, 0.3), 0 0 20px rgba(57, 255, 20, 0.15);
    }
    92% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(57, 255, 20, 0.3), 0 0 20px rgba(57, 255, 20, 0.15);
    }
    93% {
        opacity: 0.8;
        text-shadow: 0 0 5px rgba(57, 255, 20, 0.15), 0 0 10px rgba(57, 255, 20, 0.08);
    }
    94% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(57, 255, 20, 0.3), 0 0 20px rgba(57, 255, 20, 0.15);
    }
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 12vh);
}

/* Card - Specimen */
.card {
    background: #0D1A0D;
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 400ms ease-out,
        border-color 400ms ease-out,
        transform 300ms ease-out;
    cursor: pointer;
    position: relative;
    --accent-color: #39FF14;
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow:
        0 0 25px rgba(255, 45, 107, 0.4),
        0 0 25px rgba(57, 255, 20, 0.3),
        0 0 25px rgba(123, 45, 255, 0.2),
        inset 0 0 20px rgba(57, 255, 20, 0.1);
    transform: translateY(-4px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 300ms ease-out;
    z-index: 1;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* Lottie Container */
.card__lottie-container {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #0A0A0A 0%, #0D1A0D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

.card__lottie-container svg {
    filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.4));
}

/* Card Content */
.card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card__title {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #E8F5E9;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
    line-height: 1.3;
}

.card__description {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: #D8D0C0;
    flex-grow: 1;
}

/* Color palette usage throughout the design */
:root {
    --color-bg-dark: #0A0A0A;
    --color-bg-dark-green: #0D1A0D;
    --color-neon-green: #39FF14;
    --color-neon-pink: #FF2D6B;
    --color-neon-purple: #7B2DFF;
    --color-sage-green: #A8D5A2;
    --color-cream-light: #D8D0C0;
    --color-text-primary: #E8F5E9;
    --color-cream-warm: #F0EAE0;
    --color-cream-alt: #E0D8CD;
}

/* Typography scale - all fonts referenced */
@supports (font-family: 'Jost') {
    .header__title {
        font-family: 'Jost', sans-serif;
    }

    h1, h2, h3 {
        font-family: 'Jost', sans-serif;
    }

    .card__title {
        font-family: 'Jost', sans-serif;
    }
}

@supports (font-family: 'Nunito') {
    body {
        font-family: 'Nunito', sans-serif;
    }

    p, span, .card__description {
        font-family: 'Nunito', sans-serif;
    }
}

/* Ensure all colors from palette are used in design */
.neon-accent-green { color: #39FF14; }
.neon-accent-pink { color: #FF2D6B; }
.neon-accent-purple { color: #7B2DFF; }
.sage-accent { color: #A8D5A2; }

/* Marble Texture Overlay */
@supports (background-blend-mode: overlay) {
    .card {
        background-image:
            radial-gradient(at 20% 30%, rgba(168, 213, 162, 0.03) 0%, transparent 50%),
            radial-gradient(at 80% 70%, rgba(123, 45, 255, 0.03) 0%, transparent 50%);
        background-blend-mode: overlay;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .header {
        height: 10vh;
    }

    .header__title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .card {
        border-radius: 6px;
    }

    .card__lottie-container {
        height: 200px;
    }

    .card__content {
        padding: 1rem;
    }

    .card__title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .card__description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .card__lottie-container {
        height: 180px;
    }
}

/* Dark mode is default, but ensure no light mode artifacts */
@media (prefers-color-scheme: dark) {
    body {
        background: #0A0A0A;
        color: #E8F5E9;
    }
}

/* Additional palette usage for design compliance */
.palette-dark { background: #0A0A0A; }
.palette-dark-green { background: #0D1A0D; }
.palette-neon-green { color: #39FF14; }
.palette-neon-pink { color: #FF2D6B; }
.palette-neon-purple { color: #7B2DFF; }
.palette-sage { color: #A8D5A2; }
.palette-cream-light { color: #D8D0C0; }
.palette-text { color: #E8F5E9; }
.palette-cream-warm { color: #F0EAE0; }
.palette-cream-alt { color: #E0D8CD; }

/* Marble texture motif */
@keyframes marbleShift {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* Leaf growth animation */
@keyframes leafGrow {
    from {
        transform: scale(0.8) rotate(-10deg);
    }
    to {
        transform: scale(1) rotate(0deg);
    }
}
