/* ─── About Page — minimal + motion ─── */

:root {
    --abt-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes abt-fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes abt-glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50% { transform: translate(2%, -3%) scale(1.06); opacity: 0.75; }
}

@keyframes abt-shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes abt-cta-shine {
    0% { transform: translateX(120%) skewX(-18deg); }
    100% { transform: translateX(-180%) skewX(-18deg); }
}

@keyframes abt-bg-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}

/* Scroll reveal */
.abt-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s var(--abt-ease),
        transform 0.7s var(--abt-ease);
    transition-delay: calc(var(--abt-delay, 0) * 0.08s);
}

.abt-reveal.is-inview {
    opacity: 1;
    transform: translateY(0);
}

html.mk-public.mk-about-page,
html.mk-public.mk-about-page body.mk-pub-page,
html.mk-public.mk-about-page .main-content {
    background: #fafbfc !important;
}

html.mk-public[data-theme="dark"].mk-about-page,
html.mk-public[data-theme="dark"].mk-about-page body.mk-pub-page,
html.mk-public[data-theme="dark"].mk-about-page .main-content {
    background: #070b14 !important;
}

.abt-wrap {
    padding-bottom: 0;
    background: transparent !important;
}

/* ─── Shared ─── */
.abt-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 0.65rem;
}

.abt-accent {
    background: linear-gradient(120deg, #7c3aed 0%, #a78bfa 45%, #7c3aed 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: abt-shimmer 5s linear infinite;
}

.abt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        background 0.22s var(--abt-ease),
        border-color 0.22s var(--abt-ease),
        transform 0.22s var(--abt-ease),
        box-shadow 0.22s var(--abt-ease);
}

.abt-btn--primary {
    color: #fff;
    background: #7c3aed;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
}

.abt-btn--primary:hover {
    background: #6d28d9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.32);
}

.abt-btn--ghost {
    color: var(--mk-text, #0f172a);
    background: transparent;
    border-color: #e2e8f0;
}

.abt-btn--ghost:hover {
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--mk-text, #0f172a);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.abt-btn--white {
    color: #7c3aed;
    background: #fff;
}

.abt-btn--white:hover {
    background: #f8fafc;
    color: #6d28d9;
}

/* ─── Sections ─── */
.abt-band {
    padding: clamp(2rem, 4vw, 2.75rem) 0;
    border-top: 1px solid #eef2f6;
}

html.mk-public[data-theme="dark"] .abt-band {
    border-color: rgba(148, 163, 184, 0.1);
}

.abt-band--muted {
    background: #f1f5f9;
    border-top: none;
}

html.mk-public[data-theme="dark"] .abt-band--muted {
    background: rgba(15, 23, 42, 0.5);
}

.abt-band--cta {
    border-top: none;
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* Mission band — bg-about.webp فقط این بخش */
.abt-band--mission {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-top: none;
    background: transparent;
    min-height: clamp(220px, 34vw, 340px);
    display: flex;
    align-items: center;
}

.abt-band--mission::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--abt-mission-bg, url('../images/bg-about.webp'));
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.abt-band--mission::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    z-index: 0;
}

html.mk-public[data-theme="dark"] .abt-band--mission::after {
    background: rgba(7, 11, 20, 0.8);
}

.abt-band--mission > .container {
    position: relative;
    z-index: 1;
}

/* ─── Hero ─── */
.abt-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    text-align: center;
    border-bottom: 1px solid #eef2f6;
}

.abt-hero__glow {
    position: absolute;
    top: -30%;
    left: 50%;
    width: min(90vw, 520px);
    height: min(90vw, 520px);
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 68%);
    pointer-events: none;
    animation: abt-glow-drift 9s ease-in-out infinite;
}

html.mk-public[data-theme="dark"] .abt-hero {
    border-color: rgba(148, 163, 184, 0.1);
}

.abt-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 36rem;
    margin: 0 auto;
}

.abt-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: var(--mk-text, #0f172a);
}

.abt-lead {
    margin: 0 auto 1.25rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--mk-text-secondary, #64748b);
}

.abt-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ─── Pillars (values) ─── */
.abt-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.abt-pillars li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition:
        transform 0.28s var(--abt-ease),
        border-color 0.28s var(--abt-ease),
        background 0.28s var(--abt-ease),
        box-shadow 0.28s var(--abt-ease);
}

.abt-pillars li.is-inview:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(124, 58, 237, 0.12);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.08);
}

html.mk-public[data-theme="dark"] .abt-pillars li.is-inview:hover {
    background: rgba(15, 23, 42, 0.55);
}

.abt-pillars i {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 8px;
    transition: transform 0.28s var(--abt-ease), background 0.28s var(--abt-ease);
}

.abt-pillars li:hover i {
    transform: scale(1.08);
    background: rgba(124, 58, 237, 0.14);
}

.abt-pillars strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--mk-text, #0f172a);
    margin-bottom: 0.15rem;
}

.abt-pillars span {
    display: block;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--mk-text-secondary, #64748b);
}

/* ─── Live stats panel ─── */
.abt-stats-panel {
    position: relative;
    padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    box-shadow: 0 24px 60px -40px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

html.mk-public[data-theme="dark"] .abt-stats-panel {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 27, 75, 0.55));
    border-color: rgba(167, 139, 250, 0.18);
}

.abt-stats-panel::before {
    content: '';
    position: absolute;
    inset-inline-end: -20%;
    top: -40%;
    width: 45%;
    height: 140%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
    pointer-events: none;
}

.abt-stats-head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.abt-stats-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #7c3aed;
}

.abt-stats-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    animation: abt-live-pulse 2s ease infinite;
}

@keyframes abt-live-pulse {
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.abt-stats-uptime {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.abt-stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.abt-stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.1);
    min-width: 0;
    transition: transform 0.28s var(--abt-ease), border-color 0.28s var(--abt-ease), box-shadow 0.28s var(--abt-ease);
}

.abt-stat.is-inview:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.18);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.08);
}

.abt-stat-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
}

.abt-stat-body {
    min-width: 0;
}

.abt-stat-val {
    display: block;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--mk-text, #0f172a);
    font-variant-numeric: tabular-nums;
}

.abt-stat-val small {
    font-size: 0.72em;
    font-weight: 700;
}

.abt-stat-lbl {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

/* ─── Mission ─── */
.abt-mission {
    max-width: 36rem;
}

.abt-mission__text h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--mk-text, #0f172a);
}

.abt-mission__text > p {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--mk-text-secondary, #64748b);
}

.abt-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.abt-checks li {
    position: relative;
    padding-right: 1.1rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--mk-text, #0f172a);
}

.abt-checks li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7c3aed;
    transform: scale(0);
    transition: transform 0.4s var(--abt-ease);
    transition-delay: calc(var(--abt-delay, 0) * 0.06s + 0.15s);
}

.abt-checks li.is-inview::before {
    transform: scale(1);
}

/* ─── CTA ─── */
.abt-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.35rem;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.28);
    transition: transform 0.3s var(--abt-ease), box-shadow 0.3s var(--abt-ease);
}

.abt-cta.is-inview:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.34);
}

.abt-cta::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(120%) skewX(-18deg);
    pointer-events: none;
}

.abt-cta.is-inview:hover::after {
    animation: abt-cta-shine 0.85s var(--abt-ease);
}

.abt-cta p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .abt-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

}

@media (max-width: 520px) {
    .abt-pillars,
    .abt-stats-grid {
        grid-template-columns: 1fr;
    }

    .abt-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .abt-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .abt-btn--white {
        width: 100%;
    }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .abt-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .abt-accent,
    .abt-hero__glow,
    .abt-cta::after,
    .abt-stats-live-dot {
        animation: none !important;
    }


    .abt-btn,
    .abt-pillars li,
    .abt-stat,
    .abt-cta,
    .abt-pillars i,
    .abt-checks li::before {
        transition: none;
    }
}
