:root {
    --v3-cyan: #31ddff;
    --v3-blue: #0789cf;
}

/* Индикатор прокрутки */

.mp-v3-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #087fc9,
        #31ddff,
        #a0f3ff
    );
    box-shadow:
        0 0 10px rgba(49, 221, 255, 0.9),
        0 0 25px rgba(49, 221, 255, 0.38);
}

/* Первый экран */

.hero {
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 70% 44%,
            rgba(22, 184, 235, 0.09),
            transparent 31%
        );
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero h1 {
    max-width: 760px;
    letter-spacing: -0.055em;
}

.hero h1 strong {
    white-space: nowrap;
}

.hero h1 span {
    max-width: 720px;
}

.hero-description {
    max-width: 660px;
}

.hero-visual {
    --pointer-x: 61%;
    --pointer-y: 42%;
    position: relative;
    isolation: isolate;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 3% 0 7% 5%;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            circle at var(--pointer-x) var(--pointer-y),
            rgba(53, 221, 255, 0.17),
            transparent 24%
        ),
        repeating-radial-gradient(
            circle at 59% 49%,
            transparent 0 88px,
            rgba(31, 191, 239, 0.055) 89px 90px
        );
    animation: v3Halo 7s ease-in-out infinite;
}

.hero-visual::after {
    content: "";
    position: absolute;
    right: 4%;
    left: 10%;
    z-index: 7;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(60, 226, 255, 0.9),
        transparent
    );
    box-shadow:
        0 0 12px rgba(60, 226, 255, 0.9),
        0 0 32px rgba(60, 226, 255, 0.32);
    animation: v3Scan 7s ease-in-out infinite;
}

.house-scene {
    filter:
        drop-shadow(0 48px 60px rgba(0, 0, 0, 0.52))
        drop-shadow(0 0 38px rgba(21, 190, 235, 0.08));
}

.protection-dome,
.security-lines {
    filter:
        drop-shadow(0 0 5px rgba(49, 221, 255, 0.9))
        drop-shadow(0 0 17px rgba(49, 221, 255, 0.28));
}

.system-card {
    backdrop-filter: blur(18px);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.system-card:hover {
    border-color: rgba(83, 226, 255, 0.58);
    box-shadow:
        0 24px 62px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(32, 201, 245, 0.14);
}

/* Частицы */

.mp-v3-particle {
    position: absolute;
    z-index: 5;
    width: var(--particle-size);
    height: var(--particle-size);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: #55e5ff;
    box-shadow:
        0 0 7px rgba(85, 229, 255, 0.95),
        0 0 18px rgba(85, 229, 255, 0.3);
    animation:
        v3Particle var(--particle-duration)
        linear infinite;
    animation-delay: var(--particle-delay);
}

/* Карточки */

.solution-card {
    min-height: 122px;
}

.solution-card > a {
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.solution-card:hover > a {
    color: var(--v3-cyan);
    transform: translateX(6px);
}

/* Средняя часть */

.process-panel h2 {
    font-size: 34px;
    letter-spacing: -0.028em;
}

.timeline-step h3 {
    font-size: 12px;
}

.timeline-step p {
    font-size: 10px;
}

.dashboard-header h3 {
    font-size: 16px;
}

.systems-list > div {
    font-size: 10px;
}

.systems-list b {
    font-size: 9px;
}

.floor-plan {
    overflow: hidden;
}

.floor-plan::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(20, 192, 239, 0.045),
        transparent
    );
    animation: v3DashboardLight 5s ease-in-out infinite;
}

.statistics article {
    background: linear-gradient(
        145deg,
        rgba(11, 29, 43, 0.78),
        rgba(4, 14, 23, 0.92)
    );
}

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

@keyframes v3Halo {
    0%,
    100% {
        opacity: 0.58;
        transform: scale(0.97);
    }

    50% {
        opacity: 1;
        transform: scale(1.045);
    }
}

@keyframes v3Scan {
    0%,
    14% {
        top: 19%;
        opacity: 0;
    }

    23% {
        opacity: 0.72;
    }

    56% {
        top: 77%;
        opacity: 0.46;
    }

    65%,
    100% {
        top: 82%;
        opacity: 0;
    }
}

@keyframes v3Particle {
    0% {
        opacity: 0;
        transform:
            translate3d(0, 25px, 0)
            scale(0.65);
    }

    20% {
        opacity: 0.7;
    }

    75% {
        opacity: 0.25;
    }

    100% {
        opacity: 0;
        transform:
            translate3d(
                var(--particle-drift),
                -130px,
                0
            )
            scale(1.2);
    }
}

@keyframes v3DashboardLight {
    0%,
    100% {
        opacity: 0.3;
        transform: translateY(-14%);
    }

    50% {
        opacity: 0.85;
        transform: translateY(14%);
    }
}

@media (min-width: 1200px) {
    .hero-grid {
        grid-template-columns:
            minmax(560px, 0.92fr)
            minmax(720px, 1.28fr);
    }

    .hero h1 {
        font-size: clamp(60px, 4.7vw, 82px);
    }

    .hero-visual {
        margin-left: -18px;
    }
}

@media (max-width: 720px) {
    .hero h1 strong {
        white-space: normal;
    }

    .hero-visual::after {
        right: 0;
        left: 0;
    }

    .mp-v3-particle {
        display: none;
    }

    .solution-card {
        min-height: 156px;
    }

    .process-panel h2 {
        font-size: 38px;
    }
}

@media (max-width: 390px) {
    .process-panel h2 {
        font-size: 33px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual::before,
    .hero-visual::after,
    .mp-v3-particle,
    .floor-plan::after {
        animation: none !important;
    }
}
