/* About Infinity — Figma 808:14910
   Frame: 1440×3421
   Hero 756 | Story 666 | MVV 242 | Features 642 | CTA 500
*/

.about-page {
    overflow-x: clip;
    background: #fff;
    direction: rtl;
}

/* ═══════════════════════════════════════════
   Hero — 808:14912
   Figma: 1440×756 (includes nav overlay ~140px)
   Content below sticky nav ≈ 616px
   ═══════════════════════════════════════════ */
.about-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 616px;
    border-radius: 0 0 12px 12px;
    background:
        linear-gradient(90deg, rgba(243, 241, 255, 0.3), rgba(243, 241, 255, 0.3)),
        #ffffff;
}

.about-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.about-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.about-hero__glow--1 {
    width: 900px;
    height: 700px;
    top: -120px;
    inset-inline-end: -120px;
    background: radial-gradient(circle, rgba(106, 25, 255, 0.28) 0%, rgba(104, 25, 250, 0.12) 40%, transparent 70%);
}

.about-hero__glow--2 {
    width: 700px;
    height: 600px;
    bottom: -220px;
    inset-inline-start: -180px;
    background: radial-gradient(circle, rgba(106, 25, 255, 0.22) 0%, transparent 65%);
}

.about-hero__glow--3 {
    width: 520px;
    height: 420px;
    top: 40%;
    inset-inline-start: 30%;
    background: radial-gradient(circle, rgba(136, 85, 255, 0.1) 0%, transparent 70%);
}

.about-hero__gradient,
.about-hero__ellipse {
    position: absolute;
    pointer-events: none;
    max-width: none;
}

.about-hero__gradient {
    width: 1384px;
    height: 1262px;
    inset-inline-end: -280px;
    top: 80px;
    opacity: 0.85;
}

.about-hero__ellipse {
    width: 782px;
    height: 764px;
    inset-inline-start: -260px;
    bottom: -280px;
    opacity: 0.7;
}

.about-hero__inner {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 32px;
}

/* Figma Header section: py-96, items toward start (right in RTL) */
.about-hero__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* RTL start = right — matches Figma items-end in LTR */
    padding-block: 96px;
}

.about-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* RTL: right-align children */
    gap: 24px;
    max-width: 768px;
    width: 100%;
    text-align: right;
}

.about-hero__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.about-hero__eyebrow {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #6819fa;
}

.about-hero__title {
    margin: 0;
    font-size: 48px;
    line-height: 60px;
    font-weight: 500;
    letter-spacing: -0.96px;
    color: #181d27;
}

.about-hero__desc {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #535862;
    width: 100%;
}

/* Stats strip — Figma § height ~273 with pb-96, cards 286×177, gap 24 */
.about-hero__stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 96px;
}

.about-stat {
    box-sizing: border-box;
    width: 286px;
    min-height: 177px;
    padding: 20px;
    border-radius: 13px;
    border: 0.83px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    color: #4107ab;
}

.about-stat__value {
    margin: 0 0 10px;
    font-size: 50px;
    line-height: 60px;
    font-weight: 500;
    letter-spacing: -1px;
    color: #4107ab;
}

.about-stat__label {
    margin: 0 0 3px;
    font-size: 15px;
    line-height: 23px;
    font-weight: 500;
    color: #4107ab;
}

.about-stat__hint {
    margin: 0 auto;
    max-width: 249px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
    color: #4107ab;
}

/* ═══════════════════════════════════════════
   Story — 808:14982
   Figma: 1440×666 | card 1210×538 | py/px 64/48
   Image RIGHT (592×560) · Text LEFT (616×534)
   ═══════════════════════════════════════════ */
.about-story {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 666px;
    padding: 64px 48px;
}

.about-story__card {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1210px;
    height: 538px;
    border: 1px solid #d5d7da;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(10, 13, 18, 0.1),
        0 1px 2px -1px rgba(10, 13, 18, 0.1);
}

/* RTL: first child → right side = image */
.about-story__media {
    position: relative;
    flex: 0 0 592px;
    width: 592px;
    height: 100%;
    overflow: hidden;
    background: #1a1a1a;
}

.about-story__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-story__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* RTL start = right */
    gap: 48px;
    box-sizing: border-box;
    width: 616px;
    max-width: 100%;
    padding: 64px;
    text-align: right;
    min-width: 0;
}

.about-story__title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: #181d27;
}

.about-story__text {
    margin: 0;
    max-width: 471px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #535862;
}

.about-story__author {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #6819fa;
}

/* ═══════════════════════════════════════════
   MVV — 808:14993
   Figma: 1440×242 | content 1216×158 | gap 32
   RTL visual (right→left): رسالتنا | رؤيتنا | قيمنا
   ═══════════════════════════════════════════ */
.about-mvv {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 242px;
    padding: 48px;
    background: #fff;
}

.about-mvv__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 64px;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 32px;
}

.about-mvv__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* RTL = right */
    gap: 24px;
    text-align: right;
    min-width: 0;
}

.about-mvv__heading {
    margin: 0;
    width: 100%;
    font-size: 36px;
    line-height: 44px;
    font-weight: 500;
    letter-spacing: -0.72px;
    color: #6a19ff;
}

.about-mvv__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.about-mvv__subtitle {
    margin: 0;
    width: 100%;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #181d27;
}

.about-mvv__desc {
    margin: 0;
    width: 100%;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #535862;
}

/* ═══════════════════════════════════════════
   Features — 808:15026
   Figma: 1442×642 | inner 546 (py-96) | outer p-48
   Cards 384×192 | gap 32
   Head: title RIGHT · link LEFT
   Cards RTL (right→left): تحليلات | أمان | منصات
   ═══════════════════════════════════════════ */
.about-features {
    box-sizing: border-box;
    width: 100%;
    min-height: 642px;
    padding: 48px 0;
}

.about-features__box {
    box-sizing: border-box;
    width: 100%;
    min-height: 546px;
    background: #fafafa;
    padding-block: 96px;
}

.about-features__inner {
    box-sizing: border-box;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 32px;
}

.about-features__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 64px;
}

.about-features__copy {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.about-features__title {
    margin: 0 0 24px;
    font-size: 36px;
    line-height: 44px;
    font-weight: 500;
    letter-spacing: -0.72px;
    color: #181d27;
}

.about-features__desc {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #535862;
}

/* text then arrow in DOM → RTL: text right, arrow left of text group;
   link itself sits on the LEFT of the head via space-between */
.about-features__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: #6a19ff;
    white-space: nowrap;
    text-decoration: none;
}

.about-features__link:hover {
    opacity: 0.85;
}

.about-features__link img {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.about-features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.about-feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* RTL = icon/text on the right */
    gap: 16px;
    box-sizing: border-box;
    min-height: 192px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e9eaeb;
    border-radius: 12px;
    text-align: right;
}

.about-feature-card__icon {
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5d7da;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

.about-feature-card__icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.about-feature-card__title {
    margin: 0;
    width: 100%;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: #181d27;
}

.about-feature-card__desc {
    margin: 0;
    width: 100%;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #535862;
}

/* ═══════════════════════════════════════════
   CTA — 808:15046
   Figma: 1440×500 | box 1280×404 | py-48 section, py-64/px-112 box
   Buttons LTR visual: ghost LEFT · solid RIGHT
   ═══════════════════════════════════════════ */
.about-cta {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 500px;
    padding: 48px;
}

.about-cta__box {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    min-height: 404px;
    padding: 64px 112px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(180deg, #8855ff 50%, #6a19ff 96.667%),
        #f3f1ff;
}

.about-cta__deco {
    position: absolute;
    left: -6.25%;
    right: -6.25%;
    top: 4.7%;
    bottom: -43.6%;
    width: 112.5%;
    height: auto;
    max-width: none;
    pointer-events: none;
    opacity: 0.55;
}

.about-cta__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.about-cta__eyebrow {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
    color: #fff;
}

.about-cta__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.about-cta__title {
    position: relative;
    margin: 0;
    font-size: 48px;
    line-height: 60px;
    font-weight: 600;
    letter-spacing: -0.96px;
    color: #fff;
}

.about-cta__minutes {
    position: relative;
    display: inline-block;
}

.about-cta__zap {
    position: absolute;
    width: 36px;
    height: 36px;
    /* Figma places zap to the left of «دقائق» */
    left: -44px;
    top: 50%;
    transform: translateY(-50%);
}

.about-cta__desc {
    margin: 0;
    font-size: 16px;
    line-height: normal;
    font-weight: 300;
    color: #fff;
}

.about-cta__avatars {
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 32px;
}

.about-cta__avatars > * {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    box-shadow: 0 0 0 1.5px #fff;
    flex-shrink: 0;
}

.about-cta__avatars > * + * {
    margin-left: -8px;
}

.about-cta__avatars img {
    object-fit: cover;
    border: 0.75px solid rgba(0, 0, 0, 0.08);
}

.about-cta__avatars span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 0.75px solid #e9eaeb;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #717680;
}

.about-cta__actions {
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.about-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 158px;
    height: 40px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-cta__btn:hover {
    transform: translateY(-1px);
}

.about-cta__btn--solid {
    width: 158px;
    color: #414651;
    background: #fff;
    border: 1px solid #d5d7da;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

.about-cta__btn--ghost {
    width: 160px;
    color: #fff;
    background: transparent;
    border: 1px solid transparent;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1280px) {
    .about-story__card {
        height: auto;
        min-height: 480px;
    }

    .about-story__media {
        flex-basis: 45%;
        width: 45%;
    }
}

@media (max-width: 1024px) {
    .about-hero {
        min-height: 0;
    }

    .about-hero__title {
        font-size: 36px;
        line-height: 44px;
    }

    .about-hero__stats {
        flex-wrap: wrap;
    }

    .about-story {
        min-height: 0;
        padding: 48px 24px;
    }

    .about-story__card {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .about-story__media {
        width: 100%;
        flex: 0 0 auto;
        height: 360px;
        order: -1;
    }

    .about-story__content {
        width: 100%;
        padding: 40px 32px;
    }

    .about-mvv,
    .about-features,
    .about-cta {
        min-height: 0;
    }

    .about-mvv__grid,
    .about-features__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-features__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-features__box {
        min-height: 0;
        padding-block: 64px;
    }

    .about-cta__box {
        min-height: 0;
        padding: 48px 32px;
    }

    .about-cta__title {
        font-size: 32px;
        line-height: 42px;
    }

    .about-cta__zap {
        width: 28px;
        height: 28px;
        left: -34px;
    }
}

@media (max-width: 768px) {
    .about-hero__head {
        padding-block: 64px;
    }

    .about-hero__stats {
        padding-bottom: 64px;
        gap: 16px;
    }

    .about-stat {
        width: 100%;
        max-width: 320px;
        min-height: 0;
    }

    .about-stat__value {
        font-size: 32px;
        line-height: 40px;
    }

    .about-story,
    .about-mvv,
    .about-cta {
        padding: 32px 16px;
    }

    .about-features {
        padding: 24px 0;
    }

    .about-hero__title {
        font-size: 28px;
        line-height: 36px;
    }

    .about-hero__desc,
    .about-features__desc {
        font-size: 16px;
        line-height: 24px;
    }

    .about-mvv__heading,
    .about-features__title {
        font-size: 28px;
        line-height: 36px;
    }
}

/* ═══════════════════════════════════════════
   Motion — entrance, hover, ambient
   ═══════════════════════════════════════════ */

.about-page {
    scroll-behavior: smooth;
}

/* Hero entrance */
.about-hero__anim-item {
    opacity: 0;
    transform: translateY(28px);
}

.about-hero.is-loaded .about-hero__anim-item {
    animation: about-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-hero.is-loaded .about-hero__eyebrow { animation-delay: 0.05s; }
.about-hero.is-loaded .about-hero__title { animation-delay: 0.18s; }
.about-hero.is-loaded .about-hero__desc { animation-delay: 0.34s; }

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

/* Ambient glow breathe */
.about-hero__glow--1 {
    animation: about-glow-breathe 8s ease-in-out infinite;
}

.about-hero__glow--2 {
    animation: about-glow-breathe 9s ease-in-out infinite reverse;
    animation-delay: -2s;
}

.about-hero__glow--3 {
    animation: about-glow-breathe 10s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes about-glow-breathe {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* Stats cards hover */
.about-stat {
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease;
}

.about-stat:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(106, 25, 255, 0.18);
    box-shadow: 0 16px 40px rgba(106, 25, 255, 0.12);
}

/* Story card */
.about-story__card {
    transition: box-shadow 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-story__card:hover {
    box-shadow:
        0 12px 40px rgba(106, 25, 255, 0.1),
        0 4px 12px rgba(10, 13, 18, 0.06);
}

.about-story__media img {
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.about-story__card:hover .about-story__media img {
    transform: scale(1.04);
}

.about-story__author {
    position: relative;
    display: inline-block;
}

.about-story__author::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #6819fa;
    border-radius: 2px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-story__card:hover .about-story__author::after {
    width: 100%;
}

/* MVV items */
.about-mvv__item {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-mvv__item:hover {
    transform: translateY(-4px);
}

.about-mvv__heading {
    transition: letter-spacing 0.35s ease;
}

.about-mvv__item:hover .about-mvv__heading {
    letter-spacing: 0;
}

/* Feature cards */
.about-feature-card {
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.about-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(106, 25, 255, 0.22);
    box-shadow: 0 16px 40px rgba(106, 25, 255, 0.1);
}

.about-feature-card__icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}

.about-feature-card:hover .about-feature-card__icon {
    transform: scale(1.08) rotate(-4deg);
    border-color: #6a19ff;
}

.about-features__link {
    transition: gap 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
}

.about-features__link:hover {
    gap: 16px;
    opacity: 1;
    transform: translateX(-4px);
}

.about-features__link img {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-features__link:hover img {
    transform: translateX(-3px);
}

/* CTA */
.about-cta__box {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.about-cta__box:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(106, 25, 255, 0.28);
}

.about-cta__zap {
    animation: about-zap 2.2s ease-in-out infinite;
}

@keyframes about-zap {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    40% { transform: translateY(-50%) scale(1.15) rotate(-8deg); opacity: 0.9; }
    55% { transform: translateY(-50%) scale(0.95); }
}

.about-cta__btn {
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.about-cta__btn--solid:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-cta__btn--ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .about-hero__anim-item,
    .about-hero.is-loaded .about-hero__stats,
    .about-hero__glow--1,
    .about-hero__glow--2,
    .about-hero__glow--3,
    .about-cta__zap {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .about-stat,
    .about-story__card,
    .about-story__media img,
    .about-mvv__item,
    .about-feature-card,
    .about-feature-card__icon,
    .about-features__link,
    .about-cta__box,
    .about-cta__btn {
        transition: none !important;
    }

    .about-stat:hover,
    .about-feature-card:hover,
    .about-mvv__item:hover,
    .about-cta__box:hover,
    .about-cta__btn:hover {
        transform: none !important;
    }
}
