.moinsa-home {
    --home-accent: var(--brand-accent-ink);
    --home-accent-dark: var(--brand-ink);
    --home-ink: var(--brand-ink);
    --home-muted: #7c767d;
    --home-border: #e5e2e4;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: .35rem .25rem 3rem;
    color: var(--home-ink);
}

.home-hero {
    position: relative;
    min-height: 325px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    padding: 2.6rem 3rem;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 5%, rgba(0, 159, 227, .34), transparent 17rem),
        radial-gradient(circle at 8% 120%, rgba(0, 159, 227, .22), transparent 25rem),
        linear-gradient(125deg, var(--brand-ink) 0%, #252525 52%, #1D1D1B 100%);
    box-shadow: 0 22px 52px rgba(55, 25, 29, .18);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -75px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.home-hero-content,
.home-hero-brand {
    position: relative;
    z-index: 1;
}

.home-eyebrow,
.home-section-kicker {
    font-size: .69rem;
    font-weight: 820;
    letter-spacing: .14em;
}

.home-eyebrow {
    margin-bottom: .8rem;
    color: #99D9F4;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3.45rem);
    font-weight: 790;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.home-hero p {
    max-width: 690px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .70);
    font-size: 1rem;
    line-height: 1.7;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.65rem;
}

.home-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .83rem;
    font-weight: 720;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.home-button:hover {
    transform: translateY(-1px);
}

.home-button-primary {
    color: var(--brand-accent-ink);
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}

.home-button-primary:hover {
    color: var(--brand-accent-ink);
    background: #F5FBFE;
}

.home-button-secondary {
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.home-button-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.home-hero-brand {
    width: 225px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    background: rgba(255, 255, 255, .055);
    backdrop-filter: blur(8px);
}

.home-symbol-shell {
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

.home-symbol {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.home-brand-copy {
    margin-top: 1rem;
    text-align: center;
}

.home-brand-copy strong,
.home-brand-copy span {
    display: block;
}

.home-brand-copy strong {
    font-size: 1.12rem;
    letter-spacing: .08em;
}

.home-brand-copy span {
    margin-top: .32rem;
    color: rgba(255, 255, 255, .52);
    font-size: .64rem;
    line-height: 1.45;
    letter-spacing: .04em;
}

.home-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.home-section-kicker {
    margin-bottom: .35rem;
    color: var(--home-accent);
}

.home-welcome h2 {
    margin: 0;
    color: #282428;
    font-size: 1.55rem;
    font-weight: 760;
    letter-spacing: -.025em;
}

.home-welcome p {
    margin: .3rem 0 0;
    color: #8a848a;
    font-size: .83rem;
}

.home-security-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border: 1px solid #d9e8df;
    border-radius: 999px;
    color: #377054;
    background: #f4faf6;
    font-size: .72rem;
    font-weight: 700;
}

.home-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-module-card {
    position: relative;
    min-width: 0;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 17px;
    color: inherit;
    background: linear-gradient(145deg, #fff 0%, #fbfafb 100%);
    box-shadow: 0 9px 25px rgba(40, 28, 32, .045);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.home-module-card::after {
    content: "";
    position: absolute;
    width: 95px;
    height: 95px;
    right: -42px;
    top: -42px;
    border-radius: 50%;
    background: rgba(0, 159, 227, .045);
}

.home-module-card:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: #E5F5FC;
    box-shadow: 0 15px 34px rgba(0, 159, 227, .085);
}

.home-module-card-featured {
    border-color: #E5F5FC;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 159, 227, .07), transparent 11rem),
        #fff;
}

.home-module-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 13px;
    color: var(--brand-accent-ink);
    background: #F5FBFE;
    font-size: 1.2rem;
}

.home-module-label {
    color: var(--home-accent);
    font-size: .64rem;
    font-weight: 820;
    letter-spacing: .12em;
}

.home-module-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.home-module-content h3 {
    margin: .42rem 0 0;
    color: #312d31;
    font-size: 1rem;
    font-weight: 750;
}

.home-module-content p {
    margin: .65rem 0 1rem;
    color: #827c83;
    font-size: .78rem;
    line-height: 1.55;
}

.home-module-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--brand-accent-ink);
    font-size: .75rem;
    font-weight: 720;
}

.home-module-card:hover .home-module-link i {
    transform: translateX(3px);
}

.home-module-link i {
    transition: transform .15s ease;
}

.home-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .75fr);
    gap: 1rem;
    margin-top: 1rem;
}

.home-info-panel,
.home-security-panel {
    border: 1px solid var(--home-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 9px 25px rgba(40, 28, 32, .04);
}

.home-info-panel {
    padding: 1.25rem;
}

.home-info-heading {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.home-info-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 12px;
    color: var(--brand-accent-ink);
    background: #F5FBFE;
}

.home-info-heading h3,
.home-security-panel h3 {
    margin: 0;
    color: #312d31;
    font-size: .98rem;
    font-weight: 740;
}

.home-quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}

.home-quick-links a {
    min-width: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .8rem;
    border: 1px solid #e8e5e7;
    border-radius: 11px;
    color: #514b51;
    background: #fcfbfc;
    text-decoration: none;
    font-size: .74rem;
    font-weight: 650;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.home-quick-links a:hover {
    color: var(--brand-accent-ink);
    transform: translateY(-1px);
    border-color: #E5F5FC;
    background: #F5FBFE;
}

.home-quick-links i {
    color: var(--home-accent);
    font-size: .95rem;
}

.home-security-panel {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem;
    background: linear-gradient(145deg, #242124 0%, #3b2b2e 100%);
    color: #fff;
}

.home-security-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 13px;
    color: #E5F5FC;
    background: rgba(0, 159, 227, .25);
    font-size: 1.2rem;
}

.home-security-panel .home-section-kicker {
    color: #99D9F4;
}

.home-security-panel h3 {
    color: #fff;
}

.home-security-panel p {
    margin: .55rem 0 0;
    color: rgba(255, 255, 255, .61);
    font-size: .76rem;
    line-height: 1.55;
}

.home-footer {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.3rem;
    padding: .9rem 1rem;
    border-top: 1px solid #e3e0e2;
    color: #aaa4aa;
    font-size: .68rem;
    letter-spacing: .04em;
}

.home-footer-logo {
    width: 190px;
    max-height: 38px;
    object-fit: contain;
    object-position: left center;
    opacity: .75;
}

@media (max-width: 1180px) {
    .home-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .home-hero {
        grid-template-columns: 1fr;
        padding: 2.1rem;
    }

    .home-hero-brand {
        display: none;
    }

    .home-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .moinsa-home {
        padding-inline: 0;
    }

    .home-hero {
        min-height: auto;
        padding: 1.6rem;
        border-radius: 16px;
    }

    .home-hero h1 {
        font-size: 2rem;
    }

    .home-actions,
    .home-button {
        width: 100%;
    }

    .home-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-module-grid,
    .home-quick-links {
        grid-template-columns: 1fr;
    }

    .home-module-card {
        min-height: 215px;
    }

    .home-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
