/* ============================================================
   CTA — Wireframe band
   ============================================================ */
.cta-section {
    padding: 70px 0;
}

.cta-box {
    position: relative;
    padding: 54px 32px;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-align: center;
    overflow: visible;
    /* دو خط عمودی چپ و راست کادر */
    box-shadow:
        inset 1px 0 0 var(--line-strong),
        inset -1px 0 0 var(--line-strong);
}

/* خط افقی بالا — تا لبه صفحه */
.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    height: 1px;
    background: var(--line-px);
    pointer-events: none;
}

/* خط افقی پایین — تا لبه صفحه */
.cta-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    height: 1px;
    background: var(--line-px);
    pointer-events: none;
}

.cta-box .cta-inner {
    position: relative;
    z-index: 3;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.cta-box p {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.45;
    max-width: 520px;
    margin: 0 auto 30px;
}

/* آدرس تلگرام — تنها کانال ارتباطی */
.cta-box .cta-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -10px 0 24px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    transition: opacity 0.25s ease;
}

.cta-box .cta-handle i { font-size: 0.9rem; }

.cta-box .cta-handle:hover { opacity: 0.75; }

.cta-box .actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====== دکمه‌های خط‌دار CTA ====== */
.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 230px;
    padding: 17px 30px;
    background: transparent;
    border: 0;
    color: var(--text);
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 var(--line-strong),
        inset 0 -1px 0 var(--line-strong),
        inset 1px 0 0 var(--line-strong),
        inset -1px 0 0 var(--line-strong);
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* نوار نوری که روی دکمه رد می‌شود */
.cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        transparent 25%,
        color-mix(in srgb, var(--accent) 16%, transparent) 50%,
        transparent 75%
    );
    transform: translateX(-120%);
    transition: transform 0.75s ease;
}

.cta-btn:hover {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--accent) 60%, transparent),
        inset 0 -1px 0 color-mix(in srgb, var(--accent) 60%, transparent),
        inset 1px 0 0 color-mix(in srgb, var(--accent) 40%, transparent),
        inset -1px 0 0 color-mix(in srgb, var(--accent) 40%, transparent);
}

.cta-btn:hover::after { transform: translateX(120%); }

.cta-btn:active { transform: translateY(1px); }

.cta-btn:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
}

.cta-label {
    position: relative;
    z-index: 1;
}

/* فلش خطی سمت راست متن */
.cta-arrow {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 8px;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.cta-arrow::before {
    content: '';
    position: absolute;
    left: 0;
    right: 2px;
    top: 50%;
    height: 1px;
    background: currentColor;
}

.cta-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.cta-btn:hover .cta-arrow { transform: translateX(5px); }

/* دکمه اصلی (Start Your Project) */
.cta-btn.primary {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--accent) 55%, transparent),
        inset 0 -1px 0 color-mix(in srgb, var(--accent) 55%, transparent),
        inset 1px 0 0 color-mix(in srgb, var(--accent) 35%, transparent),
        inset -1px 0 0 color-mix(in srgb, var(--accent) 35%, transparent);
}

.cta-btn.primary:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow:
        inset 0 1px 0 var(--accent),
        inset 0 -1px 0 var(--accent),
        inset 1px 0 0 var(--accent),
        inset -1px 0 0 var(--accent);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .cta-section { padding: 55px 0; }

    .cta-section .cta-box { padding: 40px 18px; }
    .cta-section .cta-box h2 { font-size: 1.45rem; }
    .cta-section .cta-box p { font-size: 0.84rem; margin-bottom: 24px; }

    .cta-box::before,
    .cta-box::after {
        left: -1200px;
        right: -1200px;
    }

    .cta-section .cta-box .actions { flex-direction: column; align-items: stretch; }

    .cta-btn { width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
    .cta-section { padding: 45px 0; }

    .cta-section .cta-box { padding: 32px 14px; }
    .cta-section .cta-box h2 { font-size: 1.25rem; letter-spacing: -0.5px; }
    .cta-section .cta-box p { font-size: 0.8rem; }

    .cta-btn {
        padding: 15px 18px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
}
