/* MVX Digital — code-native hero scene. Devices and data remain crisp at every resolution. */
.digital-hero {
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 42%, rgba(255, 31, 45, .13), transparent 31%),
        radial-gradient(circle at 66% 58%, rgba(72, 102, 111, .13), transparent 38%),
        #050708;
}

.digital-hero-grid {
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: linear-gradient(90deg, transparent 20%, #000 64%, transparent 100%);
    transform: perspective(800px) rotateX(61deg) scale(1.45) translateY(28%);
    transform-origin: center bottom;
}

.digital-hero-glow {
    position: absolute;
    z-index: 0;
    top: 17%;
    right: 4%;
    width: 48vw;
    max-width: 850px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 31, 45, .13), rgba(255, 31, 45, .025) 43%, transparent 68%);
    filter: blur(2px);
    animation: digital-glow 5s ease-in-out infinite alternate;
}

.digital-hero .hero-shade {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, #050708 0%, rgba(5, 7, 8, .97) 31%, rgba(5, 7, 8, .68) 48%, rgba(5, 7, 8, .04) 73%, rgba(5, 7, 8, .3) 100%), linear-gradient(0deg, rgba(5, 7, 8, .78), transparent 40%);
}

.digital-hero .hero-content,
.digital-hero .stats { z-index: 4; }

.digital-hero-visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: #050708;
}
.digital-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 64%, rgba(5, 7, 8, .36) 100%);
    pointer-events: none;
}
.digital-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
}
.hero-data-network {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    mix-blend-mode: screen;
}
.network-routes path,
.network-flows use {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.network-routes path { stroke: rgba(255, 38, 52, .2); stroke-width: 1.2; }
.network-flows use {
    stroke: rgba(255, 48, 61, .88);
    stroke-width: 1.6;
    stroke-dasharray: 2 18;
    filter: url(#data-glow);
    animation: digital-data-route 2.5s linear infinite;
}
.network-flows use:nth-child(2) { animation-duration: 3.1s; animation-direction: reverse; }
.network-flows use:nth-child(3) { animation-duration: 2.8s; animation-delay: -.9s; }
.network-flows use:nth-child(4) { animation-duration: 3.4s; animation-delay: -1.6s; }
.network-nodes circle {
    fill: #ff2634;
    transform-box: fill-box;
    transform-origin: center;
    animation: digital-network-node 2.4s ease-in-out infinite;
}
.network-nodes circle:nth-child(3n) { animation-delay: -.8s; }
.network-nodes circle:nth-child(3n + 2) { animation-delay: -1.6s; }
.data-packets circle { fill: #fff; stroke: #ff2634; stroke-width: 1.5; }
.data-packets circle:nth-child(even) { fill: #ff2634; stroke: #fff; }
.hero-tech-tag {
    position: absolute;
    z-index: 2;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-left-color: #ff2634;
    border-radius: 3px;
    background: rgba(7, 10, 11, .7);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
    color: #eef1f2;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .14em;
    backdrop-filter: blur(7px);
    animation: digital-hero-tag 4.8s ease-in-out infinite;
}
.hero-tag-ai { top: 19%; right: 27%; }
.hero-tag-api { top: 41%; right: 45%; animation-delay: -1.7s; }
.hero-tag-cloud { top: 28%; right: 8%; animation-delay: -3.2s; }
.hero-signal {
    position: absolute;
    z-index: 2;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff2634;
    box-shadow: 0 0 8px #ff2634, 0 0 18px rgba(255, 31, 45, .8);
    animation: digital-hero-signal 2.6s ease-out infinite;
}
.hero-signal::after { content: ""; position: absolute; inset: -7px; border: 1px solid rgba(255, 31, 45, .7); border-radius: 50%; animation: digital-hero-ripple 2.6s ease-out infinite; }
.signal-one { top: 35%; right: 35%; }
.signal-two { top: 52%; right: 11%; animation-delay: -.8s; }
.signal-three { top: 31%; right: 48%; animation-delay: -1.6s; }
.signal-four { top: 58%; right: 27%; animation-delay: -2.2s; }

.digital-hero-scene {
    position: absolute;
    z-index: 2;
    top: 12%;
    right: 2.5%;
    width: min(52vw, 860px);
    height: 72%;
    min-height: 530px;
    perspective: 1200px;
    pointer-events: none;
}

.digital-data-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    transform: rotateX(67deg) rotateZ(-12deg);
}
.digital-data-ring::before,
.digital-data-ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #ff2634;
    box-shadow: 0 0 15px rgba(255, 31, 45, .8);
}
.digital-data-ring::before { top: 16%; left: 4%; width: 6px; height: 6px; }
.digital-data-ring::after { right: 10%; bottom: 11%; width: 4px; height: 4px; }
.ring-one { right: 3%; bottom: -4%; width: 76%; aspect-ratio: 1; animation: digital-ring 18s linear infinite; }
.ring-two { right: 15%; bottom: 5%; width: 55%; aspect-ratio: 1; opacity: .55; animation: digital-ring 13s linear infinite reverse; }

.digital-laptop {
    position: absolute;
    right: 1%;
    bottom: 2%;
    width: 70%;
    transform: rotateY(-8deg) rotateX(2deg);
    transform-style: preserve-3d;
    filter: drop-shadow(0 45px 45px rgba(0, 0, 0, .6));
    animation: digital-device-breathe 6s ease-in-out infinite;
}
.digital-laptop-screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    padding: 10px;
    border: 2px solid #606769;
    border-bottom-color: #363b3d;
    border-radius: 12px 12px 5px 5px;
    background: linear-gradient(145deg, #252b2d, #07090a 15%);
    box-shadow: inset 0 0 0 6px #0b0e0f, inset 0 0 0 7px rgba(255, 255, 255, .08), 0 0 45px rgba(255, 31, 45, .09);
}
.digital-laptop-screen::after {
    content: "";
    position: absolute;
    inset: 10px;
    background: linear-gradient(112deg, transparent 0 50%, rgba(255, 255, 255, .035) 51%, transparent 73%);
    pointer-events: none;
}
.screen-top { height: 12%; display: flex; align-items: center; gap: 5px; padding: 0 4%; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #0f1314; }
.screen-top i { width: 4px; height: 4px; border-radius: 50%; background: #4c5456; }
.screen-top i:first-child { background: #ff2634; box-shadow: 0 0 7px rgba(255, 31, 45, .8); }
.screen-top span { margin-left: auto; color: #737c7f; font-size: clamp(4px, .42vw, 7px); letter-spacing: .18em; }
.screen-layout { height: 88%; display: grid; grid-template-columns: 18% 1fr; background: linear-gradient(135deg, #0e1213, #090b0c); }
.screen-nav { padding: 24% 21%; border-right: 1px solid rgba(255, 255, 255, .055); }
.screen-nav b { display: block; height: 3px; margin: 0 0 42%; border-radius: 5px; background: #303739; }
.screen-nav b:first-child { width: 75%; background: #ff2634; box-shadow: 0 0 8px rgba(255, 31, 45, .5); }
.screen-dashboard { position: relative; padding: 6%; }
.screen-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.screen-kpis i { display: block; height: 38px; border: 1px solid rgba(255, 255, 255, .065); border-radius: 2px; background: linear-gradient(140deg, rgba(255, 255, 255, .035), transparent); }
.screen-kpis i::before { content: ""; display: block; width: 36%; height: 3px; margin: 9px; background: #ff2634; }
.screen-chart { position: absolute; right: 6%; bottom: 10%; left: 6%; height: 41%; display: flex; align-items: flex-end; gap: 5%; padding: 7% 6% 0; border: 1px solid rgba(255, 255, 255, .065); background: repeating-linear-gradient(0deg, transparent 0 19%, rgba(255, 255, 255, .045) 20%); }
.screen-chart span { flex: 1; min-width: 3px; height: 30%; background: linear-gradient(#ff3340, #67121a); animation: digital-bars 3s ease-in-out infinite alternate; transform-origin: bottom; }
.screen-chart span:nth-child(2) { height: 55%; animation-delay: -.7s; }
.screen-chart span:nth-child(3) { height: 42%; animation-delay: -1.5s; }
.screen-chart span:nth-child(4) { height: 76%; animation-delay: -.3s; }
.screen-chart span:nth-child(5) { height: 63%; animation-delay: -1.1s; }
.screen-chart span:nth-child(6) { height: 91%; animation-delay: -1.9s; }
.screen-chart span:nth-child(7) { height: 73%; animation-delay: -.9s; }
.screen-code { position: absolute; right: 9%; top: 36%; width: 24%; }
.screen-code b { display: block; height: 2px; margin-bottom: 6px; background: #596164; animation: digital-code 2.7s ease-in-out infinite; }
.screen-code b:nth-child(2) { width: 65%; animation-delay: -.4s; }
.screen-code b:nth-child(3) { width: 82%; animation-delay: -.8s; }
.screen-code b:nth-child(4) { width: 43%; background: #d2222d; animation-delay: -1.2s; }
.digital-laptop-base { position: relative; width: 112%; height: 17px; margin-left: -6%; border-radius: 2px 2px 16px 16px; background: linear-gradient(#777e80, #252a2c 37%, #101314); box-shadow: 0 9px 13px rgba(0, 0, 0, .55); transform: perspective(90px) rotateX(18deg); }
.digital-laptop-base i { position: absolute; top: 0; left: 43%; width: 14%; height: 4px; border-radius: 0 0 8px 8px; background: #171b1c; }

.digital-phone {
    position: absolute;
    z-index: 3;
    left: 8%;
    bottom: 0;
    width: 23%;
    aspect-ratio: 9 / 18;
    padding: 5px;
    border: 2px solid #62696b;
    border-radius: 23px;
    background: #090b0c;
    box-shadow: 20px 30px 45px rgba(0, 0, 0, .65), inset 0 0 0 2px #222729, 0 0 30px rgba(255, 31, 45, .08);
    transform: rotateY(10deg) rotateZ(-3deg);
    animation: digital-phone-float 5.6s ease-in-out infinite;
}
.phone-speaker { position: absolute; z-index: 2; top: 8px; left: 50%; width: 30%; height: 4px; border-radius: 5px; background: #030404; transform: translateX(-50%); }
.phone-ui { position: relative; overflow: hidden; height: 100%; padding: 20% 12% 12%; border-radius: 17px; background: radial-gradient(circle at 50% 40%, rgba(255, 31, 45, .22), transparent 31%), linear-gradient(160deg, #151a1c, #07090a 75%); }
.phone-ui > span { display: block; color: #d7dadd; font-size: clamp(5px, .55vw, 9px); letter-spacing: .2em; }
.phone-orbit { position: relative; width: 68%; aspect-ratio: 1; margin: 30% auto 25%; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; animation: phone-orbit 7s linear infinite; }
.phone-orbit::before, .phone-orbit::after { content: ""; position: absolute; inset: 15%; border: 1px solid rgba(255, 31, 45, .4); border-radius: 50%; }
.phone-orbit::after { inset: 37%; border: 0; background: #ff2634; box-shadow: 0 0 14px rgba(255, 31, 45, .9); }
.phone-orbit i { position: absolute; top: -3px; left: 48%; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 9px #fff; }
.phone-ui > b { display: block; width: 100%; height: 4px; margin: 10% 0; border-radius: 5px; background: linear-gradient(90deg, #41494b 0 67%, transparent 67%); }
.phone-ui > b:nth-of-type(2) { width: 78%; }
.phone-ui > b:nth-of-type(3) { width: 51%; background: #b61b25; }
.phone-ui > small { position: absolute; right: 12%; bottom: 7%; color: #697174; font-size: clamp(4px, .4vw, 7px); letter-spacing: .12em; }

.digital-tech-chip {
    position: absolute;
    z-index: 4;
    min-width: 105px;
    padding: 12px 14px 11px 19px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 4px;
    background: rgba(13, 17, 18, .76);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .35), inset 0 0 18px rgba(255, 255, 255, .025);
    backdrop-filter: blur(8px);
    animation: digital-chip 5s ease-in-out infinite;
}
.digital-tech-chip i { position: absolute; top: 16px; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: #ff2634; box-shadow: 0 0 10px rgba(255, 31, 45, .9); }
.digital-tech-chip strong, .digital-tech-chip small { display: block; }
.digital-tech-chip strong { color: #f4f6f6; font-size: 12px; font-weight: 500; letter-spacing: .12em; }
.digital-tech-chip small { margin-top: 3px; color: #747c7e; font-size: 7px; letter-spacing: .16em; }
.chip-ai { top: 4%; left: 37%; animation-delay: -.8s; }
.chip-api { top: 18%; right: 4%; animation-delay: -2.1s; }
.chip-cloud { top: 32%; left: 3%; animation-delay: -3.3s; }
.chip-data { top: 43%; right: 0; animation-delay: -4.2s; }

.digital-connection { position: absolute; z-index: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 31, 45, .7), transparent); transform-origin: left; animation: digital-flow 2.8s ease-in-out infinite; }
.digital-connection::after { content: ""; position: absolute; top: -2px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #ff2634; box-shadow: 0 0 9px #ff2634; animation: digital-signal 2.8s linear infinite; }
.connection-one { top: 23%; left: 44%; width: 37%; transform: rotate(24deg); }
.connection-two { top: 37%; left: 20%; width: 30%; transform: rotate(55deg); animation-delay: -.9s; }
.connection-three { top: 41%; left: 49%; width: 39%; transform: rotate(-15deg); animation-delay: -1.7s; }

.digital-particle { position: absolute; z-index: 3; width: 3px; height: 3px; border-radius: 50%; background: #f4f7f7; box-shadow: 0 0 7px #fff; animation: digital-particle 4s ease-in-out infinite; }
.particle-one { top: 9%; left: 20%; }
.particle-two { top: 27%; left: 63%; animation-delay: -1.1s; }
.particle-three { top: 47%; left: 33%; animation-delay: -2.4s; }
.particle-four { top: 14%; right: 14%; animation-delay: -3.1s; }
.particle-five { top: 55%; right: 8%; animation-delay: -.5s; }

@keyframes digital-glow { to { opacity: .68; transform: scale(1.06); } }
@keyframes digital-ring { to { transform: rotateX(67deg) rotateZ(348deg); } }
@keyframes digital-device-breathe { 50% { transform: rotateY(-8deg) rotateX(2deg) translateY(-5px); } }
@keyframes digital-phone-float { 50% { transform: rotateY(10deg) rotateZ(-1deg) translateY(-10px); } }
@keyframes digital-chip { 50% { transform: translateY(-9px); border-color: rgba(255, 31, 45, .34); } }
@keyframes digital-bars { to { transform: scaleY(.68); filter: brightness(1.5); } }
@keyframes digital-code { 50% { opacity: .35; transform: scaleX(.82); transform-origin: left; } }
@keyframes phone-orbit { to { transform: rotate(360deg); } }
@keyframes digital-flow { 50% { opacity: .35; } }
@keyframes digital-signal { from { left: 0; } to { left: 100%; } }
@keyframes digital-particle { 50% { opacity: .2; transform: translateY(-14px) scale(.65); } }
@keyframes digital-hero-tag { 50% { transform: translateY(-9px); border-color: rgba(255, 31, 45, .48); } }
@keyframes digital-hero-signal { 0%, 100% { opacity: .35; } 28% { opacity: 1; } }
@keyframes digital-hero-ripple { 0% { opacity: .8; transform: scale(.35); } 75%, 100% { opacity: 0; transform: scale(1.65); } }
@keyframes digital-data-route { to { stroke-dashoffset: -40; } }
@keyframes digital-network-node { 0%, 100% { opacity: .38; transform: scale(.72); } 45% { opacity: 1; transform: scale(1.35); } }

@media (max-width: 1180px) {
    .digital-hero-scene { right: -5%; width: 57vw; opacity: .9; }
    .digital-tech-chip { transform: scale(.88); }
}

@media (max-width: 900px) {
    .digital-hero-scene { top: 12%; right: -24%; width: 78vw; opacity: .55; }
    .digital-hero .hero-shade { background: linear-gradient(90deg, #050708 0%, rgba(5, 7, 8, .92) 48%, rgba(5, 7, 8, .35)), linear-gradient(0deg, rgba(5, 7, 8, .84), transparent 45%); }
    .chip-api, .chip-data { display: none; }
}

@media (max-width: 700px) {
    .digital-hero {
        height: auto;
        min-height: 100svh;
        padding-top: 445px;
        padding-bottom: 145px;
    }
    .digital-hero-grid { background-size: 42px 42px; opacity: .12; }
    .digital-hero-glow { top: 78px; right: -28%; width: 110vw; height: 340px; opacity: .75; }
    .digital-hero-scene { display: none; }
    .digital-hero-visual {
        position: absolute;
        z-index: 2;
        top: 78px;
        right: 0;
        left: 0;
        height: 340px;
        display: block;
        overflow: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        background: #07090a;
    }
    .digital-hero-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(5, 7, 8, .08), rgba(5, 7, 8, .05) 63%, #050708 100%), linear-gradient(90deg, rgba(5, 7, 8, .42), transparent 54%);
    }
    .digital-hero-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        image-rendering: auto;
    }
    .hero-tech-tag {
        position: absolute;
        z-index: 2;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, .22);
        border-left-color: #ff2634;
        border-radius: 3px;
        background: rgba(7, 10, 11, .76);
        box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
        color: #eef1f2;
        font-size: 8px;
        font-weight: 600;
        letter-spacing: .13em;
        backdrop-filter: blur(6px);
        animation: digital-mobile-tag 4.5s ease-in-out infinite;
    }
    .hero-tag-ai { top: 17%; right: 14%; }
    .hero-tag-api { top: 44%; right: auto; left: 12%; animation-delay: -1.6s; }
    .hero-tag-cloud { top: auto; right: 7%; bottom: 18%; animation-delay: -3.1s; }
    .hero-signal { transform: scale(.82); }
    .hero-data-network { opacity: .88; }
    .signal-one { top: 32%; right: 28%; }
    .signal-two { top: 55%; right: 9%; }
    .signal-three { top: 39%; right: 58%; }
    .signal-four { display: none; }
    .digital-hero .hero-content {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: auto;
        margin: 0 var(--page-gutter);
    }
    .digital-hero .hero-shade {
        background: linear-gradient(180deg, transparent 0 36%, #050708 42%, #050708 100%);
    }
    .digital-hero .stats { bottom: 30px; }
}

@keyframes digital-mobile-tag {
    50% { transform: translateY(-8px); border-color: rgba(255, 31, 45, .5); }
}

@media (prefers-reduced-motion: reduce) {
    .digital-hero-glow,
    .digital-data-ring,
    .digital-laptop,
    .digital-phone,
    .digital-tech-chip,
    .digital-connection,
    .digital-connection::after,
    .digital-particle,
    .screen-chart span,
    .screen-code b,
    .phone-orbit { animation: none !important; }
    .digital-hero-visual img,
    .hero-tech-tag,
    .hero-signal,
    .hero-signal::after,
    .network-flows use,
    .network-nodes circle { animation: none !important; }
    .data-packets { display: none; }
}
