/*
  INDORAN — HERO: "ENGINEERING SHEET"
  یک بازطراحی اساسی برای بخش هیرو با الهام از برگه‌های فنی/نقشه مهندسی
  به‌جای عکس استوک، نقشه خطیِ سوپاپ موتور (طراحی اختصاصی) با خطوط راهنما
  به آمار شرکت وصل شده تا خودِ ساختار، محتوا را روایت کند.
  این فایل بعد از style.css لود می‌شود.
*/

.hero.hero-v2 {
    --v-ink: #0a0d10;
    --v-panel: #12171b;
    --v-line: rgba(233, 236, 239, .82);
    --v-brass: #f4a51c;
    --v-brass-soft: rgba(244, 165, 28, .55);
    --v-brass-dim: rgba(244, 165, 28, .32);
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 0;
    padding: 150px 0 90px;
    overflow: hidden;
    background: var(--v-ink);
    background-image:
        radial-gradient(circle at 88% 18%, rgba(244, 165, 28, .16), transparent 42%),
        radial-gradient(circle at 6% 92%, rgba(244, 165, 28, .07), transparent 40%),
        linear-gradient(150deg, #0a0d10 0%, #12171c 55%, #090b0d 100%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .5;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(244, 165, 28, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 165, 28, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 90% 70% at 68% 30%, black, transparent 78%);
}

.hero-glow {
    position: absolute;
    z-index: 0;
    width: 640px;
    height: 640px;
    left: -220px;
    bottom: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 165, 28, .10), transparent 68%);
    pointer-events: none;
}

.hero-ring {
    position: absolute;
    z-index: 0;
    width: 900px;
    height: 900px;
    right: -340px;
    top: -420px;
    border: 1px dashed rgba(244, 165, 28, .14);
    border-radius: 50%;
    pointer-events: none;
    animation: hero-spin 90s linear infinite;
}

.hero-ring::before {
    content: "";
    position: absolute;
    inset: 90px;
    border: 1px solid rgba(244, 165, 28, .08);
    border-radius: 50%;
}

@keyframes hero-spin {
    to { transform: rotate(360deg); }
}

.hero-v2-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
    align-items: start;
    gap: 50px;
    padding-top: 6px;
}

/* ---------- TEXT SIDE ---------- */
.hero-v2 .hero-text {
    max-width: 620px;
}

.hero-tag-code {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 8px 15px;
    border: 1px solid rgba(244, 165, 28, .3);
    border-radius: 8px;
    background: rgba(244, 165, 28, .06);
    color: #ffd27a;
    font-family: "JetBrains Mono", monospace;
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .3px;
    direction: ltr;
    unicode-bidi: plaintext;
}

.hero-tag-code i {
    color: var(--v-brass);
    font-size: .82rem;
}

.hero-v2 h1 {
    max-width: 640px;
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 4vw, 3.9rem);
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #f2f4f6;
    text-wrap: balance;
}

.hero-v2 h1 span {
    /* display: block; */
    margin-top: 6px;
    font-weight: 900;
    background: linear-gradient(90deg, #f7c566 0%, #f4a51c 55%, #d98100 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-v2 .hero-text > p {
    max-width: 545px;
    color: rgba(220, 226, 231, .72);
    font-size: 1rem;
    line-height: 2.05;
}

.hero-v2 .hero-buttons {
    margin-top: 32px;
}

.hero-v2 .btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(244, 165, 28, .22);
}

.hero-v2 .btn-primary::after {
    content: "";
    position: absolute;
    top: -60%;
    right: -30%;
    width: 35%;
    height: 220%;
    transform: rotate(25deg);
    background: rgba(255, 255, 255, .32);
    transition: right .55s ease;
}

.hero-v2 .btn-primary:hover::after {
    right: 130%;
}

.hero-v2 .btn-primary:hover {
    transform: translateY(-3px);
}

.hero-v2 .btn-outline {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .03);
}

.hero-v2 .btn-outline:hover {
    color: #fff;
    border-color: rgba(244, 165, 28, .7);
    background: rgba(244, 165, 28, .12);
}

.hero-parts-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-family: "JetBrains Mono", monospace;
    font-size: .68rem;
    letter-spacing: .3px;
    color: rgba(200, 208, 214, .5);
}

.hero-parts-strip span:not(:last-child)::after {
    content: "\2022";
    margin: 0 12px;
    color: rgba(244, 165, 28, .45);
}

/* ---------- VISUAL SIDE ---------- */
.hero-v2 .hero-visual {
    position: relative;
    z-index: 1;
}

.hero-visual-frame {
    position: relative;
    max-width: 430px;
    margin: 0 auto;
    padding: 30px 28px 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .03), transparent 60%), var(--v-panel);
    border: 1px solid rgba(244, 165, 28, .18);
    border-radius: 4px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    animation: hero-float 7s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.frame-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--v-brass-soft);
    z-index: 3;
}

.frame-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.frame-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.frame-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.frame-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.frame-label {
    position: absolute;
    z-index: 3;
    font-family: "JetBrains Mono", monospace;
    font-size: .64rem;
    letter-spacing: .3px;
    color: rgba(255, 199, 102, .8);
    direction: ltr;
    unicode-bidi: plaintext;
}

.frame-fig { top: 16px; left: 22px; }
.frame-iso { bottom: 14px; left: 22px; color: rgba(200, 208, 214, .45); }

.engine-svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 6px auto 0;
    overflow: visible;
}

.v-line { fill: none; stroke: var(--v-line); stroke-width: 2; stroke-linejoin: round; }
.e-fill { fill: rgba(255, 255, 255, .025); }
.v-accent { fill: none; stroke: var(--v-brass); stroke-width: 2.5; stroke-linecap: round; }
.v-center { stroke: var(--v-brass-dim); stroke-width: 1; stroke-dasharray: 9 5 2 5; }
.v-punch { fill: none; stroke: var(--v-brass-soft); stroke-width: 1.4; }
.v-detail { fill: none; stroke: var(--v-brass-soft); stroke-width: 1.3; stroke-dasharray: 4 4; }
.v-detail-leader { stroke: rgba(244, 165, 28, .4); stroke-width: 1; stroke-dasharray: 3 3; }
.v-detail-box { fill: rgba(244, 165, 28, .04); stroke: rgba(244, 165, 28, .35); stroke-width: 1; }
.v-hatch { stroke: rgba(244, 165, 28, .32); stroke-width: 1; }
.v-dim { stroke: rgba(200, 208, 214, .4); stroke-width: 1; }
.v-dim-tick { stroke: rgba(200, 208, 214, .4); stroke-width: 1; }
.v-label {
    fill: #ffc766;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    direction: ltr;
}

.e-bore { stroke: var(--v-brass-dim); stroke-width: 1; stroke-dasharray: 6 4 2 4; }
.e-ridge { stroke: rgba(233, 236, 239, .35); stroke-width: 1.4; }
.e-spoke { stroke: var(--v-brass-soft); stroke-width: 1.6; stroke-linecap: round; }
.e-ring { stroke: rgba(233, 236, 239, .3); stroke-width: 1; }
.e-piston-body { fill: rgba(255, 255, 255, .04); }
.e-valve-head { fill: var(--v-brass); opacity: .85; }

/* Pistons: fade in once the block has settled, then run forever */
.e-piston {
    opacity: 0;
    animation-name: e-fade, piston-cycle;
    animation-duration: .4s, 1.3s;
    animation-timing-function: ease-out, ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
}

.ep-14, .ep-41 { animation-delay: .9s, 2.3s; }
.ep-23, .ep-32 { animation-delay: .9s, 1.65s; }

@keyframes piston-cycle {
    0%   { transform: translateY(-44px); }
    50%  { transform: translateY(44px); }
    100% { transform: translateY(-44px); }
}

/* Valves: fade in once the head has settled, then run forever */
.e-valve {
    opacity: 0;
    animation-name: e-fade, valve-cycle;
    animation-duration: .3s, 1.3s;
    animation-timing-function: ease-out, ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
}

.ev-14, .ev-41 { animation-delay: 1.6s, 2.63s; }
.ev-23, .ev-32 { animation-delay: 1.6s, 1.98s; }

@keyframes valve-cycle {
    0%   { transform: translateY(0); }
    45%  { transform: translateY(20px); }
    60%  { transform: translateY(20px); }
    100% { transform: translateY(0); }
}

@keyframes e-fade {
    to { opacity: 1; }
}

/* ---------- ASSEMBLY ANIMATION ---------- */
.e-part {
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(.22, 1.4, .36, 1);
}

.e-block {
    transform-origin: 180px 255px;
    animation-name: e-from-bottom;
    animation-duration: .75s;
    animation-delay: .1s;
}

.e-accL {
    transform-origin: 71px 238px;
    animation-name: e-from-left-short;
    animation-duration: .45s;
    animation-delay: .7s;
}

.e-accR {
    transform-origin: 284px 272px;
    animation-name: e-from-right-short;
    animation-duration: .45s;
    animation-delay: .75s;
}

.e-gasket {
    transform-origin: 180px 146px;
    animation-name: e-gasket-in;
    animation-duration: .3s;
    animation-timing-function: ease-out;
    animation-delay: .8s;
}

.e-head {
    transform-origin: 180px 118px;
    animation-name: e-from-left;
    animation-duration: .65s;
    animation-delay: .9s;
}

.e-cover {
    transform-origin: 180px 68px;
    animation-name: e-from-top;
    animation-duration: .6s;
    animation-delay: 1.4s;
}

.e-pan {
    transform-origin: 180px 380px;
    animation-name: e-from-bottom;
    animation-duration: .6s;
    animation-delay: .9s;
}

.e-pulley {
    transform-origin: 140px 396px;
    animation-name: e-pulley-spin;
    animation-duration: .55s;
    animation-delay: 1.65s;
}

.e-exhaust {
    transform-origin: 260px 120px;
    animation-name: e-from-right-short, exhaust-pulse;
    animation-duration: .5s, 1.3s;
    animation-timing-function: cubic-bezier(.22, 1.4, .36, 1), ease-in-out;
    animation-delay: 1.75s, 2.3s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
}

@keyframes exhaust-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}

/* ---------- PART LABELS ---------- */
.e-tag-dot { fill: var(--v-brass); }
.e-tag-line { stroke: rgba(244, 165, 28, .45); stroke-width: 1; stroke-dasharray: 2 3; }
.e-tag-label {
    fill: #ffd27a;
    font-family: "Vazirmatn", sans-serif;
    font-size: 11px;
    font-weight: 500;
    direction: rtl;
    unicode-bidi: plaintext;
}

.e-tag {
    opacity: 0;
    animation: v-fade .45s ease forwards;
}

.tag-cover   { animation-delay: 2.05s; }
.tag-head    { animation-delay: 1.6s; }
.tag-block   { animation-delay: .95s; }
.tag-pan     { animation-delay: 1.55s; }
.tag-pulley  { animation-delay: 2.25s; }
.tag-exhaust { animation-delay: 2.3s; }

.engine-caption {
    margin: 10px 4px 0;
    color: rgba(220, 226, 231, .45);
    font-size: .72rem;
    text-align: center;
    opacity: 0;
    animation: v-fade .6s ease forwards;
    animation-delay: 2.9s;
}

@keyframes e-from-bottom {
    from { transform: translateY(80px) rotate(2deg); opacity: 0; }
    to { transform: translateY(0) rotate(0); opacity: 1; }
}

@keyframes e-from-top {
    from { transform: translateY(-90px) rotate(-7deg); opacity: 0; }
    to { transform: translateY(0) rotate(0); opacity: 1; }
}

@keyframes e-from-left {
    from { transform: translateX(-120px) rotate(-6deg); opacity: 0; }
    to { transform: translateX(0) rotate(0); opacity: 1; }
}

@keyframes e-from-left-short {
    from { transform: translateX(-60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes e-from-right-short {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes e-gasket-in {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes e-pulley-spin {
    from { transform: translateX(-56px) rotate(-120deg) scale(.4); opacity: 0; }
    to { transform: translateX(0) rotate(0) scale(1); opacity: 1; }
}

.draw-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: v-draw 1.1s ease forwards;
}

.p6 { animation-delay: 2.15s; }

@keyframes v-draw {
    to { stroke-dashoffset: 0; }
}

.v-hatch.p6 { animation: v-fade .5s ease forwards; opacity: 0; animation-delay: 2.55s; }
.v-label.p6 { animation: v-fade .5s ease forwards; opacity: 0; animation-delay: 2.7s; }

@keyframes v-fade {
    to { opacity: 1; }
}

/* ---------- SPEC TAGS (leader-line callouts) ---------- */
.hero-counters {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.spec-tag {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 108px;
    padding: 9px 12px;
    background: rgba(13, 17, 20, .82);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: v-fade-in .6s ease forwards;
}

.spec-tag strong {
    color: var(--v-brass);
    font-size: 1.15rem;
    font-weight: 800;
}

.spec-tag span {
    color: rgba(220, 226, 231, .62);
    font-size: .66rem;
}

@keyframes v-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tag-1 { top: -4%; right: -14%; animation-delay: 3.6s; }
.tag-2 { top: 40%; left: -18%; animation-delay: 3.75s; }
.tag-3 { bottom: 20%; right: -16%; animation-delay: 3.9s; }
.tag-4 { bottom: -6%; left: -8%; animation-delay: 4.05s; }

.tag-1::after,
.tag-2::after,
.tag-3::after,
.tag-4::after {
    content: "";
    position: absolute;
    top: 50%;
    border-top: 1px dashed rgba(244, 165, 28, .4);
}

.tag-1::after { right: 100%; width: 34px; }
.tag-2::after { left: 100%; width: 40px; }
.tag-3::after { right: 100%; width: 30px; }
.tag-4::after { left: 100%; width: 26px; }

/* ---------- SCROLL INDICATOR (theme match) ---------- */
.hero-v2 .scroll-down {
    color: rgba(220, 226, 231, .55);
    z-index: 2;
}

/* ---------- FOCUS STATES ---------- */
.hero-v2 .btn:focus-visible {
    outline: 2px solid var(--v-brass);
    outline-offset: 3px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .tag-1 { right: -6%; }
    .tag-2 { left: -8%; }
    .tag-3 { right: -8%; }
    .tag-4 { left: -2%; }
}

@media (max-width: 991px) {
    .hero.hero-v2 { padding: 118px 0 60px; }
    .hero-v2-layout { grid-template-columns: 1fr; gap: 60px; }
    .hero-v2 .hero-visual { order: -1; }
    .hero-visual-frame { max-width: 400px; margin: 0 auto 46px; }
    .hero-v2 .hero-text { max-width: 640px; margin: 0 auto; text-align: center; }
    .hero-v2 .hero-text > p { margin: 0 auto; }
    .hero-v2 .hero-buttons { justify-content: center; }
    .hero-parts-strip { justify-content: center; }
    .engine-caption { display: none; }
    .tag-1::after, .tag-2::after, .tag-3::after, .tag-4::after { display: none; }
    .spec-tag { min-width: 96px; padding: 7px 10px; }
    .tag-1 { top: 10px; right: 10px; left: auto; bottom: auto; }
    .tag-2 { top: 10px; left: 10px; right: auto; bottom: auto; }
    .tag-3 { bottom: 10px; right: 10px; top: auto; left: auto; }
    .tag-4 { bottom: 10px; left: 10px; top: auto; right: auto; }
}

@media (max-width: 620px) {
    .hero.hero-v2 { padding: 104px 0 52px; }
    .hero-v2 h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .hero-visual-frame { max-width: 320px; padding: 22px 16px 20px; }
    .spec-tag { min-width: 0; padding: 6px 9px; }
    .spec-tag strong { font-size: .88rem; }
    .spec-tag span { font-size: .55rem; }
    .tag-1::after, .tag-2::after, .tag-3::after, .tag-4::after { display: none; }
    .tag-1 { top: 8px; right: 8px; left: auto; bottom: auto; }
    .tag-2 { top: 8px; left: 8px; right: auto; bottom: auto; }
    .tag-3 { bottom: 8px; right: 8px; top: auto; left: auto; }
    .tag-4 { bottom: 8px; left: 8px; top: auto; right: auto; }
    .hero-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual-frame,
    .hero-ring { animation: none; }
    .e-part,
    .e-piston,
    .e-valve,
    .e-tag,
    .engine-caption,
    .draw-path,
    .v-hatch.p6,
    .v-label.p6,
    .spec-tag {
        animation: none !important;
        transform: none !important;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}
