/* ════════════════════════════════════════════════
   SMAcode — استایل صفحه اول
   ════════════════════════════════════════════════ */


/* ══ هیرو ══ */
.fp-hero {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #F0FDFA 50%, var(--bg) 100%);
    overflow: hidden;
    padding: var(--s2l) 4% var(--sxl);
    min-height: min(90vh, 55rem);
    display: flex;
    align-items: center;
}
.fp-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.fp-hero__container {
    width: var(--w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--sxl);
    position: relative;
    z-index: 1;
}
.fp-hero__text {
    flex: 1 1 55%;
    min-width: 0;
}

/* بج */
.fp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sx);
    background: rgba(13, 148, 136, .08);
    border: 1px solid rgba(13, 148, 136, .2);
    color: var(--c1);
    padding: var(--sx) var(--sm);
    border-radius: 2em;
    font-size: var(--fx);
    font-weight: 600;
    margin-bottom: var(--sl);
    animation: fpFadeD .8s ease both;
}
.fp-hero__badge-dot {
    width: .5em;
    height: .5em;
    background: var(--c1);
    border-radius: 50%;
    animation: fpDot 2s infinite;
}

/* عنوان */
.fp-hero__title {
    margin-bottom: var(--sl);
}
.fp-hero__title-line {
    display: block;
    font-size: var(--f2l);
    color: var(--dk);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(1.5rem);
}
.fp-hero__title-line--1 { animation: fpUp .7s ease .3s forwards; }
.fp-hero__title-line--2 { animation: fpUp .7s ease .5s forwards; }
.fp-hero__title-line--3 { animation: fpUp .7s ease .7s forwards; }

.fp-hero__highlight {
    color: var(--c1);
    position: relative;
}
.fp-hero__highlight::after {
    content: '';
    position: absolute;
    bottom: .1em;
    right: 0;
    width: 0;
    height: .15em;
    background: linear-gradient(90deg, var(--c1), var(--c1l));
    border-radius: .1em;
    animation: fpLine .8s ease 1.2s forwards;
}

/* توضیحات */
.fp-hero__desc {
    font-size: var(--fm);
    color: var(--txl);
    line-height: 2;
    max-width: 36rem;
    margin-bottom: var(--sl);
    opacity: 0;
    animation: fpFadeU .8s ease .9s forwards;
}

/* دکمه‌ها */
.fp-hero__actions {
    display: flex;
    gap: var(--ss);
    margin-bottom: var(--sxl);
    opacity: 0;
    animation: fpFadeU .8s ease 1.1s forwards;
    flex-wrap: wrap;
}

/* آمار */
.fp-hero__stats {
    display: flex;
    align-items: center;
    gap: var(--sl);
    opacity: 0;
    animation: fpFadeU .8s ease 1.3s forwards;
    flex-wrap: wrap;
}
.fp-hero__stat {
    text-align: center;
}
.fp-hero__stat-num {
    display: block;
    font-size: var(--fxl);
    font-weight: 900;
    color: var(--c1);
}
.fp-hero__stat-lbl {
    font-size: var(--fx);
    color: #94A3B8;
}
.fp-hero__stat-sep {
    width: 1px;
    height: 2.5rem;
    background: var(--bd);
}


/* ══ دیاگرام ══ */
.fp-hero__visual {
    flex: 1 1 45%;
    max-width: 34rem;
    min-width: 0;
    opacity: 0;
    animation: fpFadeU 1s ease 1s forwards;
}
.fp-diagram {
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--bd);
    border-radius: 1rem;
    padding: 2%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: var(--ss);
    overflow: hidden;
}
.fp-diagram__svg {
    width: 100%;
    height: auto;
    display: block;
}

/* انیمیشن مسیر رفت */
.fp-fwd { stroke-dasharray: 200; stroke-dashoffset: 200; }
.fp-fwd--1 { animation: fpDraw .6s ease 1.5s forwards; }
.fp-fwd--2 { animation: fpDraw .6s ease 2s forwards; }
.fp-fwd--3 { animation: fpDraw .6s ease 2.5s forwards; }
.fp-fwd--4 { animation: fpDraw .8s ease 3s forwards; }

.fp-fwd-arr { opacity: 0; }
.fp-fwd-arr--1 { animation: fpShow .3s ease 2.1s forwards; }
.fp-fwd-arr--2 { animation: fpShow .3s ease 2.6s forwards; }
.fp-fwd-arr--3 { animation: fpShow .3s ease 3.1s forwards; }
.fp-fwd-arr--4 { animation: fpShow .3s ease 3.8s forwards; }

.fp-label { opacity: 0; animation: fpShow .4s ease 3.5s forwards; }

/* فیدبک */
.fp-fb { stroke-dasharray: 500; stroke-dashoffset: 500; }
.fp-fb--1 { animation: fpDraw 1.2s ease 4s forwards; }
.fp-fb--2 { animation: fpDraw 1s ease 5s forwards; }
.fp-fb-arr--1 { animation: fpShow .3s ease 5.2s forwards; }

/* پالس */
.fp-pulse { opacity: 0; }
.fp-pulse-f--1 { animation: fpPf1 3s ease 6.5s infinite; }
.fp-pulse-f--2 { animation: fpPf2 3s ease 7s infinite; }
.fp-pulse-f--3 { animation: fpPf3 3s ease 7.5s infinite; }
.fp-pulse-f--4 { animation: fpPf4 3s ease 8s infinite; }

/* پالس فیدبک — فقط اضافه شده */
.fp-pulse-b--1 { animation: fpPb1 5s ease 8.3s infinite; }
.fp-pulse-b--2 { animation: fpPb2 5s ease 11s infinite; }

/* بلوک‌ها */
.fp-blk { cursor: pointer; }
.fp-blk__bg { transition: all .3s; }
.fp-blk:hover .fp-blk__bg {
    filter: drop-shadow(0 0 .5rem rgba(13, 148, 136, .3));
    stroke-width: 2.5;
}
.fp-branch { opacity: 0; animation: fpShow .3s ease 3.5s forwards; }

/* پاسخ پله */
.fp-step {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: .75rem;
    padding: 2%;
}
.fp-step__svg {
    width: 100%;
    height: auto;
    display: block;
}
.fp-step__curve {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: fpDraw 3s ease 3s forwards;
}

/* ══ معرفی ══ */
.fp-about {
    padding: var(--s2l) 4%;
    background: var(--wh);
}
.fp-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sxl);
    align-items: center;
}
.fp-about__text {
    color: var(--txl);
    line-height: 2;
    margin-bottom: var(--sm);
}
.fp-features {
    margin-top: var(--sl);
    display: flex;
    flex-direction: column;
    gap: var(--sm);
}
.fp-feat {
    display: flex;
    align-items: flex-start;
    gap: var(--sm);
}
.fp-feat__icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--c1bg);
    border-radius: .625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--c1);
}
.fp-feat__icon svg { width: 1.2rem; height: 1.2rem; }
.fp-feat strong {
    display: block;
    color: var(--dk);
    margin-bottom: .125rem;
    font-size: var(--fs);
}
.fp-feat p {
    color: #94A3B8;
    font-size: var(--fx);
    margin: 0;
}

/* ترمینال */
.fp-term {
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 .5rem 2.5rem rgba(0, 0, 0, .12);
}
.fp-term__bar {
    background: #2D2D2D;
    padding: var(--ss) var(--sm);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.fp-term__dot { width: .75rem; height: .75rem; border-radius: 50%; }
.fp-term__dot--r { background: #FF5F57; }
.fp-term__dot--y { background: #FFBD2E; }
.fp-term__dot--g { background: #28C840; }
.fp-term__name {
    color: #888;
    font-size: var(--fx);
    margin-right: auto;
    margin-left: 0;
    font-family: 'Courier New', Courier, monospace;
}
.fp-term__code {
    background: #1E1E2E;
    padding: var(--sl) var(--sm);
    font-family: 'Courier New', Courier, monospace, Tahoma;
    font-size: var(--fx);
    line-height: 2;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    color: #CDD6F4;
}
.fp-cl {
    opacity: 0;
    transform: translateX(-.5rem);
    white-space: nowrap;
}
.fp-cl.visible { animation: fpTypeIn .4s ease forwards; }
.fp-cc { color: #6C7086; font-style: italic; }
.fp-cf { color: #89DCEB; }
.fp-cs { color: #A6E3A1; }
.fp-cn { color: #FAB387; }
.fp-cok { color: #A6E3A1; font-weight: bold; }
.fp-cur { color: #CDD6F4; animation: fpBlink .8s infinite; }


/* ══ حوزه‌ها ══ */
.fp-topics {
    padding: var(--s2l) 4%;
    background: var(--bg);
}
.fp-topics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: var(--sl);
}
.fp-topic {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: .875rem;
    padding: var(--sl);
    text-align: center;
    transition: all .4s;
    position: relative;
    overflow: hidden;
}
.fp-topic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: .2rem;
    background: linear-gradient(90deg, var(--c1), var(--c1l));
    transform: scaleX(0);
    transition: transform .4s;
}
.fp-topic:hover::before { transform: scaleX(1); }
.fp-topic:hover {
    transform: translateY(-.3rem);
    box-shadow: 0 .6rem 2rem rgba(13, 148, 136, .1);
    border-color: rgba(13, 148, 136, .3);
}
.fp-topic__title { font-size: var(--fm); color: var(--dk); margin-bottom: var(--sx); }
.fp-topic__desc { font-size: var(--fx); color: var(--txl); line-height: 1.8; margin-bottom: var(--ss); }
.fp-topic__tags { display: flex; justify-content: center; gap: var(--sx); flex-wrap: wrap; margin-bottom: var(--sm); }
.fp-topic__tags span {
    background: var(--c1bg);
    color: var(--c1);
    padding: .15em .6em;
    border-radius: 1.25rem;
    font-size: var(--fx);
    font-weight: 600;
}


/* ══ وبلاگ ══ */
.fp-blog {
    padding: var(--s2l) 4%;
    background: var(--wh);
}
.fp-blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: var(--sl);
}
.fp-post {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: .875rem;
    padding: var(--sl);
    transition: all .4s;
    display: flex;
    flex-direction: column;
}
.fp-post:hover {
    border-color: var(--c1);
    box-shadow: 0 .5rem 1.5rem rgba(13, 148, 136, .08);
    transform: translateY(-.2rem);
}
.fp-post__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--ss);
    flex-wrap: wrap;
    gap: var(--sx);
}
.fp-post__cat {
    background: rgba(13, 148, 136, .1);
    color: var(--c1);
    padding: .15em .6em;
    border-radius: 1.25rem;
    font-size: var(--fx);
    font-weight: bold;
    text-decoration: none;
    transition: background .25s;
}
.fp-post__cat:hover { background: rgba(13, 148, 136, .2); }
.fp-post__date { font-size: var(--fx); color: #94A3B8; }
.fp-post__title { font-size: var(--fm); color: var(--dk); margin-bottom: var(--sx); line-height: 1.7; }
.fp-post__title a { color: inherit; text-decoration: none; transition: color .3s; }
.fp-post__title a:hover { color: var(--c1); }
.fp-post__excerpt { font-size: var(--fs); color: var(--txl); line-height: 1.8; flex: 1; margin-bottom: var(--sm); }
.fp-post__more {
    font-size: var(--fx);
    font-weight: bold;
    color: var(--c1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--sx);
    transition: gap .3s;
    border-top: 1px solid var(--bd);
    padding-top: var(--ss);
}
.fp-post:hover .fp-post__more { gap: var(--ss); }
.fp-no-posts {
    text-align: center;
    color: var(--txl);
    padding: var(--sxl);
    grid-column: 1 / -1;
}


/* ══ کدها ══ */
.fp-codes {
    padding: var(--s2l) 4%;
    background: var(--bg);
}
.fp-codes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: var(--sl);
}
.fp-code {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: .875rem;
    padding: var(--sl);
    transition: all .4s;
    display: flex;
    flex-direction: column;
}
.fp-code:hover {
    border-color: var(--c1);
    box-shadow: 0 .5rem 1.5rem rgba(13, 148, 136, .1);
    transform: translateY(-.2rem);
}
.fp-code__title {
    font-size: var(--fs);
    color: var(--dk);
    margin-bottom: var(--sx);
    font-family: 'Courier New', Courier, monospace;
}
.fp-code__desc { font-size: var(--fx); color: var(--txl); line-height: 1.8; flex: 1; margin-bottom: var(--sm); }
.fp-code__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bd);
    padding-top: var(--ss);
    flex-wrap: wrap;
    gap: var(--sx);
}
.fp-code__tags { display: flex; gap: var(--sx); flex-wrap: wrap; }
.fp-code__tags span {
    background: var(--c1bg);
    color: var(--c1);
    padding: .1em .5em;
    border-radius: 1rem;
    font-size: var(--fx);
    font-weight: 600;
}
.fp-code__link {
    font-size: var(--fx);
    font-weight: 600;
    color: var(--c1);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
    transition: color .25s;
}
.fp-code__link:hover { color: var(--c1l); }


/* ══ CTA ══ */
.fp-cta {
    padding: var(--sxl) 4%;
    background: var(--wh);
}
.fp-cta__box {
    background: linear-gradient(135deg, var(--c1), #0F766E);
    border-radius: 1.25rem;
    padding: var(--sxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sl);
    position: relative;
    overflow: hidden;
}
.fp-cta__text h2 { color: #fff; font-size: var(--fl); margin-bottom: var(--sx); }
.fp-cta__text p { color: rgba(255, 255, 255, .8); font-size: var(--fs); line-height: 1.8; margin: 0; }


/* ══ Keyframes ══ */
@keyframes fpDot    { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
@keyframes fpFadeD  { from{opacity:0;transform:translateY(-1.25rem)} to{opacity:1;transform:translateY(0)} }
@keyframes fpUp     { to{opacity:1;transform:translateY(0)} }
@keyframes fpLine   { to{width:100%} }
@keyframes fpFadeU  { from{opacity:0;transform:translateY(1.25rem)} to{opacity:1;transform:translateY(0)} }
@keyframes fpDraw   { to{stroke-dashoffset:0} }
@keyframes fpShow   { to{opacity:1} }
@keyframes fpScrl   { 0%{top:.375rem;opacity:1} 100%{top:1.375rem;opacity:0} }
@keyframes fpTypeIn { to{opacity:1;transform:translateX(0)} }
@keyframes fpBlink  { 0%,100%{opacity:1} 50%{opacity:0} }

@keyframes fpPf1 { 0%{cx:80;opacity:0} 5%{opacity:1} 25%{cx:118;opacity:1} 30%{opacity:0} 100%{opacity:0} }
@keyframes fpPf2 { 0%{cx:160;opacity:0} 5%{opacity:1} 25%{cx:198;opacity:1} 30%{opacity:0} 100%{opacity:0} }
@keyframes fpPf3 { 0%{cx:280;opacity:0} 5%{opacity:1} 25%{cx:318;opacity:1} 30%{opacity:0} 100%{opacity:0} }
@keyframes fpPf4 { 0%{cx:400;opacity:0} 5%{opacity:1} 35%{cx:508;opacity:1} 40%{opacity:0} 100%{opacity:0} }

/* نارنجی اول: از انشعاب تا سنسور */
@keyframes fpPb1 {
    0%   { cx:460; cy:120; opacity:0; }
    3%   { opacity:1; }
    22%  { cx:460; cy:250; opacity:1; }
    48%  { cx:305; cy:250; opacity:1; }
    53%  { opacity:0; }
    100% { opacity:0; }
}
@keyframes fpPb2 {
    0%   { cx:235; cy:250; opacity:0; }
    3%   { opacity:1; }
    21%  { cx:140; cy:250; opacity:1; }
    46%  { cx:140; cy:140; opacity:1; }
    51%  { opacity:0; }
    100% { opacity:0; }
}


/* ════════════════════════════════════════════════
   موبایل — نمایش دیاگرام و ترمینال
   ════════════════════════════════════════════════ */

@media (max-width: 64rem) {
    /* دیاگرام و ترمینال نمایش داده شوند */
    .fp-hero__visual {
        display: block;
        max-width: 100%;
        margin-top: var(--sl);
    }

    /* هیرو عمودی شود */
    .fp-hero__container {
        flex-direction: column;
        text-align: center;
    }

    .fp-hero__text {
        max-width: 100%;
    }

    .fp-hero__desc {
        margin-inline: auto;
    }

    .fp-hero__actions {
        justify-content: center;
    }

    .fp-hero__stats {
        justify-content: center;
    }

    /* دیاگرام ریسپانسیو */
    .fp-diagram {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fp-diagram__svg {
        min-width: 500px;
    }

    /* پاسخ پله */
    .fp-step {
        margin-top: var(--ss);
    }

    /* ترمینال */
    .fp-term {
        margin-top: var(--ss);
    }

    .fp-term__code {
        font-size: .65rem;
        padding: var(--sm);
    }

    /* معرفی — ترمینال زیر متن */
    .fp-about__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 48rem) {
    .fp-hero__stats {
        flex-direction: column;
        gap: var(--sm);
    }

    .fp-hero__stat-sep {
        width: 2.5rem;
        height: 1px;
    }

    .fp-cta__box {
        flex-direction: column;
        text-align: center;
    }

    .fp-scroll {
        display: none;
    }

    /* دیاگرام در موبایل کوچک */
    .fp-diagram__svg {
        min-width: 450px;
    }

    .fp-term__code {
        font-size: .6rem;
    }
}

@media (max-width: 30rem) {
    /* موبایل خیلی کوچک */
    .fp-diagram__svg {
        min-width: 400px;
    }

    .fp-term__code {
        font-size: .55rem;
        padding: var(--ss);
    }

    .fp-term__name {
        font-size: .6rem;
    }
}
/* ═══════════════════════════════════════════════════
   Dark Mode — صفحه اول
═══════════════════════════════════════════════════ */

/* هیرو دارک */
[data-theme="dark"] .fp-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, var(--bg) 100%);
}

[data-theme="dark"] .fp-hero__title-line {
    color: var(--dk);
}

[data-theme="dark"] .fp-hero__desc {
    color: var(--txl);
}

[data-theme="dark"] .fp-hero__stat-lbl {
    color: var(--txl);
}

[data-theme="dark"] .fp-hero__stat-sep {
    background: var(--bd);
}

[data-theme="dark"] .fp-hero__badge {
    background: var(--c1bg);
    border-color: rgba(13, 148, 136, .3);
}

/* دیاگرام دارک */
[data-theme="dark"] .fp-diagram {
    background: rgba(30, 41, 59, .85);
    border-color: var(--bd);
}

[data-theme="dark"] .fp-diagram__svg text {
    fill: var(--txl);
}

[data-theme="dark"] .fp-diagram__svg .fp-blk__bg {
    fill: var(--wh);
    stroke: var(--bd);
}

[data-theme="dark"] .fp-diagram__svg line,
[data-theme="dark"] .fp-diagram__svg polyline {
    stroke: var(--txl);
}

[data-theme="dark"] .fp-diagram__svg polygon {
    fill: var(--txl);
}

/* بلوک C(s) دارک */
[data-theme="dark"] .fp-diagram__svg rect[fill="#F0FDFA"] {
    fill: rgba(13, 148, 136, .15);
}

/* بلوک G(s) دارک */
[data-theme="dark"] .fp-diagram__svg rect[fill="#EFF6FF"] {
    fill: rgba(59, 130, 246, .15);
}

/* بلوک H(s) دارک */
[data-theme="dark"] .fp-diagram__svg rect[fill="#FFF7ED"] {
    fill: rgba(249, 115, 22, .15);
}

/* بلوک R(s) و Y(s) دارک */
[data-theme="dark"] .fp-diagram__svg rect[fill="#fff"] {
    fill: var(--wh);
}

/* نقطه Σ دارک */
[data-theme="dark"] .fp-diagram__svg circle[fill="#0F172A"] {
    fill: var(--dk);
}

[data-theme="dark"] .fp-diagram__svg text[fill="#0F172A"] {
    fill: var(--dk);
}

[data-theme="dark"] .fp-diagram__svg text[fill="#64748B"] {
    fill: var(--txl);
}

[data-theme="dark"] .fp-diagram__svg text[fill="#CBD5E1"] {
    fill: var(--txl);
}

/* پاسخ پله دارک */
[data-theme="dark"] .fp-step {
    background: var(--wh);
    border-color: var(--bd);
}

[data-theme="dark"] .fp-step__svg line[stroke="#CBD5E1"] {
    stroke: var(--bd);
}

[data-theme="dark"] .fp-step__svg text[fill="#64748B"] {
    fill: var(--txl);
}

/* معرفی مجموعه دارک */
[data-theme="dark"] .fp-about {
    background: var(--wh);
}

[data-theme="dark"] .fp-about__text {
    color: var(--txl);
}

[data-theme="dark"] .fp-feat strong {
    color: var(--dk);
}

[data-theme="dark"] .fp-feat p {
    color: var(--txl);
}

[data-theme="dark"] .fp-feat__icon {
    background: var(--c1bg);
}

/* ترمینال دارک — همیشه تاریک بود، فقط border اصلاح */
[data-theme="dark"] .fp-term {
    box-shadow: 0 .5rem 2.5rem rgba(0, 0, 0, .3);
}

/* حوزه‌ها دارک */
[data-theme="dark"] .fp-topics {
    background: var(--bg);
}

[data-theme="dark"] .fp-topic {
    background: var(--wh);
    border-color: var(--bd);
}

[data-theme="dark"] .fp-topic:hover {
    border-color: rgba(13, 148, 136, .3);
    box-shadow: 0 .6rem 2rem rgba(13, 148, 136, .15);
}

[data-theme="dark"] .fp-topic__title {
    color: var(--dk);
}

[data-theme="dark"] .fp-topic__desc {
    color: var(--txl);
}

[data-theme="dark"] .fp-topic__tags span {
    background: var(--c1bg);
}

/* وبلاگ (آموزش تئوری) دارک */
[data-theme="dark"] .fp-blog {
    background: var(--wh);
}

[data-theme="dark"] .fp-post {
    background: var(--bg);
    border-color: var(--bd);
}

[data-theme="dark"] .fp-post:hover {
    border-color: var(--c1);
    box-shadow: 0 .5rem 1.5rem rgba(13, 148, 136, .15);
}

[data-theme="dark"] .fp-post__title {
    color: var(--dk);
}

[data-theme="dark"] .fp-post__title a {
    color: var(--dk);
}

[data-theme="dark"] .fp-post__title a:hover {
    color: var(--c1);
}

[data-theme="dark"] .fp-post__excerpt {
    color: var(--txl);
}

[data-theme="dark"] .fp-post__more {
    border-top-color: var(--bd);
}

/* کدها (آموزش کدنویسی) دارک */
[data-theme="dark"] .fp-codes {
    background: var(--bg);
}

[data-theme="dark"] .fp-code {
    background: var(--wh);
    border-color: var(--bd);
}

[data-theme="dark"] .fp-code:hover {
    border-color: var(--c1);
    box-shadow: 0 .5rem 1.5rem rgba(13, 148, 136, .15);
}

[data-theme="dark"] .fp-code__title {
    color: var(--dk);
}

[data-theme="dark"] .fp-code__desc {
    color: var(--txl);
}

[data-theme="dark"] .fp-code__bottom {
    border-top-color: var(--bd);
}

[data-theme="dark"] .fp-code__tags span {
    background: var(--c1bg);
}

/* CTA دارک — gradient خودش خوب است */

/* section titles دارک */
[data-theme="dark"] .fp-section-title {
    color: var(--dk);
}

[data-theme="dark"] .fp-section-desc {
    color: var(--txl);
}

/* اسکرول دارک */
[data-theme="dark"] .fp-scroll__mouse {
    border-color: var(--bd);
}

[data-theme="dark"] .fp-scroll span {
    color: var(--txl);
}
/* ── لینک حوزه‌ها ── */
a.fp-topic {
    text-decoration: none;
    cursor: pointer;
}

a.fp-topic:hover {
    transform: translateY(-.3rem);
    box-shadow: 0 .6rem 2rem rgba(13, 148, 136, .12);
    border-color: var(--c1);
}

.fp-topic__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    margin-top: var(--ss);
    padding-top: var(--ss);
    border-top: 1px solid var(--bd);
    font-size: var(--fx);
    font-weight: 600;
    color: var(--c1);
    transition: gap .3s;
}

a.fp-topic:hover .fp-topic__link {
    gap: .6rem;
}

[data-theme="dark"] .fp-topic__link {
    border-top-color: var(--bd);
    color: #14B8A6;
}
/* فقط دکمه اول هیرو: آموزش کدنویسی */
.fp-hero__actions .fp-btn--filled {
    background: linear-gradient(135deg, #0D9488, #14B8A6) !important;
    color: #ffffff !important;
    border: 2px solid transparent !important;
    box-shadow: 0 .25rem 1rem rgba(13, 148, 136, .25) !important;
}

.fp-hero__actions .fp-btn--filled,
.fp-hero__actions .fp-btn--filled span,
.fp-hero__actions .fp-btn--filled svg,
.fp-hero__actions .fp-btn--filled * {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.fp-hero__actions .fp-btn--filled:hover {
    background: linear-gradient(135deg, #0F766E, #0D9488) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 .4rem 1.5rem rgba(13, 148, 136, .35) !important;
}

/* حالت دارک فقط برای همین دکمه */
[data-theme="dark"] .fp-hero__actions .fp-btn--filled {
    background: #14B8A6 !important;
    color: #0F172A !important;
    border: 2px solid #14B8A6 !important;
    box-shadow: 0 .25rem 1rem rgba(20, 184, 166, .22) !important;
}

[data-theme="dark"] .fp-hero__actions .fp-btn--filled,
[data-theme="dark"] .fp-hero__actions .fp-btn--filled span,
[data-theme="dark"] .fp-hero__actions .fp-btn--filled svg,
[data-theme="dark"] .fp-hero__actions .fp-btn--filled * {
    color: #0F172A !important;
    stroke: #0F172A !important;
}

[data-theme="dark"] .fp-hero__actions .fp-btn--filled:hover {
    background: #2DD4BF !important;
    color: #0F172A !important;
    border-color: #2DD4BF !important;
}

/* ════════════════════════════════════════════════
   صفحه اول — پس‌زمینه گرافیکی و انیمیشن
   ════════════════════════════════════════════════ */


/* ══════════════════════════════════════
   ۱. هیرو — پس‌زمینه گرافیکی بهبود یافته
   ══════════════════════════════════════ */

.fp-hero {
    background:
        radial-gradient(ellipse 120% 80% at 10% 80%, rgba(22, 163, 74, .07) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(13, 148, 136, .06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(13, 148, 136, .03) 0%, transparent 60%),
        linear-gradient(135deg, #ffffff 0%, #F0FDFA 40%, #F8FAFC 100%) !important;
    position: relative;
    overflow: hidden;
}

/* نقاط تزئینی متحرک */
.fp-hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, .05) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 15s ease-in-out infinite;
    pointer-events: none;
}

.fp-hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(22, 163, 74, .04) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 20s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(30px, -20px) scale(1.05); }
    50%      { transform: translate(-20px, 15px) scale(.95); }
    75%      { transform: translate(15px, 25px) scale(1.03); }
}

/* Dark Mode هیرو */
[data-theme="dark"] .fp-hero {
    background:
        radial-gradient(ellipse 120% 80% at 10% 80%, rgba(22, 163, 74, .04) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(13, 148, 136, .03) 0%, transparent 50%),
        linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #0F172A 100%) !important;
}

[data-theme="dark"] .fp-hero::before {
    background: radial-gradient(circle, rgba(13, 148, 136, .04) 0%, transparent 70%);
}

[data-theme="dark"] .fp-hero::after {
    background: radial-gradient(circle, rgba(22, 163, 74, .03) 0%, transparent 70%);
}


/* ══════════════════════════════════════
   ۲. معرفی مجموعه — پس‌زمینه گرافیکی
   ══════════════════════════════════════ */

.fp-about {
    background:
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(13, 148, 136, .05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 20%, rgba(22, 163, 74, .04) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%) !important;
    position: relative;
    overflow: hidden;
}

.fp-about::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 148, 136, .04) 0%, transparent 70%);
    border-radius: 50%;
    animation: sectionGlow 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sectionGlow {
    0%, 100% { transform: scale(1); opacity: .5; }
    50%      { transform: scale(1.3); opacity: .8; }
}

[data-theme="dark"] .fp-about {
    background:
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(13, 148, 136, .03) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 20%, rgba(22, 163, 74, .02) 0%, transparent 50%),
        linear-gradient(180deg, #1E293B 0%, #0F172A 100%) !important;
}

[data-theme="dark"] .fp-about::before {
    background: radial-gradient(circle, rgba(13, 148, 136, .03) 0%, transparent 70%);
}


/* ══════════════════════════════════════
   ۳. حوزه‌ها — پترن نقطه‌ای + gradient
   ══════════════════════════════════════ */

.fp-topics {
    background:
        radial-gradient(circle at 2px 2px, rgba(13, 148, 136, .04) 1px, transparent 1px),
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(22, 163, 74, .04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(13, 148, 136, .03) 0%, transparent 50%),
        linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%) !important;
    background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100% !important;
    position: relative;
    overflow: hidden;
}

.fp-topics::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(13, 148, 136, .04) 0%, transparent 70%);
    border-radius: 50%;
    animation: sectionGlow 18s ease-in-out infinite;
    pointer-events: none;
}

[data-theme="dark"] .fp-topics {
    background:
        radial-gradient(circle at 2px 2px, rgba(13, 148, 136, .03) 1px, transparent 1px),
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(22, 163, 74, .02) 0%, transparent 50%),
        linear-gradient(180deg, #0F172A 0%, #1E293B 100%) !important;
    background-size: 24px 24px, 100% 100%, 100% 100% !important;
}

[data-theme="dark"] .fp-topics::after {
    background: radial-gradient(circle, rgba(13, 148, 136, .03) 0%, transparent 70%);
}


/* ══════════════════════════════════════
   ۴. آموزش تئوری — پس‌زمینه گرافیکی
   ══════════════════════════════════════ */

.fp-blog {
    background:
        radial-gradient(ellipse 70% 50% at 10% 70%, rgba(22, 163, 74, .04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 90% 30%, rgba(13, 148, 136, .03) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%) !important;
    position: relative;
    overflow: hidden;
}

.fp-blog::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -30px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(22, 163, 74, .03) 0%, transparent 70%);
    border-radius: 50%;
    animation: sectionGlow 14s ease-in-out infinite;
    pointer-events: none;
}

[data-theme="dark"] .fp-blog {
    background:
        radial-gradient(ellipse 70% 50% at 10% 70%, rgba(22, 163, 74, .02) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 90% 30%, rgba(13, 148, 136, .02) 0%, transparent 50%),
        linear-gradient(180deg, #1E293B 0%, #0F172A 100%) !important;
}

[data-theme="dark"] .fp-blog::before {
    background: radial-gradient(circle, rgba(22, 163, 74, .02) 0%, transparent 70%);
}


/* ══════════════════════════════════════
   ۵. آموزش کدنویسی — پس‌زمینه گرافیکی
   ══════════════════════════════════════ */

.fp-codes {
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(13, 148, 136, .05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(22, 163, 74, .03) 0%, transparent 50%),
        linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%) !important;
    position: relative;
    overflow: hidden;
}

.fp-codes::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 148, 136, .04) 0%, transparent 70%);
    border-radius: 50%;
    animation: sectionGlow 16s ease-in-out infinite reverse;
    pointer-events: none;
}

[data-theme="dark"] .fp-codes {
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(13, 148, 136, .03) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(22, 163, 74, .02) 0%, transparent 50%),
        linear-gradient(180deg, #0F172A 0%, #1E293B 100%) !important;
}

[data-theme="dark"] .fp-codes::after {
    background: radial-gradient(circle, rgba(13, 148, 136, .02) 0%, transparent 70%);
}


/* ══════════════════════════════════════
   ۶. CTA — بهبود گرافیکی
   ══════════════════════════════════════ */

.fp-cta {
    background:
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, .03) 0%, transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%) !important;
    position: relative;
}

.fp-cta__box {
    position: relative;
    overflow: hidden;
}

.fp-cta__box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 12s ease-in-out infinite;
    pointer-events: none;
}

.fp-cta__box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 16s ease-in-out infinite reverse;
    pointer-events: none;
}

[data-theme="dark"] .fp-cta {
    background:
        linear-gradient(180deg, #0F172A 0%, #1E293B 100%) !important;
}


/* ══════════════════════════════════════
   ۷. انیمیشن ورود بهبود یافته
   ══════════════════════════════════════ */

/* fade up */
.fp-reveal--u {
    opacity: 0;
    transform: translateY(3rem);
    transition: all .8s cubic-bezier(.16, 1, .3, 1);
}

/* fade right */
.fp-reveal--r {
    opacity: 0;
    transform: translateX(3rem);
    transition: all .8s cubic-bezier(.16, 1, .3, 1);
}

/* fade left */
.fp-reveal--l {
    opacity: 0;
    transform: translateX(-3rem);
    transition: all .8s cubic-bezier(.16, 1, .3, 1);
}

.fp-reveal.visible {
    opacity: 1;
    transform: translate(0);
}

/* تأخیر پلکانی */
.fp-reveal[data-delay="0"] { transition-delay: 0ms; }
.fp-reveal[data-delay="1"] { transition-delay: 120ms; }
.fp-reveal[data-delay="2"] { transition-delay: 240ms; }
.fp-reveal[data-delay="3"] { transition-delay: 360ms; }
.fp-reveal[data-delay="4"] { transition-delay: 480ms; }
.fp-reveal[data-delay="5"] { transition-delay: 600ms; }


/* ══════════════════════════════════════
   ۸. کارت‌ها — hover بهبود یافته
   ══════════════════════════════════════ */

.fp-post {
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}

.fp-post:hover {
    transform: translateY(-.35rem);
    box-shadow:
        0 .5rem 1.5rem rgba(13, 148, 136, .08),
        0 0 0 1px rgba(13, 148, 136, .1);
}

.fp-code {
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}

.fp-code:hover {
    transform: translateY(-.35rem);
    box-shadow:
        0 .5rem 1.5rem rgba(13, 148, 136, .1),
        0 0 0 1px rgba(13, 148, 136, .1);
}

.fp-topic {
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}

.fp-topic:hover {
    transform: translateY(-.35rem);
    box-shadow:
        0 .6rem 2rem rgba(13, 148, 136, .1),
        0 0 0 1px rgba(13, 148, 136, .12);
}


/* ══════════════════════════════════════
   ۹. جداکننده بین بخش‌ها
   ══════════════════════════════════════ */

.fp-about,
.fp-topics,
.fp-blog,
.fp-codes,
.fp-cta {
    position: relative;
}

.fp-about::after,
.fp-blog::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(13, 148, 136, .15) 30%,
        rgba(22, 163, 74, .2) 50%,
        rgba(13, 148, 136, .15) 70%,
        transparent 100%
    );
    pointer-events: none;
}

[data-theme="dark"] .fp-about::after,
[data-theme="dark"] .fp-blog::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(13, 148, 136, .1) 30%,
        rgba(22, 163, 74, .15) 50%,
        rgba(13, 148, 136, .1) 70%,
        transparent 100%
    );
}


/* ══════════════════════════════════════
   ۱۰. ریسپانسیو
   ══════════════════════════════════════ */

@media (max-width: 48rem) {
    .fp-hero::before,
    .fp-hero::after {
        display: none;
    }

    .fp-about::before,
    .fp-topics::after,
    .fp-blog::before,
    .fp-codes::after,
    .fp-cta__box::before,
    .fp-cta__box::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-hero::before,
    .fp-hero::after,
    .fp-about::before,
    .fp-topics::after,
    .fp-blog::before,
    .fp-codes::after,
    .fp-cta__box::before,
    .fp-cta__box::after {
        animation: none !important;
    }
}

/* ════════════════════════════════════════════════
   Front Page Mobile Visual Fix
   ════════════════════════════════════════════════ */

@media (max-width: 64rem) {
    /* هیرو عمودی */
    .fp-hero__container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: var(--sl) !important;
    }

    .fp-hero__text {
        text-align: center !important;
        max-width: 100% !important;
    }

    .fp-hero__desc {
        margin-inline: auto !important;
    }

    .fp-hero__actions,
    .fp-hero__stats {
        justify-content: center !important;
    }

    /* دیاگرام و پاسخ پله حتماً نمایش داده شوند */
    .fp-hero__visual {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: var(--sm) !important;
    }

    .fp-diagram,
    .fp-step {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .fp-diagram__svg {
        display: block !important;
        width: 100% !important;
        min-width: 520px !important;
        height: auto !important;
    }

    .fp-step__svg {
        display: block !important;
        width: 100% !important;
        min-width: 320px !important;
        height: auto !important;
    }

    /* بخش معرفی هم ستونی شود تا ترمینال دیده شود */
    .fp-about__grid {
        grid-template-columns: 1fr !important;
    }

    .fp-term {
        display: block !important;
        width: 100% !important;
        margin-top: var(--sm) !important;
    }

    .fp-term__code {
        font-size: .72rem !important;
        overflow-x: auto !important;
    }
}

@media (max-width: 48rem) {
    .fp-diagram__svg {
        min-width: 460px !important;
    }

    .fp-term__code {
        font-size: .64rem !important;
    }
}

@media (max-width: 30rem) {
    .fp-diagram__svg {
        min-width: 400px !important;
    }

    .fp-term__code {
        font-size: .58rem !important;
    }
}
/* ════════════════════════════════════════════════
   CTA — تم سبز انیمیشنی
   ════════════════════════════════════════════════ */

/* پس‌زمینه سکشن */
.fp-cta {
    background:
        radial-gradient(ellipse 70% 50% at 30% 80%, rgba(22, 163, 74, .05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 70% 20%, rgba(13, 148, 136, .04) 0%, transparent 50%),
        linear-gradient(180deg, #F8FAFC 0%, #F0FDFA 100%) !important;
    position: relative;
    overflow: hidden;
}

/* دایره تزئینی متحرک پشت سکشن */
.fp-cta::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(22, 163, 74, .04) 0%, transparent 70%);
    border-radius: 50%;
    animation: ctaFloat 14s ease-in-out infinite;
    pointer-events: none;
}

.fp-cta::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(13, 148, 136, .03) 0%, transparent 70%);
    border-radius: 50%;
    animation: ctaFloat 18s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes ctaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .6; }
    25%      { transform: translate(15px, -10px) scale(1.1); opacity: .8; }
    50%      { transform: translate(-10px, 8px) scale(.95); opacity: .5; }
    75%      { transform: translate(8px, 12px) scale(1.05); opacity: .7; }
}

/* باکس CTA */
.fp-cta__box {
    background: linear-gradient(135deg, #0D9488, #0F766E, #16A34A) !important;
    background-size: 200% 200% !important;
    animation: ctaGradient 8s ease-in-out infinite !important;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@keyframes ctaGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* دایره‌های نوری داخل باکس */
.fp-cta__box::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 60%);
    border-radius: 50%;
    animation: ctaPulse 6s ease-in-out infinite;
    pointer-events: none;
}

.fp-cta__box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, .07) 0%, transparent 60%);
    border-radius: 50%;
    animation: ctaPulse 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: .5; }
    50%      { transform: scale(1.2); opacity: .8; }
}

/* خطوط نوری متحرک */
.fp-cta__text {
    position: relative;
    z-index: 2;
}

.fp-cta__text h2 {
    color: #ffffff !important;
    position: relative;
}

.fp-cta__text p {
    color: rgba(255, 255, 255, .85) !important;
}

/* دکمه CTA */
.fp-cta .fp-btn--white {
    position: relative;
    z-index: 2;
    background: #ffffff !important;
    color: #0D9488 !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15) !important;
    transition: all .3s cubic-bezier(.16, 1, .3, 1) !important;
}

.fp-cta .fp-btn--white:hover {
    transform: translateY(-.2rem) scale(1.02) !important;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .2) !important;
    color: #0D9488 !important;
}


/* ── CTA Dark Mode ── */
[data-theme="dark"] .fp-cta {
    background:
        radial-gradient(ellipse 70% 50% at 30% 80%, rgba(22, 163, 74, .03) 0%, transparent 50%),
        linear-gradient(180deg, #0F172A 0%, #1E293B 100%) !important;
}

[data-theme="dark"] .fp-cta::before {
    background: radial-gradient(circle, rgba(22, 163, 74, .03) 0%, transparent 70%);
}

[data-theme="dark"] .fp-cta::after {
    background: radial-gradient(circle, rgba(13, 148, 136, .02) 0%, transparent 70%);
}

[data-theme="dark"] .fp-cta__box {
    background: linear-gradient(135deg, #0D9488, #0F766E, #16A34A) !important;
    background-size: 200% 200% !important;
}

[data-theme="dark"] .fp-cta .fp-btn--white {
    background: #ffffff !important;
    color: #0D9488 !important;
    border-color: #ffffff !important;
}


/* ── CTA ریسپانسیو ── */
@media (max-width: 48rem) {
    .fp-cta__box::before,
    .fp-cta__box::after,
    .fp-cta::before,
    .fp-cta::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-cta__box {
        animation: none !important;
    }

    .fp-cta__box::before,
    .fp-cta__box::after,
    .fp-cta::before,
    .fp-cta::after {
        animation: none !important;
    }
}