:root {
    --va-gold-1: #fff6c8;
    --va-gold-2: #f5cf63;
    --va-gold-3: #c88f18;
    --va-blue-1: #3b82f6;
    --va-blue-2: #1d4ed8;
    --va-ink: #0f172a;
    --va-muted: #64748b;
}

.va-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--va-ink);
    text-decoration: none;
    line-height: 1;
    will-change: transform, filter;
    transform: translateZ(0);
    transition: transform 180ms ease, filter 180ms ease;
}

.va-logo--mobile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

body.is-dark .va-logo {
    --va-ink: #e5eefc;
    --va-muted: #94a3b8;
}

.va-logo__icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 10px 20px rgba(29, 78, 216, 0.16));
    animation: va-float 6s ease-in-out infinite;
}

.va-logo__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.va-logo__image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.va-logo__ring {
    transform-origin: 60px 60px;
    animation: va-spin 16s linear infinite;
}

.va-logo__leaf {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: va-breathe 3s ease-in-out infinite;
}

.va-logo__leaf--left {
    animation-delay: 0.08s;
}

.va-logo__leaf--right {
    animation-delay: 0.16s;
}

.va-logo__shine {
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    opacity: 0;
    animation: va-shine 3s ease-in-out infinite;
}

.va-logo__arrow {
    transform-box: fill-box;
    transform-origin: center;
    animation: va-arrow-pulse 3s ease-in-out infinite;
}

.va-logo__text {
    min-width: 0;
    display: inline-flex;
    align-items: center;
}

.va-logo__brand {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.va-logo__veda,
.va-logo__life {
    display: block;
    white-space: nowrap;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.va-logo__veda {
    font-size: 15px;
    font-weight: 900;
    color: var(--va-ink);
    animation: va-fade-in 900ms ease both;
}

.va-logo__life {
    font-size: 12px;
    font-weight: 800;
    color: var(--va-gold-3);
    animation: va-slide-in 1100ms ease both;
}

.va-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 14px 28px rgba(29, 78, 216, 0.20));
}

.va-logo:hover .va-logo__icon {
    filter: drop-shadow(0 14px 30px rgba(245, 207, 99, 0.34)) drop-shadow(0 0 18px rgba(59, 130, 246, 0.18));
}

.va-logo:hover .va-logo__ring {
    animation-duration: 12s;
}

.va-logo.is-ready .va-logo__icon {
    animation: va-float 6s ease-in-out infinite, va-glow 3s ease-in-out infinite;
}

.va-logo.is-ready .va-logo__leaf--left,
.va-logo.is-ready .va-logo__leaf--right {
    animation: va-breathe 3s ease-in-out infinite, va-leaf-shine 3s ease-in-out infinite;
}

.va-logo.is-ready .va-logo__shine {
    opacity: 0.9;
}

@keyframes va-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes va-glow {
    0%, 100% { filter: drop-shadow(0 10px 20px rgba(29, 78, 216, 0.16)); }
    50% { filter: drop-shadow(0 12px 26px rgba(245, 207, 99, 0.28)) drop-shadow(0 0 20px rgba(245, 207, 99, 0.14)); }
}

@keyframes va-spin {
    to { transform: rotate(360deg); }
}

@keyframes va-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.012); }
}

@keyframes va-leaf-shine {
    0%, 70% { filter: saturate(1) brightness(1); }
    85% { filter: saturate(1.1) brightness(1.12); }
    100% { filter: saturate(1) brightness(1); }
}

@keyframes va-shine {
    0% { stroke-dashoffset: 180; opacity: 0; }
    18% { opacity: 0.0; }
    35% { opacity: 0.72; }
    50% { stroke-dashoffset: 0; opacity: 0.0; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes va-arrow-pulse {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(29, 78, 216, 0)); }
    50% { transform: translateY(-1px); filter: drop-shadow(0 0 10px rgba(29, 78, 216, 0.18)); }
}

@keyframes va-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes va-slide-in {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .va-logo,
    .va-logo__icon,
    .va-logo__ring,
    .va-logo__leaf,
    .va-logo__shine,
    .va-logo__arrow,
    .va-logo__veda,
    .va-logo__life {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .va-logo {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 10px;
    }

    .va-logo__icon {
        width: 42px;
        height: 42px;
    }

    .va-logo__image {
        width: 100%;
        height: 100%;
    }

    .va-logo__text {
        display: inline-flex;
        align-items: center;
    }

    .va-logo__brand {
        gap: 1px;
        text-align: left;
    }

    .va-logo__veda {
        font-size: 12px;
        line-height: 1.05;
    }

    .va-logo__life {
        font-size: 10px;
        line-height: 1.05;
    }
}

@media (max-width: 480px) {
    .va-logo--mobile {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        text-align: left;
    }

    .va-logo--mobile .va-logo__text {
        justify-content: flex-start;
    }

    .va-logo--mobile .va-logo__brand {
        text-align: left;
    }

    .va-logo--mobile .va-logo__veda,
    .va-logo--mobile .va-logo__life {
        text-align: left;
    }
}
