/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
    --bg: #0a0a0c;
    --bg-card: #0f0f12;
    --text: #e8e8ec;
    --text-muted: #6a6a7a;
    --line: rgba(255, 255, 255, 0.035);
    --line-strong: rgba(255, 255, 255, 0.065);
    --line-border: rgba(255, 255, 255, 0.08);
    --accent: #48ff91;
    --accent-dim: rgba(72, 255, 145, 0.03);
    --btn-bg: #ffffff;
    --btn-text: #0a0a0c;
    --dot-filled: rgba(255, 255, 255, 0.06);
    --dot-empty: rgba(255, 255, 255, 0.015);
    --line-ext: 2000px;
}

[data-theme="light"] {
    --bg: #f0f0f2;
    --bg-card: #f8f8fa;
    --text: #121214;
    --text-muted: #5a5a6a;
    --line: rgba(0, 0, 0, 0.035);
    --line-strong: rgba(0, 0, 0, 0.065);
    --line-border: rgba(0, 0, 0, 0.08);
    --accent: #2a9d5a;
    --accent-dim: rgba(42, 157, 90, 0.03);
    --btn-bg: #121214;
    --btn-text: #f0f0f2;
    --dot-filled: rgba(0, 0, 0, 0.06);
    --dot-empty: rgba(0, 0, 0, 0.015);
}

/* ============================================================
   2. RESET
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s, color 0.4s;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
    position: relative;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Utility icons */
.icon-right { margin-left: 8px; }
.icon-left { margin-right: 8px; }
.accent-icon { color: var(--accent); }

/* ============================================================
   3. 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-strong);
    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-strong);
    z-index: 0;
}

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

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

.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-strong);
}

.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);
}

/* ============================================================
   4. SECTIONS — Full-width top/bottom lines
   ============================================================ */
.section-line {
    position: relative;
    padding: 50px 0;
}

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

.section-line::before { top: 0; }
.section-line::after { bottom: 0; }

.section-line:first-of-type::before { display: none; }
.section-line:last-of-type::after { display: none; }

.section-line .inner {
    position: relative;
    padding: 0 36px;
    z-index: 1;
}

.section-line .inner::before,
.section-line .inner::after {
    content: '';
    position: absolute;
    top: -50px;
    bottom: -50px;
    width: 1px;
    background: var(--line-strong);
    z-index: 0;
}

.section-line .inner::before { left: 0; }
.section-line .inner::after { right: 0; }

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

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

.section-line .inner .dot.tl { top: -2.5px; left: -2.5px; }
.section-line .inner .dot.tr { top: -2.5px; right: -2.5px; }
.section-line .inner .dot.bl { bottom: -2.5px; left: -2.5px; }
.section-line .inner .dot.br { bottom: -2.5px; right: -2.5px; }

/* Section-specific tweaks */
.trust-section { padding: 16px 0; }
.trust-content { padding: 4px 0; position: relative; z-index: 1; }
.stats-section { padding: 30px 0; }
.cta-section { border-bottom: none; }
.hero-content { padding: 16px 0; position: relative; z-index: 1; }

/* ============================================================
   5. 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-border);
    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-border);
    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%; }

/* ============================================================
   6. GRID
   ============================================================ */
.grid-cross {
    display: grid;
    gap: 0;
    position: relative;
    z-index: 1;
}

.grid-cross-2 { grid-template-columns: 1fr 1fr; }
.grid-cross-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-cross-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.grid-cross-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }

.grid-cross > * {
    padding: 20px 24px;
    position: relative;
    border-right: 1px solid var(--line-strong);
}

.grid-cross > *::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-strong);
}

.grid-cross > * .cell-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line-strong);
}

.grid-cross > * .cell-dot.filled {
    background: var(--dot-filled);
    border-color: var(--line-strong);
}

.grid-cross > * .cell-dot.tr { top: -2.5px; right: -2.5px; }
.grid-cross > * .cell-dot.bl { bottom: -2.5px; left: -2.5px; }
.grid-cross > * .cell-dot.br { bottom: -2.5px; right: -2.5px; }

.grid-cross > * .cell-line-h,
.grid-cross > * .cell-line-v {
    position: absolute;
    background: var(--line);
    opacity: 0.6;
    z-index: 1;
}

.grid-cross > * .cell-line-h { left: 12px; right: 12px; height: 1px; }
.grid-cross > * .cell-line-h.top { top: 25%; }
.grid-cross > * .cell-line-h.bottom { bottom: 25%; }

.grid-cross > * .cell-line-v { top: 12px; bottom: 12px; width: 1px; }
.grid-cross > * .cell-line-v.left { left: 25%; }
.grid-cross > * .cell-line-v.right { right: 25%; }

.grid-cross > * .cell-dot-inner {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line);
    z-index: 2;
}

.grid-cross > * .cell-dot-inner.filled {
    background: var(--dot-filled);
    border-color: var(--line);
}

.grid-cross > * .cell-dot-inner.d1 { top: 25%; left: 25%; }
.grid-cross > * .cell-dot-inner.d2 { top: 25%; right: 25%; }
.grid-cross > * .cell-dot-inner.d3 { bottom: 25%; left: 25%; }
.grid-cross > * .cell-dot-inner.d4 { bottom: 25%; right: 25%; }

.grid-cross-3 > *:nth-child(3n),
.grid-cross-2 > *:nth-child(2n),
.grid-cross-4 > *:nth-child(4n),
.grid-cross-5 > *:nth-child(5n) { border-right: none; }

.grid-cross > *:last-child::after { display: none; }

/* ============================================================
   7. SECTION HEADERS
   ============================================================ */
.section-header {
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-header h2 .highlight,
.hero h1 .highlight,
.cta-box h2 .highlight,
.stat-item h4,
.process-item .num {
    background: linear-gradient(135deg, var(--accent), #2d9fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 0.95rem;
    opacity: 0.4;
    max-width: 480px;
}

.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ============================================================
   8. HERO
   ============================================================ */
.hero { padding: 80px 0 60px; }

.hero h1 {
    font-size: 3.6rem;
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 1.03;
    margin-bottom: 16px;
    max-width: 800px;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.4;
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   9. TRUST BAR
   ============================================================ */
.trust-title {
    text-transform: uppercase;
    font-size: 0.55rem;
    letter-spacing: 3px;
    opacity: 0.2;
    margin-bottom: 10px;
    font-weight: 600;
}

.trust-logos {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.trust-logos span {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.25;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.2px;
}

.trust-logos i {
    font-size: 1.1rem;
    opacity: 0.3;
}

/* ============================================================
   10. SERVICE / STAT / PROCESS ITEMS
   ============================================================ */
.service-item { padding: 20px 16px; }

.service-item .icon {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.service-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.service-item p {
    font-size: 0.8rem;
    opacity: 0.4;
    line-height: 1.6;
}

.service-item .tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    border: 1px solid var(--line);
    padding: 2px 12px;
}

.stat-item {
    padding: 20px 16px;
    text-align: center;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.stat-item p {
    font-size: 0.75rem;
    opacity: 0.35;
    margin-top: 2px;
}

.process-item {
    padding: 20px 16px;
    text-align: center;
}

.process-item .num {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.12;
    line-height: 1;
}

.process-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 4px 0 2px;
}

.process-item p {
    font-size: 0.75rem;
    opacity: 0.35;
}

/* ============================================================
   11. PRICING
   ============================================================ */
.pricing-item {
    padding: 24px 20px;
    text-align: center;
    position: relative;
}

.pricing-item.featured {
    background: var(--accent-dim);
}

.pricing-item.featured::before,
.pricing-item.featured::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pricing-item.featured::before { top: -1px; }
.pricing-item.featured::after { bottom: -1px; }

.pricing-item h3 { font-size: 1rem; font-weight: 600; }

.pricing-item .price {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 8px 0 2px;
}

.pricing-item .price span {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.3;
}

.pricing-item .desc {
    font-size: 0.8rem;
    opacity: 0.35;
    margin-bottom: 16px;
}

.pricing-item ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.pricing-item ul li {
    padding: 4px 0;
    font-size: 0.8rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.pricing-item ul li:last-child { border-bottom: none; }

.pricing-item ul li i {
    color: var(--accent);
    font-size: 0.55rem;
    opacity: 0.4;
}

.pricing-item .btn-line {
    width: 100%;
    text-align: center;
    display: block;
    padding: 14px 20px;
    font-size: 0.85rem;
    min-width: unset;
}

/* ============================================================
   12. CTA
   ============================================================ */
.cta-box {
    position: relative;
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--line-border);
    text-align: center;
    overflow: hidden;
}

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

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

.cta-box p {
    font-size: 0.95rem;
    opacity: 0.4;
    max-width: 500px;
    margin: 0 auto 28px;
}

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

.cta-box .cta-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line-strong);
    z-index: 4;
}

.cta-box .cta-dot.tl { top: -2.5px; left: -2.5px; }
.cta-box .cta-dot.tr { top: -2.5px; right: -2.5px; }
.cta-box .cta-dot.bl { bottom: -2.5px; left: -2.5px; }
.cta-box .cta-dot.br { bottom: -2.5px; right: -2.5px; }
.cta-box .cta-dot.filled { background: var(--dot-filled); }

.cta-box .cta-line-h,
.cta-box .cta-line-v {
    position: absolute;
    background: var(--line);
    opacity: 0.6;
    z-index: 1;
}

.cta-box .cta-line-h { left: 12px; right: 12px; height: 1px; }
.cta-box .cta-line-h.top { top: 25%; }
.cta-box .cta-line-h.bottom { bottom: 25%; }

.cta-box .cta-line-v { top: 12px; bottom: 12px; width: 1px; }
.cta-box .cta-line-v.left { left: 25%; }
.cta-box .cta-line-v.right { right: 25%; }

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

.cta-box .cta-dot-inner.d1 { top: 25%; left: 25%; }
.cta-box .cta-dot-inner.d2 { top: 25%; right: 25%; }
.cta-box .cta-dot-inner.d3 { bottom: 25%; left: 25%; }
.cta-box .cta-dot-inner.d4 { bottom: 25%; right: 25%; }

/* ============================================================
   13. TEAM — با قاب متصل به خطوط بیرونی
   ============================================================ */
.team-section { margin-top: 80px; }

/* پاک‌سازی قاب پیش‌فرض section-line برای team */
#team .inner::before,
#team .inner::after {
    top: 0 !important;
    bottom: -50px !important;
}

/* فاصله‌ی خط قاب از لبه‌ی inner = لبه‌ی section-header و team-grid */
.team-section .inner {
    --team-frame: 36px;
}

/* ====== خطوط افقی بلند بالا و پایین بخش تیم (full-width) ====== */
.team-section .section-header {
    position: relative;
    padding: 28px 32px;
    margin-bottom: 0 !important;
}

.team-section .section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    height: 1px;
    background: var(--line-strong);
    z-index: 3;
    pointer-events: none;
}

.team-section .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    height: 1px;
    background: var(--line-strong);
    z-index: 3;
    pointer-events: none;
}

/* ====== خطوط عمودی کوتاه که از سکشن‌های بالا/پایین میان ====== */
.team-section .inner::before,
.team-section .inner::after {
    content: '';
    position: absolute;
    width: 1px;
    background: var(--line-strong);
    z-index: 4;
    pointer-events: none;
}

/* خط عمودی چپ — روی لبه‌ی هدر و گرید، از بالای هدر تا مرز پایین سکشن */
.team-section .inner::before {
    left: var(--team-frame);
}

/* خط عمودی راست — روی لبه‌ی هدر و گرید، از بالای هدر تا مرز پایین سکشن */
.team-section .inner::after {
    right: var(--team-frame);
}

/* نقطه‌های گوشه‌ی قاب، روی همان خطوط عمودی */
.team-section .inner .dot.tl,
.team-section .inner .dot.bl { left: calc(var(--team-frame) - 2.5px); }

.team-section .inner .dot.tr,
.team-section .inner .dot.br { right: calc(var(--team-frame) - 2.5px); }

/* ====== گرید تیم ====== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
    border-top: 1px solid var(--line-border);
    border-left: 1px solid var(--line-border);
    position: relative;
    z-index: 2;
}

/* خط افقی تمام‌عرض پایین گرید — ادامه‌ی border پایین کارت‌ها تا لبه‌ی صفحه */
.team-grid::after {
    content: '';
    position: absolute;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    bottom: 0;
    height: 1px;
    background: var(--line-border);
    z-index: 5;
    pointer-events: none;
}

.team-member {
    position: relative;
    min-height: 280px;
    padding: 34px 28px;
    border-right: 1px solid var(--line-border);
    border-bottom: 1px solid var(--line-border);
    overflow: hidden;
    isolation: isolate;
}

/* خطوط تزئینی داخل کارت (برای شلوغی مثل FAQ) */
.team-member::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    height: 1px;
    background: var(--line);
    opacity: .42;
    z-index: 1;
}

.team-member::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 68%;
    width: 1px;
    background: var(--line);
    opacity: .42;
    z-index: 1;
}

/* نقطه‌های گوشه */
.team-member .team-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line);
    z-index: 4;
}

.team-member .team-dot.tl { top: -3px; left: -3px; }
.team-member .team-dot.tr { top: -3px; right: -3px; }
.team-member .team-dot.bl { bottom: -3px; left: -3px; }
.team-member .team-dot.br { bottom: -3px; right: -3px; }

.team-member .team-cross-dot {
    position: absolute;
    top: calc(42% - 2.5px);
    left: calc(68% - 2.5px);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line);
    z-index: 5;
}

.team-photo {
    position: relative;
    z-index: 3;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
    border: 1px solid var(--line-border);
}

.team-member h3,
.team-member p,
.team-member .team-role {
    position: relative;
    z-index: 5;
}

.team-member h3 {
    margin: 0 0 7px;
    font-size: 1.05rem;
}

.team-role {
    font-size: .78rem;
    opacity: .55;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member p {
    margin-top: 18px;
    font-size: .82rem;
    line-height: 1.7;
    opacity: .7;
}
/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
    position: relative;
    padding: 32px 0 24px;
    border-top: 1px solid var(--line);
    text-align: center;
    opacity: 0.8;
    font-size: 0.75rem;
}

.footer .container { position: relative; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer-bottom p { opacity: 0.4; }

.footer-theme-toggle {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
}

.footer-theme-toggle:hover {
    opacity: 1;
    border-color: var(--accent);
}

.footer-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer-lang:hover { opacity: 1; }

.footer-lang select {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.footer-lang select:hover { border-color: var(--accent); }

.footer-lang select option {
    background: var(--bg);
    color: var(--text);
}

/* ============================================================
   16. FAQ — Full-width wireframe
   ============================================================ */
.faq-grid {
    position: relative;
    width: 100%;
    max-width: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

.faq-grid::before,
.faq-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-strong);
    z-index: 4;
    pointer-events: none;
}

.faq-grid::before { left: 0; }
.faq-grid::after  { right: 0; }

.faq-box {
    position: relative !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
    isolation: isolate;
}

.faq-box::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: calc(-1 * var(--line-ext)) !important;
    right: calc(-1 * var(--line-ext)) !important;
    height: 1px !important;
    border: 0 !important;
    background: var(--line-strong) !important;
    z-index: 1 !important;
    pointer-events: none;
}

.faq-box::after { display: none !important; }

.faq-box:last-child::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: calc(-1 * var(--line-ext)) !important;
    right: calc(-1 * var(--line-ext)) !important;
    height: 1px !important;
    background: var(--line-strong) !important;
    z-index: 1 !important;
    pointer-events: none;
}

.faq-box > .faq-dot,
.faq-box > .faq-dot-inner,
.faq-box > .faq-line-h,
.faq-box > .faq-line-v {
    display: none !important;
}

.faq-inner {
    position: relative !important;
    z-index: 5 !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.faq-q,
.faq-a {
    position: relative !important;
    z-index: 6 !important;
    background: transparent !important;
    border: 0 !important;
}

.faq-q {
    min-height: 58px !important;
    height: 58px !important;
    padding: 16px 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;
    font-size: .92rem !important;
    line-height: 1.3 !important;
    color: var(--text) !important;
    cursor: pointer;
    font-weight: 600;
}

.faq-q i {
    flex: 0 0 auto;
    font-size: .68rem !important;
    opacity: .45 !important;
    transition: transform 0.3s, opacity 0.3s;
}

.faq-a {
    display: none !important;
    padding: 0 32px 22px !important;
    font-size: .84rem !important;
    line-height: 1.75 !important;
    opacity: .45 !important;
}

.faq-box.open .faq-a { display: block !important; }
.faq-box.open .faq-q { color: var(--text) !important; }

.faq-box.open .faq-q i {
    transform: rotate(180deg);
    opacity: .75 !important;
}

/* FAQ header */
#faq .section-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 34px !important;
    padding: 22px 32px !important;
    position: relative !important;
    text-align: center !important;
    overflow: visible !important;
}

#faq .section-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(--line-strong) !important;
    border-bottom: 1px solid var(--line-strong) !important;
    background: none !important;
    pointer-events: none;
}

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

#faq .section-header h2 {
    margin: 0 0 6px !important;
    font-size: 2rem !important;
}

#faq .section-header p {
    margin: 0 auto !important;
    font-size: .82rem !important;
}

/* ============================================================
   17. RESPONSIVE — Tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   18. RESPONSIVE — Mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 1.8rem; letter-spacing: -1px; }
    .hero p { font-size: 0.9rem; }

    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn-line { width: 100%; text-align: center; min-width: unset; }

    .grid-cross-2,
    .grid-cross-3 { grid-template-columns: 1fr; }
    .grid-cross-4,
    .grid-cross-5 { grid-template-columns: 1fr 1fr; }

    .grid-cross > * {
        border-right: none !important;
        padding: 12px 16px;
    }

    .grid-cross > *::after { display: block !important; }
    .grid-cross > *:last-child::after { display: none !important; }

    .grid-cross > * .cell-line-h,
    .grid-cross > * .cell-line-v,
    .grid-cross > * .cell-dot-inner { display: none; }

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

    .btn-line::before,
    .btn-line::after,
    .section-line::before,
    .section-line::after,
    .cta-box::before,
    .cta-box::after,
    .faq-box::before,
    .faq-box::after,
    .hero-badge::before,
    .hero-badge::after { left: -1200px; right: -1200px; }

    .hero-badge .b-line-h,
    .hero-badge .b-line-v,
    .hero-badge .bdot-inner,
    .faq-box .faq-line-h,
    .faq-box .faq-line-v,
    .faq-box .faq-dot-inner,
    .cta-box .cta-line-h,
    .cta-box .cta-line-v,
    .cta-box .cta-dot-inner { display: none; }

    .trust-logos { justify-content: center; gap: 16px; }
    .footer-links { gap: 12px; }
    .footer-bottom { flex-direction: column; gap: 12px; }

    .faq-box::before,
    .faq-box:last-child::after,
    #faq .section-header::before { left: -1200px !important; right: -1200px !important; }

    .faq-q {
        height: 54px !important;
        min-height: 54px !important;
        padding: 14px 18px !important;
        font-size: .88rem !important;
    }

    .faq-a {
        padding: 0 18px 20px !important;
        font-size: .8rem !important;
    }

    #faq .section-header {
        margin-bottom: 28px !important;
        padding: 18px 16px !important;
    }

    #faq .section-header h2 { font-size: 1.45rem !important; }

    .team-grid { grid-template-columns: 1fr; }
    .team-member { min-height: 240px; }
    .team-section .inner { --team-frame: 12px; }

    .cta-box { padding: 28px 16px; }
    .cta-box h2 { font-size: 1.4rem; }
    .cta-box .actions { flex-direction: column; align-items: center; }

    .footer .container::before { left: 12px; }
    .footer .container::after { right: 12px; }
}

/* ============================================================
   19. RESPONSIVE — Small mobile (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.4rem; }
    .section-header h2 { font-size: 1.2rem; }
    .grid-cross-4,
    .grid-cross-5 { grid-template-columns: 1fr; }
    .container { padding: 0 12px; }

    .faq-q {
        height: 52px !important;
        min-height: 52px !important;
        padding: 13px 14px !important;
    }

    .faq-a { padding: 0 14px 18px !important; }    #faq .section-header h2 { font-size: 1.2rem !important; }
}

/* ============================================================
   20. SERVICES RINGS — Creative Grid (Compact)
   ============================================================ */
.rings-section {
    padding: 60px 0;
}

.section-header.rings-header {
    margin-bottom: 32px;
}

.section-header.rings-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-header.rings-header h2 .highlight {
    background: linear-gradient(135deg, var(--accent), #2d9fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rings-header p {
    max-width: 520px;
    font-size: 0.95rem;
    opacity: 0.4;
}

/* ============================================================
   Rings Grid — 3×3 compact wireframe grid
   ============================================================ */
.rings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-border);
    border-left: 1px solid var(--line-border);
    position: relative;
    margin-bottom: 28px;
    /* پس‌زمینه ملایم برای کل گرید */
    background: var(--bg-card);
}

/* ====== خطوط عمودی full-height بین ستون‌ها ====== */
.rings-grid::before,
.rings-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-strong);
    z-index: 2;
    pointer-events: none;
}

.rings-grid::before { left: 33.333%; }
.rings-grid::after  { left: 66.666%; }

/* ====== خطوط افقی full-width بین ردیف‌ها (از چپ تا راست صفحه) ====== */
.ring-cell::before {
    content: '';
    position: absolute;
    top: -1px;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    height: 1px;
    background: var(--line-strong);
    z-index: 6;
    pointer-events: none;
}

/* خط پایین آخرین ردیف */
.ring-cell:nth-last-child(-n+3)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: calc(-1 * var(--line-ext));
    right: calc(-1 * var(--line-ext));
    height: 1px;
    background: var(--line-strong);
    z-index: 6;
    pointer-events: none;
}

/* ============================================================
   Ring cell — compact
   ============================================================ */
.ring-cell {
    position: relative;
    min-height: 140px;
    padding: 24px 16px;
    border-right: 1px solid var(--line-border);
    border-bottom: 1px solid var(--line-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    transition: background 0.3s ease;
    overflow: visible;
    isolation: isolate;
    /* ====== پس‌زمینه ملایم قبل از hover ====== */
    background: var(--bg-card);
}

/* ====== hover: پس‌زمینه سبز accent ====== */
.ring-cell:hover {
    background: var(--accent-dim);
}

/* ====== Corner dots ====== */
.ring-cell .cell-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line-strong);
    z-index: 4;
    pointer-events: none;
}

.ring-cell .cell-dot.tr { top: -2.5px; right: -2.5px; }
.ring-cell .cell-dot.bl { bottom: -2.5px; left: -2.5px; }
.ring-cell .cell-dot.br { bottom: -2.5px; right: -2.5px; }

/* ====== Crossing lines داخل سلول ====== */
.ring-cell .cell-line-h,
.ring-cell .cell-line-v {
    position: absolute;
    background: var(--line);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}

.ring-cell .cell-line-h { left: 10px; right: 10px; height: 1px; }
.ring-cell .cell-line-h.top { top: 25%; }
.ring-cell .cell-line-h.bottom { bottom: 25%; }

.ring-cell .cell-line-v { top: 10px; bottom: 10px; width: 1px; }
.ring-cell .cell-line-v.left { left: 25%; }
.ring-cell .cell-line-v.right { right: 25%; }

/* ====== نقطه‌های تقاطع ====== */
.ring-cell .cell-dot-inner {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dot-empty);
    border: 1px solid var(--line);
    z-index: 2;
    pointer-events: none;
}

.ring-cell .cell-dot-inner.d1 { top: 25%; left: 25%; }
.ring-cell .cell-dot-inner.d2 { top: 25%; right: 25%; }
.ring-cell .cell-dot-inner.d3 { bottom: 25%; left: 25%; }
.ring-cell .cell-dot-inner.d4 { bottom: 25%; right: 25%; }

/* ============================================================
   The Ring itself — کلفت در حالت عادی، نازک در hover
   ============================================================ */
.ring {
    position: relative;
    z-index: 3;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    /* ====== کلفت‌تر در حالت عادی ====== */
    border: 12px solid var(--ring-color, var(--accent));
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-width 0.4s ease,
                box-shadow 0.4s ease;
    animation: ring-pulse 3s ease-in-out infinite;
}

.ring-cell:nth-child(1) .ring { animation-delay: 0s; }
.ring-cell:nth-child(2) .ring { animation-delay: 0.3s; }
.ring-cell:nth-child(3) .ring { animation-delay: 0.6s; }
.ring-cell:nth-child(4) .ring { animation-delay: 0.9s; }
.ring-cell:nth-child(5) .ring { animation-delay: 1.2s; }
.ring-cell:nth-child(6) .ring { animation-delay: 1.5s; }
.ring-cell:nth-child(7) .ring { animation-delay: 1.8s; }
.ring-cell:nth-child(8) .ring { animation-delay: 2.1s; }
.ring-cell:nth-child(9) .ring { animation-delay: 2.4s; }

@keyframes ring-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(72, 255, 145, 0);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 16px 2px rgba(72, 255, 145, 0.15);
        filter: brightness(1.15);
    }
}

/* ====== hover: نازک‌تر + بزرگ‌تر + چرخش ====== */
.ring-cell:hover .ring {
    transform: scale(1.15) rotate(45deg);
    border-width: 4px;
    box-shadow: 0 0 22px 3px rgba(72, 255, 145, 0.25);
    animation-play-state: paused;
}

/* ============================================================
   Text content — Compact
   ============================================================ */
.ring-cell .ring-en {
    position: relative;
    z-index: 3;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.9;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
    margin: 0;
    line-height: 1.3;
}

.ring-cell .ring-fa {
    position: relative;
    z-index: 3;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.6;
    transition: color 0.3s ease, opacity 0.3s ease;
    margin: 0;
    line-height: 1.3;
}

.ring-cell:hover .ring-en {
    color: var(--accent);
}

.ring-cell:hover .ring-fa {
    color: var(--accent);
    opacity: 0.85;
}

/* ============================================================
   Ring colors — site palette
   ============================================================ */
.r-tryon   { --ring-color: var(--accent); }
.r-finance { --ring-color: #2d9fff; }
.r-crm     { --ring-color: var(--accent); }
.r-chat    { --ring-color: #2d9fff; }
.r-cloud   { --ring-color: var(--accent); }
.r-studio  { --ring-color: #2d9fff; }
.r-todo    { --ring-color: var(--text-muted); }
.r-kanban  { --ring-color: var(--text-muted); }
.r-ai      { --ring-color: var(--accent); }

/* ============================================================
   Rings Note
   ============================================================ */
.rings-note {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.55;
    line-height: 1.8;
    max-width: 720px;
    position: relative;
    z-index: 1;
    padding-left: 14px;
    border-left: 2px solid var(--accent);
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .rings-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ring-cell {
        min-height: 130px;
        padding: 20px 14px;
        gap: 10px;
    }

    .ring {
        width: 52px;
        height: 52px;
        border-width: 11px;
    }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 768px) {
    .rings-section {
        padding: 45px 0;
    }

    .section-header.rings-header h2 {
        font-size: 1.5rem;
    }

    .rings-header p {
        font-size: 0.85rem;
    }

    .rings-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ring-cell {
        min-height: 110px;
        padding: 16px 10px;
        gap: 8px;
    }

    /* خطوط کراس داخلی رو مخفی کن */
    .ring-cell .cell-line-h,
    .ring-cell .cell-line-v,
    .ring-cell .cell-dot-inner {
        display: none;
    }

    /* خطوط افقی full-width روی موبایل کوتاه‌تر */
    .ring-cell::before,
    .ring-cell:nth-last-child(-n+3)::after {
        left: -1200px;
        right: -1200px;
    }

    .ring {
        width: 44px;
        height: 44px;
        border-width: 9px;
    }

    .ring-cell .ring-en {
        font-size: 0.8rem;
    }

    .ring-cell .ring-fa {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
}

/* ============================================================
   Responsive — Small mobile
   ============================================================ */
@media (max-width: 480px) {
    .section-header.rings-header h2 {
        font-size: 1.2rem;
    }

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

    .ring-cell {
        min-height: 110px;
        padding: 16px 10px;
        gap: 8px;
    }

    .ring {
        width: 42px;
        height: 42px;
        border-width: 8px;
    }

    .ring-cell .ring-en {
        font-size: 0.78rem;
    }

    .ring-cell .ring-fa {
        font-size: 0.58rem;
    }

    .rings-note {
        font-size: 0.78rem;
        padding-left: 12px;
    }
}