/* ============================================================
   BUTTON — Full-width lines
   ============================================================ */
.btn-line {
    display: inline-block;
    position: relative;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    padding: 16px 40px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    min-width: 200px;
    text-align: center;
}

.btn-line:hover {
    color: var(--accent);
}

.btn-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    height: 1px;
    background: var(--line-px);
    z-index: 0;
}

.btn-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    height: 1px;
    background: var(--line-px);
    z-index: 0;
}

.btn-line .l-left,
.btn-line .l-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-px);
    z-index: 1;
}

.btn-line .l-left { left: 0; }
.btn-line .l-right { right: 0; }

.btn-line .l-h1,
.btn-line .l-h2 {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 1px;
    background: var(--line);
    z-index: 1;
}

.btn-line .l-h1 { top: 25%; }
.btn-line .l-h2 { bottom: 25%; }

.btn-line .l-v1,
.btn-line .l-v2 {
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--line);
    z-index: 1;
}

.btn-line .l-v1 { left: 25%; }
.btn-line .l-v2 { right: 25%; }

.btn-line .dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line-strong);
    z-index: 2;
    transition: all 0.3s;
}

.btn-line .dot.filled {
    background: var(--dot-filled);
    border-color: var(--line-strong);
}

.btn-line .dot.tl { top: -2.5px; left: -2.5px; }
.btn-line .dot.tr { top: -2.5px; right: -2.5px; }
.btn-line .dot.bl { bottom: -2.5px; left: -2.5px; }
.btn-line .dot.br { bottom: -2.5px; right: -2.5px; }
.btn-line .dot.c1 { top: -2.5px; left: 25%; }
.btn-line .dot.c2 { top: -2.5px; right: 25%; }
.btn-line .dot.c3 { bottom: -2.5px; left: 25%; }
.btn-line .dot.c4 { bottom: -2.5px; right: 25%; }
.btn-line .dot.c5 { left: -2.5px; top: 25%; }
.btn-line .dot.c6 { left: -2.5px; bottom: 25%; }
.btn-line .dot.c7 { right: -2.5px; top: 25%; }
.btn-line .dot.c8 { right: -2.5px; bottom: 25%; }

.btn-line:hover::before,
.btn-line:hover::after,
.btn-line:hover .l-left,
.btn-line:hover .l-right,
.btn-line:hover .l-h1,
.btn-line:hover .l-h2,
.btn-line:hover .l-v1,
.btn-line:hover .l-v2 {
    background: var(--accent);
}

.btn-line:hover .dot {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-line.primary {
    background: var(--btn-bg);
    color: var(--btn-text);
}

.btn-line.primary::before,
.btn-line.primary::after,
.btn-line.primary .l-left,
.btn-line.primary .l-right,
.btn-line.primary .l-h1,
.btn-line.primary .l-h2,
.btn-line.primary .l-v1,
.btn-line.primary .l-v2 {
    background: var(--line-px);
}

.btn-line.primary .dot {
    background: var(--dot-empty);
    border-color: var(--line-strong);
}

.btn-line.primary .dot.filled {
    background: var(--dot-filled);
}

.btn-line.primary:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* ============================================================
   HERO BADGE
   ============================================================ */
.hero-badge {
    display: inline-block;
    position: relative;
    padding: 6px 24px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid var(--line-border);
    background: var(--bg-card);
}

.hero-badge::before,
.hero-badge::after {
    content: '';
    position: absolute;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    height: 1px;
    background: var(--line-px);
    z-index: 0;
}

.hero-badge::before { top: 0; }
.hero-badge::after { bottom: 0; }

.hero-badge .badge-left,
.hero-badge .badge-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-px);
    z-index: 1;
}

.hero-badge .badge-left { left: 0; }
.hero-badge .badge-right { right: 0; }

.hero-badge .bdot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line-border);
    z-index: 2;
}

.hero-badge .bdot.filled {
    background: var(--dot-filled);
    border-color: var(--line-border);
}

.hero-badge .bdot.tl { top: -2.5px; left: -2.5px; }
.hero-badge .bdot.tr { top: -2.5px; right: -2.5px; }
.hero-badge .bdot.bl { bottom: -2.5px; left: -2.5px; }
.hero-badge .bdot.br { bottom: -2.5px; right: -2.5px; }

.hero-badge .b-line-h,
.hero-badge .b-line-v {
    position: absolute;
    background: var(--line);
    opacity: 0.4;
    z-index: 1;
}

.hero-badge .b-line-h { left: 8px; right: 8px; height: 1px; }
.hero-badge .b-line-h.top { top: 25%; }
.hero-badge .b-line-h.bottom { bottom: 25%; }

.hero-badge .b-line-v { top: 4px; bottom: 4px; width: 1px; }
.hero-badge .b-line-v.left { left: 20%; }
.hero-badge .b-line-v.right { right: 20%; }

.hero-badge .bdot-inner {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line);
    z-index: 2;
}

.hero-badge .bdot-inner.d1 { top: 25%; left: 20%; }
.hero-badge .bdot-inner.d2 { top: 25%; right: 20%; }
.hero-badge .bdot-inner.d3 { bottom: 25%; left: 20%; }
.hero-badge .bdot-inner.d4 { bottom: 25%; right: 20%; }

/* ============================================================
   HERO BUTTONS — مینیمال خط‌کشی (هم‌زبان با بقیه سایت)
   ============================================================ */
.btn-hero {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 200px;
    padding: 16px 30px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* براکت‌های گوشه حذف شدند */
.btn-hero::before { display: none; }

.btn-hero i { transition: transform 0.25s ease; }

/* — پر (Start a Project) — */
.btn-hero.primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid var(--btn-bg);
}

.btn-hero.primary:hover {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}

.btn-hero.primary:hover i { transform: translateX(4px); }

/* — خط‌دار (View Portfolio) — */
.btn-hero.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-border);
}

.btn-hero.ghost:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .btn-hero.ghost:hover {
    background: rgba(0, 0, 0, 0.03);
}

.btn-hero .play {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--line-border);
    background: transparent;
    color: inherit;
    font-size: 0.45rem;
    transition: border-color 0.3s ease;
}

.btn-hero .play i { padding-left: 1px; }
.btn-hero.ghost:hover .play { border-color: var(--line-strong); }
.btn-hero.ghost:hover .play i { transform: none; }

.btn-hero:focus-visible {
    outline: 1px solid var(--line-strong);
    outline-offset: 4px;
}