/* Karbantartási arculat: animált SVG-logó és réteges neurális háttér. */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0c151c;
    color: var(--paper);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    /* Csak a szöveg mögött sötétítünk; a képszéleken látszik a háló. */
    background: radial-gradient(ellipse 39% 76% at 27% 50%, #0c151cd9 0%, #0c151c94 54%, #0c151c00 100%);
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    /* Ugyanaz a container szabály igazítja, mint a fejlécet és a tartalmat. */
    margin-inline: auto;
    min-height: clamp(500px, 35.1vw, 590px);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 48%;
    padding: 48px 0;
    text-shadow: 0 2px 24px #10171b70;
}

.hero-author {
    margin-bottom: 22px;
    font-size: clamp(16px, 1.45vw, 22px);
    color: #e7ebec;
}

.hero h1 {
    max-width: 620px;
    margin-bottom: 20px;
    font-size: clamp(42px, 4.9vw, 76px);
    line-height: 1.02;
    font-weight: 800;
}

.hero-description {
    max-width: 540px;
    font-size: clamp(18px, 1.65vw, 25px);
    line-height: 1.4;
    color: #eef1f1;
}

.hero-actions {
    gap: 14px 32px;
    margin-top: 30px;
}

.hero-art {
    position: absolute;
    z-index: 1;
    inset: 0 0 0 auto;
    width: 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: visible;
    pointer-events: none;
    /* Az SVG teljes körvonala látható marad. */
    mask-image: none;
}

/* Lágy háttérárnyék: az embléma saját vektoros élei élesek maradnak. */
.hero-art::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 4% -4%;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 50% 53%,
        #050b10a3 0%,
        #050b107a 35%,
        #050b1033 58%,
        #050b1000 76%
    );
}

@media (max-width: 1120px) {
    .hero-copy {
        width: 49%;
        padding: 40px 0 44px;
    }

    .hero h1 {
        font-size: clamp(38px, 4.8vw, 54px);
    }

    .hero-inner {
        min-height: 480px;
    }

    .hero-art {
        width: 51%;
        right: 0;
    }

    .hero-actions {
        gap: 10px 20px;
    }
}

@media (max-width: 700px) {
    .hero-inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .hero-copy {
        width: 100%;
        padding: 32px 0 14px;
    }

    .hero-author {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hero h1 {
        max-width: 560px;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.08;
    }

    .hero-description {
        font-size: 18px;
        line-height: 1.5;
    }

    .hero-actions {
        margin-top: 24px;
    }

    .hero-art {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 430 / 305;
        margin-top: -8px;
        mask-image: none;
    }


}

/* Diszkrét, billentyűzettel is elérhető animációvezérlés. */
.hero-motion {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff40;
    border-radius: 50%;
    background: #10171b99;
    color: #edf3e7;
    font-size: 20px;
}

.hero-motion:hover {
    background: #243328;
}

@media (prefers-reduced-motion: reduce) {
    .hero-motion {
        display: none;
    }
}
/* Az eredeti karbantartási logó animációi, kizárólag a hero emblémájára szűkítve. */
.hero-art .hero-logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    /* A mozgást a belső SVG-csoport végzi, éles vektoros kontúrokkal. */
    /* Szűrő nélkül a kontúrok mozgás közben is élesebbek maradnak. */
    filter: none;
}

.hero-logo .anim {
    transform-box: fill-box;
    transform-origin: center;
}

.hero-logo .zarojel-b,
.hero-logo .zarojel-j {
    animation: hero-brace 1s cubic-bezier(.2, .8, .2, 1) .15s both;
}

.hero-logo .zarojel-b {
    --irany: -70px;
}

.hero-logo .zarojel-j {
    --irany: 70px;
}

@keyframes hero-brace {
    from {
        opacity: 0;
        transform: translateX(var(--irany)) scaleY(.6);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-logo .m-elem {
    animation: hero-piece .9s cubic-bezier(.2, .9, .25, 1.15) var(--k, .5s) both;
}

@keyframes hero-piece {
    from {
        opacity: 0;
        transform: translate(var(--dx, 0), var(--dy, 0))
            rotate(var(--r, 0deg)) scale(.35);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-logo .i-negyzet {
    animation: hero-square .8s cubic-bezier(.3, 1.6, .4, 1) 1.25s both;
}

@keyframes hero-square {
    from {
        opacity: 0;
        transform: rotate(-135deg) scale(0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-logo .pixel {
    animation:
        hero-piece 1s cubic-bezier(.2, .9, .3, 1.25) var(--k) both,
        hero-pixel var(--t, 4s) ease-in-out calc(var(--k) + 1s) infinite;
}

@keyframes hero-pixel {
    0%, 100% {
        transform: none;
    }
    40% {
        transform: translate(var(--lx, 2px), var(--ly, -6px));
    }
}

.hero.motion-paused .hero-logo * {
    animation-play-state: paused;
}

#hero-neuron {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo * {
        animation: none !important;
    }

    /* Csak a mozgás áll le; a csiszolás és az oldalfalak transzformációja megmarad. */
    .hero-logo .anim,
    .hero-logo .hero-float {
        transform: none !important;
    }

    .hero-logo .fenycsik {
        display: none;
    }
}

@media (max-width: 700px) {
    .hero::before {
        background: linear-gradient(180deg, #0c151ccc, #0c151c99 52%, #0c151c00 76%);
    }
}
.hero-copy .hero-trust {
    margin-top: 22px;
    color: #c6d2cf;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}
