/* MISUN-inspired hero for Sorov Ahmed
   Left copy + right portrait visual + floating cards.
*/

.ma-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 78px;
    background:
        radial-gradient(circle at 12% 12%, rgba(0,216,140,.13), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(0,216,140,.08), transparent 32%),
        #0d1117;
}

.ma-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .20;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 64px 64px;
}

.ma-hero-bg-word {
    position: absolute;
    right: -2vw;
    top: 8%;
    font-size: clamp(100px, 17vw, 230px);
    line-height: .8;
    font-weight: 900;
    letter-spacing: -9px;
    color: rgba(255,255,255,.035);
    pointer-events: none;
    user-select: none;
}

.ma-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: 44px;
    align-items: center;
}

.ma-mini-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.68);
    font-size: 15px;
    margin-bottom: 14px;
}

.ma-mini-title span {
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: #00d88c;
}

.ma-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.86);
    font-size: 14px;
    font-weight: 650;
}

.ma-hero-copy h1 {
    max-width: 760px;
    margin: 22px 0 0;
    color: #fff;
    font-size: clamp(44px, 5.7vw, 76px);
    line-height: 1.02;
    letter-spacing: -1.8px;
    font-weight: 750;
}

.ma-hero-copy p {
    max-width: 690px;
    margin-top: 20px;
    color: rgba(255,255,255,.67);
    font-size: 17px;
    line-height: 1.78;
}

.ma-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    max-width: 660px;
    margin-top: 26px;
}

.ma-benefits div {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.74);
    font-size: 14px;
    font-weight: 600;
}

.ma-benefits i {
    color: #00d88c;
    font-size: 18px;
}

.ma-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

/* Right visual */
.ma-hero-visual {
    position: relative;
    min-height: 560px;
}

.ma-green-circle {
    position: absolute;
    width: 410px;
    height: 410px;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 28%, rgba(255,255,255,.13), transparent 18%),
        linear-gradient(135deg, #00d88c, #13a876);
    box-shadow:
        0 38px 90px rgba(0,0,0,.33),
        0 0 0 1px rgba(0,216,140,.22);
}

.ma-orbit {
    position: absolute;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.16);
    pointer-events: none;
}

.ma-orbit-one {
    width: 500px;
    height: 500px;
    animation: maRotate 46s linear infinite;
}

.ma-orbit-two {
    width: 590px;
    height: 590px;
    opacity: .45;
    animation: maRotateReverse 70s linear infinite;
}

@keyframes maRotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes maRotateReverse {
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.ma-person-wrap {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    width: 360px;
    height: 470px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.ma-person-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 30px 38px rgba(0,0,0,.28));
}

.ma-person-placeholder {
    width: 320px;
    height: 380px;
    border-radius: 180px 180px 30px 30px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 24px;
}

.ma-person-placeholder strong {
    font-size: 42px;
}

.ma-person-placeholder span {
    margin-top: 10px;
    color: rgba(255,255,255,.62);
    font-size: 14px;
}

.ma-floating-card {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 205px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(0,216,140,.18);
    box-shadow: 0 22px 50px rgba(0,0,0,.20);
    animation: maFloat 4.8s ease-in-out infinite;
}

.ma-floating-card strong {
    display: block;
    color: #111827;
    font-size: 23px;
    line-height: 1;
    font-weight: 800;
}

.ma-floating-card span {
    display: block;
    margin-top: 4px;
    color: #374151;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 650;
}

.ma-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: rgba(0,216,140,.10);
    color: #00a66c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.ma-card-left {
    left: 0;
    top: 46%;
    transform: translateY(-50%);
}

.ma-card-top {
    right: 18px;
    top: 52px;
    animation-delay: .6s;
}

.ma-card-right {
    right: 0;
    bottom: 110px;
    animation-delay: 1.1s;
}

@keyframes maFloat {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -10px; }
}

/* Override old BrandToki hero if still loaded */
.btv2-hero {
    display: none !important;
}

/* Desktop balance */
@media (min-width: 1200px) {
    .ma-hero {
        min-height: 720px;
        display: flex;
        align-items: center;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .ma-hero {
        padding: 62px 0 52px;
    }

    .ma-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ma-hero-copy h1 {
        font-size: 48px;
        max-width: 720px;
    }

    .ma-hero-visual {
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .ma-hero {
        padding: 48px 0 42px;
    }

    .ma-hero-bg-word {
        display: none;
    }

    .ma-mini-title {
        font-size: 13px;
    }

    .ma-pill {
        font-size: 12px;
        padding: 8px 12px;
    }

    .ma-hero-copy h1 {
        font-size: 38px;
        line-height: 1.12;
        letter-spacing: -.9px;
        margin-top: 18px;
    }

    .ma-hero-copy p {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .ma-benefits {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .ma-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ma-hero-visual {
        min-height: 450px;
        transform: scale(.92);
        transform-origin: center top;
        margin-bottom: -32px;
    }

    .ma-green-circle {
        width: 310px;
        height: 310px;
        top: 52%;
    }

    .ma-orbit-one {
        width: 390px;
        height: 390px;
    }

    .ma-orbit-two {
        display: none;
    }

    .ma-person-wrap {
        width: 280px;
        height: 370px;
        bottom: 36px;
    }

    .ma-floating-card {
        min-width: 150px;
        max-width: 165px;
        padding: 10px 11px;
        gap: 8px;
        border-radius: 14px;
    }

    .ma-floating-card strong {
        font-size: 18px;
    }

    .ma-floating-card span {
        font-size: 11px;
    }

    .ma-card-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 18px;
    }

    .ma-card-left {
        left: -6px;
        top: 49%;
    }

    .ma-card-top {
        right: -4px;
        top: 36px;
    }

    .ma-card-right {
        right: -5px;
        bottom: 82px;
    }
}

@media (max-width: 390px) {
    .ma-hero-copy h1 {
        font-size: 34px;
    }

    .ma-hero-visual {
        transform: scale(.86);
        margin-left: -8px;
        margin-right: -8px;
    }
}
