/* ============================================================
   HERO — greenpi.io
   ============================================================ */
.hero {
    --hero-g: var(--accent, #3bf59b);
    --hero-b: #0ea5ff;
    --hero-mono: 'Inter', sans-serif;
    /* خطوط دکور هیرو، هم‌رنگ بقیه سایت */
    --hero-line: var(--line-strong);
    --hero-line-strong: var(--line-border);
    /* گرادیان هیرو */
    --hl-1: #48ff91;
    --hl-2: #2d9fff;
    padding: 80px 0 24px;
}

/* خطوط عمودی چپ و راست بخش هیرو */
.hero .inner::before,
.hero .inner::after {
    background: var(--hero-line);
    top: -80px;
    bottom: -24px;
}

.hero::after {
    background: var(--hero-line);
}

.hero-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: clamp(600px, 82vh, 780px);
    padding-bottom: 72px;
}

/* ====== ستون متن ====== */
.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
    min-width: 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 40px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.hero-title {
    margin: 0 0 26px;
    min-height: 3.12em;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 4.1vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.04;
    color: var(--text, #fff);
}

.hero-title .hl {
    background-image: linear-gradient(100deg, var(--hl-1), var(--hl-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-title .ti-cursor {
    color: var(--text-muted);
    font-weight: 300;
    margin-left: 2px;
}

.hero-sub {
    margin: 0 0 40px;
    max-width: 480px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-sub.show { opacity: 1; transform: none; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-left: 7px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.12s, transform 0.6s ease 0.12s;
    pointer-events: none;
}
.hero-actions.show { opacity: 1; transform: none; pointer-events: auto; }


/* ============================================================
   HERO ART — تصویر جدید (جایگزین ربات)
   ============================================================ */
.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    z-index: 1;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.hero-image img {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    object-fit: contain;
    /* انیمیشن شناور ملایم */
    animation: heroFloat 6s ease-in-out infinite;
    /* سایه‌ی نئونی ملایم هم‌رنگ سایت */
    filter: drop-shadow(0 0 40px rgba(72, 255, 145, 0.18))
            drop-shadow(0 0 80px rgba(45, 159, 255, 0.15));
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* احترام به تنظیمات کاربر (کاهش حرکت) */
@media (prefers-reduced-motion: reduce) {
    .hero-image img { animation: none; }
}


/* ============================================================
   TRUST BAR — wireframe strip (site form)
   ============================================================ */
.trust-section {
    --t-line: var(--line-strong);
    --t-ink: var(--text-muted);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.trust-section,
.trust-section .container,
.trust-section .inner {
    overflow: visible !important;
}

/* خطوط و نقطه‌های سکشن، هم‌رنگ بقیه سایت */
.trust-section::before,
.trust-section::after,
.trust-section .inner::before,
.trust-section .inner::after {
    background: var(--line-px) !important;
}

.trust-section .inner .dot {
    background: var(--dot-empty) !important;
    border-color: var(--t-line) !important;
    box-shadow: none !important;
    width: 5px;
    height: 5px;
}

/* محتوای مرکزی */
.trust-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* عنوان در کادر خط‌کشی */
.trust-section .trust-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 26px !important;
    padding: 16px 32px !important;
    position: relative !important;
    text-align: center !important;
    overflow: visible !important;
}

.trust-section .trust-header::before {
    content: '' !important;
    position: absolute !important;
    left: calc(-1 * var(--line-ext)) !important;
    right: calc(-1 * var(--line-ext)) !important;
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    border: 0 !important;
    border-top: 1px solid var(--t-line) !important;
    border-bottom: 1px solid var(--t-line) !important;
    background: none !important;
    pointer-events: none;
}

.trust-section .trust-header::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    border: 0 !important;
    border-left: 1px solid var(--t-line) !important;
    border-right: 1px solid var(--t-line) !important;
    background: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.trust-section .trust-header h2 {
    margin: 0 !important;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.72rem !important;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.75;
}

/* نوار لوگوها: یک برد با خطوط عمودی */
.trust-board {
    position: relative;
    border: 1px solid var(--t-line);
    z-index: 2;
}

.trust-board::before,
.trust-board::after {
    content: '';
    position: absolute;
    top: -1px;
    height: 1px;
    background: var(--t-line);
    pointer-events: none;
    z-index: 3;
}

.trust-board::before { left: 100%; right: calc(-1 * var(--line-ext)); }
.trust-board::after { right: 100%; left: calc(-1 * var(--line-ext)); }

/* خط پایین برد تا لبه‌های صفحه */
.trust-board-edge {
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -1px;
    height: 1px;
    background: var(--t-line);
    pointer-events: none;
    z-index: 3;
}

.trust-board-edge::before,
.trust-board-edge::after {
    content: '';
    position: absolute;
    top: 0;
    height: 1px;
    background: var(--t-line);
    pointer-events: none;
}

.trust-board-edge::before { left: 100%; right: calc(-1 * var(--line-ext)); }
.trust-board-edge::after { right: 100%; left: calc(-1 * var(--line-ext)); }

.trust-logos {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    width: 100%;
}

.trust-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 10px;
    border-right: 1px solid var(--t-line);
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: var(--text);
    opacity: 0.75;
    white-space: nowrap;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.016);
}

[data-theme="light"] .trust-item:hover {
    background: rgba(0, 0, 0, 0.018);
}

.trust-item i {
    color: var(--t-ink);
    font-size: 1rem;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.trust-item:hover i {
    color: var(--text);
    opacity: 1;
}

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 1100px) {
    .hero-eyebrow { letter-spacing: 0.14em; }

    .trust-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .trust-item {
        border-bottom: 1px solid var(--t-line);
    }

    .trust-item:nth-child(3n) {
        border-right: 0;
    }

    .trust-item:nth-last-child(-n+3) {
        border-bottom: 0;
    }
}

@media (max-width: 960px) {
    .hero { padding: 70px 0 24px; }
    /* خطوط عمودی هیرو دقیقاً هم‌اندازه‌ی پدینگ سکشن */
    .hero .inner::before,
    .hero .inner::after { top: -70px; bottom: -24px; }

    .hero-stage {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-bottom: 28px;
    }
    .hero-copy { padding: 8px 0 0; }
    .hero-eyebrow {
        margin-bottom: 24px;
        font-size: 0.66rem;
        letter-spacing: 0.14em;
        white-space: normal;
    }
    .hero-title {
        min-height: 3.12em;
        font-size: clamp(2rem, 7.2vw, 3.2rem);
        letter-spacing: -0.035em;
    }
    .hero-sub {
        font-size: 0.92rem;
        line-height: 1.85;
        margin-bottom: 28px;
    }

    /* تصویر در حالت موبایل: زیر متن، وسط‌چین */
    .hero .hero-art { margin-top: 28px; }
    .hero-image { height: auto; }
    .hero .hero-image img { max-width: min(440px, 86vw); }
}

@media (max-width: 560px) {

    .trust-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-item {
        font-size: 0.8rem;
        padding: 18px 8px;
        border-bottom: 1px solid var(--t-line);
    }

    .trust-item:nth-child(3n) {
        border-right: 1px solid var(--t-line);
    }

    .trust-item:nth-child(2n) {
        border-right: 0;
    }

    .trust-item:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--t-line);
    }

    .trust-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}
/* ============================================================
   HERO — موبایل (زیر ۷۶۸ پیکسل)
   چیدمان تک‌ستونه، تیتر خوانا، دکمه‌های تمام‌عرض و دکور سبک‌تر
   ============================================================ */
@media (max-width: 768px) {
    .hero { padding: 54px 0 22px; }
    .hero .inner::before,
    .hero .inner::after { top: -54px; bottom: -22px; }

    /* فاصله‌ی متن از خطوط عمودیِ کنار صفحه */
    .hero.section-line .inner { padding: 0 20px; }

    .hero-eyebrow {
        margin-bottom: 18px;
        font-size: 0.6rem;
        letter-spacing: 0.12em;
        line-height: 1.6;
    }

    .hero .hero-title {
        margin-bottom: 18px;
        min-height: 3.12em;
        font-size: clamp(1.9rem, 9vw, 2.6rem);
        letter-spacing: -0.035em;
        line-height: 1.08;
    }

    .hero .hero-sub {
        font-size: 0.9rem;
        line-height: 1.85;
        margin-bottom: 24px;
        max-width: none;
    }

    /* دکمه‌ها: عمودی، هم‌عرض و بدون بیرون‌زدگی */
    .hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero .btn-hero {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        padding: 15px 20px;
        font-size: 0.66rem;
        letter-spacing: 0.14em;
    }

    /* تصویر و دکور: بدون ارتفاع اضافه */
    .hero .hero-art {
        margin-top: 24px;
        min-height: 0;
        overflow: hidden;
    }

    /* خطوط شبکه‌ی سمت تصویر سبک‌تر تا شلوغ نشود */
    .hero-fx .gl.v:nth-child(even) { display: none; }
    .hero-fx .gl.v { opacity: 0.5; }
    .hero-fx .gl.h { opacity: 0.35; }
}

@media (max-width: 560px) {
    .hero { padding: 44px 0 20px; }
    .hero .inner::before,
    .hero .inner::after { top: -44px; bottom: -20px; }

    .hero.section-line .inner { padding: 0 16px; }

    .hero .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.25rem);
        margin-bottom: 16px;
    }

    .hero .hero-sub {
        font-size: 0.86rem;
        margin-bottom: 22px;
    }

    .hero .hero-image img { max-width: min(320px, 82vw); }

    .hero-fx .cross,
    .hero-fx .vbar { display: none; }
}

@media (max-width: 400px) {
    .hero-eyebrow { letter-spacing: 0.1em; }

    .hero .hero-title {
        font-size: 1.7rem;
        letter-spacing: -0.03em;
    }

    .hero .hero-sub { font-size: 0.82rem; }

    .hero .btn-hero { padding: 14px 16px; }
}
