
/* =========================================
   VEBS — PREMIUM HERO EFFECTS
   Light / Editorial / Indigo
========================================= */

.hero-premium {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8faff 48%,
            #f1f4ff 100%
        );
}

/* Световые пятна */

.hero-premium::before,
.hero-premium::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

.hero-premium::before {
    width: 620px;
    height: 620px;
    top: -260px;
    right: -100px;
    background: radial-gradient(
        circle,
        rgba(129, 140, 248, .20),
        rgba(165, 180, 252, .08) 45%,
        transparent 72%
    );
    animation: heroGlow 12s ease-in-out infinite alternate;
}

.hero-premium::after {
    width: 520px;
    height: 520px;
    bottom: -280px;
    left: -120px;
    background: radial-gradient(
        circle,
        rgba(96, 165, 250, .13),
        transparent 70%
    );
    animation: heroGlow 15s ease-in-out infinite alternate-reverse;
}

/* Сетка на фоне */

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .32;
    background-image:
        linear-gradient(rgba(99, 102, 241, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

/* Появление элементов */

.hero-animate {
    opacity: 0;
    transform: translateY(28px);
    animation: heroReveal .9s cubic-bezier(.2, .7, .2, 1) forwards;
}

.hero-delay-1 { animation-delay: .15s; }
.hero-delay-2 { animation-delay: .3s; }
.hero-delay-3 { animation-delay: .45s; }
.hero-delay-4 { animation-delay: .6s; }

/* Акцентный текст */

.hero-gradient-text {
    color: #6366f1;
    background: linear-gradient(
        110deg,
        #4f46e5,
        #818cf8,
        #3b82f6,
        #6366f1
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroTextGradient 8s linear infinite;
}

/* Декоративная окружность */

.hero-orbit {
    position: absolute;
    width: 420px;
    height: 420px;
    right: 5%;
    top: 50%;
    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(99, 102, 241, .09);
    border-radius: 50%;
}

.hero-orbit::before {
    inset: 35px;
}

.hero-orbit::after {
    inset: 75px;
}

/* Анимации */

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGlow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-35px, 25px, 0) scale(1.12);
    }
}

@keyframes heroTextGradient {
    to {
        background-position: 220% center;
    }
}

/* Мобильная версия */

@media (max-width: 768px) {
    .hero-premium::before {
        width: 380px;
        height: 380px;
        right: -180px;
        top: -150px;
    }

    .hero-premium::after {
        width: 320px;
        height: 320px;
    }

    .hero-orbit {
        width: 240px;
        height: 240px;
        right: -120px;
        opacity: .5;
    }
}

/* Учитываем настройки доступности */

@media (prefers-reduced-motion: reduce) {
    .hero-premium *,
    .hero-premium::before,
    .hero-premium::after {
        animation: none !important;
        transition: none !important;
    }

    .hero-animate {
        opacity: 1;
        transform: none;
    }
}
