/* ============================================================
   HERO ART — صحنه‌ی ربات (سمت راست هیرو)
   شبکه‌ی خطوط + مربع‌های پیکسلی شناور + ربات + تگ ترمینالی
   ============================================================ */

.hero-art {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    z-index: 1;
}

/* ====== لایه‌ی دکور ====== */
.hero-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* خطوط شبکه */
.hero-fx .gl { position: absolute; }
.hero-fx .gl.v {
    top: var(--t, 0); bottom: var(--b, 0);
    left: var(--x);
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--hero-line) 14%,
        var(--hero-line) 86%,
        transparent 100%);
    opacity: var(--o, 0.8);
}
.hero-fx .gl.v.hot {
    background: linear-gradient(180deg,
        transparent 0%,
        var(--hero-line-strong) 14%,
        var(--hero-line-strong) 86%,
        transparent 100%);
}
/* میله‌ی روشن لبه‌ی چپ */
.hero-fx .vbar {
    position: absolute;
    left: 0; top: 43%;
    width: 1px; height: 60px;
    background: var(--hero-line-strong);
}
.hero-fx .gl.h {
    left: 0; right: 0;
    top: var(--y);
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--hero-line) 25%,
        var(--hero-line) 75%,
        transparent 100%);
    opacity: var(--o, 0.5);
}

/* علامت + */
.hero-fx .cross {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}
.hero-fx .cross::before,
.hero-fx .cross::after {
    content: '';
    position: absolute;
    background: var(--hero-g);
}
.hero-fx .cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.hero-fx .cross::after  { top: 0; bottom: 0; left: 50%; width: 1px; }

/* خطوط شبکه و علامت‌ها هم‌رنگ سایت */
.hero-fx .cross::before,
.hero-fx .cross::after { background: var(--hero-line-strong); }

/* مربع‌های پیکسلی */
.hero-fx .px {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s, 14px);
    height: var(--s, 14px);
    animation: px-float var(--t, 6s) steps(6, end) infinite;
    animation-delay: var(--d, 0s);
}
.hero-fx .px.b { background: var(--hero-b); }
.hero-fx .px.g { background: var(--hero-g); }
.hero-fx .px.d {
    background: transparent;
    border: 1px solid var(--hero-line);
}
.hero-fx .px.o { border: 1px solid var(--hero-line-strong); }
.hero-fx .px.blink { animation-name: px-float, px-blink; animation-duration: var(--t, 6s), 4.4s; animation-timing-function: steps(6, end), steps(1, end); animation-iteration-count: infinite, infinite; }

@keyframes px-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
@keyframes px-blink {
    0%, 86%, 100% { opacity: 1; }
    90%           { opacity: 0.2; }
}

/* ====== ربات ====== */
.bot-stage {
    position: absolute;
    left: 43%;
    bottom: calc(22% - 26px);
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.bot-rig {
    position: relative;
    width: max-content;
    line-height: 0;
}

.bot-rig .pc-canvas {
    position: relative;
    display: block;
    pointer-events: auto;
    cursor: pointer;
    image-rendering: pixelated;
    touch-action: manipulation;
    filter: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* کف و سایه (۵٫۸٪ = فاصله‌ی کف پاها تا لبه‌ی پایین بوم) */
.bot-floor {
    position: absolute;
    left: -60%; right: -60%;
    bottom: 5.8%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--hero-line-strong) 28%, var(--hero-line-strong) 72%, transparent 100%);
    opacity: 0.9;
    pointer-events: none;
}
.bot-floor::after {
    content: '';
    position: absolute;
    left: 20%; right: 20%;
    top: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hero-line), transparent);
}
.bot-shadow {
    position: absolute;
    left: 24%; right: 24%;
    bottom: calc(5.8% - 9px);
    height: 9px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45), transparent 70%);
    pointer-events: none;
}

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 960px) {
    .hero-art { min-height: 400px; margin-top: 6px; }
    .bot-stage { left: 50%; bottom: 14px; }
}

@media (max-width: 560px) {
    .hero-art { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fx .px { animation: none; }
}