/* ===== Hero — Product Showcase ===== */

.hero {
    --h-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --h-duration: 6s;
    --h-orange: #ff4d00;
    --h-orange-deep: #e64500;
    --h-orange-light: #ff6b2b;
    --h-text: #f4f4f5;
    --h-text-muted: rgba(255, 255, 255, 0.62);
    --h-line: rgba(255, 255, 255, 0.1);
    --hero-orbit-size: clamp(380px, 50vmin, 620px);
    --hero-orbit-radius: calc(var(--hero-orbit-size) * 0.30);
    --hero-orbit-part: clamp(58px, calc(var(--hero-orbit-size) * 0.155), 96px);
    --hero-orbit-main: calc(var(--hero-orbit-size) * 0.46);

    position: relative;
    isolation: isolate;
    background: #090909;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
    overflow: hidden;
    color: var(--h-text);
    border-radius: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    width: min(60vw, 560px);
    height: min(50vw, 480px);
    top: 45%;
    inset-inline-end: 5%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.14) 0%, transparent 68%);
    filter: blur(56px);
}

.hero__shell {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

.hero__container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(200px, 240px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
    min-height: min(620px, 74vh);
}

/* ─── Showcase — ستون راست ─── */
.hero__showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
}

.hero__stage {
    position: relative;
    width: 100%;
    min-height: calc(var(--hero-orbit-size) + 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__stage--orbit {
    position: relative;
}

.hero__orbit-set {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero__orbit-set.is-active {
    display: flex;
    z-index: 2;
}

.hero__orbit-set .hero__slide--visual {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.hero__stage--orbit .orbit-visual {
    width: min(100%, var(--hero-orbit-size));
    max-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    flex-shrink: 0;
}

.hero__stage--orbit .landing-orbit {
    --orbit-size: var(--hero-orbit-size);
    --orbit-radius: var(--hero-orbit-radius);
    --orbit-part: var(--hero-orbit-part);
    --orbit-main: var(--hero-orbit-main);
    --orbit-duration: 64s;
    margin-inline: auto;
    max-width: 100%;
    flex-shrink: 0;
}

.hero__stage--orbit .landing-orbit__center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__stage--orbit .landing-product__frame,
.hero__stage--orbit .landing-product__glass {
    display: none;
}

.hero__orbit-center {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__orbit-center .hero__slide--visual {
    inset: 0;
    padding: 0;
    transform: scale(0.94);
}

.hero__orbit-center .hero__slide--visual.is-active {
    transform: scale(1);
}

.hero__product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
}

.hero__product-media svg,
.hero__product-media img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
}

.hero__slide--visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.5s var(--h-spring),
        transform 0.55s var(--h-spring),
        visibility 0s linear 0.5s;
}

.hero__slide--visual.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.55s var(--h-spring),
        transform 0.6s var(--h-spring),
        visibility 0s linear 0s;
}

/* ─── Picker — ستون وسط (درام عمودی) ─── */
.hero__center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-height: 0;
    padding-block: clamp(1.5rem, 4vh, 2.5rem);
}

.hero__center::before,
.hero__center::after {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    width: clamp(3rem, 8vw, 5rem);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 77, 0, 0.07) 0%,
        rgba(255, 77, 0, 0.03) 42%,
        transparent 72%
    );
    pointer-events: none;
    filter: blur(6px);
}

.hero__center::before {
    inset-inline-end: calc(-1 * clamp(1rem, 3vw, 2rem));
}

.hero__center::after {
    inset-inline-start: calc(-1 * clamp(1rem, 3vw, 2rem));
}

.hero__tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: min(100%, 240px);
}

.hero__eyebrow {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h-orange-light);
    margin: 0;
    text-align: center;
    opacity: 0.85;
}

.hero .product-picker {
    --picker-slots: 5;
    --item-h: 46px;
    --picker-h: calc(var(--item-h) * var(--picker-slots));
    width: 100%;
}

.hero .product-picker__frame {
    position: relative;
    width: 100%;
    height: var(--picker-h);
    overflow: hidden;
    border-radius: 1rem;
    container-type: size;
    container-name: hero-picker;
    perspective: 540px;
    perspective-origin: 50% 50%;
}

.hero .product-picker__frame::before,
.hero .product-picker__frame::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 32%;
    z-index: 3;
    pointer-events: none;
}

.hero .product-picker__frame::before {
    top: 0;
    background: linear-gradient(180deg, #090909 0%, rgba(9, 9, 9, 0.72) 45%, transparent 100%);
}

.hero .product-picker__frame::after {
    bottom: 0;
    background: linear-gradient(0deg, #090909 0%, rgba(9, 9, 9, 0.72) 45%, transparent 100%);
}

.hero .product-picker__highlight {
    position: absolute;
    z-index: 2;
    top: 50%;
    inset-inline: 0.35rem;
    height: var(--item-h);
    transform: translateY(-50%);
    border-radius: 0.65rem;
    pointer-events: none;
    border: none;
    background: linear-gradient(
        90deg,
        rgba(255, 77, 0, 0.04) 0%,
        rgba(255, 77, 0, 0.12) 50%,
        rgba(255, 77, 0, 0.04) 100%
    );
    box-shadow:
        inset 0 0 24px rgba(255, 77, 0, 0.08),
        0 0 0 1px rgba(255, 77, 0, 0.12);
}

.hero .product-picker__track {
    --active-index: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: calc((100cqh - var(--item-h)) / 2);
    transform: translateY(calc(var(--active-index) * -1 * var(--item-h)));
    transform-style: preserve-3d;
    transition: transform 0.52s var(--h-spring);
    will-change: transform;
}

.hero .product-picker__item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    height: var(--item-h);
    flex-shrink: 0;
    padding: 0 0.85rem;
    background: transparent;
    border: none;
    border-radius: 0.65rem;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    color: inherit;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition:
        transform 0.52s var(--h-spring),
        opacity 0.38s ease,
        color 0.3s ease;
}

.hero .product-picker__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
    transition: color 0.28s ease;
}

.hero .product-picker__icon svg {
    width: 1rem;
    height: 1rem;
}

.hero .product-picker__item.is-active .product-picker__icon {
    color: var(--h-orange-light);
}

.hero .product-picker__label {
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    transition:
        font-size 0.42s var(--h-spring),
        font-weight 0.3s ease,
        color 0.3s ease;
}

.hero .product-picker__item[data-offset="0"] {
    transform: rotateX(0deg) scale(1.04);
    opacity: 1;
    z-index: 4;
}

.hero .product-picker__item[data-offset="-1"] {
    transform: rotateX(15deg) scale(0.9);
    opacity: 0.48;
}

.hero .product-picker__item[data-offset="1"] {
    transform: rotateX(-15deg) scale(0.9);
    opacity: 0.48;
}

.hero .product-picker__item[data-offset="-2"] {
    transform: rotateX(28deg) scale(0.82);
    opacity: 0.38;
}

.hero .product-picker__item[data-offset="2"] {
    transform: rotateX(-28deg) scale(0.82);
    opacity: 0.38;
}

.hero .product-picker__item[data-offset="-3"],
.hero .product-picker__item[data-offset="-4"],
.hero .product-picker__item[data-offset="3"],
.hero .product-picker__item[data-offset="4"] {
    transform: rotateX(40deg) scale(0.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero .product-picker__item[data-offset="-1"] .product-picker__label,
.hero .product-picker__item[data-offset="1"] .product-picker__label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.hero .product-picker__item[data-offset="-2"] .product-picker__label,
.hero .product-picker__item[data-offset="2"] .product-picker__label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.42);
}

.hero .product-picker__item.is-active::after {
    content: "";
    position: absolute;
    inset-inline-end: 0.15rem;
    top: 50%;
    width: 5px;
    height: 5px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--h-orange);
    box-shadow: 0 0 10px rgba(255, 77, 0, 0.75);
}

.hero .product-picker__item.is-active .product-picker__label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 77, 0, 0.28);
}

.hero .product-picker__item:not(.is-active):hover .product-picker__label {
    color: rgba(255, 255, 255, 0.68);
}

/* ─── Copy — ستون چپ ─── */
.hero__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 440px;
    direction: rtl;
    justify-self: start;
}

.hero__copy {
    position: relative;
}

.hero__slide--copy {
    display: none;
    flex-direction: column;
}

.hero__slide--copy.is-active {
    display: flex;
    animation: heroCopyIn 0.5s var(--h-spring) both;
}

@keyframes heroCopyIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    font-size: clamp(1.6rem, 3.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--h-text);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero__desc {
    font-size: clamp(0.94rem, 1.5vw, 1.05rem);
    line-height: 1.85;
    color: var(--h-text-muted);
    max-width: 44ch;
    margin: 0 0 1.75rem;
}

.hero__actions {
    display: flex;
    align-items: center;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 1.5rem;
    background: var(--h-orange);
    color: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s var(--h-spring);
}

.hero__cta svg {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

.hero__cta:hover {
    background: var(--h-orange-deep);
    transform: translateY(-1px);
}

.hero__foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: none;
}

.hero__foot::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 48px;
    transform: translateY(-50%);
    background: radial-gradient(
        ellipse 90% 100% at 50% 100%,
        rgba(255, 255, 255, 0.07) 0%,
        transparent 72%
    );
    pointer-events: none;
}

.hero__counter {
    font-size: 0.82rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--h-text-muted);
    letter-spacing: 0.06em;
}

.hero__counter [data-hero-current] {
    color: var(--h-text);
    font-weight: 700;
    font-size: 0.95rem;
}

.hero__counter-sep {
    margin-inline: 0.25rem;
    opacity: 0.35;
}

.hero__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__nav-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--h-text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero__nav-btn svg {
    width: 17px;
    height: 17px;
}

.hero__nav-btn:hover {
    border-color: rgba(255, 77, 0, 0.45);
    color: var(--h-orange);
    background: rgba(255, 77, 0, 0.08);
}

/* Hero orbit — تم تیره */
.hero .landing-orbit__halo-ring {
    border-color: rgba(255, 255, 255, 0.12);
}

.hero .landing-orbit__halo-glow {
    border-color: rgba(255, 77, 0, 0.15);
}

/* ─── Header صفحه اصلی ─── */
body.page-home .site-header {
    background: rgba(22, 18, 14, 0.88);
    border-bottom-color: rgba(239, 108, 0, 0.14);
}

body.page-home .main-nav-link { color: var(--header-text); }
body.page-home .main-nav-link:hover,
body.page-home .main-nav-link.is-active,
body.page-home .main-nav-item.is-active > .main-nav-item__head > .main-nav-link {
    color: var(--header-text-active);
}
body.page-home .nav-toggle span { background: var(--header-text-active); }

body.page-home .header-contact,
body.page-home a.header-contact {
    background: rgba(239, 108, 0, 0.2);
    border-color: rgba(239, 108, 0, 0.45);
    color: var(--header-text-active);
}

body.page-home .header-contact:hover,
body.page-home a.header-contact:hover {
    background: var(--h-orange, #ef6c00);
    border-color: var(--h-orange, #ef6c00);
}

body.page-home .header-inner {
    width: min(100% - 2rem, var(--wrap));
    max-width: none;
    padding-inline: 0;
}

/* ─── Responsive ─── */
@media (min-width: 1200px) {
    .hero {
        --hero-orbit-size: clamp(560px, 52vmin, 720px);
    }

    .hero__shell {
        max-width: 1520px;
    }

    .hero__container {
        min-height: min(680px, 78vh);
    }

    .hero__title {
        font-size: clamp(1.65rem, 2.4vw, 2.1rem);
    }

    .hero__desc {
        font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    }
}

@media (min-width: 1600px) {
    .hero {
        --hero-orbit-size: clamp(640px, 54vmin, 800px);
    }
}

@media (max-width: 1024px) {
    .hero {
        --hero-orbit-size: clamp(360px, 54vmin, 520px);
    }

    .hero__container {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) minmax(0, 1fr);
        gap: clamp(1.5rem, 3vw, 2.5rem);
        min-height: min(560px, 70vh);
    }
}

@media (max-width: 768px) {
    .hero {
        --hero-orbit-size: min(94vw, 480px);
    }

    .hero__container {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 2rem;
    }

    .hero__showcase {
        order: 1;
        overflow: visible;
    }

    .hero__stage {
        min-height: calc(var(--hero-orbit-size) + 1.5rem);
    }

    .hero__center {
        order: 2;
        max-width: 280px;
        margin-inline: auto;
        width: 100%;
        padding-block: 0.5rem;
    }

    .hero__center::before,
    .hero__center::after {
        display: none;
    }

    .hero {
        border-radius: clamp(1.5rem, 4vw, 2.25rem);
    }

    .hero__tabs {
        width: min(100%, 260px);
    }

    .hero .product-picker {
        --item-h: 44px;
    }

    .hero__aside {
        order: 3;
        max-width: none;
    }

    .hero__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        --hero-orbit-size: min(calc(100vw - 2rem), 440px);
        padding-inline: 1rem;
    }

    .hero__stage {
        min-height: calc(var(--hero-orbit-size) + 1rem);
    }

    .hero__title {
        font-size: 1.4rem;
    }

    .hero .product-picker {
        --item-h: 42px;
    }

    .hero__nav-btn {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide,
    .hero__slide--copy.is-active,
    .hero .product-picker__item,
    .hero .product-picker__track {
        animation: none !important;
        transition: none !important;
    }

    .hero .product-picker__item[data-offset="-1"],
    .hero .product-picker__item[data-offset="1"],
    .hero .product-picker__item[data-offset="-2"],
    .hero .product-picker__item[data-offset="2"] {
        transform: none;
        opacity: 0.55;
    }
}
