@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@400;700&display=swap');

:root {
    --accent-cyan: #00f2fe;
    --accent-purple: #4facfe;
    --accent-pink: #f35588;
    --glow-shadow: 0 15px 40px rgba(0, 242, 254, 0.25);
}

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

body {
    /* 24-second infinite animation simulating the 24h day/night sky cycle */
    animation: skyCycle 24s infinite cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.minimal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
    text-align: center;
    width: 100%;
    padding: 0 1.5rem;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 7vw, 3.8rem);
    font-weight: 600;
    letter-spacing: 0.25em;
    color: inherit; /* Dynamically inherits animated text color from body */
    user-select: none;
    text-indent: 0.25em;
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.emblem-container {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Morphing animated wrapper - Outer Neon Frame */
.visual-wrapper {
    position: relative;
    width: clamp(180px, 65vw, 260px);
    height: clamp(180px, 65vw, 260px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    animation: morphing 12s ease-in-out infinite alternate;
    padding: 5px;
    box-shadow: var(--glow-shadow);
    overflow: hidden;
    
    /* Hardware acceleration */
    will-change: border-radius;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Neural Network Canvas */
#coreCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: #080b11;
    z-index: 1;
}

/* Glowing central cognitive core */
.central-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ffffff 0%, var(--accent-cyan) 40%, rgba(79, 172, 254, 0.4) 70%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 25px var(--accent-cyan);
    animation: corePulse 3s ease-in-out infinite alternate;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Core soft breath pulse */
@keyframes corePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
        box-shadow: 0 0 35px rgba(0, 242, 254, 0.9), 0 0 15px rgba(243, 85, 136, 0.4);
    }
}

/* Organic morphing border-radius animation */
@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 56% 45% 55% 44%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* 24-second Sky Cycle (simulating 24h Day/Night) */
@keyframes skyCycle {
    /* 00:00 - Midnight (Deep space black-blue) */
    0%, 100% {
        background-color: #030712;
        color: #f3f4f6;
    }
    /* 06:00 - Sunrise/Dawn (Warm pastel pink/orange) */
    25% {
        background-color: #fecdd3; /* Soft rose */
        color: #0f172a;
    }
    /* 12:00 - Noon (Pure clean white) */
    50% {
        background-color: #ffffff;
        color: #0f172a;
    }
    /* 18:00 - Sunset/Dusk (Twilight purple/magenta) */
    75% {
        background-color: #2e1065; /* Deep purple */
        color: #f3f4f6;
    }
}
