/* =========================================================
   Mars Softworks
   استایل اصلی وب‌سایت
   ========================================================= */


/* =========================================================
   تنظیمات پایه
   ========================================================= */

   :root {
    --mars-yellow: #f5be2d;
    --mars-yellow-soft: #ffd968;
    --mars-yellow-dark: #d99d0b;

    --mars-navy: #080d18;
    --mars-navy-light: #101827;
    --mars-panel: #121b2b;
    --mars-panel-light: #172236;

    --mars-white: #f5f7fb;
    --mars-text: #c8cfda;
    --mars-muted: #7f8a9d;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.14);

    --container: 1180px;
    --radius: 18px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    --shadow-soft:
        0 12px 35px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   Reset
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(245, 190, 45, 0.08),
            transparent 30%
        ),
        var(--mars-navy);

    color: var(--mars-white);

    font-family:
        Inter,
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   کانتینر اصلی
   ========================================================= */

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    background:
        rgba(8, 13, 24, 0.78);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}

.header-inner {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   برند
   ========================================================= */

.brand {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-weight: 700;
}

.brand-name {
    font-size: 17px;

    letter-spacing:
        -0.3px;
}


/* =========================================================
   لوگوی هدر
   ========================================================= */

.site-header .brand-logo {
    width: 80px;
    height: 80px;

    object-fit: contain;

    display: block;

    flex-shrink: 0;
}


/* =========================================================
   لوگوی فوتر
   ========================================================= */

.site-footer .brand-logo {
    width: 60px;
    height: 60px;

    object-fit: contain;

    display: block;

    flex-shrink: 0;
}


/* =========================================================
   برند قدیمی - در صورت وجود
   ========================================================= */

.brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            var(--mars-yellow),
            var(--mars-yellow-dark)
        );

    color: #111;

    font-size: 18px;
    font-weight: 900;

    box-shadow:
        0 8px 25px
        rgba(245, 190, 45, 0.2);
}


/* =========================================================
   منوی اصلی
   ========================================================= */

.main-nav {
    display: flex;

    align-items: center;

    gap: 32px;
}

.main-nav a {
    position: relative;

    color: var(--mars-text);

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.25s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -8px;

    height: 2px;

    background:
        var(--mars-yellow);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform 0.25s ease;
}

.main-nav a:hover {
    color: var(--mars-white);
}

.main-nav a:hover::after {
    transform:
        scaleX(1);
}


/* =========================================================
   دکمه Header
   ========================================================= */

.header-cta {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 18px;

    border:
        1px solid
        rgba(245, 190, 45, 0.35);

    border-radius: 10px;

    background:
        rgba(245, 190, 45, 0.08);

    color:
        var(--mars-yellow);

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.header-cta:hover {
    background:
        rgba(245, 190, 45, 0.15);

    border-color:
        rgba(245, 190, 45, 0.6);

    transform:
        translateY(-2px);
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
    min-height: 850px;

    padding-top: 78px;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -250px;
    top: 50px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(245, 190, 45, 0.12),
            transparent 68%
        );

    pointer-events: none;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(380px, 0.9fr);

    align-items: center;

    gap: 60px;

    position: relative;

    z-index: 2;
}

.hero-text {
    max-width: 680px;
}

.eyebrow,
.section-label {
    display: inline-block;

    color:
        var(--mars-yellow);

    font-size: 12px;
    font-weight: 800;

    letter-spacing:
        2.5px;
}

.hero h1 {
    margin-top: 20px;

    max-width: 760px;

    font-size:
        clamp(52px, 7vw, 92px);

    line-height:
        0.98;

    letter-spacing:
        -4px;
}

.hero h1 span {
    color:
        var(--mars-yellow);
}

.hero p {
    max-width: 600px;

    margin-top: 28px;

    color:
        var(--mars-text);

    font-size: 18px;

    line-height:
        1.8;
}


/* =========================================================
   دکمه‌های Hero
   ========================================================= */

.hero-actions {
    margin-top: 36px;

    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}

/* =========================================================
   اطلاعات پلتفرم‌های Hero
   ========================================================= */

   .hero-meta {
    margin-top: 24px;

    display: flex;

    align-items: center;

    gap: 22px;

    direction: ltr;

    width: fit-content;

    margin-right: 0;

    margin-left: auto;

    color:
        var(--mars-muted);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.8px;
}

/* کلاس اصلی جدید */

.btn,
.button {
    min-height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 22px;

    border-radius: 11px;

    border: 1px solid transparent;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover,
.button:hover {
    transform:
        translateY(-2px);
}


/* دکمه اصلی */

.btn-primary,
.button-primary {
    background:
        var(--mars-yellow);

    color:
        #111;

    box-shadow:
        0 12px 30px
        rgba(245, 190, 45, 0.18);
}

.btn-primary:hover,
.button-primary:hover {
    background:
        var(--mars-yellow-soft);

    box-shadow:
        0 16px 38px
        rgba(245, 190, 45, 0.28);
}


/* دکمه ثانویه */

.btn-secondary,
.button-secondary {
    border:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);

    color:
        var(--mars-white);
}

.btn-secondary:hover,
.button-secondary:hover {
    background:
        rgba(255, 255, 255, 0.07);

    border-color:
        var(--border-strong);
}



/* =========================================================
   تصویر/سیستم Mars در Hero
   ========================================================= */

.hero-visual {
    min-height: 520px;

    position: relative;

    display: grid;

    place-items: center;
}


/* سیستم جدید Mars */

.planet-system {
    width: 100%;
    height: 520px;

    position: relative;

    display: grid;

    place-items: center;
}


/* مدارها */

.orbit {
    position: absolute;

    border:
        1px solid
        rgba(245, 190, 45, 0.18);

    border-radius: 50%;

    pointer-events: none;
}

.orbit-1 {
    width: 390px;
    height: 180px;

    transform:
        rotate(-22deg);

    animation:
        orbitRotate 18s linear infinite;
}

.orbit-2 {
    width: 500px;
    height: 250px;

    transform:
        rotate(28deg);

    animation:
        orbitRotate 28s linear infinite reverse;
}

.orbit-3 {
    width: 300px;
    height: 420px;

    transform:
        rotate(70deg);

    border-color:
        rgba(245, 190, 45, 0.10);

    animation:
        orbitRotate 32s linear infinite;
}


/* نقاط مدار */

.orbit::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--mars-yellow);

    box-shadow:
        0 0 15px
        rgba(245, 190, 45, 0.7);
}

.orbit-1::after {
    top: 12px;
    left: 50%;
}

.orbit-2::after {
    bottom: 18px;
    right: 16%;
}

.orbit-3::after {
    top: 18%;
    left: 8%;
}


/* هاله Mars */

.planet-glow {
    position: relative;

    width: 290px;
    height: 290px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(245, 190, 45, 0.16),
            transparent 68%
        );

    filter:
        drop-shadow(
            0 0 60px
            rgba(245, 190, 45, 0.16)
        );
}


/* خود سیاره */

.planet {
    width: 210px;
    height: 210px;

    position: relative;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 32% 28%,
            #ffe9a0 0%,
            #f5be2d 25%,
            #c88700 58%,
            #765000 100%
        );

    box-shadow:
        0 0 0 15px
        rgba(245, 190, 45, 0.025),

        0 0 90px
        rgba(245, 190, 45, 0.22),

        inset -25px -25px 45px
        rgba(0, 0, 0, 0.25);

    animation:
        marsFloat 6s ease-in-out infinite;

    overflow: hidden;

    z-index: 3;
}


/* نور روی سیاره */

.planet-highlight {
    position: absolute;

    width: 85px;
    height: 55px;

    left: 34px;
    top: 30px;

    border-radius: 50%;

    background:
        rgba(255, 242, 190, 0.28);

    filter:
        blur(5px);

    transform:
        rotate(-18deg);
}


/* برچسب Mars */

.planet-label {
    position: absolute;

    bottom: 42px;

    left: 50%;

    transform:
        translateX(-50%);

    z-index: 5;

    color:
        rgba(245, 190, 45, 0.8);

    font-size: 12px;

    font-weight: 900;

    letter-spacing:
        4px;
}


/* =========================================================
   سیستم قدیمی Mars - برای سازگاری
   ========================================================= */

.mars-core {
    width: 210px;
    height: 210px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 32% 28%,
            #ffe9a0 0%,
            #f5be2d 25%,
            #c88700 58%,
            #765000 100%
        );

    color:
        #17120a;

    font-size: 92px;
    font-weight: 900;

    box-shadow:
        0 0 0 15px
        rgba(245, 190, 45, 0.025),

        0 0 90px
        rgba(245, 190, 45, 0.22),

        inset -25px -25px 45px
        rgba(0, 0, 0, 0.25);

    position: relative;

    z-index: 3;

    animation:
        marsFloat 6s ease-in-out infinite;
}

.mars-core::before {
    content: "";

    position: absolute;

    width: 42px;
    height: 26px;

    left: 48px;
    top: 62px;

    border-radius: 50%;

    background:
        rgba(92, 57, 0, 0.22);

    transform:
        rotate(-18deg);
}

.mars-core::after {
    content: "";

    position: absolute;

    width: 26px;
    height: 18px;

    right: 42px;
    bottom: 55px;

    border-radius: 50%;

    background:
        rgba(92, 57, 0, 0.18);

    transform:
        rotate(25deg);
}

.mars-orbit {
    position: absolute;

    border:
        1px solid
        rgba(245, 190, 45, 0.18);

    border-radius: 50%;

    animation:
        orbitRotate 18s linear infinite;
}

.orbit-one {
    width: 390px;
    height: 180px;

    transform:
        rotate(-22deg);
}

.orbit-two {
    width: 500px;
    height: 250px;

    transform:
        rotate(28deg);

    animation-duration:
        28s;

    animation-direction:
        reverse;
}

.orbit-one::after,
.orbit-two::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--mars-yellow);

    box-shadow:
        0 0 15px
        rgba(245, 190, 45, 0.7);
}

.orbit-one::after {
    top: 12px;
    left: 50%;
}

.orbit-two::after {
    bottom: 18px;
    right: 16%;
}


/* =========================================================
   Sections
   ========================================================= */

.section {
    padding:
        120px 0;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 52px;
}

.section-heading h2 {
    margin-top: 14px;

    font-size:
        clamp(36px, 5vw, 58px);

    line-height:
        1.05;

    letter-spacing:
        -2px;
}

.section-heading p {
    margin-top: 18px;

    color:
        var(--mars-text);

    font-size: 16px;
}


/* =========================================================
   محصولات
   ========================================================= */

.products-section {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.018)
        );
}

.products-grid {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 22px;
}

.product-card {
    position: relative;

    padding: 34px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        var(--shadow);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.product-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(245, 190, 45, 0.3);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        );
}

.product-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.product-icon {
    width: 96px;
    height: 96px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            var(--mars-yellow),
            #b87900
        );

    color:
        #111;

    font-size: 28px;
    font-weight: 900;

    box-shadow:
        0 20px 45px
        rgba(245, 190, 45, 0.18);
}

.product-status {
    padding:
        7px 12px;

    border:
        1px solid
        rgba(245, 190, 45, 0.28);

    border-radius: 999px;

    background:
        rgba(245, 190, 45, 0.07);

    color:
        var(--mars-yellow);

    font-size: 11px;
    font-weight: 800;
}

.product-number {
    color:
        rgba(245, 190, 45, 0.5);

    font-size: 12px;

    font-weight: 800;

    letter-spacing:
        2px;
}

.product-category {
    color:
        var(--mars-yellow);

    font-size: 11px;
    font-weight: 800;

    letter-spacing:
        2px;
}

.product-info h3 {
    margin-top: 8px;

    font-size: 32px;

    line-height: 1.15;
}

.product-info p {
    max-width: 720px;

    margin-top: 12px;

    color:
        var(--mars-text);

    font-size: 15px;
}

/* =========================================================
   قابلیت‌های محصول
   ========================================================= */

   .product-features {
    display: flex;

    flex-direction: column;

    gap: 9px;

    margin-top: 22px;

    padding:
        0 24px 0 0;

    list-style-position:
        outside;

    direction:
        rtl;
}

.product-features li {
    padding-right:
        4px;

    color:
        var(--mars-text);

    font-size:
        14px;

    line-height:
        1.8;
}

.product-features li::marker {
    color:
        var(--mars-yellow);

    font-size:
        9px;
}

.product-link,
.text-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 22px;

    color:
        var(--mars-yellow);

    font-size: 14px;

    font-weight: 700;

    transition:
        gap 0.25s ease,
        color 0.25s ease;
}

.product-link:hover,
.text-link:hover {
    gap: 15px;

    color:
        var(--mars-yellow-soft);
}


/* محصول آینده */

.future-product {
    opacity: 0.72;
}

.future-product:hover {
    opacity: 0.9;
}

.muted-icon {
    background:
        rgba(255, 255, 255, 0.05);

    color:
        var(--mars-muted);

    box-shadow:
        none;
}

.future-line {
    width: 60px;
    height: 2px;

    margin-top: 20px;

    background:
        rgba(245, 190, 45, 0.35);
}

.coming-soon {
    color:
        var(--mars-muted);

    font-size: 11px;
    font-weight: 800;

    letter-spacing:
        1.5px;
}


/* =========================================================
   خدمات
   ========================================================= */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.service-card {
    min-height: 280px;

    padding: 28px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.service-card:hover {
    transform:
        translateY(-5px);

    background:
        rgba(255, 255, 255, 0.045);

    border-color:
        rgba(245, 190, 45, 0.25);
}

.service-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(245, 190, 45, 0.22);

    border-radius: 15px;

    background:
        rgba(245, 190, 45, 0.07);

    color:
        var(--mars-yellow);

    font-size: 20px;
}

.service-number {
    color:
        var(--mars-yellow);

    font-size: 13px;
    font-weight: 800;
}

.service-card h3 {
    margin-top: 35px;

    font-size: 21px;

    line-height: 1.3;
}

.service-card p {
    margin-top: 12px;

    color:
        var(--mars-muted);

    font-size: 14px;
}


/* =========================================================
   درباره ما
   ========================================================= */

.about-section {
    background:
        var(--mars-navy-light);
}

.about-grid {
    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap: 80px;

    align-items: center;
}

.about-visual {
    min-height: 360px;

    display: grid;

    place-items: center;

    position: relative;
}

.about-logo-ring {
    width: 300px;
    height: 300px;

    display: grid;

    place-items: center;

    position: relative;

    border:
        1px solid
        rgba(245, 190, 45, 0.18);

    border-radius: 50%;

    box-shadow:
        0 0 70px
        rgba(245, 190, 45, 0.06);
}

.about-logo-ring::before {
    content: "";

    position: absolute;

    inset: 22px;

    border:
        1px dashed
        rgba(245, 190, 45, 0.16);

    border-radius: 50%;
}

.about-logo-ring img {
    width: 150px;
    height: 150px;

    object-fit: contain;

    position: relative;

    z-index: 2;
}

.about-content {
    max-width: 700px;
}

.about-content h2 {
    margin-top: 14px;

    font-size:
        clamp(38px, 5vw, 62px);

    line-height:
        1.05;

    letter-spacing:
        -2px;
}

.about-content p {
    margin-top: 22px;

    color:
        var(--mars-text);

    font-size: 16px;
}

.about-points {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;

    margin-top: 30px;
}

.about-point {
    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.025);
}

.about-point strong {
    display: block;

    color:
        var(--mars-yellow);

    font-size: 14px;
}

.about-point span {
    display: block;

    margin-top: 5px;

    color:
        var(--mars-muted);

    font-size: 12px;
}


/* سازگاری با ساختار قدیمی */

.about-label {
    font-size:
        clamp(110px, 18vw, 240px);

    font-weight: 900;

    line-height:
        0.8;

    color:
        rgba(245, 190, 45, 0.08);

    user-select: none;
}

.about-text {
    max-width: 680px;
}

.about-text h2 {
    margin-top: 14px;

    font-size:
        clamp(38px, 5vw, 62px);

    line-height:
        1.05;

    letter-spacing:
        -2px;
}

.about-text p {
    margin-top: 22px;

    color:
        var(--mars-text);

    font-size: 16px;
}


/* =========================================================
   تماس
   ========================================================= */

.contact-section {
    text-align: center;
}

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 45px;
}

.contact-card {
    min-height: 170px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.contact-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(245, 190, 45, 0.28);

    background:
        rgba(255, 255, 255, 0.045);
}

.contact-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        rgba(245, 190, 45, 0.08);

    color:
        var(--mars-yellow);

    font-size: 18px;
}

.contact-label {
    margin-top: 14px;

    color:
        var(--mars-white);

    font-size: 14px;

    font-weight: 700;
}

.contact-ltr {
    direction: ltr !important;

    unicode-bidi:
        bidi-override;

    text-align: left;

    display: inline-block;
}

.contact-card-disabled {
    opacity: 0.55;

    cursor: default;
}

.contact-cta {
    margin-top: 35px;
}

.contact-cta-kicker {
    display: block;

    margin-bottom: 10px;

    color:
        var(--mars-muted);

    font-size: 12px;
}


/* ساختار قدیمی تماس - برای سازگاری */

.contact-content {
    max-width: 800px;

    margin-inline: auto;
}

.contact-content h2 {
    margin-top: 12px;

    font-size:
        clamp(48px, 7vw, 82px);

    line-height: 1.05;

    letter-spacing:
        -3px;
}

.contact-content p {
    max-width: 650px;

    margin:
        22px auto 0;

    color:
        var(--mars-text);

    font-size: 17px;
}

.contact-content .button,
.contact-content .btn {
    margin-top: 30px;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    border-top:
        1px solid var(--border);

    background:
        #060a12;
}

.footer-inner {
    min-height: 100px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 12px;
}

.footer-brand > div {
    display: flex;

    flex-direction: column;
}

.footer-brand strong {
    font-size: 14px;
}

.footer-brand span {
    color:
        var(--mars-muted);

    font-size: 11px;
}

.footer-contact {
    display: flex;

    align-items: center;

    gap: 20px;
}

.footer-contact a {
    color:
        var(--mars-muted);

    font-size: 12px;

    transition:
        color 0.25s ease;
}

.footer-contact a:hover {
    color:
        var(--mars-yellow);
}

.footer-copy {
    display: flex;

    gap: 24px;

    color:
        var(--mars-muted);

    font-size: 11px;
}


/* =========================================================
   انیمیشن‌ها
   ========================================================= */

@keyframes marsFloat {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-12px);
    }
}

@keyframes orbitRotate {

    from {
        rotate:
            0deg;
    }

    to {
        rotate:
            360deg;
    }
}


/* =========================================================
   واکنش‌گرایی - تبلت
   ========================================================= */

@media (max-width: 1000px) {

    .hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(320px, 0.8fr);

        gap: 35px;
    }

    .hero h1 {
        font-size:
            clamp(48px, 7vw, 76px);
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .about-grid {
        gap: 50px;
    }

    .contact-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   واکنش‌گرایی - موبایل بزرگ
   ========================================================= */

@media (max-width: 900px) {

    .hero {
        min-height:
            auto;

        padding-top:
            150px;

        padding-bottom:
            100px;
    }

    .hero-grid {
        grid-template-columns:
            1fr;
    }

    .hero-visual {
        min-height:
            420px;
    }

    .planet-system {
        height:
            420px;
    }

    .about-grid {
        grid-template-columns:
            1fr;

        gap:
            35px;
    }

    .about-visual {
        min-height:
            300px;
    }

    .about-logo-ring {
        width:
            260px;

        height:
            260px;
    }

    .about-points {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   واکنش‌گرایی - موبایل
   ========================================================= */

@media (max-width: 640px) {

    .container {
        width:
            min(
                calc(100% - 30px),
                var(--container)
            );
    }


    /* -------------------------
       Header
       ------------------------- */

    .header-inner {
        min-height:
            68px;

        gap:
            12px;
    }

    .site-header .brand-logo {
        width:
            80px;

        height:
            80px;
    }

    .brand-name {
        font-size:
            15px;
    }

    .main-nav {
        display:
            none;
    }

    .header-cta {
        min-height:
            38px;

        padding:
            0 13px;

        font-size:
            11px;
    }


    /* -------------------------
       Hero
       ------------------------- */

    .hero {
        padding-top:
            130px;

        padding-bottom:
            75px;
    }

    .hero h1 {
        font-size:
            50px;

        letter-spacing:
            -2.5px;
    }

    .hero p {
        font-size:
            16px;
    }

    .hero-actions {
        gap:
            10px;
    }

    .btn,
    .button {
        min-height:
            46px;

        padding:
            0 18px;

        font-size:
            13px;
    }

    .hero-visual {
        min-height:
            350px;
    }

    .planet-system {
        height:
            350px;
    }

    .planet-glow {
        width:
            220px;

        height:
            220px;
    }

    .planet {
        width:
            155px;

        height:
            155px;
    }

    .orbit-1 {
        width:
            290px;

        height:
            140px;
    }

    .orbit-2 {
        width:
            360px;

        height:
            180px;
    }

    .orbit-3 {
        width:
            230px;

        height:
            320px;
    }

    .planet-label {
        bottom:
            25px;

        font-size:
            10px;
    }


    /* -------------------------
       Sections
       ------------------------- */

    .section {
        padding:
            85px 0;
    }

    .section-heading {
        margin-bottom:
            35px;
    }

    .section-heading h2 {
        font-size:
            38px;
    }


    /* -------------------------
       Products
       ------------------------- */

    .product-card {
        padding:
            28px;
    }

    .product-card-top {
        align-items:
            flex-start;
    }

    .product-icon {
        width:
            90px;

        height:
            90px;

        border-radius:
            22px;

        font-size:
            24px;
    }

    .product-info h3 {
        font-size:
            28px;
    }

    .product-features {
        gap:
            6px;
    }


    /* -------------------------
       Services
       ------------------------- */

    .services-grid {
        grid-template-columns:
            1fr;
    }

    .service-card {
        min-height:
            auto;
    }

    .service-card h3 {
        margin-top:
            25px;
    }


    /* -------------------------
       About
       ------------------------- */

    .about-points {
        grid-template-columns:
            1fr;
    }

    .about-logo-ring {
        width:
            230px;

        height:
            230px;
    }

    .about-logo-ring img {
        width:
            120px;

        height:
            120px;
    }


    /* -------------------------
       Contact
       ------------------------- */

    .contact-grid {
        grid-template-columns:
            1fr;

        margin-top:
            30px;
    }

    .contact-card {
        min-height:
            145px;
    }


    /* -------------------------
       Footer
       ------------------------- */

    .footer-inner {
        padding:
            25px 0;

        flex-direction:
            column;

        align-items:
            flex-start;
    }

    .footer-contact {
        flex-wrap:
            wrap;

        gap:
            12px 18px;
    }

    .footer-copy {
        flex-direction:
            column;

        gap:
            5px;
    }
}


/* =========================================================
   موبایل خیلی کوچک
   ========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size:
            43px;
    }

    .hero-actions {
        flex-direction:
            column;

        align-items:
            stretch;
    }

    .btn,
    .button {
        width:
            100%;
    }

    .product-card {
        padding:
            22px;
    }

    .product-card-top {
        flex-direction:
            column;
    }

    .product-status {
        align-self:
            flex-start;
    }

    .contact-card {
        padding:
            20px;
    }
}
/* =========================================================
   گالری Mars Print
   ========================================================= */

   .mars-print-gallery {
    margin-top: 34px;
}


/* =========================================================
   تصویر اصلی گالری
   ========================================================= */

.mars-print-main-image {
    position: relative;

    width: 100%;

    display: block;

    padding: 0;

    border: 1px solid var(--border);

    border-radius: 16px;

    overflow: hidden;

    background:
        rgba(0, 0, 0, 0.28);

    cursor: zoom-in;

    appearance: none;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.mars-print-main-image:hover {
    border-color:
        rgba(245, 190, 45, 0.38);

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.28);

    transform:
        translateY(-2px);
}

.mars-print-main-image img {
    width: 100%;

    height: auto;

    max-height: 620px;

    display: block;

    object-fit: contain;

    background:
        #0a0f19;
}


/* =========================================================
   راهنمای بزرگ‌نمایی
   ========================================================= */

.gallery-zoom-hint {
    position: absolute;

    left: 18px;
    bottom: 18px;

    padding:
        8px 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    background:
        rgba(8, 13, 24, 0.78);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    color:
        var(--mars-white);

    font-size:
        11px;

    font-weight:
        600;

    pointer-events:
        none;

    opacity:
        0.9;
}


/* =========================================================
   تصاویر کوچک
   ========================================================= */

.mars-print-thumbnails {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;

    margin-top: 12px;
}

.mars-print-thumbnail {
    position: relative;

    padding: 0;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 11px;

    background:
        rgba(0, 0, 0, 0.25);

    cursor: pointer;

    appearance: none;

    transition:
        border-color 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

.mars-print-thumbnail img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.mars-print-thumbnail:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(245, 190, 45, 0.45);
}

.mars-print-thumbnail:not(.active) {
    opacity:
        0.58;
}

.mars-print-thumbnail:not(.active):hover {
    opacity:
        0.9;
}

.mars-print-thumbnail.active {
    opacity:
        1;

    border-color:
        var(--mars-yellow);

    box-shadow:
        0 0 0 1px
        rgba(245, 190, 45, 0.18),

        0 8px 25px
        rgba(245, 190, 45, 0.10);
}


/* =========================================================
   Lightbox
   ========================================================= */

.mars-lightbox {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        30px;

    background:
        rgba(3, 6, 12, 0.94);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.mars-lightbox.open {
    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;
}


/* =========================================================
   پس‌زمینه Lightbox
   ========================================================= */

.mars-lightbox-backdrop {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(245, 190, 45, 0.07),
            transparent 55%
        );

    pointer-events:
        none;
}


/* =========================================================
   محتوای تصویر بزرگ
   ========================================================= */

.mars-lightbox-content {
    position: relative;

    z-index: 2;

    max-width:
        min(1200px, 90vw);

    max-height:
        88vh;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius:
        16px;

    background:
        #080d18;

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.65);

    overflow:
        hidden;
}

.mars-lightbox-content img {
    display: block;

    max-width:
        88vw;

    max-height:
        84vh;

    width:
        auto;

    height:
        auto;

    object-fit:
        contain;
}


/* =========================================================
   دکمه بستن
   ========================================================= */

.mars-lightbox-close {
    position: absolute;

    top: 24px;
    right: 28px;

    z-index: 5;

    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius:
        50%;

    background:
        rgba(18, 27, 43, 0.86);

    color:
        var(--mars-white);

    font-size:
        30px;

    font-weight:
        300;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.mars-lightbox-close:hover {
    background:
        rgba(245, 190, 45, 0.14);

    border-color:
        rgba(245, 190, 45, 0.45);

    color:
        var(--mars-yellow);

    transform:
        rotate(90deg);
}


/* =========================================================
   دکمه‌های قبلی و بعدی
   ========================================================= */

.mars-lightbox-nav {
    position: absolute;

    top: 50%;

    z-index: 5;

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius:
        50%;

    background:
        rgba(18, 27, 43, 0.86);

    color:
        var(--mars-white);

    font-size:
        38px;

    font-weight:
        300;

    line-height:
        1;

    cursor:
        pointer;

    transform:
        translateY(-50%);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.mars-lightbox-nav:hover {
    background:
        rgba(245, 190, 45, 0.14);

    border-color:
        rgba(245, 190, 45, 0.45);

    color:
        var(--mars-yellow);
}

.mars-lightbox-prev {
    left:
        24px;
}

.mars-lightbox-next {
    right:
        24px;
}


/* =========================================================
   شمارنده تصاویر
   ========================================================= */

.mars-lightbox-counter {
    position: absolute;

    left: 50%;
    bottom: 12px;

    z-index: 3;

    transform:
        translateX(-50%);

    padding:
        5px 11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius:
        999px;

    background:
        rgba(8, 13, 24, 0.82);

    color:
        var(--mars-text);

    font-size:
        11px;

    font-weight:
        700;

    direction:
        ltr;

    pointer-events:
        none;
}


/* =========================================================
   واکنش‌گرایی گالری
   ========================================================= */

@media (max-width: 640px) {

    .mars-print-gallery {
        margin-top:
            28px;
    }

    .mars-print-thumbnails {
        gap:
            7px;
    }

    .mars-print-thumbnail {
        border-radius:
            8px;
    }

    .gallery-zoom-hint {
        left:
            10px;

        bottom:
            10px;

        padding:
            6px 9px;

        font-size:
            9px;
    }

    .mars-lightbox {
        padding:
            16px;
    }

    .mars-lightbox-content {
        max-width:
            94vw;

        max-height:
            82vh;

        border-radius:
            12px;
    }

    .mars-lightbox-content img {
        max-width:
            94vw;

        max-height:
            78vh;
    }

    .mars-lightbox-close {
        top:
            14px;

        right:
            14px;

        width:
            42px;

        height:
            42px;

        font-size:
            27px;
    }

    .mars-lightbox-nav {
        width:
            42px;

        height:
            42px;

        font-size:
            30px;
    }

    .mars-lightbox-prev {
        left:
            10px;
    }

    .mars-lightbox-next {
        right:
            10px;
    }

}